@aws/lsp-codewhisperer 0.0.5 → 0.0.9

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 (2527) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/node_modules/@amzn/codewhisperer-streaming/README.md +562 -0
  3. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +441 -0
  4. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +476 -0
  5. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +399 -0
  6. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +467 -0
  7. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +109 -0
  8. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +390 -0
  9. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +402 -0
  10. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +1443 -0
  11. package/node_modules/@amzn/codewhisperer-streaming/package.json +88 -0
  12. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/HISTORY.md +395 -0
  13. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/LICENSE +201 -0
  14. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/README.md +530 -0
  15. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.js +288 -0
  16. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.js.map +1 -0
  17. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.min.js +2 -0
  18. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.min.js.map +1 -0
  19. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.js +1737 -0
  20. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.js.map +1 -0
  21. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js +3 -0
  22. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +24 -0
  23. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js.map +1 -0
  24. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/package.json +57 -0
  25. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/Pool.js +476 -0
  26. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/Promise.js +293 -0
  27. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/WorkerHandler.js +547 -0
  28. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/debug-port-allocator.js +28 -0
  29. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/environment.js +30 -0
  30. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/generated/embeddedWorker.js +6 -0
  31. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/header.js +24 -0
  32. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/index.js +60 -0
  33. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/requireFoolWebpack.js +8 -0
  34. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/transfer.js +12 -0
  35. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/types.js +46 -0
  36. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/validateOptions.js +51 -0
  37. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/worker.js +256 -0
  38. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/Pool.d.ts +130 -0
  39. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/Promise.d.ts +125 -0
  40. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/WorkerHandler.d.ts +89 -0
  41. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/debug-port-allocator.d.ts +8 -0
  42. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/environment.d.ts +4 -0
  43. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/generated/embeddedWorker.d.ts +2 -0
  44. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/index.d.ts +43 -0
  45. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/transfer.d.ts +19 -0
  46. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/types.d.ts +99 -0
  47. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/validateOptions.d.ts +4 -0
  48. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/worker.d.ts +8 -0
  49. package/node_modules/@aws/lsp-fqn/out/browser/fqnWorkerPool.d.ts +5 -0
  50. package/node_modules/@aws/lsp-fqn/out/browser/fqnWorkerPool.js +28 -0
  51. package/node_modules/@aws/lsp-fqn/out/browser/fqnWorkerPool.js.map +1 -0
  52. package/node_modules/@aws/lsp-fqn/out/browser/index.d.ts +2 -0
  53. package/node_modules/@aws/lsp-fqn/out/browser/index.js +19 -0
  54. package/node_modules/@aws/lsp-fqn/out/browser/index.js.map +1 -0
  55. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.d.ts +7 -0
  56. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js +52 -0
  57. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js.map +1 -0
  58. package/node_modules/@aws/lsp-fqn/out/common/defaults.d.ts +4 -0
  59. package/node_modules/@aws/lsp-fqn/out/common/defaults.js +8 -0
  60. package/node_modules/@aws/lsp-fqn/out/common/defaults.js.map +1 -0
  61. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.d.ts +3 -0
  62. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js +29 -0
  63. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js.map +1 -0
  64. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.test.d.ts +1 -0
  65. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.test.js +57 -0
  66. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.test.js.map +1 -0
  67. package/node_modules/@aws/lsp-fqn/out/common/types.d.ts +58 -0
  68. package/node_modules/@aws/lsp-fqn/out/common/types.js +3 -0
  69. package/node_modules/@aws/lsp-fqn/out/common/types.js.map +1 -0
  70. package/node_modules/@aws/lsp-fqn/out/index.d.ts +7 -0
  71. package/node_modules/@aws/lsp-fqn/out/index.js +18 -0
  72. package/node_modules/@aws/lsp-fqn/out/index.js.map +1 -0
  73. package/node_modules/@aws/lsp-fqn/out/node/aws-lsp-fqn-worker.d.ts +1 -0
  74. package/node_modules/@aws/lsp-fqn/out/node/aws-lsp-fqn-worker.js +19 -0
  75. package/node_modules/@aws/lsp-fqn/out/node/aws-lsp-fqn-worker.js.map +1 -0
  76. package/node_modules/@aws/lsp-fqn/out/node/fqnWorkerPool.d.ts +5 -0
  77. package/node_modules/@aws/lsp-fqn/out/node/fqnWorkerPool.js +12 -0
  78. package/node_modules/@aws/lsp-fqn/out/node/fqnWorkerPool.js.map +1 -0
  79. package/node_modules/@aws/lsp-fqn/out/node/index.d.ts +2 -0
  80. package/node_modules/@aws/lsp-fqn/out/node/index.js +19 -0
  81. package/node_modules/@aws/lsp-fqn/out/node/index.js.map +1 -0
  82. package/node_modules/@aws/lsp-fqn/package.json +42 -0
  83. package/node_modules/@aws/lsp-fqn/src/browser/fqnWorkerPool.ts +26 -0
  84. package/node_modules/@aws/lsp-fqn/src/browser/index.ts +2 -0
  85. package/node_modules/@aws/lsp-fqn/src/common/commonFqnWorkerPool.ts +44 -0
  86. package/node_modules/@aws/lsp-fqn/src/common/defaults.ts +4 -0
  87. package/node_modules/@aws/lsp-fqn/src/common/fqnExtractor.test.ts +66 -0
  88. package/node_modules/@aws/lsp-fqn/src/common/fqnExtractor.ts +35 -0
  89. package/node_modules/@aws/lsp-fqn/src/common/types.ts +77 -0
  90. package/node_modules/@aws/lsp-fqn/src/index.ts +8 -0
  91. package/node_modules/@aws/lsp-fqn/src/node/aws-lsp-fqn-worker.ts +19 -0
  92. package/node_modules/@aws/lsp-fqn/src/node/fqnWorkerPool.ts +9 -0
  93. package/node_modules/@aws/lsp-fqn/src/node/index.ts +2 -0
  94. package/node_modules/@aws/lsp-fqn/tsconfig.json +8 -0
  95. package/node_modules/@aws/lsp-fqn/tsconfig.tsbuildinfo +1 -0
  96. package/node_modules/@aws-crypto/crc32/CHANGELOG.md +76 -0
  97. package/node_modules/@aws-crypto/crc32/LICENSE +201 -0
  98. package/node_modules/@aws-crypto/crc32/README.md +16 -0
  99. package/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts +7 -0
  100. package/node_modules/@aws-crypto/crc32/build/aws_crc32.js +31 -0
  101. package/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map +1 -0
  102. package/node_modules/@aws-crypto/crc32/build/index.d.ts +7 -0
  103. package/node_modules/@aws-crypto/crc32/build/index.js +108 -0
  104. package/node_modules/@aws-crypto/crc32/build/index.js.map +1 -0
  105. package/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +15 -0
  106. package/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +12 -0
  107. package/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +142 -0
  108. package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js +51 -0
  109. package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +3 -0
  110. package/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +37 -0
  111. package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
  112. package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  113. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts +37 -0
  114. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +1 -0
  115. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +218 -0
  116. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +1 -0
  117. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js +284 -0
  118. package/node_modules/@aws-crypto/crc32/package.json +28 -0
  119. package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +24 -0
  120. package/node_modules/@aws-crypto/crc32/src/index.ts +92 -0
  121. package/node_modules/@aws-crypto/crc32/tsconfig.json +23 -0
  122. package/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md +46 -0
  123. package/node_modules/@aws-crypto/ie11-detection/LICENSE +202 -0
  124. package/node_modules/@aws-crypto/ie11-detection/README.md +20 -0
  125. package/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.d.ts +19 -0
  126. package/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js +3 -0
  127. package/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js.map +1 -0
  128. package/node_modules/@aws-crypto/ie11-detection/build/Key.d.ts +12 -0
  129. package/node_modules/@aws-crypto/ie11-detection/build/Key.js +3 -0
  130. package/node_modules/@aws-crypto/ie11-detection/build/Key.js.map +1 -0
  131. package/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.d.ts +12 -0
  132. package/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js +3 -0
  133. package/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js.map +1 -0
  134. package/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.d.ts +33 -0
  135. package/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js +3 -0
  136. package/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js.map +1 -0
  137. package/node_modules/@aws-crypto/ie11-detection/build/MsWindow.d.ts +21 -0
  138. package/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js +32 -0
  139. package/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js.map +1 -0
  140. package/node_modules/@aws-crypto/ie11-detection/build/index.d.ts +5 -0
  141. package/node_modules/@aws-crypto/ie11-detection/build/index.js +9 -0
  142. package/node_modules/@aws-crypto/ie11-detection/build/index.js.map +1 -0
  143. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt +15 -0
  144. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt +12 -0
  145. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md +142 -0
  146. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/index.js +51 -0
  147. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json +3 -0
  148. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json +37 -0
  149. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
  150. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  151. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.d.ts +37 -0
  152. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html +1 -0
  153. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.js +218 -0
  154. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html +1 -0
  155. package/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.js +284 -0
  156. package/node_modules/@aws-crypto/ie11-detection/package.json +26 -0
  157. package/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts +21 -0
  158. package/node_modules/@aws-crypto/ie11-detection/src/Key.ts +12 -0
  159. package/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts +13 -0
  160. package/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts +88 -0
  161. package/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts +59 -0
  162. package/node_modules/@aws-crypto/ie11-detection/src/index.ts +5 -0
  163. package/node_modules/@aws-crypto/ie11-detection/tsconfig.json +17 -0
  164. package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +88 -0
  165. package/node_modules/@aws-crypto/sha256-browser/LICENSE +202 -0
  166. package/node_modules/@aws-crypto/sha256-browser/README.md +31 -0
  167. package/node_modules/@aws-crypto/sha256-browser/build/constants.d.ts +10 -0
  168. package/node_modules/@aws-crypto/sha256-browser/build/constants.js +43 -0
  169. package/node_modules/@aws-crypto/sha256-browser/build/constants.js.map +1 -0
  170. package/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.d.ts +8 -0
  171. package/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js +35 -0
  172. package/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js.map +1 -0
  173. package/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.d.ts +9 -0
  174. package/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js +80 -0
  175. package/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js.map +1 -0
  176. package/node_modules/@aws-crypto/sha256-browser/build/index.d.ts +3 -0
  177. package/node_modules/@aws-crypto/sha256-browser/build/index.js +10 -0
  178. package/node_modules/@aws-crypto/sha256-browser/build/index.js.map +1 -0
  179. package/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.d.ts +2 -0
  180. package/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js +11 -0
  181. package/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js.map +1 -0
  182. package/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.d.ts +10 -0
  183. package/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js +56 -0
  184. package/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js.map +1 -0
  185. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt +15 -0
  186. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt +12 -0
  187. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md +142 -0
  188. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/index.js +51 -0
  189. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json +3 -0
  190. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json +37 -0
  191. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
  192. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  193. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.d.ts +37 -0
  194. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html +1 -0
  195. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.js +218 -0
  196. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html +1 -0
  197. package/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.js +284 -0
  198. package/node_modules/@aws-crypto/sha256-browser/package.json +33 -0
  199. package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +41 -0
  200. package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +34 -0
  201. package/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts +108 -0
  202. package/node_modules/@aws-crypto/sha256-browser/src/index.ts +3 -0
  203. package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +9 -0
  204. package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +71 -0
  205. package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +22 -0
  206. package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +86 -0
  207. package/node_modules/@aws-crypto/sha256-js/LICENSE +201 -0
  208. package/node_modules/@aws-crypto/sha256-js/README.md +29 -0
  209. package/node_modules/@aws-crypto/sha256-js/build/RawSha256.d.ts +17 -0
  210. package/node_modules/@aws-crypto/sha256-js/build/RawSha256.js +124 -0
  211. package/node_modules/@aws-crypto/sha256-js/build/RawSha256.js.map +1 -0
  212. package/node_modules/@aws-crypto/sha256-js/build/constants.d.ts +20 -0
  213. package/node_modules/@aws-crypto/sha256-js/build/constants.js +98 -0
  214. package/node_modules/@aws-crypto/sha256-js/build/constants.js.map +1 -0
  215. package/node_modules/@aws-crypto/sha256-js/build/index.d.ts +1 -0
  216. package/node_modules/@aws-crypto/sha256-js/build/index.js +5 -0
  217. package/node_modules/@aws-crypto/sha256-js/build/index.js.map +1 -0
  218. package/node_modules/@aws-crypto/sha256-js/build/jsSha256.d.ts +12 -0
  219. package/node_modules/@aws-crypto/sha256-js/build/jsSha256.js +85 -0
  220. package/node_modules/@aws-crypto/sha256-js/build/jsSha256.js.map +1 -0
  221. package/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.d.ts +5 -0
  222. package/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js +322 -0
  223. package/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js.map +1 -0
  224. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt +15 -0
  225. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt +12 -0
  226. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md +142 -0
  227. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/index.js +51 -0
  228. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json +3 -0
  229. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json +37 -0
  230. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
  231. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  232. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.d.ts +37 -0
  233. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html +1 -0
  234. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js +218 -0
  235. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html +1 -0
  236. package/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.js +284 -0
  237. package/node_modules/@aws-crypto/sha256-js/package.json +28 -0
  238. package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +164 -0
  239. package/node_modules/@aws-crypto/sha256-js/src/constants.ts +98 -0
  240. package/node_modules/@aws-crypto/sha256-js/src/index.ts +1 -0
  241. package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +94 -0
  242. package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +401 -0
  243. package/node_modules/@aws-crypto/sha256-js/tsconfig.json +17 -0
  244. package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +46 -0
  245. package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +202 -0
  246. package/node_modules/@aws-crypto/supports-web-crypto/README.md +32 -0
  247. package/node_modules/@aws-crypto/supports-web-crypto/build/index.d.ts +1 -0
  248. package/node_modules/@aws-crypto/supports-web-crypto/build/index.js +5 -0
  249. package/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.d.ts +4 -0
  250. package/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js +69 -0
  251. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt +15 -0
  252. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt +12 -0
  253. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md +142 -0
  254. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/index.js +51 -0
  255. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json +3 -0
  256. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json +37 -0
  257. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
  258. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  259. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.d.ts +37 -0
  260. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html +1 -0
  261. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.js +218 -0
  262. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html +1 -0
  263. package/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.js +284 -0
  264. package/node_modules/@aws-crypto/supports-web-crypto/package.json +26 -0
  265. package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +1 -0
  266. package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +76 -0
  267. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +16 -0
  268. package/node_modules/@aws-crypto/util/CHANGELOG.md +47 -0
  269. package/node_modules/@aws-crypto/util/LICENSE +201 -0
  270. package/node_modules/@aws-crypto/util/README.md +16 -0
  271. package/node_modules/@aws-crypto/util/build/convertToBuffer.d.ts +2 -0
  272. package/node_modules/@aws-crypto/util/build/convertToBuffer.js +24 -0
  273. package/node_modules/@aws-crypto/util/build/convertToBuffer.js.map +1 -0
  274. package/node_modules/@aws-crypto/util/build/index.d.ts +4 -0
  275. package/node_modules/@aws-crypto/util/build/index.js +14 -0
  276. package/node_modules/@aws-crypto/util/build/index.js.map +1 -0
  277. package/node_modules/@aws-crypto/util/build/isEmptyData.d.ts +2 -0
  278. package/node_modules/@aws-crypto/util/build/isEmptyData.js +13 -0
  279. package/node_modules/@aws-crypto/util/build/isEmptyData.js.map +1 -0
  280. package/node_modules/@aws-crypto/util/build/numToUint8.d.ts +1 -0
  281. package/node_modules/@aws-crypto/util/build/numToUint8.js +15 -0
  282. package/node_modules/@aws-crypto/util/build/numToUint8.js.map +1 -0
  283. package/node_modules/@aws-crypto/util/build/uint32ArrayFrom.d.ts +1 -0
  284. package/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js +20 -0
  285. package/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map +1 -0
  286. package/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt +15 -0
  287. package/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt +12 -0
  288. package/node_modules/@aws-crypto/util/node_modules/tslib/README.md +142 -0
  289. package/node_modules/@aws-crypto/util/node_modules/tslib/modules/index.js +51 -0
  290. package/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json +3 -0
  291. package/node_modules/@aws-crypto/util/node_modules/tslib/package.json +37 -0
  292. package/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
  293. package/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  294. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.d.ts +37 -0
  295. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html +1 -0
  296. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.js +218 -0
  297. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html +1 -0
  298. package/node_modules/@aws-crypto/util/node_modules/tslib/tslib.js +284 -0
  299. package/node_modules/@aws-crypto/util/package.json +31 -0
  300. package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +30 -0
  301. package/node_modules/@aws-crypto/util/src/index.ts +7 -0
  302. package/node_modules/@aws-crypto/util/src/isEmptyData.ts +12 -0
  303. package/node_modules/@aws-crypto/util/src/numToUint8.ts +11 -0
  304. package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +16 -0
  305. package/node_modules/@aws-crypto/util/tsconfig.json +23 -0
  306. package/node_modules/@aws-sdk/middleware-host-header/LICENSE +201 -0
  307. package/node_modules/@aws-sdk/middleware-host-header/README.md +4 -0
  308. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +39 -0
  309. package/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js +33 -0
  310. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +20 -0
  311. package/node_modules/@aws-sdk/middleware-host-header/dist-types/ts3.4/index.d.ts +29 -0
  312. package/node_modules/@aws-sdk/middleware-host-header/package.json +59 -0
  313. package/node_modules/@aws-sdk/middleware-logger/LICENSE +201 -0
  314. package/node_modules/@aws-sdk/middleware-logger/README.md +4 -0
  315. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +4 -0
  316. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +48 -0
  317. package/node_modules/@aws-sdk/middleware-logger/dist-es/index.js +1 -0
  318. package/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js +42 -0
  319. package/node_modules/@aws-sdk/middleware-logger/dist-types/index.d.ts +1 -0
  320. package/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +4 -0
  321. package/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/index.d.ts +1 -0
  322. package/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/loggerMiddleware.d.ts +17 -0
  323. package/node_modules/@aws-sdk/middleware-logger/package.json +60 -0
  324. package/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +201 -0
  325. package/node_modules/@aws-sdk/middleware-recursion-detection/README.md +10 -0
  326. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +39 -0
  327. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +34 -0
  328. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +18 -0
  329. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +18 -0
  330. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +59 -0
  331. package/node_modules/@aws-sdk/middleware-token/LICENSE +201 -0
  332. package/node_modules/@aws-sdk/middleware-token/README.md +12 -0
  333. package/node_modules/@aws-sdk/middleware-token/dist-cjs/configurations.js +2 -0
  334. package/node_modules/@aws-sdk/middleware-token/dist-cjs/getTokenPlugin.js +10 -0
  335. package/node_modules/@aws-sdk/middleware-token/dist-cjs/index.js +7 -0
  336. package/node_modules/@aws-sdk/middleware-token/dist-cjs/normalizeTokenProvider.js +14 -0
  337. package/node_modules/@aws-sdk/middleware-token/dist-cjs/resolveTokenConfig.js +10 -0
  338. package/node_modules/@aws-sdk/middleware-token/dist-cjs/tokenDefaultProvider.browser.js +7 -0
  339. package/node_modules/@aws-sdk/middleware-token/dist-cjs/tokenDefaultProvider.js +5 -0
  340. package/node_modules/@aws-sdk/middleware-token/dist-cjs/tokenMiddleware.js +31 -0
  341. package/node_modules/@aws-sdk/middleware-token/dist-es/configurations.js +1 -0
  342. package/node_modules/@aws-sdk/middleware-token/dist-es/getTokenPlugin.js +6 -0
  343. package/node_modules/@aws-sdk/middleware-token/dist-es/index.js +4 -0
  344. package/node_modules/@aws-sdk/middleware-token/dist-es/normalizeTokenProvider.js +10 -0
  345. package/node_modules/@aws-sdk/middleware-token/dist-es/resolveTokenConfig.js +6 -0
  346. package/node_modules/@aws-sdk/middleware-token/dist-es/tokenDefaultProvider.browser.js +3 -0
  347. package/node_modules/@aws-sdk/middleware-token/dist-es/tokenDefaultProvider.js +2 -0
  348. package/node_modules/@aws-sdk/middleware-token/dist-es/tokenMiddleware.js +27 -0
  349. package/node_modules/@aws-sdk/middleware-token/dist-types/configurations.d.ts +19 -0
  350. package/node_modules/@aws-sdk/middleware-token/dist-types/getTokenPlugin.d.ts +6 -0
  351. package/node_modules/@aws-sdk/middleware-token/dist-types/index.d.ts +16 -0
  352. package/node_modules/@aws-sdk/middleware-token/dist-types/normalizeTokenProvider.d.ts +6 -0
  353. package/node_modules/@aws-sdk/middleware-token/dist-types/resolveTokenConfig.d.ts +5 -0
  354. package/node_modules/@aws-sdk/middleware-token/dist-types/tokenDefaultProvider.browser.d.ts +4 -0
  355. package/node_modules/@aws-sdk/middleware-token/dist-types/tokenDefaultProvider.d.ts +4 -0
  356. package/node_modules/@aws-sdk/middleware-token/dist-types/tokenMiddleware.d.ts +10 -0
  357. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/configurations.d.ts +7 -0
  358. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/getTokenPlugin.d.ts +5 -0
  359. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/index.d.ts +4 -0
  360. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/normalizeTokenProvider.d.ts +5 -0
  361. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/resolveTokenConfig.d.ts +4 -0
  362. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/tokenDefaultProvider.browser.d.ts +3 -0
  363. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/tokenDefaultProvider.d.ts +3 -0
  364. package/node_modules/@aws-sdk/middleware-token/dist-types/ts3.4/tokenMiddleware.d.ts +12 -0
  365. package/node_modules/@aws-sdk/middleware-token/package.json +75 -0
  366. package/node_modules/@aws-sdk/middleware-user-agent/LICENSE +201 -0
  367. package/node_modules/@aws-sdk/middleware-user-agent/README.md +4 -0
  368. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +10 -0
  369. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +10 -0
  370. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +5 -0
  371. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +79 -0
  372. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +6 -0
  373. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +7 -0
  374. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +2 -0
  375. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +72 -0
  376. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +31 -0
  377. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts +7 -0
  378. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts +2 -0
  379. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +17 -0
  380. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts +7 -0
  381. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts +2 -0
  382. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +20 -0
  383. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +17 -0
  384. package/node_modules/@aws-sdk/middleware-user-agent/package.json +61 -0
  385. package/node_modules/@aws-sdk/region-config-resolver/LICENSE +201 -0
  386. package/node_modules/@aws-sdk/region-config-resolver/README.md +12 -0
  387. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js +30 -0
  388. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +5 -0
  389. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js +15 -0
  390. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js +10 -0
  391. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js +5 -0
  392. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js +5 -0
  393. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +29 -0
  394. package/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js +25 -0
  395. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +2 -0
  396. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js +12 -0
  397. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js +6 -0
  398. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js +2 -0
  399. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js +1 -0
  400. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +25 -0
  401. package/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts +16 -0
  402. package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +2 -0
  403. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts +17 -0
  404. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts +4 -0
  405. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts +8 -0
  406. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +4 -0
  407. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +37 -0
  408. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/extensions/index.d.ts +14 -0
  409. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +2 -0
  410. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +8 -0
  411. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +1 -0
  412. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +2 -0
  413. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +1 -0
  414. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +14 -0
  415. package/node_modules/@aws-sdk/region-config-resolver/package.json +61 -0
  416. package/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
  417. package/node_modules/@aws-sdk/token-providers/README.md +53 -0
  418. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +895 -0
  419. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +901 -0
  420. package/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js +5 -0
  421. package/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js +82 -0
  422. package/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js +11 -0
  423. package/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js +15 -0
  424. package/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js +14 -0
  425. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +7 -0
  426. package/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js +9 -0
  427. package/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js +11 -0
  428. package/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js +11 -0
  429. package/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js +12 -0
  430. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +872 -0
  431. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +878 -0
  432. package/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
  433. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +78 -0
  434. package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +7 -0
  435. package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
  436. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
  437. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -0
  438. package/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
  439. package/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
  440. package/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
  441. package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
  442. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +187 -0
  443. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +187 -0
  444. package/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +8 -0
  445. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +8 -0
  446. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +8 -0
  447. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +5 -0
  448. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +5 -0
  449. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +4 -0
  450. package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +18 -0
  451. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +235 -0
  452. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +235 -0
  453. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +3 -0
  454. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +4 -0
  455. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -0
  456. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +5 -0
  457. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -0
  458. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +4 -0
  459. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +5 -0
  460. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +2 -0
  461. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +5 -0
  462. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +5 -0
  463. package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +5 -0
  464. package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +4 -0
  465. package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +5 -0
  466. package/node_modules/@aws-sdk/token-providers/package.json +104 -0
  467. package/node_modules/@aws-sdk/types/LICENSE +201 -0
  468. package/node_modules/@aws-sdk/types/README.md +4 -0
  469. package/node_modules/@aws-sdk/types/dist-cjs/abort.js +2 -0
  470. package/node_modules/@aws-sdk/types/dist-cjs/auth.js +5 -0
  471. package/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js +2 -0
  472. package/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.browser.js +2 -0
  473. package/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.node.js +2 -0
  474. package/node_modules/@aws-sdk/types/dist-cjs/checksum.js +2 -0
  475. package/node_modules/@aws-sdk/types/dist-cjs/client.js +2 -0
  476. package/node_modules/@aws-sdk/types/dist-cjs/command.js +2 -0
  477. package/node_modules/@aws-sdk/types/dist-cjs/connection.js +2 -0
  478. package/node_modules/@aws-sdk/types/dist-cjs/credentials.js +2 -0
  479. package/node_modules/@aws-sdk/types/dist-cjs/crypto.js +2 -0
  480. package/node_modules/@aws-sdk/types/dist-cjs/dns.js +8 -0
  481. package/node_modules/@aws-sdk/types/dist-cjs/encode.js +2 -0
  482. package/node_modules/@aws-sdk/types/dist-cjs/endpoint.js +5 -0
  483. package/node_modules/@aws-sdk/types/dist-cjs/eventStream.js +2 -0
  484. package/node_modules/@aws-sdk/types/dist-cjs/extensions/index.js +2 -0
  485. package/node_modules/@aws-sdk/types/dist-cjs/http.js +2 -0
  486. package/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js +2 -0
  487. package/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js +2 -0
  488. package/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js +2 -0
  489. package/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js +2 -0
  490. package/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js +2 -0
  491. package/node_modules/@aws-sdk/types/dist-cjs/identity/index.js +8 -0
  492. package/node_modules/@aws-sdk/types/dist-cjs/index.js +35 -0
  493. package/node_modules/@aws-sdk/types/dist-cjs/logger.js +2 -0
  494. package/node_modules/@aws-sdk/types/dist-cjs/middleware.js +2 -0
  495. package/node_modules/@aws-sdk/types/dist-cjs/pagination.js +2 -0
  496. package/node_modules/@aws-sdk/types/dist-cjs/profile.js +2 -0
  497. package/node_modules/@aws-sdk/types/dist-cjs/request.js +2 -0
  498. package/node_modules/@aws-sdk/types/dist-cjs/response.js +2 -0
  499. package/node_modules/@aws-sdk/types/dist-cjs/retry.js +2 -0
  500. package/node_modules/@aws-sdk/types/dist-cjs/serde.js +2 -0
  501. package/node_modules/@aws-sdk/types/dist-cjs/shapes.js +2 -0
  502. package/node_modules/@aws-sdk/types/dist-cjs/signature.js +2 -0
  503. package/node_modules/@aws-sdk/types/dist-cjs/stream.js +2 -0
  504. package/node_modules/@aws-sdk/types/dist-cjs/token.js +2 -0
  505. package/node_modules/@aws-sdk/types/dist-cjs/transfer.js +5 -0
  506. package/node_modules/@aws-sdk/types/dist-cjs/uri.js +2 -0
  507. package/node_modules/@aws-sdk/types/dist-cjs/util.js +2 -0
  508. package/node_modules/@aws-sdk/types/dist-cjs/waiter.js +2 -0
  509. package/node_modules/@aws-sdk/types/dist-es/abort.js +1 -0
  510. package/node_modules/@aws-sdk/types/dist-es/auth.js +1 -0
  511. package/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js +1 -0
  512. package/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.browser.js +1 -0
  513. package/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js +1 -0
  514. package/node_modules/@aws-sdk/types/dist-es/checksum.js +1 -0
  515. package/node_modules/@aws-sdk/types/dist-es/client.js +1 -0
  516. package/node_modules/@aws-sdk/types/dist-es/command.js +1 -0
  517. package/node_modules/@aws-sdk/types/dist-es/connection.js +1 -0
  518. package/node_modules/@aws-sdk/types/dist-es/credentials.js +1 -0
  519. package/node_modules/@aws-sdk/types/dist-es/crypto.js +1 -0
  520. package/node_modules/@aws-sdk/types/dist-es/dns.js +5 -0
  521. package/node_modules/@aws-sdk/types/dist-es/encode.js +1 -0
  522. package/node_modules/@aws-sdk/types/dist-es/endpoint.js +1 -0
  523. package/node_modules/@aws-sdk/types/dist-es/eventStream.js +1 -0
  524. package/node_modules/@aws-sdk/types/dist-es/extensions/index.js +1 -0
  525. package/node_modules/@aws-sdk/types/dist-es/http.js +1 -0
  526. package/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +1 -0
  527. package/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +1 -0
  528. package/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +1 -0
  529. package/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +1 -0
  530. package/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +1 -0
  531. package/node_modules/@aws-sdk/types/dist-es/identity/index.js +5 -0
  532. package/node_modules/@aws-sdk/types/dist-es/index.js +32 -0
  533. package/node_modules/@aws-sdk/types/dist-es/logger.js +1 -0
  534. package/node_modules/@aws-sdk/types/dist-es/middleware.js +1 -0
  535. package/node_modules/@aws-sdk/types/dist-es/pagination.js +1 -0
  536. package/node_modules/@aws-sdk/types/dist-es/profile.js +1 -0
  537. package/node_modules/@aws-sdk/types/dist-es/request.js +1 -0
  538. package/node_modules/@aws-sdk/types/dist-es/response.js +1 -0
  539. package/node_modules/@aws-sdk/types/dist-es/retry.js +1 -0
  540. package/node_modules/@aws-sdk/types/dist-es/serde.js +1 -0
  541. package/node_modules/@aws-sdk/types/dist-es/shapes.js +1 -0
  542. package/node_modules/@aws-sdk/types/dist-es/signature.js +1 -0
  543. package/node_modules/@aws-sdk/types/dist-es/stream.js +1 -0
  544. package/node_modules/@aws-sdk/types/dist-es/token.js +1 -0
  545. package/node_modules/@aws-sdk/types/dist-es/transfer.js +1 -0
  546. package/node_modules/@aws-sdk/types/dist-es/uri.js +1 -0
  547. package/node_modules/@aws-sdk/types/dist-es/util.js +1 -0
  548. package/node_modules/@aws-sdk/types/dist-es/waiter.js +1 -0
  549. package/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -0
  550. package/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -0
  551. package/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +2 -0
  552. package/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.browser.d.ts +6 -0
  553. package/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.node.d.ts +9 -0
  554. package/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +1 -0
  555. package/node_modules/@aws-sdk/types/dist-types/client.d.ts +1 -0
  556. package/node_modules/@aws-sdk/types/dist-types/command.d.ts +1 -0
  557. package/node_modules/@aws-sdk/types/dist-types/connection.d.ts +1 -0
  558. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +17 -0
  559. package/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +1 -0
  560. package/node_modules/@aws-sdk/types/dist-types/dns.d.ts +85 -0
  561. package/node_modules/@aws-sdk/types/dist-types/encode.d.ts +1 -0
  562. package/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +1 -0
  563. package/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +1 -0
  564. package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +8 -0
  565. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +33 -0
  566. package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +6 -0
  567. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
  568. package/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -0
  569. package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +18 -0
  570. package/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +14 -0
  571. package/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +5 -0
  572. package/node_modules/@aws-sdk/types/dist-types/index.d.ts +32 -0
  573. package/node_modules/@aws-sdk/types/dist-types/logger.d.ts +22 -0
  574. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +1 -0
  575. package/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +1 -0
  576. package/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -0
  577. package/node_modules/@aws-sdk/types/dist-types/request.d.ts +7 -0
  578. package/node_modules/@aws-sdk/types/dist-types/response.d.ts +7 -0
  579. package/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -0
  580. package/node_modules/@aws-sdk/types/dist-types/serde.d.ts +24 -0
  581. package/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -0
  582. package/node_modules/@aws-sdk/types/dist-types/signature.d.ts +1 -0
  583. package/node_modules/@aws-sdk/types/dist-types/stream.d.ts +1 -0
  584. package/node_modules/@aws-sdk/types/dist-types/token.d.ts +17 -0
  585. package/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +1 -0
  586. package/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +1 -0
  587. package/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +5 -0
  588. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +2 -0
  589. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts +1 -0
  590. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts +2 -0
  591. package/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +1 -0
  592. package/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +1 -0
  593. package/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +1 -0
  594. package/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +6 -0
  595. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
  596. package/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +7 -0
  597. package/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +19 -0
  598. package/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +6 -0
  599. package/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +9 -0
  600. package/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +24 -0
  601. package/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +5 -0
  602. package/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +17 -0
  603. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +2 -0
  604. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +4 -0
  605. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +1 -0
  606. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +6 -0
  607. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +5 -0
  608. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +5 -0
  609. package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +32 -0
  610. package/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +15 -0
  611. package/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +40 -0
  612. package/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +1 -0
  613. package/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +6 -0
  614. package/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +4 -0
  615. package/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +4 -0
  616. package/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +12 -0
  617. package/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +16 -0
  618. package/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +6 -0
  619. package/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +15 -0
  620. package/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +4 -0
  621. package/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +4 -0
  622. package/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +7 -0
  623. package/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +1 -0
  624. package/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +14 -0
  625. package/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +1 -0
  626. package/node_modules/@aws-sdk/types/dist-types/uri.d.ts +1 -0
  627. package/node_modules/@aws-sdk/types/dist-types/util.d.ts +1 -0
  628. package/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +1 -0
  629. package/node_modules/@aws-sdk/types/package.json +64 -0
  630. package/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
  631. package/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
  632. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js +4 -0
  633. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js +5 -0
  634. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js +16 -0
  635. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +7 -0
  636. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js +6 -0
  637. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +29 -0
  638. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js +19 -0
  639. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js +49 -0
  640. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +213 -0
  641. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js +5 -0
  642. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js +15 -0
  643. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js +29 -0
  644. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js +14 -0
  645. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +6 -0
  646. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js +5 -0
  647. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js +17 -0
  648. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js +5 -0
  649. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js +55 -0
  650. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js +5 -0
  651. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js +13 -0
  652. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js +5 -0
  653. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +42 -0
  654. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +10 -0
  655. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js +2 -0
  656. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js +2 -0
  657. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js +2 -0
  658. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js +2 -0
  659. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js +9 -0
  660. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js +2 -0
  661. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js +11 -0
  662. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js +19 -0
  663. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js +27 -0
  664. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +32 -0
  665. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +18 -0
  666. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js +20 -0
  667. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js +31 -0
  668. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js +40 -0
  669. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +17 -0
  670. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +16 -0
  671. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js +9 -0
  672. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js +25 -0
  673. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js +19 -0
  674. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js +11 -0
  675. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js +4 -0
  676. package/node_modules/@aws-sdk/util-endpoints/dist-es/debug/debugId.js +1 -0
  677. package/node_modules/@aws-sdk/util-endpoints/dist-es/debug/index.js +2 -0
  678. package/node_modules/@aws-sdk/util-endpoints/dist-es/debug/toDebugString.js +12 -0
  679. package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +4 -0
  680. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
  681. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
  682. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +15 -0
  683. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
  684. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +213 -0
  685. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/booleanEquals.js +1 -0
  686. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/getAttr.js +11 -0
  687. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/getAttrPathList.js +25 -0
  688. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/index.js +10 -0
  689. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +2 -0
  690. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isSet.js +1 -0
  691. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isValidHostLabel.js +13 -0
  692. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/not.js +1 -0
  693. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/parseURL.js +51 -0
  694. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/stringEquals.js +1 -0
  695. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/substring.js +9 -0
  696. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/uriEncode.js +1 -0
  697. package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +37 -0
  698. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +6 -0
  699. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
  700. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
  701. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
  702. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
  703. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
  704. package/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
  705. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/callFunction.js +6 -0
  706. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateCondition.js +14 -0
  707. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateConditions.js +22 -0
  708. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateEndpointRule.js +27 -0
  709. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateErrorRule.js +14 -0
  710. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateExpression.js +16 -0
  711. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateRules.js +27 -0
  712. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateTemplate.js +36 -0
  713. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateTreeRule.js +13 -0
  714. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointHeaders.js +12 -0
  715. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointProperties.js +5 -0
  716. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointProperty.js +21 -0
  717. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointUrl.js +15 -0
  718. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/getReferenceValue.js +7 -0
  719. package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/index.js +1 -0
  720. package/node_modules/@aws-sdk/util-endpoints/dist-types/debug/debugId.d.ts +1 -0
  721. package/node_modules/@aws-sdk/util-endpoints/dist-types/debug/index.d.ts +2 -0
  722. package/node_modules/@aws-sdk/util-endpoints/dist-types/debug/toDebugString.d.ts +9 -0
  723. package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +4 -0
  724. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
  725. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
  726. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
  727. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
  728. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/booleanEquals.d.ts +5 -0
  729. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/getAttr.d.ts +7 -0
  730. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/getAttrPathList.d.ts +4 -0
  731. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/index.d.ts +10 -0
  732. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +4 -0
  733. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isSet.d.ts +5 -0
  734. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isValidHostLabel.d.ts +7 -0
  735. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/not.d.ts +5 -0
  736. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/parseURL.d.ts +5 -0
  737. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/stringEquals.d.ts +5 -0
  738. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/substring.d.ts +7 -0
  739. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/uriEncode.d.ts +4 -0
  740. package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +6 -0
  741. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts +1 -0
  742. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/debug/index.d.ts +2 -0
  743. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts +9 -0
  744. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +4 -0
  745. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
  746. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
  747. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
  748. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
  749. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +4 -0
  750. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +11 -0
  751. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +1 -0
  752. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/index.d.ts +11 -0
  753. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
  754. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +1 -0
  755. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +4 -0
  756. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/not.d.ts +1 -0
  757. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +4 -0
  758. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +1 -0
  759. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +6 -0
  760. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +1 -0
  761. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +6 -0
  762. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +3 -0
  763. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +15 -0
  764. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +7 -0
  765. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +19 -0
  766. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +12 -0
  767. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
  768. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +29 -0
  769. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +5 -0
  770. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +13 -0
  771. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +13 -0
  772. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +6 -0
  773. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +5 -0
  774. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +6 -0
  775. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -0
  776. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +5 -0
  777. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +6 -0
  778. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +5 -0
  779. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +5 -0
  780. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +6 -0
  781. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +5 -0
  782. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +5 -0
  783. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/index.d.ts +1 -0
  784. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +3 -0
  785. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +15 -0
  786. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +7 -0
  787. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +19 -0
  788. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +10 -0
  789. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
  790. package/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +25 -0
  791. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/callFunction.d.ts +2 -0
  792. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateCondition.d.ts +8 -0
  793. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateConditions.d.ts +8 -0
  794. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +3 -0
  795. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +2 -0
  796. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateExpression.d.ts +2 -0
  797. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateRules.d.ts +3 -0
  798. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +2 -0
  799. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +3 -0
  800. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +2 -0
  801. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -0
  802. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +3 -0
  803. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +2 -0
  804. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -0
  805. package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/index.d.ts +1 -0
  806. package/node_modules/@aws-sdk/util-endpoints/package.json +58 -0
  807. package/node_modules/@aws-sdk/util-locate-window/LICENSE +201 -0
  808. package/node_modules/@aws-sdk/util-locate-window/README.md +4 -0
  809. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +41 -0
  810. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +10 -0
  811. package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +6 -0
  812. package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +1 -0
  813. package/node_modules/@aws-sdk/util-locate-window/package.json +52 -0
  814. package/node_modules/@aws-sdk/util-user-agent-browser/LICENSE +201 -0
  815. package/node_modules/@aws-sdk/util-user-agent-browser/README.md +10 -0
  816. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/configurations.js +2 -0
  817. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +23 -0
  818. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js +17 -0
  819. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/configurations.js +1 -0
  820. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +17 -0
  821. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js +13 -0
  822. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/configurations.d.ts +7 -0
  823. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +9 -0
  824. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +9 -0
  825. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/configurations.d.ts +4 -0
  826. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +6 -0
  827. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.native.d.ts +6 -0
  828. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +56 -0
  829. package/node_modules/@aws-sdk/util-user-agent-node/LICENSE +201 -0
  830. package/node_modules/@aws-sdk/util-user-agent-node/README.md +10 -0
  831. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +42 -0
  832. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +15 -0
  833. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +38 -0
  834. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js +11 -0
  835. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +20 -0
  836. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +5 -0
  837. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +12 -0
  838. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/is-crt-available.d.ts +2 -0
  839. package/node_modules/@aws-sdk/util-user-agent-node/package.json +67 -0
  840. package/node_modules/@aws-sdk/util-utf8-browser/LICENSE +201 -0
  841. package/node_modules/@aws-sdk/util-utf8-browser/README.md +8 -0
  842. package/node_modules/@aws-sdk/util-utf8-browser/package.json +50 -0
  843. package/node_modules/@smithy/abort-controller/LICENSE +201 -0
  844. package/node_modules/@smithy/abort-controller/README.md +4 -0
  845. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +1 -0
  846. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +1 -0
  847. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +82 -0
  848. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +9 -0
  849. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
  850. package/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
  851. package/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +13 -0
  852. package/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +18 -0
  853. package/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
  854. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +13 -0
  855. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +18 -0
  856. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
  857. package/node_modules/@smithy/abort-controller/package.json +62 -0
  858. package/node_modules/@smithy/config-resolver/LICENSE +201 -0
  859. package/node_modules/@smithy/config-resolver/README.md +10 -0
  860. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +1 -0
  861. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +1 -0
  862. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +1 -0
  863. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +1 -0
  864. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +1 -0
  865. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +1 -0
  866. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +235 -0
  867. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +1 -0
  868. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +1 -0
  869. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +1 -0
  870. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +1 -0
  871. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +1 -0
  872. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +1 -0
  873. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +1 -0
  874. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +1 -0
  875. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +1 -0
  876. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +1 -0
  877. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +1 -0
  878. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +1 -0
  879. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +1 -0
  880. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +1 -0
  881. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +1 -0
  882. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +9 -0
  883. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +9 -0
  884. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js +4 -0
  885. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js +11 -0
  886. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js +15 -0
  887. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/utils/getEndpointFromRegion.js +15 -0
  888. package/node_modules/@smithy/config-resolver/dist-es/index.js +3 -0
  889. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js +12 -0
  890. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js +6 -0
  891. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js +2 -0
  892. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js +1 -0
  893. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +25 -0
  894. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariant.js +1 -0
  895. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariantTag.js +1 -0
  896. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/PartitionHash.js +1 -0
  897. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/RegionHash.js +1 -0
  898. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/getHostnameFromVariants.js +1 -0
  899. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/getRegionInfo.js +29 -0
  900. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedHostname.js +5 -0
  901. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedPartition.js +1 -0
  902. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedSigningRegion.js +12 -0
  903. package/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js +3 -0
  904. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +17 -0
  905. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +17 -0
  906. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/index.d.ts +16 -0
  907. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +29 -0
  908. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +51 -0
  909. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +11 -0
  910. package/node_modules/@smithy/config-resolver/dist-types/index.d.ts +12 -0
  911. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +17 -0
  912. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/getRealRegion.d.ts +4 -0
  913. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/index.d.ts +8 -0
  914. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +4 -0
  915. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +34 -0
  916. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +10 -0
  917. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +7 -0
  918. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +14 -0
  919. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +12 -0
  920. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +12 -0
  921. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +17 -0
  922. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +11 -0
  923. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +11 -0
  924. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +12 -0
  925. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/index.d.ts +12 -0
  926. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +17 -0
  927. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +17 -0
  928. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/index.d.ts +16 -0
  929. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +29 -0
  930. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +51 -0
  931. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/utils/getEndpointFromRegion.d.ts +11 -0
  932. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/index.d.ts +12 -0
  933. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +17 -0
  934. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +4 -0
  935. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +8 -0
  936. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +4 -0
  937. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +34 -0
  938. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +10 -0
  939. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +7 -0
  940. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +14 -0
  941. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +12 -0
  942. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +12 -0
  943. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +17 -0
  944. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +11 -0
  945. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +11 -0
  946. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +12 -0
  947. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/index.d.ts +12 -0
  948. package/node_modules/@smithy/config-resolver/package.json +64 -0
  949. package/node_modules/@smithy/credential-provider-imds/LICENSE +201 -0
  950. package/node_modules/@smithy/credential-provider-imds/README.md +11 -0
  951. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +1 -0
  952. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +1 -0
  953. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +1 -0
  954. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +1 -0
  955. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +1 -0
  956. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +1 -0
  957. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +1 -0
  958. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +437 -0
  959. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +1 -0
  960. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +1 -0
  961. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +1 -0
  962. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +1 -0
  963. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +1 -0
  964. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +1 -0
  965. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +1 -0
  966. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +1 -0
  967. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +1 -0
  968. package/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js +5 -0
  969. package/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js +7 -0
  970. package/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js +5 -0
  971. package/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js +8 -0
  972. package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +9 -0
  973. package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +66 -0
  974. package/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +132 -0
  975. package/node_modules/@smithy/credential-provider-imds/dist-es/index.js +7 -0
  976. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +12 -0
  977. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js +3 -0
  978. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +36 -0
  979. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +2 -0
  980. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js +7 -0
  981. package/node_modules/@smithy/credential-provider-imds/dist-es/types.js +1 -0
  982. package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +17 -0
  983. package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +19 -0
  984. package/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js +25 -0
  985. package/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts +7 -0
  986. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +13 -0
  987. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts +7 -0
  988. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +13 -0
  989. package/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +12 -0
  990. package/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +21 -0
  991. package/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +10 -0
  992. package/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +28 -0
  993. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +18 -0
  994. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +40 -0
  995. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +7 -0
  996. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +8 -0
  997. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts +10 -0
  998. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +7 -0
  999. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +13 -0
  1000. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +7 -0
  1001. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +13 -0
  1002. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +12 -0
  1003. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +21 -0
  1004. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +10 -0
  1005. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +28 -0
  1006. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +18 -0
  1007. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +40 -0
  1008. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +6 -0
  1009. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts +8 -0
  1010. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +10 -0
  1011. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +7 -0
  1012. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
  1013. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +21 -0
  1014. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +16 -0
  1015. package/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +7 -0
  1016. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
  1017. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +21 -0
  1018. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +16 -0
  1019. package/node_modules/@smithy/credential-provider-imds/package.json +70 -0
  1020. package/node_modules/@smithy/eventstream-codec/LICENSE +201 -0
  1021. package/node_modules/@smithy/eventstream-codec/README.md +4 -0
  1022. package/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +1 -0
  1023. package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +1 -0
  1024. package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +1 -0
  1025. package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +1 -0
  1026. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +1 -0
  1027. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +1 -0
  1028. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +1 -0
  1029. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +1 -0
  1030. package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +1 -0
  1031. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +468 -0
  1032. package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +1 -0
  1033. package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +1 -0
  1034. package/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +62 -0
  1035. package/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +182 -0
  1036. package/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +43 -0
  1037. package/node_modules/@smithy/eventstream-codec/dist-es/Message.js +1 -0
  1038. package/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +14 -0
  1039. package/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +17 -0
  1040. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +16 -0
  1041. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +14 -0
  1042. package/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js +690 -0
  1043. package/node_modules/@smithy/eventstream-codec/dist-es/index.js +8 -0
  1044. package/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js +30 -0
  1045. package/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js +1 -0
  1046. package/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +31 -0
  1047. package/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +12 -0
  1048. package/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +20 -0
  1049. package/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +26 -0
  1050. package/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +17 -0
  1051. package/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +18 -0
  1052. package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +17 -0
  1053. package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +17 -0
  1054. package/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +2 -0
  1055. package/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts +8 -0
  1056. package/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts +11 -0
  1057. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +31 -0
  1058. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +12 -0
  1059. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +20 -0
  1060. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +26 -0
  1061. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +17 -0
  1062. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +18 -0
  1063. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +17 -0
  1064. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +17 -0
  1065. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +2 -0
  1066. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +8 -0
  1067. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +11 -0
  1068. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +12 -0
  1069. package/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +12 -0
  1070. package/node_modules/@smithy/eventstream-codec/package.json +61 -0
  1071. package/node_modules/@smithy/eventstream-serde-browser/LICENSE +201 -0
  1072. package/node_modules/@smithy/eventstream-serde-browser/README.md +10 -0
  1073. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/EventStreamMarshaller.js +1 -0
  1074. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +103 -0
  1075. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/provider.js +1 -0
  1076. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/utils.js +1 -0
  1077. package/node_modules/@smithy/eventstream-serde-browser/dist-es/EventStreamMarshaller.js +19 -0
  1078. package/node_modules/@smithy/eventstream-serde-browser/dist-es/index.js +3 -0
  1079. package/node_modules/@smithy/eventstream-serde-browser/dist-es/provider.js +2 -0
  1080. package/node_modules/@smithy/eventstream-serde-browser/dist-es/utils.js +28 -0
  1081. package/node_modules/@smithy/eventstream-serde-browser/dist-types/EventStreamMarshaller.d.ts +47 -0
  1082. package/node_modules/@smithy/eventstream-serde-browser/dist-types/index.d.ts +12 -0
  1083. package/node_modules/@smithy/eventstream-serde-browser/dist-types/provider.d.ts +3 -0
  1084. package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/EventStreamMarshaller.d.ts +47 -0
  1085. package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/index.d.ts +12 -0
  1086. package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/provider.d.ts +3 -0
  1087. package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/utils.d.ts +13 -0
  1088. package/node_modules/@smithy/eventstream-serde-browser/dist-types/utils.d.ts +13 -0
  1089. package/node_modules/@smithy/eventstream-serde-browser/package.json +61 -0
  1090. package/node_modules/@smithy/eventstream-serde-config-resolver/LICENSE +201 -0
  1091. package/node_modules/@smithy/eventstream-serde-config-resolver/README.md +10 -0
  1092. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/EventStreamSerdeConfig.js +1 -0
  1093. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +37 -0
  1094. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js +4 -0
  1095. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +1 -0
  1096. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/EventStreamSerdeConfig.d.ts +24 -0
  1097. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/index.d.ts +4 -0
  1098. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/EventStreamSerdeConfig.d.ts +24 -0
  1099. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/index.d.ts +4 -0
  1100. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +61 -0
  1101. package/node_modules/@smithy/eventstream-serde-node/LICENSE +201 -0
  1102. package/node_modules/@smithy/eventstream-serde-node/README.md +10 -0
  1103. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/EventStreamMarshaller.js +1 -0
  1104. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +88 -0
  1105. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/provider.js +1 -0
  1106. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/utils.js +1 -0
  1107. package/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js +18 -0
  1108. package/node_modules/@smithy/eventstream-serde-node/dist-es/index.js +2 -0
  1109. package/node_modules/@smithy/eventstream-serde-node/dist-es/provider.js +2 -0
  1110. package/node_modules/@smithy/eventstream-serde-node/dist-es/utils.js +26 -0
  1111. package/node_modules/@smithy/eventstream-serde-node/dist-types/EventStreamMarshaller.d.ts +24 -0
  1112. package/node_modules/@smithy/eventstream-serde-node/dist-types/index.d.ts +8 -0
  1113. package/node_modules/@smithy/eventstream-serde-node/dist-types/provider.d.ts +3 -0
  1114. package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/EventStreamMarshaller.d.ts +24 -0
  1115. package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/index.d.ts +8 -0
  1116. package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/provider.d.ts +3 -0
  1117. package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/utils.d.ts +13 -0
  1118. package/node_modules/@smithy/eventstream-serde-node/dist-types/utils.d.ts +13 -0
  1119. package/node_modules/@smithy/eventstream-serde-node/package.json +62 -0
  1120. package/node_modules/@smithy/eventstream-serde-universal/LICENSE +201 -0
  1121. package/node_modules/@smithy/eventstream-serde-universal/README.md +10 -0
  1122. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/EventStreamMarshaller.js +1 -0
  1123. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/fixtures/MockEventMessageSource.fixture.js +1 -0
  1124. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/fixtures/event.fixture.js +1 -0
  1125. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/getChunkedStream.js +1 -0
  1126. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/getUnmarshalledStream.js +1 -0
  1127. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +182 -0
  1128. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/provider.js +1 -0
  1129. package/node_modules/@smithy/eventstream-serde-universal/dist-es/EventStreamMarshaller.js +23 -0
  1130. package/node_modules/@smithy/eventstream-serde-universal/dist-es/fixtures/MockEventMessageSource.fixture.js +30 -0
  1131. package/node_modules/@smithy/eventstream-serde-universal/dist-es/fixtures/event.fixture.js +4 -0
  1132. package/node_modules/@smithy/eventstream-serde-universal/dist-es/getChunkedStream.js +66 -0
  1133. package/node_modules/@smithy/eventstream-serde-universal/dist-es/getUnmarshalledStream.js +47 -0
  1134. package/node_modules/@smithy/eventstream-serde-universal/dist-es/index.js +2 -0
  1135. package/node_modules/@smithy/eventstream-serde-universal/dist-es/provider.js +2 -0
  1136. package/node_modules/@smithy/eventstream-serde-universal/dist-types/EventStreamMarshaller.d.ts +23 -0
  1137. package/node_modules/@smithy/eventstream-serde-universal/dist-types/fixtures/MockEventMessageSource.fixture.d.ts +22 -0
  1138. package/node_modules/@smithy/eventstream-serde-universal/dist-types/fixtures/event.fixture.d.ts +17 -0
  1139. package/node_modules/@smithy/eventstream-serde-universal/dist-types/getChunkedStream.d.ts +4 -0
  1140. package/node_modules/@smithy/eventstream-serde-universal/dist-types/getUnmarshalledStream.d.ts +18 -0
  1141. package/node_modules/@smithy/eventstream-serde-universal/dist-types/index.d.ts +8 -0
  1142. package/node_modules/@smithy/eventstream-serde-universal/dist-types/provider.d.ts +3 -0
  1143. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/EventStreamMarshaller.d.ts +23 -0
  1144. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/fixtures/MockEventMessageSource.fixture.d.ts +21 -0
  1145. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/fixtures/event.fixture.d.ts +17 -0
  1146. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/getChunkedStream.d.ts +4 -0
  1147. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/getUnmarshalledStream.d.ts +18 -0
  1148. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/index.d.ts +8 -0
  1149. package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/provider.d.ts +3 -0
  1150. package/node_modules/@smithy/eventstream-serde-universal/package.json +63 -0
  1151. package/node_modules/@smithy/fetch-http-handler/LICENSE +201 -0
  1152. package/node_modules/@smithy/fetch-http-handler/README.md +4 -0
  1153. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +1 -0
  1154. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +220 -0
  1155. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +1 -0
  1156. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +1 -0
  1157. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +111 -0
  1158. package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -0
  1159. package/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +11 -0
  1160. package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +45 -0
  1161. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +33 -0
  1162. package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -0
  1163. package/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +1 -0
  1164. package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +2 -0
  1165. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +33 -0
  1166. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts +2 -0
  1167. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +1 -0
  1168. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts +2 -0
  1169. package/node_modules/@smithy/fetch-http-handler/package.json +79 -0
  1170. package/node_modules/@smithy/hash-node/LICENSE +201 -0
  1171. package/node_modules/@smithy/hash-node/README.md +10 -0
  1172. package/node_modules/@smithy/hash-node/dist-cjs/index.js +66 -0
  1173. package/node_modules/@smithy/hash-node/dist-es/index.js +34 -0
  1174. package/node_modules/@smithy/hash-node/dist-types/index.d.ts +13 -0
  1175. package/node_modules/@smithy/hash-node/dist-types/ts3.4/index.d.ts +13 -0
  1176. package/node_modules/@smithy/hash-node/package.json +64 -0
  1177. package/node_modules/@smithy/invalid-dependency/LICENSE +201 -0
  1178. package/node_modules/@smithy/invalid-dependency/README.md +10 -0
  1179. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +41 -0
  1180. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +1 -0
  1181. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +1 -0
  1182. package/node_modules/@smithy/invalid-dependency/dist-es/index.js +2 -0
  1183. package/node_modules/@smithy/invalid-dependency/dist-es/invalidFunction.js +3 -0
  1184. package/node_modules/@smithy/invalid-dependency/dist-es/invalidProvider.js +1 -0
  1185. package/node_modules/@smithy/invalid-dependency/dist-types/index.d.ts +8 -0
  1186. package/node_modules/@smithy/invalid-dependency/dist-types/invalidFunction.d.ts +4 -0
  1187. package/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts +5 -0
  1188. package/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/index.d.ts +8 -0
  1189. package/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidFunction.d.ts +4 -0
  1190. package/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidProvider.d.ts +5 -0
  1191. package/node_modules/@smithy/invalid-dependency/package.json +57 -0
  1192. package/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  1193. package/node_modules/@smithy/is-array-buffer/README.md +10 -0
  1194. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
  1195. package/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  1196. package/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +4 -0
  1197. package/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +4 -0
  1198. package/node_modules/@smithy/is-array-buffer/package.json +60 -0
  1199. package/node_modules/@smithy/middleware-content-length/LICENSE +201 -0
  1200. package/node_modules/@smithy/middleware-content-length/README.md +4 -0
  1201. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +71 -0
  1202. package/node_modules/@smithy/middleware-content-length/dist-es/index.js +39 -0
  1203. package/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts +6 -0
  1204. package/node_modules/@smithy/middleware-content-length/dist-types/ts3.4/index.d.ts +6 -0
  1205. package/node_modules/@smithy/middleware-content-length/package.json +63 -0
  1206. package/node_modules/@smithy/middleware-endpoint/LICENSE +201 -0
  1207. package/node_modules/@smithy/middleware-endpoint/README.md +10 -0
  1208. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +1 -0
  1209. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js +5 -0
  1210. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +7 -0
  1211. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +1 -0
  1212. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +35 -0
  1213. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +1 -0
  1214. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +1 -0
  1215. package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +1 -0
  1216. package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +1 -0
  1217. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +254 -0
  1218. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +1 -0
  1219. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +1 -0
  1220. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +1 -0
  1221. package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +1 -0
  1222. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +32 -0
  1223. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js +1 -0
  1224. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js +3 -0
  1225. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +45 -0
  1226. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js +31 -0
  1227. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js +2 -0
  1228. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +10 -0
  1229. package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +32 -0
  1230. package/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js +18 -0
  1231. package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +5 -0
  1232. package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +16 -0
  1233. package/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/index.js +1 -0
  1234. package/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +37 -0
  1235. package/node_modules/@smithy/middleware-endpoint/dist-es/types.js +1 -0
  1236. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts +13 -0
  1237. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
  1238. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts +1 -0
  1239. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +28 -0
  1240. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +2 -0
  1241. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/index.d.ts +8 -0
  1242. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +5 -0
  1243. package/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +10 -0
  1244. package/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +11 -0
  1245. package/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts +17 -0
  1246. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +93 -0
  1247. package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/index.d.ts +4 -0
  1248. package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +26 -0
  1249. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts +13 -0
  1250. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
  1251. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts +1 -0
  1252. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromInstructions.d.ts +28 -0
  1253. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts +2 -0
  1254. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/index.d.ts +8 -0
  1255. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +5 -0
  1256. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/endpointMiddleware.d.ts +10 -0
  1257. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/getEndpointPlugin.d.ts +11 -0
  1258. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +17 -0
  1259. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +93 -0
  1260. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/index.d.ts +4 -0
  1261. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/s3.d.ts +26 -0
  1262. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/types.d.ts +34 -0
  1263. package/node_modules/@smithy/middleware-endpoint/dist-types/types.d.ts +34 -0
  1264. package/node_modules/@smithy/middleware-endpoint/package.json +73 -0
  1265. package/node_modules/@smithy/middleware-retry/LICENSE +201 -0
  1266. package/node_modules/@smithy/middleware-retry/README.md +11 -0
  1267. package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -0
  1268. package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +1 -0
  1269. package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +1 -0
  1270. package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +1 -0
  1271. package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +1 -0
  1272. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +425 -0
  1273. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +5 -0
  1274. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +7 -0
  1275. package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +1 -0
  1276. package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +1 -0
  1277. package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +1 -0
  1278. package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +1 -0
  1279. package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +1 -0
  1280. package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +20 -0
  1281. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +90 -0
  1282. package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +52 -0
  1283. package/node_modules/@smithy/middleware-retry/dist-es/defaultRetryQuota.js +27 -0
  1284. package/node_modules/@smithy/middleware-retry/dist-es/delayDecider.js +2 -0
  1285. package/node_modules/@smithy/middleware-retry/dist-es/index.js +7 -0
  1286. package/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.browser.js +1 -0
  1287. package/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js +3 -0
  1288. package/node_modules/@smithy/middleware-retry/dist-es/omitRetryHeadersMiddleware.js +22 -0
  1289. package/node_modules/@smithy/middleware-retry/dist-es/retryDecider.js +7 -0
  1290. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +112 -0
  1291. package/node_modules/@smithy/middleware-retry/dist-es/types.js +1 -0
  1292. package/node_modules/@smithy/middleware-retry/dist-es/util.js +9 -0
  1293. package/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +20 -0
  1294. package/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +30 -0
  1295. package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +45 -0
  1296. package/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +18 -0
  1297. package/node_modules/@smithy/middleware-retry/dist-types/delayDecider.d.ts +4 -0
  1298. package/node_modules/@smithy/middleware-retry/dist-types/index.d.ts +7 -0
  1299. package/node_modules/@smithy/middleware-retry/dist-types/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
  1300. package/node_modules/@smithy/middleware-retry/dist-types/isStreamingPayload/isStreamingPayload.d.ts +5 -0
  1301. package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +4 -0
  1302. package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +5 -0
  1303. package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +6 -0
  1304. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +20 -0
  1305. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +30 -0
  1306. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts +45 -0
  1307. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/defaultRetryQuota.d.ts +18 -0
  1308. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/delayDecider.d.ts +4 -0
  1309. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/index.d.ts +7 -0
  1310. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
  1311. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.d.ts +5 -0
  1312. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/omitRetryHeadersMiddleware.d.ts +4 -0
  1313. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts +5 -0
  1314. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryMiddleware.d.ts +6 -0
  1315. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/types.d.ts +53 -0
  1316. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/util.d.ts +2 -0
  1317. package/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +53 -0
  1318. package/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +2 -0
  1319. package/node_modules/@smithy/middleware-retry/package.json +78 -0
  1320. package/node_modules/@smithy/middleware-serde/LICENSE +201 -0
  1321. package/node_modules/@smithy/middleware-serde/README.md +4 -0
  1322. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +1 -0
  1323. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +102 -0
  1324. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +1 -0
  1325. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +1 -0
  1326. package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +25 -0
  1327. package/node_modules/@smithy/middleware-serde/dist-es/index.js +3 -0
  1328. package/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js +22 -0
  1329. package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +13 -0
  1330. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +5 -0
  1331. package/node_modules/@smithy/middleware-serde/dist-types/index.d.ts +3 -0
  1332. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +12 -0
  1333. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +6 -0
  1334. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +5 -0
  1335. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/index.d.ts +3 -0
  1336. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +12 -0
  1337. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +6 -0
  1338. package/node_modules/@smithy/middleware-serde/package.json +62 -0
  1339. package/node_modules/@smithy/middleware-stack/LICENSE +201 -0
  1340. package/node_modules/@smithy/middleware-stack/README.md +78 -0
  1341. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +1 -0
  1342. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +318 -0
  1343. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +1 -0
  1344. package/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js +281 -0
  1345. package/node_modules/@smithy/middleware-stack/dist-es/index.js +1 -0
  1346. package/node_modules/@smithy/middleware-stack/dist-es/types.js +1 -0
  1347. package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +2 -0
  1348. package/node_modules/@smithy/middleware-stack/dist-types/index.d.ts +1 -0
  1349. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +2 -0
  1350. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/index.d.ts +1 -0
  1351. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/types.d.ts +22 -0
  1352. package/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +22 -0
  1353. package/node_modules/@smithy/middleware-stack/package.json +63 -0
  1354. package/node_modules/@smithy/node-config-provider/LICENSE +201 -0
  1355. package/node_modules/@smithy/node-config-provider/README.md +4 -0
  1356. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +1 -0
  1357. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +1 -0
  1358. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +1 -0
  1359. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +1 -0
  1360. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +87 -0
  1361. package/node_modules/@smithy/node-config-provider/dist-es/configLoader.js +5 -0
  1362. package/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js +13 -0
  1363. package/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +22 -0
  1364. package/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js +3 -0
  1365. package/node_modules/@smithy/node-config-provider/dist-es/index.js +1 -0
  1366. package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +22 -0
  1367. package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +7 -0
  1368. package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +15 -0
  1369. package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +3 -0
  1370. package/node_modules/@smithy/node-config-provider/dist-types/index.d.ts +1 -0
  1371. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +22 -0
  1372. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts +7 -0
  1373. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +15 -0
  1374. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +3 -0
  1375. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts +1 -0
  1376. package/node_modules/@smithy/node-config-provider/package.json +65 -0
  1377. package/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  1378. package/node_modules/@smithy/node-http-handler/README.md +4 -0
  1379. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +1 -0
  1380. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +1 -0
  1381. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +687 -0
  1382. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +1 -0
  1383. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +1 -0
  1384. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +1 -0
  1385. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +1 -0
  1386. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +1 -0
  1387. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +1 -0
  1388. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +1 -0
  1389. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +1 -0
  1390. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +1 -0
  1391. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +1 -0
  1392. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +1 -0
  1393. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -0
  1394. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +1 -0
  1395. package/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  1396. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  1397. package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  1398. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +184 -0
  1399. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
  1400. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
  1401. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +159 -0
  1402. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +19 -0
  1403. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +81 -0
  1404. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +21 -0
  1405. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +8 -0
  1406. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +6 -0
  1407. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +11 -0
  1408. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +14 -0
  1409. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +19 -0
  1410. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +52 -0
  1411. package/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  1412. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  1413. package/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  1414. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +37 -0
  1415. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +22 -0
  1416. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
  1417. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +57 -0
  1418. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +14 -0
  1419. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +12 -0
  1420. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  1421. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  1422. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  1423. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +7 -0
  1424. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +2 -0
  1425. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +14 -0
  1426. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  1427. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  1428. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  1429. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +36 -0
  1430. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +22 -0
  1431. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +13 -0
  1432. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +57 -0
  1433. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +13 -0
  1434. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +12 -0
  1435. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
  1436. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
  1437. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
  1438. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +6 -0
  1439. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +2 -0
  1440. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +13 -0
  1441. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  1442. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +13 -0
  1443. package/node_modules/@smithy/node-http-handler/package.json +67 -0
  1444. package/node_modules/@smithy/property-provider/LICENSE +201 -0
  1445. package/node_modules/@smithy/property-provider/README.md +10 -0
  1446. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -0
  1447. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -0
  1448. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -0
  1449. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -0
  1450. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -0
  1451. package/node_modules/@smithy/property-provider/dist-cjs/index.js +150 -0
  1452. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -0
  1453. package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +9 -0
  1454. package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +11 -0
  1455. package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +9 -0
  1456. package/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
  1457. package/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
  1458. package/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
  1459. package/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
  1460. package/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +17 -0
  1461. package/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +17 -0
  1462. package/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +17 -0
  1463. package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
  1464. package/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
  1465. package/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
  1466. package/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
  1467. package/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +17 -0
  1468. package/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +17 -0
  1469. package/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +17 -0
  1470. package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
  1471. package/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
  1472. package/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
  1473. package/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
  1474. package/node_modules/@smithy/property-provider/package.json +60 -0
  1475. package/node_modules/@smithy/protocol-http/LICENSE +201 -0
  1476. package/node_modules/@smithy/protocol-http/README.md +4 -0
  1477. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +1 -0
  1478. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +1 -0
  1479. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -0
  1480. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -0
  1481. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +1 -0
  1482. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -0
  1483. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
  1484. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +237 -0
  1485. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -0
  1486. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -0
  1487. package/node_modules/@smithy/protocol-http/dist-es/Field.js +23 -0
  1488. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +19 -0
  1489. package/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +22 -0
  1490. package/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +1 -0
  1491. package/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +1 -0
  1492. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +48 -0
  1493. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +14 -0
  1494. package/node_modules/@smithy/protocol-http/dist-es/index.js +8 -0
  1495. package/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +4 -0
  1496. package/node_modules/@smithy/protocol-http/dist-es/types.js +1 -0
  1497. package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +49 -0
  1498. package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +44 -0
  1499. package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +37 -0
  1500. package/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +1 -0
  1501. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +37 -0
  1502. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +23 -0
  1503. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +16 -0
  1504. package/node_modules/@smithy/protocol-http/dist-types/index.d.ts +8 -0
  1505. package/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +1 -0
  1506. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +49 -0
  1507. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +44 -0
  1508. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +37 -0
  1509. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +1 -0
  1510. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +37 -0
  1511. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +23 -0
  1512. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +16 -0
  1513. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +8 -0
  1514. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +1 -0
  1515. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +21 -0
  1516. package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +21 -0
  1517. package/node_modules/@smithy/protocol-http/package.json +61 -0
  1518. package/node_modules/@smithy/querystring-builder/LICENSE +201 -0
  1519. package/node_modules/@smithy/querystring-builder/README.md +10 -0
  1520. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +52 -0
  1521. package/node_modules/@smithy/querystring-builder/dist-es/index.js +21 -0
  1522. package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +5 -0
  1523. package/node_modules/@smithy/querystring-builder/dist-types/ts3.4/index.d.ts +5 -0
  1524. package/node_modules/@smithy/querystring-builder/package.json +61 -0
  1525. package/node_modules/@smithy/querystring-parser/LICENSE +201 -0
  1526. package/node_modules/@smithy/querystring-parser/README.md +10 -0
  1527. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +53 -0
  1528. package/node_modules/@smithy/querystring-parser/dist-es/index.js +23 -0
  1529. package/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +5 -0
  1530. package/node_modules/@smithy/querystring-parser/dist-types/ts3.4/index.d.ts +5 -0
  1531. package/node_modules/@smithy/querystring-parser/package.json +60 -0
  1532. package/node_modules/@smithy/service-error-classification/LICENSE +201 -0
  1533. package/node_modules/@smithy/service-error-classification/README.md +4 -0
  1534. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +1 -0
  1535. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +98 -0
  1536. package/node_modules/@smithy/service-error-classification/dist-es/constants.js +27 -0
  1537. package/node_modules/@smithy/service-error-classification/dist-es/index.js +21 -0
  1538. package/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts +26 -0
  1539. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +19 -0
  1540. package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +26 -0
  1541. package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +19 -0
  1542. package/node_modules/@smithy/service-error-classification/package.json +59 -0
  1543. package/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
  1544. package/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
  1545. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -0
  1546. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -0
  1547. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -0
  1548. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
  1549. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -0
  1550. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
  1551. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +12 -0
  1552. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -0
  1553. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +190 -0
  1554. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -0
  1555. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -0
  1556. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -0
  1557. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -0
  1558. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -0
  1559. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +13 -0
  1560. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -0
  1561. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
  1562. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
  1563. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
  1564. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
  1565. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
  1566. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
  1567. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +8 -0
  1568. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
  1569. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +8 -0
  1570. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +27 -0
  1571. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
  1572. package/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
  1573. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
  1574. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
  1575. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +9 -0
  1576. package/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
  1577. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
  1578. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
  1579. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
  1580. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
  1581. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +5 -0
  1582. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +4 -0
  1583. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +44 -0
  1584. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
  1585. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +8 -0
  1586. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +22 -0
  1587. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +10 -0
  1588. package/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
  1589. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
  1590. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +15 -0
  1591. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +5 -0
  1592. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
  1593. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +2 -0
  1594. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +2 -0
  1595. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +6 -0
  1596. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +5 -0
  1597. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +4 -0
  1598. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +44 -0
  1599. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +6 -0
  1600. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +8 -0
  1601. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +22 -0
  1602. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +10 -0
  1603. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +7 -0
  1604. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +2 -0
  1605. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +15 -0
  1606. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +5 -0
  1607. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +13 -0
  1608. package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +13 -0
  1609. package/node_modules/@smithy/shared-ini-file-loader/package.json +72 -0
  1610. package/node_modules/@smithy/smithy-client/LICENSE +201 -0
  1611. package/node_modules/@smithy/smithy-client/README.md +10 -0
  1612. package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +1 -0
  1613. package/node_modules/@smithy/smithy-client/dist-cjs/client.js +1 -0
  1614. package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +1 -0
  1615. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +1 -0
  1616. package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +1 -0
  1617. package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +1 -0
  1618. package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +1 -0
  1619. package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +1 -0
  1620. package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +1 -0
  1621. package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +1 -0
  1622. package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +1 -0
  1623. package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +1 -0
  1624. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +1 -0
  1625. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -0
  1626. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +1 -0
  1627. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +1 -0
  1628. package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +1 -0
  1629. package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +1 -0
  1630. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1256 -0
  1631. package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +1 -0
  1632. package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +1 -0
  1633. package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +1 -0
  1634. package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +1 -0
  1635. package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +1 -0
  1636. package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +1 -0
  1637. package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +1 -0
  1638. package/node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js +7 -0
  1639. package/node_modules/@smithy/smithy-client/dist-es/client.js +24 -0
  1640. package/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js +11 -0
  1641. package/node_modules/@smithy/smithy-client/dist-es/command.js +114 -0
  1642. package/node_modules/@smithy/smithy-client/dist-es/constants.js +1 -0
  1643. package/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +21 -0
  1644. package/node_modules/@smithy/smithy-client/dist-es/date-utils.js +187 -0
  1645. package/node_modules/@smithy/smithy-client/dist-es/default-error-handler.js +22 -0
  1646. package/node_modules/@smithy/smithy-client/dist-es/defaults-mode.js +26 -0
  1647. package/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js +6 -0
  1648. package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +22 -0
  1649. package/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js +5 -0
  1650. package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +31 -0
  1651. package/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js +15 -0
  1652. package/node_modules/@smithy/smithy-client/dist-es/extensions/index.js +1 -0
  1653. package/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js +16 -0
  1654. package/node_modules/@smithy/smithy-client/dist-es/get-array-if-single-item.js +1 -0
  1655. package/node_modules/@smithy/smithy-client/dist-es/get-value-from-text-node.js +12 -0
  1656. package/node_modules/@smithy/smithy-client/dist-es/index.js +22 -0
  1657. package/node_modules/@smithy/smithy-client/dist-es/lazy-json.js +33 -0
  1658. package/node_modules/@smithy/smithy-client/dist-es/object-mapping.js +92 -0
  1659. package/node_modules/@smithy/smithy-client/dist-es/parse-utils.js +230 -0
  1660. package/node_modules/@smithy/smithy-client/dist-es/resolve-path.js +19 -0
  1661. package/node_modules/@smithy/smithy-client/dist-es/ser-utils.js +13 -0
  1662. package/node_modules/@smithy/smithy-client/dist-es/serde-json.js +19 -0
  1663. package/node_modules/@smithy/smithy-client/dist-es/split-every.js +27 -0
  1664. package/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +11 -0
  1665. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +32 -0
  1666. package/node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts +10 -0
  1667. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +113 -0
  1668. package/node_modules/@smithy/smithy-client/dist-types/constants.d.ts +4 -0
  1669. package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +9 -0
  1670. package/node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts +73 -0
  1671. package/node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts +13 -0
  1672. package/node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts +28 -0
  1673. package/node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts +8 -0
  1674. package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +34 -0
  1675. package/node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts +7 -0
  1676. package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +25 -0
  1677. package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +38 -0
  1678. package/node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts +1 -0
  1679. package/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +15 -0
  1680. package/node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts +7 -0
  1681. package/node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts +7 -0
  1682. package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +23 -0
  1683. package/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts +24 -0
  1684. package/node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts +162 -0
  1685. package/node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts +270 -0
  1686. package/node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts +4 -0
  1687. package/node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts +9 -0
  1688. package/node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts +10 -0
  1689. package/node_modules/@smithy/smithy-client/dist-types/split-every.d.ts +11 -0
  1690. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/NoOpLogger.d.ts +11 -0
  1691. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +32 -0
  1692. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts +10 -0
  1693. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +113 -0
  1694. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/constants.d.ts +4 -0
  1695. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +9 -0
  1696. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/date-utils.d.ts +73 -0
  1697. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts +13 -0
  1698. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/defaults-mode.d.ts +28 -0
  1699. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/emitWarningIfUnsupportedVersion.d.ts +8 -0
  1700. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts +34 -0
  1701. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extended-encode-uri-component.d.ts +7 -0
  1702. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +25 -0
  1703. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +38 -0
  1704. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/index.d.ts +1 -0
  1705. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/retry.d.ts +15 -0
  1706. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-array-if-single-item.d.ts +7 -0
  1707. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-value-from-text-node.d.ts +7 -0
  1708. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +23 -0
  1709. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts +24 -0
  1710. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/object-mapping.d.ts +178 -0
  1711. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/parse-utils.d.ts +270 -0
  1712. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/resolve-path.d.ts +4 -0
  1713. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/ser-utils.d.ts +9 -0
  1714. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts +10 -0
  1715. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-every.d.ts +11 -0
  1716. package/node_modules/@smithy/smithy-client/package.json +66 -0
  1717. package/node_modules/@smithy/types/LICENSE +201 -0
  1718. package/node_modules/@smithy/types/README.md +80 -0
  1719. package/node_modules/@smithy/types/dist-cjs/abort.js +1 -0
  1720. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -0
  1721. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -0
  1722. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -0
  1723. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -0
  1724. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -0
  1725. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -0
  1726. package/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -0
  1727. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -0
  1728. package/node_modules/@smithy/types/dist-cjs/checksum.js +1 -0
  1729. package/node_modules/@smithy/types/dist-cjs/client.js +1 -0
  1730. package/node_modules/@smithy/types/dist-cjs/command.js +1 -0
  1731. package/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -0
  1732. package/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -0
  1733. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -0
  1734. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -0
  1735. package/node_modules/@smithy/types/dist-cjs/crypto.js +1 -0
  1736. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -0
  1737. package/node_modules/@smithy/types/dist-cjs/encode.js +1 -0
  1738. package/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -0
  1739. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -0
  1740. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -0
  1741. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -0
  1742. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -0
  1743. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -0
  1744. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -0
  1745. package/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -0
  1746. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -0
  1747. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -0
  1748. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -0
  1749. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -0
  1750. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -0
  1751. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -0
  1752. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -0
  1753. package/node_modules/@smithy/types/dist-cjs/http.js +1 -0
  1754. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -0
  1755. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -0
  1756. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -0
  1757. package/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -0
  1758. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -0
  1759. package/node_modules/@smithy/types/dist-cjs/index.js +149 -0
  1760. package/node_modules/@smithy/types/dist-cjs/logger.js +1 -0
  1761. package/node_modules/@smithy/types/dist-cjs/middleware.js +1 -0
  1762. package/node_modules/@smithy/types/dist-cjs/pagination.js +1 -0
  1763. package/node_modules/@smithy/types/dist-cjs/profile.js +1 -0
  1764. package/node_modules/@smithy/types/dist-cjs/response.js +1 -0
  1765. package/node_modules/@smithy/types/dist-cjs/retry.js +1 -0
  1766. package/node_modules/@smithy/types/dist-cjs/serde.js +1 -0
  1767. package/node_modules/@smithy/types/dist-cjs/shapes.js +1 -0
  1768. package/node_modules/@smithy/types/dist-cjs/signature.js +1 -0
  1769. package/node_modules/@smithy/types/dist-cjs/stream.js +1 -0
  1770. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -0
  1771. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  1772. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  1773. package/node_modules/@smithy/types/dist-cjs/transfer.js +1 -0
  1774. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -0
  1775. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -0
  1776. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -0
  1777. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -0
  1778. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -0
  1779. package/node_modules/@smithy/types/dist-cjs/uri.js +1 -0
  1780. package/node_modules/@smithy/types/dist-cjs/util.js +1 -0
  1781. package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
  1782. package/node_modules/@smithy/types/dist-es/abort.js +1 -0
  1783. package/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
  1784. package/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
  1785. package/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
  1786. package/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
  1787. package/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
  1788. package/node_modules/@smithy/types/dist-es/auth/auth.js +5 -0
  1789. package/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
  1790. package/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +1 -0
  1791. package/node_modules/@smithy/types/dist-es/checksum.js +1 -0
  1792. package/node_modules/@smithy/types/dist-es/client.js +1 -0
  1793. package/node_modules/@smithy/types/dist-es/command.js +1 -0
  1794. package/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
  1795. package/node_modules/@smithy/types/dist-es/connection/index.js +3 -0
  1796. package/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
  1797. package/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
  1798. package/node_modules/@smithy/types/dist-es/crypto.js +1 -0
  1799. package/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +1 -0
  1800. package/node_modules/@smithy/types/dist-es/encode.js +1 -0
  1801. package/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
  1802. package/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
  1803. package/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
  1804. package/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
  1805. package/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
  1806. package/node_modules/@smithy/types/dist-es/endpoints/index.js +5 -0
  1807. package/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
  1808. package/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
  1809. package/node_modules/@smithy/types/dist-es/extensions/checksum.js +39 -0
  1810. package/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +11 -0
  1811. package/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +1 -0
  1812. package/node_modules/@smithy/types/dist-es/extensions/index.js +3 -0
  1813. package/node_modules/@smithy/types/dist-es/extensions/retry.js +1 -0
  1814. package/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +1 -0
  1815. package/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
  1816. package/node_modules/@smithy/types/dist-es/http.js +5 -0
  1817. package/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
  1818. package/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
  1819. package/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
  1820. package/node_modules/@smithy/types/dist-es/identity/index.js +4 -0
  1821. package/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
  1822. package/node_modules/@smithy/types/dist-es/index.js +36 -0
  1823. package/node_modules/@smithy/types/dist-es/logger.js +1 -0
  1824. package/node_modules/@smithy/types/dist-es/middleware.js +1 -0
  1825. package/node_modules/@smithy/types/dist-es/pagination.js +1 -0
  1826. package/node_modules/@smithy/types/dist-es/profile.js +6 -0
  1827. package/node_modules/@smithy/types/dist-es/response.js +1 -0
  1828. package/node_modules/@smithy/types/dist-es/retry.js +1 -0
  1829. package/node_modules/@smithy/types/dist-es/serde.js +1 -0
  1830. package/node_modules/@smithy/types/dist-es/shapes.js +1 -0
  1831. package/node_modules/@smithy/types/dist-es/signature.js +1 -0
  1832. package/node_modules/@smithy/types/dist-es/stream.js +1 -0
  1833. package/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +1 -0
  1834. package/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  1835. package/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  1836. package/node_modules/@smithy/types/dist-es/transfer.js +6 -0
  1837. package/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +1 -0
  1838. package/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +1 -0
  1839. package/node_modules/@smithy/types/dist-es/transform/exact.js +1 -0
  1840. package/node_modules/@smithy/types/dist-es/transform/no-undefined.js +1 -0
  1841. package/node_modules/@smithy/types/dist-es/transform/type-transform.js +1 -0
  1842. package/node_modules/@smithy/types/dist-es/uri.js +1 -0
  1843. package/node_modules/@smithy/types/dist-es/util.js +1 -0
  1844. package/node_modules/@smithy/types/dist-es/waiter.js +1 -0
  1845. package/node_modules/@smithy/types/dist-types/abort.d.ts +49 -0
  1846. package/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
  1847. package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
  1848. package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
  1849. package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +41 -0
  1850. package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
  1851. package/node_modules/@smithy/types/dist-types/auth/auth.d.ts +57 -0
  1852. package/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
  1853. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +41 -0
  1854. package/node_modules/@smithy/types/dist-types/checksum.d.ts +63 -0
  1855. package/node_modules/@smithy/types/dist-types/client.d.ts +44 -0
  1856. package/node_modules/@smithy/types/dist-types/command.d.ts +10 -0
  1857. package/node_modules/@smithy/types/dist-types/connection/config.d.ts +7 -0
  1858. package/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
  1859. package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +28 -0
  1860. package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +24 -0
  1861. package/node_modules/@smithy/types/dist-types/crypto.d.ts +60 -0
  1862. package/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +25 -0
  1863. package/node_modules/@smithy/types/dist-types/encode.d.ts +19 -0
  1864. package/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
  1865. package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +15 -0
  1866. package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +7 -0
  1867. package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +19 -0
  1868. package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +10 -0
  1869. package/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
  1870. package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +25 -0
  1871. package/node_modules/@smithy/types/dist-types/eventStream.d.ts +108 -0
  1872. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +55 -0
  1873. package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +33 -0
  1874. package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +9 -0
  1875. package/node_modules/@smithy/types/dist-types/extensions/index.d.ts +4 -0
  1876. package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +18 -0
  1877. package/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +35 -0
  1878. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +79 -0
  1879. package/node_modules/@smithy/types/dist-types/http.d.ts +105 -0
  1880. package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
  1881. package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +27 -0
  1882. package/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
  1883. package/node_modules/@smithy/types/dist-types/identity/index.d.ts +4 -0
  1884. package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
  1885. package/node_modules/@smithy/types/dist-types/index.d.ts +36 -0
  1886. package/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
  1887. package/node_modules/@smithy/types/dist-types/middleware.d.ts +510 -0
  1888. package/node_modules/@smithy/types/dist-types/pagination.d.ts +26 -0
  1889. package/node_modules/@smithy/types/dist-types/profile.d.ts +30 -0
  1890. package/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
  1891. package/node_modules/@smithy/types/dist-types/retry.d.ts +133 -0
  1892. package/node_modules/@smithy/types/dist-types/serde.d.ts +111 -0
  1893. package/node_modules/@smithy/types/dist-types/shapes.d.ts +81 -0
  1894. package/node_modules/@smithy/types/dist-types/signature.d.ts +150 -0
  1895. package/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
  1896. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +33 -0
  1897. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +62 -0
  1898. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +53 -0
  1899. package/node_modules/@smithy/types/dist-types/transfer.d.ts +33 -0
  1900. package/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +26 -0
  1901. package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +73 -0
  1902. package/node_modules/@smithy/types/dist-types/transform/exact.d.ts +6 -0
  1903. package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +62 -0
  1904. package/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +34 -0
  1905. package/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +49 -0
  1906. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
  1907. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
  1908. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
  1909. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +41 -0
  1910. package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
  1911. package/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +57 -0
  1912. package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
  1913. package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +40 -0
  1914. package/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +63 -0
  1915. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +44 -0
  1916. package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +10 -0
  1917. package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +7 -0
  1918. package/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +3 -0
  1919. package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +28 -0
  1920. package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +24 -0
  1921. package/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +60 -0
  1922. package/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +41 -0
  1923. package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +19 -0
  1924. package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +77 -0
  1925. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +15 -0
  1926. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +7 -0
  1927. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +19 -0
  1928. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +10 -0
  1929. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +5 -0
  1930. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +25 -0
  1931. package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +108 -0
  1932. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +55 -0
  1933. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +33 -0
  1934. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +9 -0
  1935. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +4 -0
  1936. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +18 -0
  1937. package/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +35 -0
  1938. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +78 -0
  1939. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +105 -0
  1940. package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
  1941. package/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +27 -0
  1942. package/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +15 -0
  1943. package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +4 -0
  1944. package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
  1945. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +36 -0
  1946. package/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +13 -0
  1947. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +510 -0
  1948. package/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +26 -0
  1949. package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +30 -0
  1950. package/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +40 -0
  1951. package/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +133 -0
  1952. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +111 -0
  1953. package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +81 -0
  1954. package/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +150 -0
  1955. package/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +22 -0
  1956. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +33 -0
  1957. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +61 -0
  1958. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +52 -0
  1959. package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +33 -0
  1960. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +26 -0
  1961. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +84 -0
  1962. package/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +14 -0
  1963. package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +82 -0
  1964. package/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +41 -0
  1965. package/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +17 -0
  1966. package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +192 -0
  1967. package/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +35 -0
  1968. package/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
  1969. package/node_modules/@smithy/types/dist-types/util.d.ts +176 -0
  1970. package/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
  1971. package/node_modules/@smithy/types/package.json +61 -0
  1972. package/node_modules/@smithy/url-parser/LICENSE +201 -0
  1973. package/node_modules/@smithy/url-parser/README.md +10 -0
  1974. package/node_modules/@smithy/url-parser/dist-cjs/index.js +49 -0
  1975. package/node_modules/@smithy/url-parser/dist-es/index.js +18 -0
  1976. package/node_modules/@smithy/url-parser/dist-types/index.d.ts +5 -0
  1977. package/node_modules/@smithy/url-parser/dist-types/ts3.4/index.d.ts +5 -0
  1978. package/node_modules/@smithy/url-parser/package.json +58 -0
  1979. package/node_modules/@smithy/util-base64/LICENSE +201 -0
  1980. package/node_modules/@smithy/util-base64/README.md +4 -0
  1981. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +35 -0
  1982. package/node_modules/@smithy/util-base64/dist-cjs/fromBase64.browser.js +40 -0
  1983. package/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +16 -0
  1984. package/node_modules/@smithy/util-base64/dist-cjs/index.js +27 -0
  1985. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +39 -0
  1986. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +19 -0
  1987. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +28 -0
  1988. package/node_modules/@smithy/util-base64/dist-es/fromBase64.browser.js +36 -0
  1989. package/node_modules/@smithy/util-base64/dist-es/fromBase64.js +12 -0
  1990. package/node_modules/@smithy/util-base64/dist-es/index.js +2 -0
  1991. package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +35 -0
  1992. package/node_modules/@smithy/util-base64/dist-es/toBase64.js +15 -0
  1993. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +6 -0
  1994. package/node_modules/@smithy/util-base64/dist-types/fromBase64.browser.d.ts +8 -0
  1995. package/node_modules/@smithy/util-base64/dist-types/fromBase64.d.ts +7 -0
  1996. package/node_modules/@smithy/util-base64/dist-types/index.d.ts +2 -0
  1997. package/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +9 -0
  1998. package/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +8 -0
  1999. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +6 -0
  2000. package/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.browser.d.ts +8 -0
  2001. package/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.d.ts +7 -0
  2002. package/node_modules/@smithy/util-base64/dist-types/ts3.4/index.d.ts +2 -0
  2003. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +9 -0
  2004. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +8 -0
  2005. package/node_modules/@smithy/util-base64/package.json +73 -0
  2006. package/node_modules/@smithy/util-body-length-browser/LICENSE +201 -0
  2007. package/node_modules/@smithy/util-body-length-browser/README.md +12 -0
  2008. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +1 -0
  2009. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +57 -0
  2010. package/node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js +26 -0
  2011. package/node_modules/@smithy/util-body-length-browser/dist-es/index.js +1 -0
  2012. package/node_modules/@smithy/util-body-length-browser/dist-types/calculateBodyLength.d.ts +4 -0
  2013. package/node_modules/@smithy/util-body-length-browser/dist-types/index.d.ts +4 -0
  2014. package/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/calculateBodyLength.d.ts +4 -0
  2015. package/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/index.d.ts +4 -0
  2016. package/node_modules/@smithy/util-body-length-browser/package.json +57 -0
  2017. package/node_modules/@smithy/util-body-length-node/LICENSE +201 -0
  2018. package/node_modules/@smithy/util-body-length-node/README.md +12 -0
  2019. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +1 -0
  2020. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +53 -0
  2021. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +25 -0
  2022. package/node_modules/@smithy/util-body-length-node/dist-es/index.js +1 -0
  2023. package/node_modules/@smithy/util-body-length-node/dist-types/calculateBodyLength.d.ts +4 -0
  2024. package/node_modules/@smithy/util-body-length-node/dist-types/index.d.ts +4 -0
  2025. package/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/calculateBodyLength.d.ts +4 -0
  2026. package/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/index.d.ts +4 -0
  2027. package/node_modules/@smithy/util-body-length-node/package.json +61 -0
  2028. package/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  2029. package/node_modules/@smithy/util-buffer-from/README.md +10 -0
  2030. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
  2031. package/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  2032. package/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +13 -0
  2033. package/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +13 -0
  2034. package/node_modules/@smithy/util-buffer-from/package.json +61 -0
  2035. package/node_modules/@smithy/util-config-provider/LICENSE +201 -0
  2036. package/node_modules/@smithy/util-config-provider/README.md +4 -0
  2037. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +1 -0
  2038. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +64 -0
  2039. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +1 -0
  2040. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +1 -0
  2041. package/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js +9 -0
  2042. package/node_modules/@smithy/util-config-provider/dist-es/index.js +3 -0
  2043. package/node_modules/@smithy/util-config-provider/dist-es/numberSelector.js +9 -0
  2044. package/node_modules/@smithy/util-config-provider/dist-es/types.js +5 -0
  2045. package/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +10 -0
  2046. package/node_modules/@smithy/util-config-provider/dist-types/index.d.ts +3 -0
  2047. package/node_modules/@smithy/util-config-provider/dist-types/numberSelector.d.ts +9 -0
  2048. package/node_modules/@smithy/util-config-provider/dist-types/ts3.4/booleanSelector.d.ts +10 -0
  2049. package/node_modules/@smithy/util-config-provider/dist-types/ts3.4/index.d.ts +3 -0
  2050. package/node_modules/@smithy/util-config-provider/dist-types/ts3.4/numberSelector.d.ts +9 -0
  2051. package/node_modules/@smithy/util-config-provider/dist-types/ts3.4/types.d.ts +4 -0
  2052. package/node_modules/@smithy/util-config-provider/dist-types/types.d.ts +4 -0
  2053. package/node_modules/@smithy/util-config-provider/package.json +62 -0
  2054. package/node_modules/@smithy/util-defaults-mode-browser/LICENSE +201 -0
  2055. package/node_modules/@smithy/util-defaults-mode-browser/README.md +10 -0
  2056. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/constants.js +4 -0
  2057. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +25 -0
  2058. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +33 -0
  2059. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +23 -0
  2060. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/constants.js +1 -0
  2061. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js +1 -0
  2062. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +27 -0
  2063. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.native.js +19 -0
  2064. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/constants.d.ts +12 -0
  2065. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/index.d.ts +4 -0
  2066. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.d.ts +17 -0
  2067. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.native.d.ts +16 -0
  2068. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/constants.d.ts +12 -0
  2069. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/index.d.ts +4 -0
  2070. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts +17 -0
  2071. package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.native.d.ts +16 -0
  2072. package/node_modules/@smithy/util-defaults-mode-browser/package.json +66 -0
  2073. package/node_modules/@smithy/util-defaults-mode-node/LICENSE +201 -0
  2074. package/node_modules/@smithy/util-defaults-mode-node/README.md +10 -0
  2075. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +1 -0
  2076. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +1 -0
  2077. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +119 -0
  2078. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +1 -0
  2079. package/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js +6 -0
  2080. package/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js +11 -0
  2081. package/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js +1 -0
  2082. package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +52 -0
  2083. package/node_modules/@smithy/util-defaults-mode-node/dist-types/constants.d.ts +24 -0
  2084. package/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +6 -0
  2085. package/node_modules/@smithy/util-defaults-mode-node/dist-types/index.d.ts +4 -0
  2086. package/node_modules/@smithy/util-defaults-mode-node/dist-types/resolveDefaultsModeConfig.d.ts +17 -0
  2087. package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/constants.d.ts +24 -0
  2088. package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/defaultsModeConfig.d.ts +6 -0
  2089. package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/index.d.ts +4 -0
  2090. package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts +17 -0
  2091. package/node_modules/@smithy/util-defaults-mode-node/package.json +66 -0
  2092. package/node_modules/@smithy/util-hex-encoding/LICENSE +201 -0
  2093. package/node_modules/@smithy/util-hex-encoding/README.md +4 -0
  2094. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +67 -0
  2095. package/node_modules/@smithy/util-hex-encoding/dist-es/index.js +33 -0
  2096. package/node_modules/@smithy/util-hex-encoding/dist-types/index.d.ts +12 -0
  2097. package/node_modules/@smithy/util-hex-encoding/dist-types/ts3.4/index.d.ts +12 -0
  2098. package/node_modules/@smithy/util-hex-encoding/package.json +60 -0
  2099. package/node_modules/@smithy/util-middleware/LICENSE +201 -0
  2100. package/node_modules/@smithy/util-middleware/README.md +12 -0
  2101. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +1 -0
  2102. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +45 -0
  2103. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +1 -0
  2104. package/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js +2 -0
  2105. package/node_modules/@smithy/util-middleware/dist-es/index.js +2 -0
  2106. package/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js +6 -0
  2107. package/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +5 -0
  2108. package/node_modules/@smithy/util-middleware/dist-types/index.d.ts +8 -0
  2109. package/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +7 -0
  2110. package/node_modules/@smithy/util-middleware/dist-types/ts3.4/getSmithyContext.d.ts +5 -0
  2111. package/node_modules/@smithy/util-middleware/dist-types/ts3.4/index.d.ts +8 -0
  2112. package/node_modules/@smithy/util-middleware/dist-types/ts3.4/normalizeProvider.d.ts +7 -0
  2113. package/node_modules/@smithy/util-middleware/package.json +66 -0
  2114. package/node_modules/@smithy/util-retry/LICENSE +201 -0
  2115. package/node_modules/@smithy/util-retry/README.md +78 -0
  2116. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -0
  2117. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +1 -0
  2118. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +1 -0
  2119. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +1 -0
  2120. package/node_modules/@smithy/util-retry/dist-cjs/config.js +1 -0
  2121. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +1 -0
  2122. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +1 -0
  2123. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +1 -0
  2124. package/node_modules/@smithy/util-retry/dist-cjs/index.js +347 -0
  2125. package/node_modules/@smithy/util-retry/dist-cjs/types.js +1 -0
  2126. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +24 -0
  2127. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +18 -0
  2128. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +99 -0
  2129. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +65 -0
  2130. package/node_modules/@smithy/util-retry/dist-es/config.js +7 -0
  2131. package/node_modules/@smithy/util-retry/dist-es/constants.js +9 -0
  2132. package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +14 -0
  2133. package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +11 -0
  2134. package/node_modules/@smithy/util-retry/dist-es/index.js +7 -0
  2135. package/node_modules/@smithy/util-retry/dist-es/types.js +1 -0
  2136. package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +33 -0
  2137. package/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts +32 -0
  2138. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +45 -0
  2139. package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +26 -0
  2140. package/node_modules/@smithy/util-retry/dist-types/config.d.ts +20 -0
  2141. package/node_modules/@smithy/util-retry/dist-types/constants.d.ts +59 -0
  2142. package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +5 -0
  2143. package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +9 -0
  2144. package/node_modules/@smithy/util-retry/dist-types/index.d.ts +7 -0
  2145. package/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +33 -0
  2146. package/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts +32 -0
  2147. package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +45 -0
  2148. package/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +26 -0
  2149. package/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts +20 -0
  2150. package/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts +59 -0
  2151. package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts +5 -0
  2152. package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +9 -0
  2153. package/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts +7 -0
  2154. package/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts +19 -0
  2155. package/node_modules/@smithy/util-retry/dist-types/types.d.ts +19 -0
  2156. package/node_modules/@smithy/util-retry/package.json +68 -0
  2157. package/node_modules/@smithy/util-stream/LICENSE +201 -0
  2158. package/node_modules/@smithy/util-stream/README.md +6 -0
  2159. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +1 -0
  2160. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +1 -0
  2161. package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +31 -0
  2162. package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +30 -0
  2163. package/node_modules/@smithy/util-stream/dist-cjs/index.js +89 -0
  2164. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +69 -0
  2165. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +50 -0
  2166. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +18 -0
  2167. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +15 -0
  2168. package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.browser.js +27 -0
  2169. package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +26 -0
  2170. package/node_modules/@smithy/util-stream/dist-es/index.js +3 -0
  2171. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.browser.js +64 -0
  2172. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +45 -0
  2173. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +21 -0
  2174. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +9 -0
  2175. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +5 -0
  2176. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -0
  2177. package/node_modules/@smithy/util-stream/dist-types/index.d.ts +3 -0
  2178. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +7 -0
  2179. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +8 -0
  2180. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +21 -0
  2181. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +9 -0
  2182. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.browser.d.ts +5 -0
  2183. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -0
  2184. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +3 -0
  2185. package/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.browser.d.ts +7 -0
  2186. package/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +8 -0
  2187. package/node_modules/@smithy/util-stream/package.json +95 -0
  2188. package/node_modules/@smithy/util-uri-escape/LICENSE +201 -0
  2189. package/node_modules/@smithy/util-uri-escape/README.md +10 -0
  2190. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +1 -0
  2191. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +1 -0
  2192. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +43 -0
  2193. package/node_modules/@smithy/util-uri-escape/dist-es/escape-uri-path.js +2 -0
  2194. package/node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js +2 -0
  2195. package/node_modules/@smithy/util-uri-escape/dist-es/index.js +2 -0
  2196. package/node_modules/@smithy/util-uri-escape/dist-types/escape-uri-path.d.ts +4 -0
  2197. package/node_modules/@smithy/util-uri-escape/dist-types/escape-uri.d.ts +4 -0
  2198. package/node_modules/@smithy/util-uri-escape/dist-types/index.d.ts +8 -0
  2199. package/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri-path.d.ts +4 -0
  2200. package/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri.d.ts +4 -0
  2201. package/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/index.d.ts +8 -0
  2202. package/node_modules/@smithy/util-uri-escape/package.json +59 -0
  2203. package/node_modules/@smithy/util-utf8/LICENSE +201 -0
  2204. package/node_modules/@smithy/util-utf8/README.md +4 -0
  2205. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -0
  2206. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -0
  2207. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
  2208. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -0
  2209. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -0
  2210. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -0
  2211. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +1 -0
  2212. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +5 -0
  2213. package/node_modules/@smithy/util-utf8/dist-es/index.js +3 -0
  2214. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +10 -0
  2215. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -0
  2216. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +10 -0
  2217. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +1 -0
  2218. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +1 -0
  2219. package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +3 -0
  2220. package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +1 -0
  2221. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -0
  2222. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -0
  2223. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +1 -0
  2224. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +1 -0
  2225. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +3 -0
  2226. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +1 -0
  2227. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -0
  2228. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -0
  2229. package/node_modules/@smithy/util-utf8/package.json +66 -0
  2230. package/node_modules/bowser/CHANGELOG.md +218 -0
  2231. package/node_modules/bowser/LICENSE +39 -0
  2232. package/node_modules/bowser/README.md +179 -0
  2233. package/node_modules/bowser/bundled.js +1 -0
  2234. package/node_modules/bowser/es5.js +1 -0
  2235. package/node_modules/bowser/index.d.ts +250 -0
  2236. package/node_modules/bowser/package.json +83 -0
  2237. package/node_modules/bowser/src/bowser.js +77 -0
  2238. package/node_modules/bowser/src/constants.js +116 -0
  2239. package/node_modules/bowser/src/parser-browsers.js +700 -0
  2240. package/node_modules/bowser/src/parser-engines.js +120 -0
  2241. package/node_modules/bowser/src/parser-os.js +199 -0
  2242. package/node_modules/bowser/src/parser-platforms.js +266 -0
  2243. package/node_modules/bowser/src/parser.js +496 -0
  2244. package/node_modules/bowser/src/utils.js +309 -0
  2245. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  2246. package/node_modules/tslib/LICENSE.txt +12 -0
  2247. package/node_modules/tslib/README.md +164 -0
  2248. package/node_modules/tslib/SECURITY.md +41 -0
  2249. package/node_modules/tslib/modules/index.d.ts +37 -0
  2250. package/node_modules/tslib/modules/index.js +68 -0
  2251. package/node_modules/tslib/modules/package.json +3 -0
  2252. package/node_modules/tslib/package.json +47 -0
  2253. package/node_modules/tslib/tslib.d.ts +453 -0
  2254. package/node_modules/tslib/tslib.es6.html +1 -0
  2255. package/node_modules/tslib/tslib.es6.js +374 -0
  2256. package/node_modules/tslib/tslib.es6.mjs +373 -0
  2257. package/node_modules/tslib/tslib.html +1 -0
  2258. package/node_modules/tslib/tslib.js +424 -0
  2259. package/node_modules/uuid/CHANGELOG.md +274 -0
  2260. package/node_modules/uuid/CONTRIBUTING.md +18 -0
  2261. package/node_modules/uuid/LICENSE.md +9 -0
  2262. package/node_modules/uuid/README.md +466 -0
  2263. package/node_modules/uuid/dist/bin/uuid +2 -0
  2264. package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  2265. package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  2266. package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  2267. package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  2268. package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  2269. package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  2270. package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  2271. package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  2272. package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  2273. package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  2274. package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  2275. package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  2276. package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  2277. package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  2278. package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  2279. package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  2280. package/node_modules/uuid/dist/esm-browser/index.js +9 -0
  2281. package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  2282. package/node_modules/uuid/dist/esm-browser/native.js +4 -0
  2283. package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  2284. package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  2285. package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  2286. package/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  2287. package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  2288. package/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  2289. package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  2290. package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  2291. package/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  2292. package/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  2293. package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  2294. package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  2295. package/node_modules/uuid/dist/esm-browser/version.js +11 -0
  2296. package/node_modules/uuid/dist/esm-node/index.js +9 -0
  2297. package/node_modules/uuid/dist/esm-node/md5.js +13 -0
  2298. package/node_modules/uuid/dist/esm-node/native.js +4 -0
  2299. package/node_modules/uuid/dist/esm-node/nil.js +1 -0
  2300. package/node_modules/uuid/dist/esm-node/parse.js +35 -0
  2301. package/node_modules/uuid/dist/esm-node/regex.js +1 -0
  2302. package/node_modules/uuid/dist/esm-node/rng.js +12 -0
  2303. package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  2304. package/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  2305. package/node_modules/uuid/dist/esm-node/v1.js +95 -0
  2306. package/node_modules/uuid/dist/esm-node/v3.js +4 -0
  2307. package/node_modules/uuid/dist/esm-node/v35.js +66 -0
  2308. package/node_modules/uuid/dist/esm-node/v4.js +29 -0
  2309. package/node_modules/uuid/dist/esm-node/v5.js +4 -0
  2310. package/node_modules/uuid/dist/esm-node/validate.js +7 -0
  2311. package/node_modules/uuid/dist/esm-node/version.js +11 -0
  2312. package/node_modules/uuid/dist/index.js +79 -0
  2313. package/node_modules/uuid/dist/md5-browser.js +223 -0
  2314. package/node_modules/uuid/dist/md5.js +23 -0
  2315. package/node_modules/uuid/dist/native-browser.js +11 -0
  2316. package/node_modules/uuid/dist/native.js +15 -0
  2317. package/node_modules/uuid/dist/nil.js +8 -0
  2318. package/node_modules/uuid/dist/parse.js +45 -0
  2319. package/node_modules/uuid/dist/regex.js +8 -0
  2320. package/node_modules/uuid/dist/rng-browser.js +25 -0
  2321. package/node_modules/uuid/dist/rng.js +24 -0
  2322. package/node_modules/uuid/dist/sha1-browser.js +104 -0
  2323. package/node_modules/uuid/dist/sha1.js +23 -0
  2324. package/node_modules/uuid/dist/stringify.js +44 -0
  2325. package/node_modules/uuid/dist/uuid-bin.js +85 -0
  2326. package/node_modules/uuid/dist/v1.js +107 -0
  2327. package/node_modules/uuid/dist/v3.js +16 -0
  2328. package/node_modules/uuid/dist/v35.js +80 -0
  2329. package/node_modules/uuid/dist/v4.js +43 -0
  2330. package/node_modules/uuid/dist/v5.js +16 -0
  2331. package/node_modules/uuid/dist/validate.js +17 -0
  2332. package/node_modules/uuid/dist/version.js +21 -0
  2333. package/node_modules/uuid/package.json +135 -0
  2334. package/node_modules/uuid/wrapper.mjs +10 -0
  2335. package/out/client/sigv4/codewhisperer.d.ts +1 -0
  2336. package/out/client/sigv4/codewhisperer.js.map +1 -1
  2337. package/out/index.d.ts +1 -0
  2338. package/out/index.js +1 -0
  2339. package/out/index.js.map +1 -1
  2340. package/out/language-server/auto-trigger/autoTrigger.js.map +1 -1
  2341. package/out/language-server/chat/chatController.d.ts +12 -6
  2342. package/out/language-server/chat/chatController.js +168 -36
  2343. package/out/language-server/chat/chatController.js.map +1 -1
  2344. package/out/language-server/chat/chatController.test.js +89 -38
  2345. package/out/language-server/chat/chatController.test.js.map +1 -1
  2346. package/out/language-server/chat/chatEventParser.d.ts +11 -1
  2347. package/out/language-server/chat/chatEventParser.js +51 -3
  2348. package/out/language-server/chat/chatEventParser.js.map +1 -1
  2349. package/out/language-server/chat/chatEventParser.test.js +14 -10
  2350. package/out/language-server/chat/chatEventParser.test.js.map +1 -1
  2351. package/out/language-server/chat/chatSessionManagementService.js +6 -15
  2352. package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
  2353. package/out/language-server/chat/chatSessionManagementService.test.js +7 -15
  2354. package/out/language-server/chat/chatSessionManagementService.test.js.map +1 -1
  2355. package/out/language-server/chat/chatSessionService.d.ts +1 -0
  2356. package/out/language-server/chat/chatSessionService.js +20 -14
  2357. package/out/language-server/chat/chatSessionService.js.map +1 -1
  2358. package/out/language-server/chat/chatSessionService.test.js +10 -8
  2359. package/out/language-server/chat/chatSessionService.test.js.map +1 -1
  2360. package/out/language-server/chat/contexts/documentContext.d.ts +18 -9
  2361. package/out/language-server/chat/contexts/documentContext.js +28 -19
  2362. package/out/language-server/chat/contexts/documentContext.js.map +1 -1
  2363. package/out/language-server/chat/contexts/documentContext.test.js +54 -52
  2364. package/out/language-server/chat/contexts/documentContext.test.js.map +1 -1
  2365. package/out/language-server/chat/contexts/documentFqnExtractor.d.ts +22 -0
  2366. package/out/language-server/chat/contexts/documentFqnExtractor.js +106 -0
  2367. package/out/language-server/chat/contexts/documentFqnExtractor.js.map +1 -0
  2368. package/out/language-server/chat/contexts/documentFqnExtractor.test.d.ts +1 -0
  2369. package/out/language-server/chat/contexts/documentFqnExtractor.test.js +94 -0
  2370. package/out/language-server/chat/contexts/documentFqnExtractor.test.js.map +1 -0
  2371. package/out/language-server/chat/contexts/mockData.d.ts +37 -0
  2372. package/out/language-server/chat/contexts/mockData.js +98 -0
  2373. package/out/language-server/chat/contexts/mockData.js.map +1 -0
  2374. package/out/language-server/chat/contexts/triggerContext.d.ts +16 -0
  2375. package/out/language-server/chat/contexts/triggerContext.js +90 -0
  2376. package/out/language-server/chat/contexts/triggerContext.js.map +1 -0
  2377. package/out/language-server/chat/contexts/utils.js.map +1 -1
  2378. package/out/language-server/chat/quickActions.d.ts +13 -0
  2379. package/out/language-server/chat/quickActions.js +44 -0
  2380. package/out/language-server/chat/quickActions.js.map +1 -0
  2381. package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +55 -0
  2382. package/out/language-server/chat/telemetry/chatTelemetryController.js +268 -0
  2383. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -0
  2384. package/out/language-server/chat/telemetry/chatTelemetryController.test.d.ts +1 -0
  2385. package/out/language-server/chat/telemetry/chatTelemetryController.test.js +84 -0
  2386. package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +1 -0
  2387. package/out/language-server/chat/telemetry/clientTelemetry.d.ts +60 -0
  2388. package/out/language-server/chat/telemetry/clientTelemetry.js +30 -0
  2389. package/out/language-server/chat/telemetry/clientTelemetry.js.map +1 -0
  2390. package/out/language-server/codeWhispererSecurityScanServer.js +12 -7
  2391. package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
  2392. package/out/language-server/codeWhispererServer.d.ts +1 -1
  2393. package/out/language-server/codeWhispererServer.js +10 -10
  2394. package/out/language-server/codeWhispererServer.js.map +1 -1
  2395. package/out/language-server/codeWhispererService.d.ts +10 -9
  2396. package/out/language-server/codeWhispererService.js +19 -26
  2397. package/out/language-server/codeWhispererService.js.map +1 -1
  2398. package/out/language-server/dependencyGraph/csharpDependencyGraph.d.ts +1 -0
  2399. package/out/language-server/dependencyGraph/csharpDependencyGraph.js +8 -3
  2400. package/out/language-server/dependencyGraph/csharpDependencyGraph.js.map +1 -1
  2401. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +114 -0
  2402. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +1 -1
  2403. package/out/language-server/dependencyGraph/dependencyGraph.d.ts +5 -0
  2404. package/out/language-server/dependencyGraph/dependencyGraph.js +15 -0
  2405. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
  2406. package/out/language-server/dependencyGraph/dependencyGraphFactory.js.map +1 -1
  2407. package/out/language-server/dependencyGraph/gitIgnoreFilter.d.ts +7 -0
  2408. package/out/language-server/dependencyGraph/gitIgnoreFilter.js +38 -0
  2409. package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +1 -0
  2410. package/out/language-server/languageDetection.js.map +1 -1
  2411. package/out/language-server/languageDetection.test.js.map +1 -1
  2412. package/out/language-server/mergeRightUtils.js.map +1 -1
  2413. package/out/language-server/pathUtils.d.ts +17 -0
  2414. package/out/language-server/pathUtils.js +52 -0
  2415. package/out/language-server/pathUtils.js.map +1 -0
  2416. package/out/language-server/proxy-server.d.ts +1 -0
  2417. package/out/language-server/proxy-server.js +15 -1
  2418. package/out/language-server/proxy-server.js.map +1 -1
  2419. package/out/language-server/qChatServer.js +35 -8
  2420. package/out/language-server/qChatServer.js.map +1 -1
  2421. package/out/language-server/securityScan/securityScanDiagnosticsProvider.js +1 -1
  2422. package/out/language-server/securityScan/securityScanDiagnosticsProvider.js.map +1 -1
  2423. package/out/language-server/securityScan/securityScanHandler.js.map +1 -1
  2424. package/out/language-server/session/sessionManager.js.map +1 -1
  2425. package/out/language-server/session/sessionManager.test.js +2 -2
  2426. package/out/language-server/session/sessionManager.test.js.map +1 -1
  2427. package/out/language-server/telemetry/codeDiffTracker.d.ts +41 -0
  2428. package/out/language-server/telemetry/codeDiffTracker.js +133 -0
  2429. package/out/language-server/telemetry/codeDiffTracker.js.map +1 -0
  2430. package/out/language-server/telemetry/codeDiffTracker.test.d.ts +1 -0
  2431. package/out/language-server/telemetry/codeDiffTracker.test.js +125 -0
  2432. package/out/language-server/telemetry/codeDiffTracker.test.js.map +1 -0
  2433. package/out/language-server/telemetry/codePercentage.js.map +1 -1
  2434. package/out/language-server/telemetry/metric.d.ts +16 -0
  2435. package/out/language-server/telemetry/metric.js +43 -0
  2436. package/out/language-server/telemetry/metric.js.map +1 -0
  2437. package/out/language-server/telemetry/types.d.ts +117 -0
  2438. package/out/language-server/telemetry/types.js +26 -0
  2439. package/out/language-server/telemetry/types.js.map +1 -1
  2440. package/out/language-server/telemetry/userTriggerDecision.test.js +15 -15
  2441. package/out/language-server/telemetry/userTriggerDecision.test.js.map +1 -1
  2442. package/out/language-server/types.d.ts +3 -0
  2443. package/out/language-server/utils.d.ts +8 -0
  2444. package/out/language-server/utils.js +53 -3
  2445. package/out/language-server/utils.js.map +1 -1
  2446. package/package.json +26 -10
  2447. package/script/install_transitive_dep.js +28 -0
  2448. package/out/language-server/chat/utils.d.ts +0 -4
  2449. package/out/language-server/chat/utils.js +0 -34
  2450. package/out/language-server/chat/utils.js.map +0 -1
  2451. package/src.gen/@amzn/codewhisperer-streaming/README.md +0 -464
  2452. package/src.gen/@amzn/codewhisperer-streaming/api-extractor.json +0 -4
  2453. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +0 -361
  2454. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +0 -458
  2455. package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +0 -328
  2456. package/src.gen/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +0 -449
  2457. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +0 -103
  2458. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +0 -294
  2459. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +0 -304
  2460. package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +0 -1173
  2461. package/src.gen/@amzn/codewhisperer-streaming/package.json +0 -87
  2462. package/src.gen/@amzn/codewhisperer-streaming/src/CodeWhispererStreaming.ts +0 -84
  2463. package/src.gen/@amzn/codewhisperer-streaming/src/CodeWhispererStreamingClient.ts +0 -304
  2464. package/src.gen/@amzn/codewhisperer-streaming/src/commands/ExportResultArchiveCommand.ts +0 -177
  2465. package/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts +0 -369
  2466. package/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts +0 -379
  2467. package/src.gen/@amzn/codewhisperer-streaming/src/commands/index.ts +0 -4
  2468. package/src.gen/@amzn/codewhisperer-streaming/src/endpoints.ts +0 -170
  2469. package/src.gen/@amzn/codewhisperer-streaming/src/extensionConfiguration.ts +0 -12
  2470. package/src.gen/@amzn/codewhisperer-streaming/src/index.ts +0 -8
  2471. package/src.gen/@amzn/codewhisperer-streaming/src/models/CodeWhispererStreamingServiceException.ts +0 -22
  2472. package/src.gen/@amzn/codewhisperer-streaming/src/models/index.ts +0 -2
  2473. package/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts +0 -1518
  2474. package/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts +0 -740
  2475. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.browser.ts +0 -42
  2476. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.native.ts +0 -17
  2477. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.shared.ts +0 -24
  2478. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.ts +0 -55
  2479. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeExtensions.ts +0 -44
  2480. package/src.gen/@amzn/codewhisperer-streaming/typedoc.json +0 -5
  2481. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/LICENSE +0 -0
  2482. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +0 -0
  2483. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +0 -0
  2484. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/commands/ExportResultArchiveCommand.js +0 -0
  2485. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateAssistantResponseCommand.js +0 -0
  2486. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateTaskAssistPlanCommand.js +0 -0
  2487. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +0 -0
  2488. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +0 -0
  2489. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/extensionConfiguration.js +0 -0
  2490. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/index.js +0 -0
  2491. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/models/CodeWhispererStreamingServiceException.js +0 -0
  2492. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/models/index.js +0 -0
  2493. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +0 -0
  2494. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +0 -0
  2495. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.native.js +0 -0
  2496. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.shared.js +0 -0
  2497. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-cjs/runtimeExtensions.js +0 -0
  2498. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +0 -0
  2499. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +0 -0
  2500. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/commands/ExportResultArchiveCommand.js +0 -0
  2501. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/commands/GenerateAssistantResponseCommand.js +0 -0
  2502. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/commands/GenerateTaskAssistPlanCommand.js +0 -0
  2503. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/commands/index.js +0 -0
  2504. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/endpoints.js +0 -0
  2505. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/extensionConfiguration.js +0 -0
  2506. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/index.js +0 -0
  2507. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/models/CodeWhispererStreamingServiceException.js +0 -0
  2508. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/models/index.js +0 -0
  2509. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +0 -0
  2510. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +0 -0
  2511. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.native.js +0 -0
  2512. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.shared.js +0 -0
  2513. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-es/runtimeExtensions.js +0 -0
  2514. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +0 -0
  2515. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +0 -0
  2516. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +0 -0
  2517. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/endpoints.d.ts +0 -0
  2518. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/extensionConfiguration.d.ts +0 -0
  2519. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/index.d.ts +0 -0
  2520. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/models/CodeWhispererStreamingServiceException.d.ts +0 -0
  2521. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/models/index.d.ts +0 -0
  2522. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +0 -0
  2523. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +0 -0
  2524. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +0 -0
  2525. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +0 -0
  2526. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.shared.d.ts +0 -0
  2527. /package/{src.gen → node_modules}/@amzn/codewhisperer-streaming/dist-types/runtimeExtensions.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerpool.js","sources":["../src/environment.js","../src/Promise.js","../src/validateOptions.js","../src/generated/embeddedWorker.js","../src/WorkerHandler.js","../src/debug-port-allocator.js","../src/Pool.js","../src/transfer.js","../src/worker.js","../src/index.js"],"sourcesContent":["\n// source: https://github.com/flexdinesh/browser-or-node\n// source: https://github.com/mozilla/pdf.js/blob/7ea0e40e588864cd938d1836ec61f1928d3877d3/src/shared/util.js#L24\nvar isNode = function (nodeProcess) {\n return (\n typeof nodeProcess !== 'undefined' &&\n nodeProcess.versions != null &&\n nodeProcess.versions.node != null &&\n nodeProcess + '' === '[object process]'\n );\n}\nmodule.exports.isNode = isNode\n\n// determines the JavaScript platform: browser or node\nmodule.exports.platform = typeof process !== 'undefined' && isNode(process)\n ? 'node'\n : 'browser';\n\n// determines whether the code is running in main thread or not\n// note that in node.js we have to check both worker_thread and child_process\nvar worker_threads = module.exports.platform === 'node' && require('worker_threads');\nmodule.exports.isMainThread = module.exports.platform === 'node'\n ? ((!worker_threads || worker_threads.isMainThread) && !process.connected)\n : typeof Window !== 'undefined';\n\n// determines the number of cpus available\nmodule.exports.cpus = module.exports.platform === 'browser'\n ? self.navigator.hardwareConcurrency\n : require('os').cpus().length;\n\n","'use strict';\n\n/**\n * Promise\n *\n * Inspired by https://gist.github.com/RubaXa/8501359 from RubaXa <trash@rubaxa.org>\n * @template T\n * @template [E=Error]\n * @param {Function} handler Called as handler(resolve: Function, reject: Function)\n * @param {Promise} [parent] Parent promise for propagation of cancel and timeout\n */\nfunction Promise(handler, parent) {\n var me = this;\n\n if (!(this instanceof Promise)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (typeof handler !== 'function') {\n throw new SyntaxError('Function parameter handler(resolve, reject) missing');\n }\n\n var _onSuccess = [];\n var _onFail = [];\n\n // status\n /**\n * @readonly\n */\n this.resolved = false;\n /**\n * @readonly\n */\n this.rejected = false;\n /**\n * @readonly\n */\n this.pending = true;\n\n /**\n * Process onSuccess and onFail callbacks: add them to the queue.\n * Once the promise is resolved, the function _promise is replace.\n * @param {Function} onSuccess\n * @param {Function} onFail\n * @private\n */\n var _process = function (onSuccess, onFail) {\n _onSuccess.push(onSuccess);\n _onFail.push(onFail);\n };\n\n /**\n * Add an onSuccess callback and optionally an onFail callback to the Promise\n * @template TT\n * @template [TE=never]\n * @param {(r: T) => TT | PromiseLike<TT>} onSuccess\n * @param {(r: E) => TE | PromiseLike<TE>} [onFail]\n * @returns {Promise<TT | TE, any>} promise\n */\n this.then = function (onSuccess, onFail) {\n return new Promise(function (resolve, reject) {\n var s = onSuccess ? _then(onSuccess, resolve, reject) : resolve;\n var f = onFail ? _then(onFail, resolve, reject) : reject;\n\n _process(s, f);\n }, me);\n };\n\n /**\n * Resolve the promise\n * @param {*} result\n * @type {Function}\n */\n var _resolve = function (result) {\n // update status\n me.resolved = true;\n me.rejected = false;\n me.pending = false;\n\n _onSuccess.forEach(function (fn) {\n fn(result);\n });\n\n _process = function (onSuccess, onFail) {\n onSuccess(result);\n };\n\n _resolve = _reject = function () { };\n\n return me;\n };\n\n /**\n * Reject the promise\n * @param {Error} error\n * @type {Function}\n */\n var _reject = function (error) {\n // update status\n me.resolved = false;\n me.rejected = true;\n me.pending = false;\n\n _onFail.forEach(function (fn) {\n fn(error);\n });\n\n _process = function (onSuccess, onFail) {\n onFail(error);\n };\n\n _resolve = _reject = function () { }\n\n return me;\n };\n\n /**\n * Cancel the promise. This will reject the promise with a CancellationError\n * @returns {this} self\n */\n this.cancel = function () {\n if (parent) {\n parent.cancel();\n }\n else {\n _reject(new CancellationError());\n }\n\n return me;\n };\n\n /**\n * Set a timeout for the promise. If the promise is not resolved within\n * the time, the promise will be cancelled and a TimeoutError is thrown.\n * If the promise is resolved in time, the timeout is removed.\n * @param {number} delay Delay in milliseconds\n * @returns {this} self\n */\n this.timeout = function (delay) {\n if (parent) {\n parent.timeout(delay);\n }\n else {\n var timer = setTimeout(function () {\n _reject(new TimeoutError('Promise timed out after ' + delay + ' ms'));\n }, delay);\n\n me.always(function () {\n clearTimeout(timer);\n });\n }\n\n return me;\n };\n\n // attach handler passing the resolve and reject functions\n handler(function (result) {\n _resolve(result);\n }, function (error) {\n _reject(error);\n });\n}\n\n/**\n * Execute given callback, then call resolve/reject based on the returned result\n * @param {Function} callback\n * @param {Function} resolve\n * @param {Function} reject\n * @returns {Function}\n * @private\n */\nfunction _then(callback, resolve, reject) {\n return function (result) {\n try {\n var res = callback(result);\n if (res && typeof res.then === 'function' && typeof res['catch'] === 'function') {\n // method returned a promise\n res.then(resolve, reject);\n }\n else {\n resolve(res);\n }\n }\n catch (error) {\n reject(error);\n }\n }\n}\n\n/**\n * Add an onFail callback to the Promise\n * @template TT\n * @param {(error: E) => TT | PromiseLike<TT>} onFail\n * @returns {Promise<T | TT>} promise\n */\nPromise.prototype['catch'] = function (onFail) {\n return this.then(null, onFail);\n};\n\n// TODO: add support for Promise.catch(Error, callback)\n// TODO: add support for Promise.catch(Error, Error, callback)\n\n/**\n * Execute given callback when the promise either resolves or rejects.\n * @template TT\n * @param {() => Promise<TT>} fn\n * @returns {Promise<TT>} promise\n */\nPromise.prototype.always = function (fn) {\n return this.then(fn, fn);\n};\n\n/**\n * Create a promise which resolves when all provided promises are resolved,\n * and fails when any of the promises resolves.\n * @param {Promise[]} promises\n * @returns {Promise<any[], any>} promise\n */\nPromise.all = function (promises){\n return new Promise(function (resolve, reject) {\n var remaining = promises.length,\n results = [];\n\n if (remaining) {\n promises.forEach(function (p, i) {\n p.then(function (result) {\n results[i] = result;\n remaining--;\n if (remaining == 0) {\n resolve(results);\n }\n }, function (error) {\n remaining = 0;\n reject(error);\n });\n });\n }\n else {\n resolve(results);\n }\n });\n};\n\n/**\n * Create a promise resolver\n * @returns {{promise: Promise, resolve: Function, reject: Function}} resolver\n */\nPromise.defer = function () {\n var resolver = {};\n\n resolver.promise = new Promise(function (resolve, reject) {\n resolver.resolve = resolve;\n resolver.reject = reject;\n });\n\n return resolver;\n};\n\n/**\n * Create a cancellation error\n * @param {String} [message]\n * @extends Error\n */\nfunction CancellationError(message) {\n this.message = message || 'promise cancelled';\n this.stack = (new Error()).stack;\n}\n\nCancellationError.prototype = new Error();\nCancellationError.prototype.constructor = Error;\nCancellationError.prototype.name = 'CancellationError';\n\nPromise.CancellationError = CancellationError;\n\n\n/**\n * Create a timeout error\n * @param {String} [message]\n * @extends Error\n */\nfunction TimeoutError(message) {\n this.message = message || 'timeout exceeded';\n this.stack = (new Error()).stack;\n}\n\nTimeoutError.prototype = new Error();\nTimeoutError.prototype.constructor = Error;\nTimeoutError.prototype.name = 'TimeoutError';\n\nPromise.TimeoutError = TimeoutError;\n\n\nexports.Promise = Promise;\n","/**\n * Validate that the object only contains known option names\n * - Throws an error when unknown options are detected\n * - Throws an error when some of the allowed options are attached\n * @param {Object | undefined} options\n * @param {string[]} allowedOptionNames\n * @param {string} objectName\n * @retrun {Object} Returns the original options\n */\nexports.validateOptions = function validateOptions(options, allowedOptionNames, objectName) {\n if (!options) {\n return\n }\n\n var optionNames = options ? Object.keys(options) : []\n\n // check for unknown properties\n var unknownOptionName = optionNames.find(optionName => !allowedOptionNames.includes(optionName))\n if (unknownOptionName) {\n throw new Error('Object \"' + objectName + '\" contains an unknown option \"' + unknownOptionName + '\"')\n }\n\n // check for inherited properties which are not present on the object itself\n var illegalOptionName = allowedOptionNames.find(allowedOptionName => {\n return Object.prototype[allowedOptionName] && !optionNames.includes(allowedOptionName)\n })\n if (illegalOptionName) {\n throw new Error('Object \"' + objectName + '\" contains an inherited option \"' + illegalOptionName + '\" which is ' +\n 'not defined in the object itself but in its prototype. Only plain objects are allowed. ' +\n 'Please remove the option from the prototype or override it with a value \"undefined\".')\n }\n\n return options\n}\n\n// source: https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker\nexports.workerOptsNames = [\n 'credentials', 'name', 'type' ]\n\n// source: https://nodejs.org/api/child_process.html#child_processforkmodulepath-args-options\nexports.forkOptsNames = [\n 'cwd', 'detached', 'env', 'execPath', 'execArgv', 'gid', 'serialization',\n 'signal', 'killSignal', 'silent', 'stdio', 'uid', 'windowsVerbatimArguments',\n 'timeout'\n]\n\n// source: https://nodejs.org/api/worker_threads.html#new-workerfilename-options\nexports.workerThreadOptsNames = [\n 'argv', 'env', 'eval', 'execArgv', 'stdin', 'stdout', 'stderr', 'workerData',\n 'trackUnmanagedFds', 'transferList', 'resourceLimits', 'name'\n]\n","/**\n * embeddedWorker.js contains an embedded version of worker.js.\n * This file is automatically generated,\n * changes made in this file will be overwritten.\n */\nmodule.exports = \"!function(e,n){\\\"object\\\"==typeof exports&&\\\"undefined\\\"!=typeof module?module.exports=n():\\\"function\\\"==typeof define&&define.amd?define(n):(e=\\\"undefined\\\"!=typeof globalThis?globalThis:e||self).worker=n()}(this,(function(){\\\"use strict\\\";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\\\"default\\\")?e.default:e}var n={};var t=function(e,n){this.message=e,this.transfer=n};return function(e){var n=t,r={exit:function(){}};if(\\\"undefined\\\"!=typeof self&&\\\"function\\\"==typeof postMessage&&\\\"function\\\"==typeof addEventListener)r.on=function(e,n){addEventListener(e,(function(e){n(e.data)}))},r.send=function(e){postMessage(e)};else{if(\\\"undefined\\\"==typeof process)throw new Error(\\\"Script must be executed as a worker\\\");var o;try{o=require(\\\"worker_threads\\\")}catch(e){if(\\\"object\\\"!=typeof e||null===e||\\\"MODULE_NOT_FOUND\\\"!==e.code)throw e}if(o&&null!==o.parentPort){var i=o.parentPort;r.send=i.postMessage.bind(i),r.on=i.on.bind(i),r.exit=process.exit.bind(process)}else r.on=process.on.bind(process),r.send=function(e){process.send(e)},r.on(\\\"disconnect\\\",(function(){process.exit(1)})),r.exit=process.exit.bind(process)}function s(e){return Object.getOwnPropertyNames(e).reduce((function(n,t){return Object.defineProperty(n,t,{value:e[t],enumerable:!0})}),{})}function d(e){return e&&\\\"function\\\"==typeof e.then&&\\\"function\\\"==typeof e.catch}r.methods={},r.methods.run=function(e,n){var t=new Function(\\\"return (\\\"+e+\\\").apply(null, arguments);\\\");return t.apply(t,n)},r.methods.methods=function(){return Object.keys(r.methods)},r.terminationHandler=void 0,r.cleanupAndExit=function(e){var n=function(){r.exit(e)};if(!r.terminationHandler)return n();var t=r.terminationHandler(e);d(t)?t.then(n,n):n()};var u=null;r.on(\\\"message\\\",(function(e){if(\\\"__workerpool-terminate__\\\"===e)return r.cleanupAndExit(0);try{var t=r.methods[e.method];if(!t)throw new Error('Unknown method \\\"'+e.method+'\\\"');u=e.id;var o=t.apply(t,e.params);d(o)?o.then((function(t){t instanceof n?r.send({id:e.id,result:t.message,error:null},t.transfer):r.send({id:e.id,result:t,error:null}),u=null})).catch((function(n){r.send({id:e.id,result:null,error:s(n)}),u=null})):(o instanceof n?r.send({id:e.id,result:o.message,error:null},o.transfer):r.send({id:e.id,result:o,error:null}),u=null)}catch(n){r.send({id:e.id,result:null,error:s(n)})}})),r.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(r.methods[t]=e[t]);n&&(r.terminationHandler=n.onTerminate),r.send(\\\"ready\\\")},r.emit=function(e){if(u){if(e instanceof n)return void r.send({id:u,isEvent:!0,payload:e.message},e.transfer);r.send({id:u,isEvent:!0,payload:e})}},e.add=r.register,e.emit=r.emit}(n),e(n)}));\\n//# sourceMappingURL=worker.min.js.map\\n\";\n","'use strict';\n\nvar {Promise} = require('./Promise');\nvar environment = require('./environment');\nconst {validateOptions, forkOptsNames, workerThreadOptsNames, workerOptsNames} = require(\"./validateOptions\");\n\n/**\n * Special message sent by parent which causes a child process worker to terminate itself.\n * Not a \"message object\"; this string is the entire message.\n */\nvar TERMINATE_METHOD_ID = '__workerpool-terminate__';\n\nfunction ensureWorkerThreads() {\n var WorkerThreads = tryRequireWorkerThreads()\n if (!WorkerThreads) {\n throw new Error('WorkerPool: workerType = \\'thread\\' is not supported, Node >= 11.7.0 required')\n }\n\n return WorkerThreads;\n}\n\n// check whether Worker is supported by the browser\nfunction ensureWebWorker() {\n // Workaround for a bug in PhantomJS (Or QtWebkit): https://github.com/ariya/phantomjs/issues/14534\n if (typeof Worker !== 'function' && (typeof Worker !== 'object' || typeof Worker.prototype.constructor !== 'function')) {\n throw new Error('WorkerPool: Web Workers not supported');\n }\n}\n\nfunction tryRequireWorkerThreads() {\n try {\n return require('worker_threads');\n } catch(error) {\n if (typeof error === 'object' && error !== null && error.code === 'MODULE_NOT_FOUND') {\n // no worker_threads available (old version of node.js)\n return null;\n } else {\n throw error;\n }\n }\n}\n\n// get the default worker script\nfunction getDefaultWorker() {\n if (environment.platform === 'browser') {\n // test whether the browser supports all features that we need\n if (typeof Blob === 'undefined') {\n throw new Error('Blob not supported by the browser');\n }\n if (!window.URL || typeof window.URL.createObjectURL !== 'function') {\n throw new Error('URL.createObjectURL not supported by the browser');\n }\n\n // use embedded worker.js\n var blob = new Blob([require('./generated/embeddedWorker')], {type: 'text/javascript'});\n return window.URL.createObjectURL(blob);\n }\n else {\n // use external worker.js in current directory\n return __dirname + '/worker.js';\n }\n}\n\nfunction setupWorker(script, options) {\n if (options.workerType === 'web') { // browser only\n ensureWebWorker();\n return setupBrowserWorker(script, options.workerOpts, Worker);\n } else if (options.workerType === 'thread') { // node.js only\n WorkerThreads = ensureWorkerThreads();\n return setupWorkerThreadWorker(script, WorkerThreads, options);\n } else if (options.workerType === 'process' || !options.workerType) { // node.js only\n return setupProcessWorker(script, resolveForkOptions(options), require('child_process'));\n } else { // options.workerType === 'auto' or undefined\n if (environment.platform === 'browser') {\n ensureWebWorker();\n return setupBrowserWorker(script, options.workerOpts, Worker);\n }\n else { // environment.platform === 'node'\n var WorkerThreads = tryRequireWorkerThreads();\n if (WorkerThreads) {\n return setupWorkerThreadWorker(script, WorkerThreads, options);\n } else {\n return setupProcessWorker(script, resolveForkOptions(options), require('child_process'));\n }\n }\n }\n}\n\nfunction setupBrowserWorker(script, workerOpts, Worker) {\n // validate the options right before creating the worker (not when creating the pool)\n validateOptions(workerOpts, workerOptsNames, 'workerOpts')\n\n // create the web worker\n var worker = new Worker(script, workerOpts);\n\n worker.isBrowserWorker = true;\n // add node.js API to the web worker\n worker.on = function (event, callback) {\n this.addEventListener(event, function (message) {\n callback(message.data);\n });\n };\n worker.send = function (message, transfer) {\n this.postMessage(message, transfer);\n };\n return worker;\n}\n\nfunction setupWorkerThreadWorker(script, WorkerThreads, options) {\n // validate the options right before creating the worker thread (not when creating the pool)\n validateOptions(options?.workerThreadOpts, workerThreadOptsNames, 'workerThreadOpts')\n\n var worker = new WorkerThreads.Worker(script, {\n stdout: options?.emitStdStreams ?? false, // pipe worker.STDOUT to process.STDOUT if not requested\n stderr: options?.emitStdStreams ?? false, // pipe worker.STDERR to process.STDERR if not requested\n ...options?.workerThreadOpts\n });\n worker.isWorkerThread = true;\n worker.send = function(message, transfer) {\n this.postMessage(message, transfer);\n };\n\n worker.kill = function() {\n this.terminate();\n return true;\n };\n\n worker.disconnect = function() {\n this.terminate();\n };\n\n if (options?.emitStdStreams) {\n worker.stdout.on('data', (data) => worker.emit(\"stdout\", data))\n worker.stderr.on('data', (data) => worker.emit(\"stderr\", data))\n }\n\n return worker;\n}\n\nfunction setupProcessWorker(script, options, child_process) {\n // validate the options right before creating the child process (not when creating the pool)\n validateOptions(options.forkOpts, forkOptsNames, 'forkOpts')\n\n // no WorkerThreads, fallback to sub-process based workers\n var worker = child_process.fork(\n script,\n options.forkArgs,\n options.forkOpts\n );\n\n // ignore transfer argument since it is not supported by process\n var send = worker.send;\n worker.send = function (message) {\n return send.call(worker, message);\n };\n\n if (options.emitStdStreams) {\n worker.stdout.on('data', (data) => worker.emit(\"stdout\", data))\n worker.stderr.on('data', (data) => worker.emit(\"stderr\", data))\n }\n\n worker.isChildProcess = true;\n return worker;\n}\n\n// add debug flags to child processes if the node inspector is active\nfunction resolveForkOptions(opts) {\n opts = opts || {};\n\n var processExecArgv = process.execArgv.join(' ');\n var inspectorActive = processExecArgv.indexOf('--inspect') !== -1;\n var debugBrk = processExecArgv.indexOf('--debug-brk') !== -1;\n\n var execArgv = [];\n if (inspectorActive) {\n execArgv.push('--inspect=' + opts.debugPort);\n\n if (debugBrk) {\n execArgv.push('--debug-brk');\n }\n }\n\n process.execArgv.forEach(function(arg) {\n if (arg.indexOf('--max-old-space-size') > -1) {\n execArgv.push(arg)\n }\n })\n\n return Object.assign({}, opts, {\n forkArgs: opts.forkArgs,\n forkOpts: Object.assign({}, opts.forkOpts, {\n execArgv: (opts.forkOpts && opts.forkOpts.execArgv || [])\n .concat(execArgv),\n stdio: opts.emitStdStreams ? \"pipe\": undefined\n })\n });\n}\n\n/**\n * Converts a serialized error to Error\n * @param {Object} obj Error that has been serialized and parsed to object\n * @return {Error} The equivalent Error.\n */\nfunction objectToError (obj) {\n var temp = new Error('')\n var props = Object.keys(obj)\n\n for (var i = 0; i < props.length; i++) {\n temp[props[i]] = obj[props[i]]\n }\n\n return temp\n}\n\nfunction handleEmittedStdPayload(handler, payload) {\n // TODO: refactor if parallel task execution gets added\n if (Object.keys(handler.processing).length !== 1) {\n return;\n }\n var task = Object.values(handler.processing)[0]\n if (task.options && typeof task.options.on === 'function') {\n task.options.on(payload);\n }\n}\n\n/**\n * A WorkerHandler controls a single worker. This worker can be a child process\n * on node.js or a WebWorker in a browser environment.\n * @param {String} [script] If no script is provided, a default worker with a\n * function run will be created.\n * @param {import('./types.js').WorkerPoolOptions} [_options] See docs\n * @constructor\n */\nfunction WorkerHandler(script, _options) {\n var me = this;\n var options = _options || {};\n\n this.script = script || getDefaultWorker();\n this.worker = setupWorker(this.script, options);\n this.debugPort = options.debugPort;\n this.forkOpts = options.forkOpts;\n this.forkArgs = options.forkArgs;\n this.workerOpts = options.workerOpts;\n this.workerThreadOpts = options.workerThreadOpts\n this.workerTerminateTimeout = options.workerTerminateTimeout;\n\n // The ready message is only sent if the worker.add method is called (And the default script is not used)\n if (!script) {\n this.worker.ready = true;\n }\n\n // queue for requests that are received before the worker is ready\n this.requestQueue = [];\n\n this.worker.on(\"stdout\", function (data) {\n handleEmittedStdPayload(me, {\"stdout\": data.toString()})\n })\n this.worker.on(\"stderr\", function (data) {\n handleEmittedStdPayload(me, {\"stderr\": data.toString()})\n })\n\n this.worker.on('message', function (response) {\n if (me.terminated) {\n return;\n }\n if (typeof response === 'string' && response === 'ready') {\n me.worker.ready = true;\n dispatchQueuedRequests();\n } else {\n // find the task from the processing queue, and run the tasks callback\n var id = response.id;\n var task = me.processing[id];\n if (task !== undefined) {\n if (response.isEvent) {\n if (task.options && typeof task.options.on === 'function') {\n task.options.on(response.payload);\n }\n } else {\n // remove the task from the queue\n delete me.processing[id];\n\n // test if we need to terminate\n if (me.terminating === true) {\n // complete worker termination if all tasks are finished\n me.terminate();\n }\n\n // resolve the task's promise\n if (response.error) {\n task.resolver.reject(objectToError(response.error));\n }\n else {\n task.resolver.resolve(response.result);\n }\n }\n }\n }\n });\n\n // reject all running tasks on worker error\n function onError(error) {\n me.terminated = true;\n\n for (var id in me.processing) {\n if (me.processing[id] !== undefined) {\n me.processing[id].resolver.reject(error);\n }\n }\n me.processing = Object.create(null);\n }\n\n // send all queued requests to worker\n function dispatchQueuedRequests()\n {\n for(const request of me.requestQueue.splice(0)) {\n me.worker.send(request.message, request.transfer);\n }\n }\n\n var worker = this.worker;\n // listen for worker messages error and exit\n this.worker.on('error', onError);\n this.worker.on('exit', function (exitCode, signalCode) {\n var message = 'Workerpool Worker terminated Unexpectedly\\n';\n\n message += ' exitCode: `' + exitCode + '`\\n';\n message += ' signalCode: `' + signalCode + '`\\n';\n\n message += ' workerpool.script: `' + me.script + '`\\n';\n message += ' spawnArgs: `' + worker.spawnargs + '`\\n';\n message += ' spawnfile: `' + worker.spawnfile + '`\\n'\n\n message += ' stdout: `' + worker.stdout + '`\\n'\n message += ' stderr: `' + worker.stderr + '`\\n'\n\n onError(new Error(message));\n });\n\n this.processing = Object.create(null); // queue with tasks currently in progress\n\n this.terminating = false;\n this.terminated = false;\n this.cleaning = false;\n this.terminationHandler = null;\n this.lastId = 0;\n}\n\n/**\n * Get a list with methods available on the worker.\n * @return {Promise.<String[], Error>} methods\n */\nWorkerHandler.prototype.methods = function () {\n return this.exec('methods');\n};\n\n/**\n * Execute a method with given parameters on the worker\n * @param {String} method\n * @param {Array} [params]\n * @param {{resolve: Function, reject: Function}} [resolver]\n * @param {import('./types.js').ExecOptions} [options]\n * @return {Promise.<*, Error>} result\n */\nWorkerHandler.prototype.exec = function(method, params, resolver, options) {\n if (!resolver) {\n resolver = Promise.defer();\n }\n\n // generate a unique id for the task\n var id = ++this.lastId;\n\n // register a new task as being in progress\n this.processing[id] = {\n id: id,\n resolver: resolver,\n options: options\n };\n\n // build a JSON-RPC request\n var request = {\n message: {\n id: id,\n method: method,\n params: params\n },\n transfer: options && options.transfer\n };\n\n if (this.terminated) {\n resolver.reject(new Error('Worker is terminated'));\n } else if (this.worker.ready) {\n // send the request to the worker\n this.worker.send(request.message, request.transfer);\n } else {\n this.requestQueue.push(request);\n }\n\n // on cancellation, force the worker to terminate\n var me = this;\n return resolver.promise.catch(function (error) {\n if (error instanceof Promise.CancellationError || error instanceof Promise.TimeoutError) {\n // remove this task from the queue. It is already rejected (hence this\n // catch event), and else it will be rejected again when terminating\n delete me.processing[id];\n\n // terminate worker\n return me.terminateAndNotify(true)\n .then(function() {\n throw error;\n }, function(err) {\n throw err;\n });\n } else {\n throw error;\n }\n })\n};\n\n/**\n * Test whether the worker is processing any tasks or cleaning up before termination.\n * @return {boolean} Returns true if the worker is busy\n */\nWorkerHandler.prototype.busy = function () {\n return this.cleaning || Object.keys(this.processing).length > 0;\n};\n\n/**\n * Terminate the worker.\n * @param {boolean} [force=false] If false (default), the worker is terminated\n * after finishing all tasks currently in\n * progress. If true, the worker will be\n * terminated immediately.\n * @param {function} [callback=null] If provided, will be called when process terminates.\n */\nWorkerHandler.prototype.terminate = function (force, callback) {\n var me = this;\n if (force) {\n // cancel all tasks in progress\n for (var id in this.processing) {\n if (this.processing[id] !== undefined) {\n this.processing[id].resolver.reject(new Error('Worker terminated'));\n }\n }\n this.processing = Object.create(null);\n }\n\n if (typeof callback === 'function') {\n this.terminationHandler = callback;\n }\n if (!this.busy()) {\n // all tasks are finished. kill the worker\n var cleanup = function(err) {\n me.terminated = true;\n me.cleaning = false;\n if (me.worker != null && me.worker.removeAllListeners) {\n // removeAllListeners is only available for child_process\n me.worker.removeAllListeners('message');\n }\n me.worker = null;\n me.terminating = false;\n if (me.terminationHandler) {\n me.terminationHandler(err, me);\n } else if (err) {\n throw err;\n }\n }\n\n if (this.worker) {\n if (typeof this.worker.kill === 'function') {\n if (this.worker.killed) {\n cleanup(new Error('worker already killed!'));\n return;\n }\n\n // child process and worker threads\n var cleanExitTimeout = setTimeout(function() {\n if (me.worker) {\n me.worker.kill();\n }\n }, this.workerTerminateTimeout);\n\n this.worker.once('exit', function() {\n clearTimeout(cleanExitTimeout);\n if (me.worker) {\n me.worker.killed = true;\n }\n cleanup();\n });\n\n if (this.worker.ready) {\n this.worker.send(TERMINATE_METHOD_ID);\n } else {\n this.requestQueue.push({ message: TERMINATE_METHOD_ID });\n }\n\n // mark that the worker is cleaning up resources\n // to prevent new tasks from being executed\n this.cleaning = true;\n return;\n }\n else if (typeof this.worker.terminate === 'function') {\n this.worker.terminate(); // web worker\n this.worker.killed = true;\n }\n else {\n throw new Error('Failed to terminate worker');\n }\n }\n cleanup();\n }\n else {\n // we can't terminate immediately, there are still tasks being executed\n this.terminating = true;\n }\n};\n\n/**\n * Terminate the worker, returning a Promise that resolves when the termination has been done.\n * @param {boolean} [force=false] If false (default), the worker is terminated\n * after finishing all tasks currently in\n * progress. If true, the worker will be\n * terminated immediately.\n * @param {number} [timeout] If provided and non-zero, worker termination promise will be rejected\n * after timeout if worker process has not been terminated.\n * @return {Promise.<WorkerHandler, Error>}\n */\nWorkerHandler.prototype.terminateAndNotify = function (force, timeout) {\n var resolver = Promise.defer();\n if (timeout) {\n resolver.promise.timeout(timeout);\n }\n this.terminate(force, function(err, worker) {\n if (err) {\n resolver.reject(err);\n } else {\n resolver.resolve(worker);\n }\n });\n return resolver.promise;\n};\n\nmodule.exports = WorkerHandler;\nmodule.exports._tryRequireWorkerThreads = tryRequireWorkerThreads;\nmodule.exports._setupProcessWorker = setupProcessWorker;\nmodule.exports._setupBrowserWorker = setupBrowserWorker;\nmodule.exports._setupWorkerThreadWorker = setupWorkerThreadWorker;\nmodule.exports.ensureWorkerThreads = ensureWorkerThreads;\n","'use strict';\n\nvar MAX_PORTS = 65535;\nmodule.exports = DebugPortAllocator;\nfunction DebugPortAllocator() {\n this.ports = Object.create(null);\n this.length = 0;\n}\n\nDebugPortAllocator.prototype.nextAvailableStartingAt = function(starting) {\n while (this.ports[starting] === true) {\n starting++;\n }\n\n if (starting >= MAX_PORTS) {\n throw new Error('WorkerPool debug port limit reached: ' + starting + '>= ' + MAX_PORTS );\n }\n\n this.ports[starting] = true;\n this.length++;\n return starting;\n};\n\nDebugPortAllocator.prototype.releasePort = function(port) {\n delete this.ports[port];\n this.length--;\n};\n\n","var {Promise} = require('./Promise');\nvar WorkerHandler = require('./WorkerHandler');\nvar environment = require('./environment');\nvar DebugPortAllocator = require('./debug-port-allocator');\nvar DEBUG_PORT_ALLOCATOR = new DebugPortAllocator();\n/**\n * A pool to manage workers, which can be created using the function workerpool.pool.\n *\n * @param {String} [script] Optional worker script\n * @param {import('./types.js').WorkerPoolOptions} [options] See docs\n * @constructor\n */\nfunction Pool(script, options) {\n if (typeof script === 'string') {\n /** @readonly */\n this.script = script || null;\n }\n else {\n this.script = null;\n options = script;\n }\n\n /** @private */\n this.workers = []; // queue with all workers\n /** @private */\n this.tasks = []; // queue with tasks awaiting execution\n\n options = options || {};\n\n /** @readonly */\n this.forkArgs = Object.freeze(options.forkArgs || []);\n /** @readonly */\n this.forkOpts = Object.freeze(options.forkOpts || {});\n /** @readonly */\n this.workerOpts = Object.freeze(options.workerOpts || {});\n /** @readonly */\n this.workerThreadOpts = Object.freeze(options.workerThreadOpts || {})\n /** @private */\n this.debugPortStart = (options.debugPortStart || 43210);\n /** @readonly @deprecated */\n this.nodeWorker = options.nodeWorker;\n /** @readonly\n * @type {'auto' | 'web' | 'process' | 'thread'}\n */\n this.workerType = options.workerType || options.nodeWorker || 'auto'\n /** @readonly */\n this.maxQueueSize = options.maxQueueSize || Infinity;\n /** @readonly */\n this.workerTerminateTimeout = options.workerTerminateTimeout || 1000;\n\n /** @readonly */\n this.onCreateWorker = options.onCreateWorker || (() => null);\n /** @readonly */\n this.onTerminateWorker = options.onTerminateWorker || (() => null);\n\n /** @readonly */\n this.emitStdStreams = options.emitStdStreams || false\n\n // configuration\n if (options && 'maxWorkers' in options) {\n validateMaxWorkers(options.maxWorkers);\n /** @readonly */\n this.maxWorkers = options.maxWorkers;\n }\n else {\n this.maxWorkers = Math.max((environment.cpus || 4) - 1, 1);\n }\n\n if (options && 'minWorkers' in options) {\n if(options.minWorkers === 'max') {\n /** @readonly */\n this.minWorkers = this.maxWorkers;\n } else {\n validateMinWorkers(options.minWorkers);\n this.minWorkers = options.minWorkers;\n this.maxWorkers = Math.max(this.minWorkers, this.maxWorkers); // in case minWorkers is higher than maxWorkers\n }\n this._ensureMinWorkers();\n }\n\n /** @private */\n this._boundNext = this._next.bind(this);\n\n\n if (this.workerType === 'thread') {\n WorkerHandler.ensureWorkerThreads();\n }\n}\n\n\n/**\n * Execute a function on a worker.\n *\n * Example usage:\n *\n * var pool = new Pool()\n *\n * // call a function available on the worker\n * pool.exec('fibonacci', [6])\n *\n * // offload a function\n * function add(a, b) {\n * return a + b\n * };\n * pool.exec(add, [2, 4])\n * .then(function (result) {\n * console.log(result); // outputs 6\n * })\n * .catch(function(error) {\n * console.log(error);\n * });\n * @template { (...args: any[]) => any } T\n * @param {String | T} method Function name or function.\n * If `method` is a string, the corresponding\n * method on the worker will be executed\n * If `method` is a Function, the function\n * will be stringified and executed via the\n * workers built-in function `run(fn, args)`.\n * @param {Parameters<T> | null} [params] Function arguments applied when calling the function\n * @param {import('./types.js').ExecOptions} [options] Options\n * @return {Promise<ReturnType<T>>}\n */\nPool.prototype.exec = function (method, params, options) {\n // validate type of arguments\n if (params && !Array.isArray(params)) {\n throw new TypeError('Array expected as argument \"params\"');\n }\n\n if (typeof method === 'string') {\n var resolver = Promise.defer();\n\n if (this.tasks.length >= this.maxQueueSize) {\n throw new Error('Max queue size of ' + this.maxQueueSize + ' reached');\n }\n\n // add a new task to the queue\n var tasks = this.tasks;\n var task = {\n method: method,\n params: params,\n resolver: resolver,\n timeout: null,\n options: options\n };\n tasks.push(task);\n\n // replace the timeout method of the Promise with our own,\n // which starts the timer as soon as the task is actually started\n var originalTimeout = resolver.promise.timeout;\n resolver.promise.timeout = function timeout (delay) {\n if (tasks.indexOf(task) !== -1) {\n // task is still queued -> start the timer later on\n task.timeout = delay;\n return resolver.promise;\n }\n else {\n // task is already being executed -> start timer immediately\n return originalTimeout.call(resolver.promise, delay);\n }\n };\n\n // trigger task execution\n this._next();\n\n return resolver.promise;\n }\n else if (typeof method === 'function') {\n // send stringified function and function arguments to worker\n return this.exec('run', [String(method), params], options);\n }\n else {\n throw new TypeError('Function or string expected as argument \"method\"');\n }\n};\n\n/**\n * Create a proxy for current worker. Returns an object containing all\n * methods available on the worker. All methods return promises resolving the methods result.\n * @template { { [k: string]: (...args: any[]) => any } } T\n * @return {Promise<import('./types.js').Proxy<T>, Error>} Returns a promise which resolves with a proxy object\n */\nPool.prototype.proxy = function () {\n if (arguments.length > 0) {\n throw new Error('No arguments expected');\n }\n\n var pool = this;\n return this.exec('methods')\n .then(function (methods) {\n var proxy = {};\n\n methods.forEach(function (method) {\n proxy[method] = function () {\n return pool.exec(method, Array.prototype.slice.call(arguments));\n }\n });\n\n return proxy;\n });\n};\n\n/**\n * Creates new array with the results of calling a provided callback function\n * on every element in this array.\n * @param {Array} array\n * @param {function} callback Function taking two arguments:\n * `callback(currentValue, index)`\n * @return {Promise.<Array>} Returns a promise which resolves with an Array\n * containing the results of the callback function\n * executed for each of the array elements.\n */\n/* TODO: implement map\nPool.prototype.map = function (array, callback) {\n};\n*/\n\n/**\n * Grab the first task from the queue, find a free worker, and assign the\n * worker to the task.\n * @private\n */\nPool.prototype._next = function () {\n if (this.tasks.length > 0) {\n // there are tasks in the queue\n\n // find an available worker\n var worker = this._getWorker();\n if (worker) {\n // get the first task from the queue\n var me = this;\n var task = this.tasks.shift();\n\n // check if the task is still pending (and not cancelled -> promise rejected)\n if (task.resolver.promise.pending) {\n // send the request to the worker\n var promise = worker.exec(task.method, task.params, task.resolver, task.options)\n .then(me._boundNext)\n .catch(function () {\n // if the worker crashed and terminated, remove it from the pool\n if (worker.terminated) {\n return me._removeWorker(worker);\n }\n }).then(function() {\n me._next(); // trigger next task in the queue\n });\n\n // start queued timer now\n if (typeof task.timeout === 'number') {\n promise.timeout(task.timeout);\n }\n } else {\n // The task taken was already complete (either rejected or resolved), so just trigger next task in the queue\n me._next();\n }\n }\n }\n};\n\n/**\n * Get an available worker. If no worker is available and the maximum number\n * of workers isn't yet reached, a new worker will be created and returned.\n * If no worker is available and the maximum number of workers is reached,\n * null will be returned.\n *\n * @return {WorkerHandler | null} worker\n * @private\n */\nPool.prototype._getWorker = function() {\n // find a non-busy worker\n var workers = this.workers;\n for (var i = 0; i < workers.length; i++) {\n var worker = workers[i];\n if (worker.busy() === false) {\n return worker;\n }\n }\n\n if (workers.length < this.maxWorkers) {\n // create a new worker\n worker = this._createWorkerHandler();\n workers.push(worker);\n return worker;\n }\n\n return null;\n};\n\n/**\n * Remove a worker from the pool.\n * Attempts to terminate worker if not already terminated, and ensures the minimum\n * pool size is met.\n * @param {WorkerHandler} worker\n * @return {Promise<WorkerHandler>}\n * @private\n */\nPool.prototype._removeWorker = function(worker) {\n var me = this;\n\n DEBUG_PORT_ALLOCATOR.releasePort(worker.debugPort);\n // _removeWorker will call this, but we need it to be removed synchronously\n this._removeWorkerFromList(worker);\n // If minWorkers set, spin up new workers to replace the crashed ones\n this._ensureMinWorkers();\n // terminate the worker (if not already terminated)\n return new Promise(function(resolve, reject) {\n worker.terminate(false, function(err) {\n me.onTerminateWorker({\n forkArgs: worker.forkArgs,\n forkOpts: worker.forkOpts,\n workerThreadOpts: worker.workerThreadOpts,\n script: worker.script\n });\n if (err) {\n reject(err);\n } else {\n resolve(worker);\n }\n });\n });\n};\n\n/**\n * Remove a worker from the pool list.\n * @param {WorkerHandler} worker\n * @private\n */\nPool.prototype._removeWorkerFromList = function(worker) {\n // remove from the list with workers\n var index = this.workers.indexOf(worker);\n if (index !== -1) {\n this.workers.splice(index, 1);\n }\n};\n\n/**\n * Close all active workers. Tasks currently being executed will be finished first.\n * @param {boolean} [force=false] If false (default), the workers are terminated\n * after finishing all tasks currently in\n * progress. If true, the workers will be\n * terminated immediately.\n * @param {number} [timeout] If provided and non-zero, worker termination promise will be rejected\n * after timeout if worker process has not been terminated.\n * @return {Promise.<void, Error>}\n */\nPool.prototype.terminate = function (force, timeout) {\n var me = this;\n\n // cancel any pending tasks\n this.tasks.forEach(function (task) {\n task.resolver.reject(new Error('Pool terminated'));\n });\n this.tasks.length = 0;\n\n var f = function (worker) {\n DEBUG_PORT_ALLOCATOR.releasePort(worker.debugPort);\n this._removeWorkerFromList(worker);\n };\n var removeWorker = f.bind(this);\n\n var promises = [];\n var workers = this.workers.slice();\n workers.forEach(function (worker) {\n var termPromise = worker.terminateAndNotify(force, timeout)\n .then(removeWorker)\n .always(function() {\n me.onTerminateWorker({\n forkArgs: worker.forkArgs,\n forkOpts: worker.forkOpts,\n workerThreadOpts: worker.workerThreadOpts,\n script: worker.script\n });\n });\n promises.push(termPromise);\n });\n return Promise.all(promises);\n};\n\n/**\n * Retrieve statistics on tasks and workers.\n * @return {{totalWorkers: number, busyWorkers: number, idleWorkers: number, pendingTasks: number, activeTasks: number}} Returns an object with statistics\n */\nPool.prototype.stats = function () {\n var totalWorkers = this.workers.length;\n var busyWorkers = this.workers.filter(function (worker) {\n return worker.busy();\n }).length;\n\n return {\n totalWorkers: totalWorkers,\n busyWorkers: busyWorkers,\n idleWorkers: totalWorkers - busyWorkers,\n\n pendingTasks: this.tasks.length,\n activeTasks: busyWorkers\n };\n};\n\n/**\n * Ensures that a minimum of minWorkers is up and running\n * @private\n */\nPool.prototype._ensureMinWorkers = function() {\n if (this.minWorkers) {\n for(var i = this.workers.length; i < this.minWorkers; i++) {\n this.workers.push(this._createWorkerHandler());\n }\n }\n};\n\n/**\n * Helper function to create a new WorkerHandler and pass all options.\n * @return {WorkerHandler}\n * @private\n */\nPool.prototype._createWorkerHandler = function () {\n const overriddenParams = this.onCreateWorker({\n forkArgs: this.forkArgs,\n forkOpts: this.forkOpts,\n workerOpts: this.workerOpts,\n workerThreadOpts: this.workerThreadOpts,\n script: this.script\n }) || {};\n\n return new WorkerHandler(overriddenParams.script || this.script, {\n forkArgs: overriddenParams.forkArgs || this.forkArgs,\n forkOpts: overriddenParams.forkOpts || this.forkOpts,\n workerOpts: overriddenParams.workerOpts || this.workerOpts,\n workerThreadOpts: overriddenParams.workerThreadOpts || this.workerThreadOpts,\n debugPort: DEBUG_PORT_ALLOCATOR.nextAvailableStartingAt(this.debugPortStart),\n workerType: this.workerType,\n workerTerminateTimeout: this.workerTerminateTimeout,\n emitStdStreams: this.emitStdStreams,\n });\n}\n\n/**\n * Ensure that the maxWorkers option is an integer >= 1\n * @param {*} maxWorkers\n * @returns {boolean} returns true maxWorkers has a valid value\n */\nfunction validateMaxWorkers(maxWorkers) {\n if (!isNumber(maxWorkers) || !isInteger(maxWorkers) || maxWorkers < 1) {\n throw new TypeError('Option maxWorkers must be an integer number >= 1');\n }\n}\n\n/**\n * Ensure that the minWorkers option is an integer >= 0\n * @param {*} minWorkers\n * @returns {boolean} returns true when minWorkers has a valid value\n */\nfunction validateMinWorkers(minWorkers) {\n if (!isNumber(minWorkers) || !isInteger(minWorkers) || minWorkers < 0) {\n throw new TypeError('Option minWorkers must be an integer number >= 0');\n }\n}\n\n/**\n * Test whether a variable is a number\n * @param {*} value\n * @returns {boolean} returns true when value is a number\n */\nfunction isNumber(value) {\n return typeof value === 'number';\n}\n\n/**\n * Test whether a number is an integer\n * @param {number} value\n * @returns {boolean} Returns true if value is an integer\n */\nfunction isInteger(value) {\n return Math.round(value) == value;\n}\n\nmodule.exports = Pool;\n","/**\n * The helper class for transferring data from the worker to the main thread.\n *\n * @param {Object} message The object to deliver to the main thread.\n * @param {Object[]} transfer An array of transferable Objects to transfer ownership of.\n */\nfunction Transfer(message, transfer) {\n this.message = message;\n this.transfer = transfer;\n}\n\nmodule.exports = Transfer;\n","/**\n * worker must be started as a child process or a web worker.\n * It listens for RPC messages from the parent process.\n */\nvar Transfer = require('./transfer');\n\n/**\n * Special message sent by parent which causes the worker to terminate itself.\n * Not a \"message object\"; this string is the entire message.\n */\nvar TERMINATE_METHOD_ID = '__workerpool-terminate__';\n\n// var nodeOSPlatform = require('./environment').nodeOSPlatform;\n\n// create a worker API for sending and receiving messages which works both on\n// node.js and in the browser\nvar worker = {\n exit: function() {}\n};\nif (typeof self !== 'undefined' && typeof postMessage === 'function' && typeof addEventListener === 'function') {\n // worker in the browser\n worker.on = function (event, callback) {\n addEventListener(event, function (message) {\n callback(message.data);\n })\n };\n worker.send = function (message) {\n postMessage(message);\n };\n}\nelse if (typeof process !== 'undefined') {\n // node.js\n\n var WorkerThreads;\n try {\n WorkerThreads = require('worker_threads');\n } catch(error) {\n if (typeof error === 'object' && error !== null && error.code === 'MODULE_NOT_FOUND') {\n // no worker_threads, fallback to sub-process based workers\n } else {\n throw error;\n }\n }\n\n if (WorkerThreads &&\n /* if there is a parentPort, we are in a WorkerThread */\n WorkerThreads.parentPort !== null) {\n var parentPort = WorkerThreads.parentPort;\n worker.send = parentPort.postMessage.bind(parentPort);\n worker.on = parentPort.on.bind(parentPort);\n worker.exit = process.exit.bind(process);\n } else {\n worker.on = process.on.bind(process);\n // ignore transfer argument since it is not supported by process\n worker.send = function (message) {\n process.send(message);\n };\n // register disconnect handler only for subprocess worker to exit when parent is killed unexpectedly\n worker.on('disconnect', function () {\n process.exit(1);\n });\n worker.exit = process.exit.bind(process);\n }\n}\nelse {\n throw new Error('Script must be executed as a worker');\n}\n\nfunction convertError(error) {\n return Object.getOwnPropertyNames(error).reduce(function(product, name) {\n return Object.defineProperty(product, name, {\n\tvalue: error[name],\n\tenumerable: true\n });\n }, {});\n}\n\n/**\n * Test whether a value is a Promise via duck typing.\n * @param {*} value\n * @returns {boolean} Returns true when given value is an object\n * having functions `then` and `catch`.\n */\nfunction isPromise(value) {\n return value && (typeof value.then === 'function') && (typeof value.catch === 'function');\n}\n\n// functions available externally\nworker.methods = {};\n\n/**\n * Execute a function with provided arguments\n * @param {String} fn Stringified function\n * @param {Array} [args] Function arguments\n * @returns {*}\n */\nworker.methods.run = function run(fn, args) {\n var f = new Function('return (' + fn + ').apply(null, arguments);');\n return f.apply(f, args);\n};\n\n/**\n * Get a list with methods available on this worker\n * @return {String[]} methods\n */\nworker.methods.methods = function methods() {\n return Object.keys(worker.methods);\n};\n\n/**\n * Custom handler for when the worker is terminated.\n */\nworker.terminationHandler = undefined;\n\n/**\n * Cleanup and exit the worker.\n * @param {Number} code \n * @returns \n */\nworker.cleanupAndExit = function(code) {\n var _exit = function() {\n worker.exit(code);\n }\n\n if(!worker.terminationHandler) {\n return _exit();\n }\n\n var result = worker.terminationHandler(code);\n if (isPromise(result)) {\n result.then(_exit, _exit);\n } else {\n _exit();\n }\n}\n\nvar currentRequestId = null;\n\nworker.on('message', function (request) {\n if (request === TERMINATE_METHOD_ID) {\n return worker.cleanupAndExit(0);\n }\n try {\n var method = worker.methods[request.method];\n\n if (method) {\n currentRequestId = request.id;\n \n // execute the function\n var result = method.apply(method, request.params);\n\n if (isPromise(result)) {\n // promise returned, resolve this and then return\n result\n .then(function (result) {\n if (result instanceof Transfer) {\n worker.send({\n id: request.id,\n result: result.message,\n error: null\n }, result.transfer);\n } else {\n worker.send({\n id: request.id,\n result: result,\n error: null\n });\n }\n currentRequestId = null;\n })\n .catch(function (err) {\n worker.send({\n id: request.id,\n result: null,\n error: convertError(err)\n });\n currentRequestId = null;\n });\n }\n else {\n // immediate result\n if (result instanceof Transfer) {\n worker.send({\n id: request.id,\n result: result.message,\n error: null\n }, result.transfer);\n } else {\n worker.send({\n id: request.id,\n result: result,\n error: null\n });\n }\n\n currentRequestId = null;\n }\n }\n else {\n throw new Error('Unknown method \"' + request.method + '\"');\n }\n }\n catch (err) {\n worker.send({\n id: request.id,\n result: null,\n error: convertError(err)\n });\n }\n});\n\n/**\n * Register methods to the worker\n * @param {Object} [methods]\n * @param {import('./types.js').WorkerRegisterOptions} [options]\n */\nworker.register = function (methods, options) {\n\n if (methods) {\n for (var name in methods) {\n if (methods.hasOwnProperty(name)) {\n worker.methods[name] = methods[name];\n }\n }\n }\n\n if (options) {\n worker.terminationHandler = options.onTerminate;\n }\n\n worker.send('ready');\n};\n\nworker.emit = function (payload) {\n if (currentRequestId) {\n if (payload instanceof Transfer) {\n worker.send({\n id: currentRequestId,\n isEvent: true,\n payload: payload.message\n }, payload.transfer);\n return;\n }\n\n worker.send({\n id: currentRequestId,\n isEvent: true,\n payload\n });\n }\n};\n\nif (typeof exports !== 'undefined') {\n exports.add = worker.register;\n exports.emit = worker.emit;\n}\n","const {platform, isMainThread, cpus} = require('./environment');\n\n/** @typedef {import(\"./Pool\")} Pool */\n/** @typedef {import(\"./types.js\").WorkerPoolOptions} WorkerPoolOptions */\n/** @typedef {import(\"./types.js\").WorkerRegisterOptions} WorkerRegisterOptions */\n\n/**\n * @template { { [k: string]: (...args: any[]) => any } } T\n * @typedef {import('./types.js').Proxy<T>} Proxy<T>\n */\n\n/**\n * @overload\n * Create a new worker pool\n * @param {WorkerPoolOptions} [script]\n * @returns {Pool} pool\n */\n/**\n * @overload\n * Create a new worker pool\n * @param {string} [script]\n * @param {WorkerPoolOptions} [options]\n * @returns {Pool} pool\n */\nfunction pool(script, options) {\n var Pool = require('./Pool');\n\n return new Pool(script, options);\n};\nexports.pool = pool;\n\n/**\n * Create a worker and optionally register a set of methods to the worker.\n * @param {{ [k: string]: (...args: any[]) => any }} [methods]\n * @param {WorkerRegisterOptions} [options]\n */\nfunction worker(methods, options) {\n var worker = require('./worker');\n worker.add(methods, options);\n};\nexports.worker = worker;\n\n/**\n * Sends an event to the parent worker pool.\n * @param {any} payload \n */\nfunction workerEmit(payload) {\n var worker = require('./worker');\n worker.emit(payload);\n};\nexports.workerEmit = workerEmit;\n\nconst {Promise} = require('./Promise');\nexports.Promise = Promise;\n\nexports.Transfer = require('./transfer');\n\nexports.platform = platform;\nexports.isMainThread = isMainThread;\nexports.cpus = cpus;\n"],"names":["isNode","nodeProcess","versions","node","module","exports","platform","process","worker_threads","require","isMainThread","connected","Window","cpus","self","navigator","hardwareConcurrency","length","Promise","handler","parent","me","SyntaxError","_onSuccess","_onFail","resolved","rejected","pending","_process","onSuccess","onFail","push","then","resolve","reject","s","_then","f","_resolve","result","forEach","fn","_reject","error","cancel","CancellationError","timeout","delay","timer","setTimeout","TimeoutError","always","clearTimeout","callback","res","prototype","all","promises","remaining","results","p","i","defer","resolver","promise","message","stack","Error","constructor","name","_Promise","validateOptions","options","allowedOptionNames","objectName","optionNames","Object","keys","unknownOptionName","find","optionName","includes","illegalOptionName","allowedOptionName","workerOptsNames","forkOptsNames","workerThreadOptsNames","embeddedWorker","require$$0","environment","require$$1","require$$2","TERMINATE_METHOD_ID","ensureWorkerThreads","WorkerThreads","tryRequireWorkerThreads","ensureWebWorker","Worker","code","getDefaultWorker","Blob","window","URL","createObjectURL","blob","require$$3","type","__dirname","setupWorker","script","workerType","setupBrowserWorker","workerOpts","setupWorkerThreadWorker","setupProcessWorker","resolveForkOptions","worker","isBrowserWorker","on","event","addEventListener","data","send","transfer","postMessage","workerThreadOpts","stdout","emitStdStreams","stderr","isWorkerThread","kill","terminate","disconnect","emit","child_process","forkOpts","fork","forkArgs","call","isChildProcess","opts","processExecArgv","execArgv","join","inspectorActive","indexOf","debugBrk","debugPort","arg","assign","concat","stdio","undefined","objectToError","obj","temp","props","handleEmittedStdPayload","payload","processing","task","values","WorkerHandler","_options","workerTerminateTimeout","ready","requestQueue","toString","response","terminated","dispatchQueuedRequests","id","isEvent","terminating","onError","create","request","splice","exitCode","signalCode","spawnargs","spawnfile","cleaning","terminationHandler","lastId","methods","exec","method","params","catch","terminateAndNotify","err","busy","force","cleanup","removeAllListeners","killed","cleanExitTimeout","once","WorkerHandlerModule","_tryRequireWorkerThreads","_setupProcessWorker","_setupBrowserWorker","_setupWorkerThreadWorker","MAX_PORTS","debugPortAllocator","DebugPortAllocator","ports","nextAvailableStartingAt","starting","releasePort","port","DEBUG_PORT_ALLOCATOR","Pool","workers","tasks","freeze","debugPortStart","nodeWorker","maxQueueSize","Infinity","onCreateWorker","onTerminateWorker","validateMaxWorkers","maxWorkers","Math","max","minWorkers","validateMinWorkers","_ensureMinWorkers","_boundNext","_next","bind","Array","isArray","TypeError","originalTimeout","String","proxy","arguments","pool","slice","_getWorker","shift","_removeWorker","_createWorkerHandler","_removeWorkerFromList","index","removeWorker","termPromise","stats","totalWorkers","busyWorkers","filter","idleWorkers","pendingTasks","activeTasks","overriddenParams","isNumber","isInteger","value","round","Pool_1","Transfer","exit","parentPort","convertError","getOwnPropertyNames","reduce","product","defineProperty","enumerable","isPromise","run","args","Function","apply","cleanupAndExit","_exit","currentRequestId","register","hasOwnProperty","onTerminate","add","pool_1","src","worker_1","workerEmit","workerEmit_1","require$$4","platform_1","isMainThread_1","cpus_1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACA;EACA;EACA,EAAA,IAAIA,MAAM,GAAG,UAAUC,WAAW,EAAE;MAClC,OACE,OAAOA,WAAW,KAAK,WAAW,IAClCA,WAAW,CAACC,QAAQ,IAAI,IAAI,IAC5BD,WAAW,CAACC,QAAQ,CAACC,IAAI,IAAI,IAAI,IACjCF,WAAW,GAAG,EAAE,KAAK,kBAAkB,CAAA;KAE1C,CAAA;EACDG,EAAAA,MAAA,CAAAC,OAAA,CAAAL,MAAA,GAAwBA,MAAM,CAAA;;EAE9B;EACAI,EAAAA,MAA0B,CAAAC,OAAA,CAAAC,QAAA,GAAA,OAAOC,OAAO,KAAK,WAAW,IAAIP,MAAM,CAACO,OAAO,CAAC,GACvE,MAAM,GACN,SAAS,CAAA;;EAEb;EACA;EACA,EAAA,IAAIC,cAAc,GAAGJ,MAAM,CAACC,OAAO,CAACC,QAAQ,KAAK,MAAM,IAAIG,OAAQ,CAAA,gBAAgB,CAAC,CAAA;EACpFL,EAAAA,MAAA,CAAAC,OAAA,CAAAK,YAAA,GAA8BN,MAAM,CAACC,OAAO,CAACC,QAAQ,KAAK,MAAM,GAC3D,CAAC,CAACE,cAAc,IAAIA,cAAc,CAACE,YAAY,KAAK,CAACH,OAAO,CAACI,SAAS,GACvE,OAAOC,MAAM,KAAK,WAAW,CAAA;;EAEjC;EACAR,EAAAA,MAAA,CAAAC,OAAA,CAAAQ,IAAA,GAAsBT,MAAM,CAACC,OAAO,CAACC,QAAQ,KAAK,SAAS,GACvDQ,IAAI,CAACC,SAAS,CAACC,mBAAmB,GACl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workerpool.min.js.LICENSE.txt */
2
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).workerpool={})}(this,(function(e){"use strict";var r={},t={exports:{}};!function(e){var r=function(e){return void 0!==e&&null!=e.versions&&null!=e.versions.node&&e+""=="[object process]"};e.exports.isNode=r,e.exports.platform="undefined"!=typeof process&&r(process)?"node":"browser";var t="node"===e.exports.platform&&require("worker_threads");e.exports.isMainThread="node"===e.exports.platform?(!t||t.isMainThread)&&!process.connected:"undefined"!=typeof Window,e.exports.cpus="browser"===e.exports.platform?self.navigator.hardwareConcurrency:require("os").cpus().length}(t);var n,o=t.exports,i={};function s(){if(n)return i;function e(n,i){var s=this;if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");if("function"!=typeof n)throw new SyntaxError("Function parameter handler(resolve, reject) missing");var a=[],u=[];this.resolved=!1,this.rejected=!1,this.pending=!0;var c=function(e,r){a.push(e),u.push(r)};this.then=function(t,n){return new e((function(e,o){var i=t?r(t,e,o):e,s=n?r(n,e,o):o;c(i,s)}),s)};var f=function(e){return s.resolved=!0,s.rejected=!1,s.pending=!1,a.forEach((function(r){r(e)})),c=function(r,t){r(e)},f=d=function(){},s},d=function(e){return s.resolved=!1,s.rejected=!0,s.pending=!1,u.forEach((function(r){r(e)})),c=function(r,t){t(e)},f=d=function(){},s};this.cancel=function(){return i?i.cancel():d(new t),s},this.timeout=function(e){if(i)i.timeout(e);else{var r=setTimeout((function(){d(new o("Promise timed out after "+e+" ms"))}),e);s.always((function(){clearTimeout(r)}))}return s},n((function(e){f(e)}),(function(e){d(e)}))}function r(e,r,t){return function(n){try{var o=e(n);o&&"function"==typeof o.then&&"function"==typeof o.catch?o.then(r,t):r(o)}catch(e){t(e)}}}function t(e){this.message=e||"promise cancelled",this.stack=(new Error).stack}function o(e){this.message=e||"timeout exceeded",this.stack=(new Error).stack}return n=1,e.prototype.catch=function(e){return this.then(null,e)},e.prototype.always=function(e){return this.then(e,e)},e.all=function(r){return new e((function(e,t){var n=r.length,o=[];n?r.forEach((function(r,i){r.then((function(r){o[i]=r,0==--n&&e(o)}),(function(e){n=0,t(e)}))})):e(o)}))},e.defer=function(){var r={};return r.promise=new e((function(e,t){r.resolve=e,r.reject=t})),r},t.prototype=new Error,t.prototype.constructor=Error,t.prototype.name="CancellationError",e.CancellationError=t,o.prototype=new Error,o.prototype.constructor=Error,o.prototype.name="TimeoutError",e.TimeoutError=o,i.Promise=e,i}var a,u,c,f,d,p,h,l,m={exports:{}},k={};function w(){return a||(a=1,k.validateOptions=function(e,r,t){if(e){var n=e?Object.keys(e):[],o=n.find((e=>!r.includes(e)));if(o)throw new Error('Object "'+t+'" contains an unknown option "'+o+'"');var i=r.find((e=>Object.prototype[e]&&!n.includes(e)));if(i)throw new Error('Object "'+t+'" contains an inherited option "'+i+'" which is not defined in the object itself but in its prototype. Only plain objects are allowed. Please remove the option from the prototype or override it with a value "undefined".');return e}},k.workerOptsNames=["credentials","name","type"],k.forkOptsNames=["cwd","detached","env","execPath","execArgv","gid","serialization","signal","killSignal","silent","stdio","uid","windowsVerbatimArguments","timeout"],k.workerThreadOptsNames=["argv","env","eval","execArgv","stdin","stdout","stderr","workerData","trackUnmanagedFds","transferList","resourceLimits","name"]),k}function v(){if(f)return m.exports;f=1;var{Promise:e}=s(),r=o;const{validateOptions:t,forkOptsNames:n,workerThreadOptsNames:i,workerOptsNames:a}=w();var d="__workerpool-terminate__";function p(){var e=l();if(!e)throw new Error("WorkerPool: workerType = 'thread' is not supported, Node >= 11.7.0 required");return e}function h(){if("function"!=typeof Worker&&("object"!=typeof Worker||"function"!=typeof Worker.prototype.constructor))throw new Error("WorkerPool: Web Workers not supported")}function l(){try{return require("worker_threads")}catch(e){if("object"==typeof e&&null!==e&&"MODULE_NOT_FOUND"===e.code)return null;throw e}}function k(e,r,n){t(r,a,"workerOpts");var o=new n(e,r);return o.isBrowserWorker=!0,o.on=function(e,r){this.addEventListener(e,(function(e){r(e.data)}))},o.send=function(e,r){this.postMessage(e,r)},o}function v(e,r,n){t(n?.workerThreadOpts,i,"workerThreadOpts");var o=new r.Worker(e,{stdout:n?.emitStdStreams??!1,stderr:n?.emitStdStreams??!1,...n?.workerThreadOpts});return o.isWorkerThread=!0,o.send=function(e,r){this.postMessage(e,r)},o.kill=function(){return this.terminate(),!0},o.disconnect=function(){this.terminate()},n?.emitStdStreams&&(o.stdout.on("data",(e=>o.emit("stdout",e))),o.stderr.on("data",(e=>o.emit("stderr",e)))),o}function y(e,r,o){t(r.forkOpts,n,"forkOpts");var i=o.fork(e,r.forkArgs,r.forkOpts),s=i.send;return i.send=function(e){return s.call(i,e)},r.emitStdStreams&&(i.stdout.on("data",(e=>i.emit("stdout",e))),i.stderr.on("data",(e=>i.emit("stderr",e)))),i.isChildProcess=!0,i}function g(e){e=e||{};var r=process.execArgv.join(" "),t=-1!==r.indexOf("--inspect"),n=-1!==r.indexOf("--debug-brk"),o=[];return t&&(o.push("--inspect="+e.debugPort),n&&o.push("--debug-brk")),process.execArgv.forEach((function(e){e.indexOf("--max-old-space-size")>-1&&o.push(e)})),Object.assign({},e,{forkArgs:e.forkArgs,forkOpts:Object.assign({},e.forkOpts,{execArgv:(e.forkOpts&&e.forkOpts.execArgv||[]).concat(o),stdio:e.emitStdStreams?"pipe":void 0})})}function O(e,r){if(1===Object.keys(e.processing).length){var t=Object.values(e.processing)[0];t.options&&"function"==typeof t.options.on&&t.options.on(r)}}function b(e,t){var n=this,o=t||{};function i(e){for(var r in n.terminated=!0,n.processing)void 0!==n.processing[r]&&n.processing[r].resolver.reject(e);n.processing=Object.create(null)}this.script=e||function(){if("browser"===r.platform){if("undefined"==typeof Blob)throw new Error("Blob not supported by the browser");if(!window.URL||"function"!=typeof window.URL.createObjectURL)throw new Error("URL.createObjectURL not supported by the browser");var e=new Blob([c?u:(c=1,u='!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).worker=n()}(this,(function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={};var t=function(e,n){this.message=e,this.transfer=n};return function(e){var n=t,r={exit:function(){}};if("undefined"!=typeof self&&"function"==typeof postMessage&&"function"==typeof addEventListener)r.on=function(e,n){addEventListener(e,(function(e){n(e.data)}))},r.send=function(e){postMessage(e)};else{if("undefined"==typeof process)throw new Error("Script must be executed as a worker");var o;try{o=require("worker_threads")}catch(e){if("object"!=typeof e||null===e||"MODULE_NOT_FOUND"!==e.code)throw e}if(o&&null!==o.parentPort){var i=o.parentPort;r.send=i.postMessage.bind(i),r.on=i.on.bind(i),r.exit=process.exit.bind(process)}else r.on=process.on.bind(process),r.send=function(e){process.send(e)},r.on("disconnect",(function(){process.exit(1)})),r.exit=process.exit.bind(process)}function s(e){return Object.getOwnPropertyNames(e).reduce((function(n,t){return Object.defineProperty(n,t,{value:e[t],enumerable:!0})}),{})}function d(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}r.methods={},r.methods.run=function(e,n){var t=new Function("return ("+e+").apply(null, arguments);");return t.apply(t,n)},r.methods.methods=function(){return Object.keys(r.methods)},r.terminationHandler=void 0,r.cleanupAndExit=function(e){var n=function(){r.exit(e)};if(!r.terminationHandler)return n();var t=r.terminationHandler(e);d(t)?t.then(n,n):n()};var u=null;r.on("message",(function(e){if("__workerpool-terminate__"===e)return r.cleanupAndExit(0);try{var t=r.methods[e.method];if(!t)throw new Error(\'Unknown method "\'+e.method+\'"\');u=e.id;var o=t.apply(t,e.params);d(o)?o.then((function(t){t instanceof n?r.send({id:e.id,result:t.message,error:null},t.transfer):r.send({id:e.id,result:t,error:null}),u=null})).catch((function(n){r.send({id:e.id,result:null,error:s(n)}),u=null})):(o instanceof n?r.send({id:e.id,result:o.message,error:null},o.transfer):r.send({id:e.id,result:o,error:null}),u=null)}catch(n){r.send({id:e.id,result:null,error:s(n)})}})),r.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(r.methods[t]=e[t]);n&&(r.terminationHandler=n.onTerminate),r.send("ready")},r.emit=function(e){if(u){if(e instanceof n)return void r.send({id:u,isEvent:!0,payload:e.message},e.transfer);r.send({id:u,isEvent:!0,payload:e})}},e.add=r.register,e.emit=r.emit}(n),e(n)}));\n//# sourceMappingURL=worker.min.js.map\n')],{type:"text/javascript"});return window.URL.createObjectURL(e)}return __dirname+"/worker.js"}(),this.worker=function(e,t){if("web"===t.workerType)return h(),k(e,t.workerOpts,Worker);if("thread"===t.workerType)return v(e,n=p(),t);if("process"!==t.workerType&&t.workerType){if("browser"===r.platform)return h(),k(e,t.workerOpts,Worker);var n=l();return n?v(e,n,t):y(e,g(t),require("child_process"))}return y(e,g(t),require("child_process"))}(this.script,o),this.debugPort=o.debugPort,this.forkOpts=o.forkOpts,this.forkArgs=o.forkArgs,this.workerOpts=o.workerOpts,this.workerThreadOpts=o.workerThreadOpts,this.workerTerminateTimeout=o.workerTerminateTimeout,e||(this.worker.ready=!0),this.requestQueue=[],this.worker.on("stdout",(function(e){O(n,{stdout:e.toString()})})),this.worker.on("stderr",(function(e){O(n,{stderr:e.toString()})})),this.worker.on("message",(function(e){if(!n.terminated)if("string"==typeof e&&"ready"===e)n.worker.ready=!0,function(){for(const e of n.requestQueue.splice(0))n.worker.send(e.message,e.transfer)}();else{var r=e.id,t=n.processing[r];void 0!==t&&(e.isEvent?t.options&&"function"==typeof t.options.on&&t.options.on(e.payload):(delete n.processing[r],!0===n.terminating&&n.terminate(),e.error?t.resolver.reject(function(e){for(var r=new Error(""),t=Object.keys(e),n=0;n<t.length;n++)r[t[n]]=e[t[n]];return r}(e.error)):t.resolver.resolve(e.result)))}}));var s=this.worker;this.worker.on("error",i),this.worker.on("exit",(function(e,r){var t="Workerpool Worker terminated Unexpectedly\n";t+=" exitCode: `"+e+"`\n",t+=" signalCode: `"+r+"`\n",t+=" workerpool.script: `"+n.script+"`\n",t+=" spawnArgs: `"+s.spawnargs+"`\n",t+=" spawnfile: `"+s.spawnfile+"`\n",t+=" stdout: `"+s.stdout+"`\n",t+=" stderr: `"+s.stderr+"`\n",i(new Error(t))})),this.processing=Object.create(null),this.terminating=!1,this.terminated=!1,this.cleaning=!1,this.terminationHandler=null,this.lastId=0}return b.prototype.methods=function(){return this.exec("methods")},b.prototype.exec=function(r,t,n,o){n||(n=e.defer());var i=++this.lastId;this.processing[i]={id:i,resolver:n,options:o};var s={message:{id:i,method:r,params:t},transfer:o&&o.transfer};this.terminated?n.reject(new Error("Worker is terminated")):this.worker.ready?this.worker.send(s.message,s.transfer):this.requestQueue.push(s);var a=this;return n.promise.catch((function(r){if(r instanceof e.CancellationError||r instanceof e.TimeoutError)return delete a.processing[i],a.terminateAndNotify(!0).then((function(){throw r}),(function(e){throw e}));throw r}))},b.prototype.busy=function(){return this.cleaning||Object.keys(this.processing).length>0},b.prototype.terminate=function(e,r){var t=this;if(e){for(var n in this.processing)void 0!==this.processing[n]&&this.processing[n].resolver.reject(new Error("Worker terminated"));this.processing=Object.create(null)}if("function"==typeof r&&(this.terminationHandler=r),this.busy())this.terminating=!0;else{var o=function(e){if(t.terminated=!0,t.cleaning=!1,null!=t.worker&&t.worker.removeAllListeners&&t.worker.removeAllListeners("message"),t.worker=null,t.terminating=!1,t.terminationHandler)t.terminationHandler(e,t);else if(e)throw e};if(this.worker){if("function"==typeof this.worker.kill){if(this.worker.killed)return void o(new Error("worker already killed!"));var i=setTimeout((function(){t.worker&&t.worker.kill()}),this.workerTerminateTimeout);return this.worker.once("exit",(function(){clearTimeout(i),t.worker&&(t.worker.killed=!0),o()})),this.worker.ready?this.worker.send(d):this.requestQueue.push({message:d}),void(this.cleaning=!0)}if("function"!=typeof this.worker.terminate)throw new Error("Failed to terminate worker");this.worker.terminate(),this.worker.killed=!0}o()}},b.prototype.terminateAndNotify=function(r,t){var n=e.defer();return t&&n.promise.timeout(t),this.terminate(r,(function(e,r){e?n.reject(e):n.resolve(r)})),n.promise},m.exports=b,m.exports._tryRequireWorkerThreads=l,m.exports._setupProcessWorker=y,m.exports._setupBrowserWorker=k,m.exports._setupWorkerThreadWorker=v,m.exports.ensureWorkerThreads=p,m.exports}function y(){if(l)return h;l=1;var{Promise:e}=s(),r=v(),t=o,n=new(function(){if(p)return d;function e(){this.ports=Object.create(null),this.length=0}return p=1,d=e,e.prototype.nextAvailableStartingAt=function(e){for(;!0===this.ports[e];)e++;if(e>=65535)throw new Error("WorkerPool debug port limit reached: "+e+">= 65535");return this.ports[e]=!0,this.length++,e},e.prototype.releasePort=function(e){delete this.ports[e],this.length--},d}());function i(e,n){"string"==typeof e?this.script=e||null:(this.script=null,n=e),this.workers=[],this.tasks=[],n=n||{},this.forkArgs=Object.freeze(n.forkArgs||[]),this.forkOpts=Object.freeze(n.forkOpts||{}),this.workerOpts=Object.freeze(n.workerOpts||{}),this.workerThreadOpts=Object.freeze(n.workerThreadOpts||{}),this.debugPortStart=n.debugPortStart||43210,this.nodeWorker=n.nodeWorker,this.workerType=n.workerType||n.nodeWorker||"auto",this.maxQueueSize=n.maxQueueSize||1/0,this.workerTerminateTimeout=n.workerTerminateTimeout||1e3,this.onCreateWorker=n.onCreateWorker||(()=>null),this.onTerminateWorker=n.onTerminateWorker||(()=>null),this.emitStdStreams=n.emitStdStreams||!1,n&&"maxWorkers"in n?(!function(e){if(!a(e)||!u(e)||e<1)throw new TypeError("Option maxWorkers must be an integer number >= 1")}(n.maxWorkers),this.maxWorkers=n.maxWorkers):this.maxWorkers=Math.max((t.cpus||4)-1,1),n&&"minWorkers"in n&&("max"===n.minWorkers?this.minWorkers=this.maxWorkers:(!function(e){if(!a(e)||!u(e)||e<0)throw new TypeError("Option minWorkers must be an integer number >= 0")}(n.minWorkers),this.minWorkers=n.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),"thread"===this.workerType&&r.ensureWorkerThreads()}function a(e){return"number"==typeof e}function u(e){return Math.round(e)==e}return i.prototype.exec=function(r,t,n){if(t&&!Array.isArray(t))throw new TypeError('Array expected as argument "params"');if("string"==typeof r){var o=e.defer();if(this.tasks.length>=this.maxQueueSize)throw new Error("Max queue size of "+this.maxQueueSize+" reached");var i=this.tasks,s={method:r,params:t,resolver:o,timeout:null,options:n};i.push(s);var a=o.promise.timeout;return o.promise.timeout=function(e){return-1!==i.indexOf(s)?(s.timeout=e,o.promise):a.call(o.promise,e)},this._next(),o.promise}if("function"==typeof r)return this.exec("run",[String(r),t],n);throw new TypeError('Function or string expected as argument "method"')},i.prototype.proxy=function(){if(arguments.length>0)throw new Error("No arguments expected");var e=this;return this.exec("methods").then((function(r){var t={};return r.forEach((function(r){t[r]=function(){return e.exec(r,Array.prototype.slice.call(arguments))}})),t}))},i.prototype._next=function(){if(this.tasks.length>0){var e=this._getWorker();if(e){var r=this,t=this.tasks.shift();if(t.resolver.promise.pending){var n=e.exec(t.method,t.params,t.resolver,t.options).then(r._boundNext).catch((function(){if(e.terminated)return r._removeWorker(e)})).then((function(){r._next()}));"number"==typeof t.timeout&&n.timeout(t.timeout)}else r._next()}}},i.prototype._getWorker=function(){for(var e=this.workers,r=0;r<e.length;r++){var t=e[r];if(!1===t.busy())return t}return e.length<this.maxWorkers?(t=this._createWorkerHandler(),e.push(t),t):null},i.prototype._removeWorker=function(r){var t=this;return n.releasePort(r.debugPort),this._removeWorkerFromList(r),this._ensureMinWorkers(),new e((function(e,n){r.terminate(!1,(function(o){t.onTerminateWorker({forkArgs:r.forkArgs,forkOpts:r.forkOpts,workerThreadOpts:r.workerThreadOpts,script:r.script}),o?n(o):e(r)}))}))},i.prototype._removeWorkerFromList=function(e){var r=this.workers.indexOf(e);-1!==r&&this.workers.splice(r,1)},i.prototype.terminate=function(r,t){var o=this;this.tasks.forEach((function(e){e.resolver.reject(new Error("Pool terminated"))})),this.tasks.length=0;var i=function(e){n.releasePort(e.debugPort),this._removeWorkerFromList(e)}.bind(this),s=[];return this.workers.slice().forEach((function(e){var n=e.terminateAndNotify(r,t).then(i).always((function(){o.onTerminateWorker({forkArgs:e.forkArgs,forkOpts:e.forkOpts,workerThreadOpts:e.workerThreadOpts,script:e.script})}));s.push(n)})),e.all(s)},i.prototype.stats=function(){var e=this.workers.length,r=this.workers.filter((function(e){return e.busy()})).length;return{totalWorkers:e,busyWorkers:r,idleWorkers:e-r,pendingTasks:this.tasks.length,activeTasks:r}},i.prototype._ensureMinWorkers=function(){if(this.minWorkers)for(var e=this.workers.length;e<this.minWorkers;e++)this.workers.push(this._createWorkerHandler())},i.prototype._createWorkerHandler=function(){const e=this.onCreateWorker({forkArgs:this.forkArgs,forkOpts:this.forkOpts,workerOpts:this.workerOpts,workerThreadOpts:this.workerThreadOpts,script:this.script})||{};return new r(e.script||this.script,{forkArgs:e.forkArgs||this.forkArgs,forkOpts:e.forkOpts||this.forkOpts,workerOpts:e.workerOpts||this.workerOpts,workerThreadOpts:e.workerThreadOpts||this.workerThreadOpts,debugPort:n.nextAvailableStartingAt(this.debugPortStart),workerType:this.workerType,workerTerminateTimeout:this.workerTerminateTimeout,emitStdStreams:this.emitStdStreams})},h=i}var g,O,b,x={};function T(){if(O)return g;return O=1,g=function(e,r){this.message=e,this.transfer=r}}function W(){return b||(b=1,function(e){var r=T(),t={exit:function(){}};if("undefined"!=typeof self&&"function"==typeof postMessage&&"function"==typeof addEventListener)t.on=function(e,r){addEventListener(e,(function(e){r(e.data)}))},t.send=function(e){postMessage(e)};else{if("undefined"==typeof process)throw new Error("Script must be executed as a worker");var n;try{n=require("worker_threads")}catch(e){if("object"!=typeof e||null===e||"MODULE_NOT_FOUND"!==e.code)throw e}if(n&&null!==n.parentPort){var o=n.parentPort;t.send=o.postMessage.bind(o),t.on=o.on.bind(o),t.exit=process.exit.bind(process)}else t.on=process.on.bind(process),t.send=function(e){process.send(e)},t.on("disconnect",(function(){process.exit(1)})),t.exit=process.exit.bind(process)}function i(e){return Object.getOwnPropertyNames(e).reduce((function(r,t){return Object.defineProperty(r,t,{value:e[t],enumerable:!0})}),{})}function s(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}t.methods={},t.methods.run=function(e,r){var t=new Function("return ("+e+").apply(null, arguments);");return t.apply(t,r)},t.methods.methods=function(){return Object.keys(t.methods)},t.terminationHandler=void 0,t.cleanupAndExit=function(e){var r=function(){t.exit(e)};if(!t.terminationHandler)return r();var n=t.terminationHandler(e);s(n)?n.then(r,r):r()};var a=null;t.on("message",(function(e){if("__workerpool-terminate__"===e)return t.cleanupAndExit(0);try{var n=t.methods[e.method];if(!n)throw new Error('Unknown method "'+e.method+'"');a=e.id;var o=n.apply(n,e.params);s(o)?o.then((function(n){n instanceof r?t.send({id:e.id,result:n.message,error:null},n.transfer):t.send({id:e.id,result:n,error:null}),a=null})).catch((function(r){t.send({id:e.id,result:null,error:i(r)}),a=null})):(o instanceof r?t.send({id:e.id,result:o.message,error:null},o.transfer):t.send({id:e.id,result:o,error:null}),a=null)}catch(r){t.send({id:e.id,result:null,error:i(r)})}})),t.register=function(e,r){if(e)for(var n in e)e.hasOwnProperty(n)&&(t.methods[n]=e[n]);r&&(t.terminationHandler=r.onTerminate),t.send("ready")},t.emit=function(e){if(a){if(e instanceof r)return void t.send({id:a,isEvent:!0,payload:e.message},e.transfer);t.send({id:a,isEvent:!0,payload:e})}},e.add=t.register,e.emit=t.emit}(x)),x}const{platform:E,isMainThread:_,cpus:j}=o;var A=r.pool=function(e,r){return new(y())(e,r)};var P=r.worker=function(e,r){W().add(e,r)};var S=r.workerEmit=function(e){W().emit(e)};const{Promise:M}=s();var L=r.Promise=M,N=r.Transfer=T(),U=r.platform=E,H=r.isMainThread=_,q=r.cpus=j;e.Promise=L,e.Transfer=N,e.cpus=q,e.default=r,e.isMainThread=H,e.platform=U,e.pool=A,e.worker=P,e.workerEmit=S,Object.defineProperty(e,"__esModule",{value:!0})}));
3
+ //# sourceMappingURL=workerpool.min.js.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * workerpool.js
3
+ * https://github.com/josdejong/workerpool
4
+ *
5
+ * Offload tasks to a pool of workers on node.js and in the browser.
6
+ *
7
+ * @version @@version
8
+ * @date @@date
9
+ *
10
+ * @license
11
+ * Copyright (C) 2014-2022 Jos de Jong <wjosdejong@gmail.com>
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
14
+ * use this file except in compliance with the License. You may obtain a copy
15
+ * of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
21
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
22
+ * License for the specific language governing permissions and limitations under
23
+ * the License.
24
+ */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerpool.min.js","sources":["../src/environment.js","../src/Promise.js","../src/validateOptions.js","../src/WorkerHandler.js","../src/generated/embeddedWorker.js","../src/Pool.js","../src/debug-port-allocator.js","../src/transfer.js","../src/worker.js","../src/index.js"],"sourcesContent":["\n// source: https://github.com/flexdinesh/browser-or-node\n// source: https://github.com/mozilla/pdf.js/blob/7ea0e40e588864cd938d1836ec61f1928d3877d3/src/shared/util.js#L24\nvar isNode = function (nodeProcess) {\n return (\n typeof nodeProcess !== 'undefined' &&\n nodeProcess.versions != null &&\n nodeProcess.versions.node != null &&\n nodeProcess + '' === '[object process]'\n );\n}\nmodule.exports.isNode = isNode\n\n// determines the JavaScript platform: browser or node\nmodule.exports.platform = typeof process !== 'undefined' && isNode(process)\n ? 'node'\n : 'browser';\n\n// determines whether the code is running in main thread or not\n// note that in node.js we have to check both worker_thread and child_process\nvar worker_threads = module.exports.platform === 'node' && require('worker_threads');\nmodule.exports.isMainThread = module.exports.platform === 'node'\n ? ((!worker_threads || worker_threads.isMainThread) && !process.connected)\n : typeof Window !== 'undefined';\n\n// determines the number of cpus available\nmodule.exports.cpus = module.exports.platform === 'browser'\n ? self.navigator.hardwareConcurrency\n : require('os').cpus().length;\n\n","'use strict';\n\n/**\n * Promise\n *\n * Inspired by https://gist.github.com/RubaXa/8501359 from RubaXa <trash@rubaxa.org>\n * @template T\n * @template [E=Error]\n * @param {Function} handler Called as handler(resolve: Function, reject: Function)\n * @param {Promise} [parent] Parent promise for propagation of cancel and timeout\n */\nfunction Promise(handler, parent) {\n var me = this;\n\n if (!(this instanceof Promise)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (typeof handler !== 'function') {\n throw new SyntaxError('Function parameter handler(resolve, reject) missing');\n }\n\n var _onSuccess = [];\n var _onFail = [];\n\n // status\n /**\n * @readonly\n */\n this.resolved = false;\n /**\n * @readonly\n */\n this.rejected = false;\n /**\n * @readonly\n */\n this.pending = true;\n\n /**\n * Process onSuccess and onFail callbacks: add them to the queue.\n * Once the promise is resolved, the function _promise is replace.\n * @param {Function} onSuccess\n * @param {Function} onFail\n * @private\n */\n var _process = function (onSuccess, onFail) {\n _onSuccess.push(onSuccess);\n _onFail.push(onFail);\n };\n\n /**\n * Add an onSuccess callback and optionally an onFail callback to the Promise\n * @template TT\n * @template [TE=never]\n * @param {(r: T) => TT | PromiseLike<TT>} onSuccess\n * @param {(r: E) => TE | PromiseLike<TE>} [onFail]\n * @returns {Promise<TT | TE, any>} promise\n */\n this.then = function (onSuccess, onFail) {\n return new Promise(function (resolve, reject) {\n var s = onSuccess ? _then(onSuccess, resolve, reject) : resolve;\n var f = onFail ? _then(onFail, resolve, reject) : reject;\n\n _process(s, f);\n }, me);\n };\n\n /**\n * Resolve the promise\n * @param {*} result\n * @type {Function}\n */\n var _resolve = function (result) {\n // update status\n me.resolved = true;\n me.rejected = false;\n me.pending = false;\n\n _onSuccess.forEach(function (fn) {\n fn(result);\n });\n\n _process = function (onSuccess, onFail) {\n onSuccess(result);\n };\n\n _resolve = _reject = function () { };\n\n return me;\n };\n\n /**\n * Reject the promise\n * @param {Error} error\n * @type {Function}\n */\n var _reject = function (error) {\n // update status\n me.resolved = false;\n me.rejected = true;\n me.pending = false;\n\n _onFail.forEach(function (fn) {\n fn(error);\n });\n\n _process = function (onSuccess, onFail) {\n onFail(error);\n };\n\n _resolve = _reject = function () { }\n\n return me;\n };\n\n /**\n * Cancel the promise. This will reject the promise with a CancellationError\n * @returns {this} self\n */\n this.cancel = function () {\n if (parent) {\n parent.cancel();\n }\n else {\n _reject(new CancellationError());\n }\n\n return me;\n };\n\n /**\n * Set a timeout for the promise. If the promise is not resolved within\n * the time, the promise will be cancelled and a TimeoutError is thrown.\n * If the promise is resolved in time, the timeout is removed.\n * @param {number} delay Delay in milliseconds\n * @returns {this} self\n */\n this.timeout = function (delay) {\n if (parent) {\n parent.timeout(delay);\n }\n else {\n var timer = setTimeout(function () {\n _reject(new TimeoutError('Promise timed out after ' + delay + ' ms'));\n }, delay);\n\n me.always(function () {\n clearTimeout(timer);\n });\n }\n\n return me;\n };\n\n // attach handler passing the resolve and reject functions\n handler(function (result) {\n _resolve(result);\n }, function (error) {\n _reject(error);\n });\n}\n\n/**\n * Execute given callback, then call resolve/reject based on the returned result\n * @param {Function} callback\n * @param {Function} resolve\n * @param {Function} reject\n * @returns {Function}\n * @private\n */\nfunction _then(callback, resolve, reject) {\n return function (result) {\n try {\n var res = callback(result);\n if (res && typeof res.then === 'function' && typeof res['catch'] === 'function') {\n // method returned a promise\n res.then(resolve, reject);\n }\n else {\n resolve(res);\n }\n }\n catch (error) {\n reject(error);\n }\n }\n}\n\n/**\n * Add an onFail callback to the Promise\n * @template TT\n * @param {(error: E) => TT | PromiseLike<TT>} onFail\n * @returns {Promise<T | TT>} promise\n */\nPromise.prototype['catch'] = function (onFail) {\n return this.then(null, onFail);\n};\n\n// TODO: add support for Promise.catch(Error, callback)\n// TODO: add support for Promise.catch(Error, Error, callback)\n\n/**\n * Execute given callback when the promise either resolves or rejects.\n * @template TT\n * @param {() => Promise<TT>} fn\n * @returns {Promise<TT>} promise\n */\nPromise.prototype.always = function (fn) {\n return this.then(fn, fn);\n};\n\n/**\n * Create a promise which resolves when all provided promises are resolved,\n * and fails when any of the promises resolves.\n * @param {Promise[]} promises\n * @returns {Promise<any[], any>} promise\n */\nPromise.all = function (promises){\n return new Promise(function (resolve, reject) {\n var remaining = promises.length,\n results = [];\n\n if (remaining) {\n promises.forEach(function (p, i) {\n p.then(function (result) {\n results[i] = result;\n remaining--;\n if (remaining == 0) {\n resolve(results);\n }\n }, function (error) {\n remaining = 0;\n reject(error);\n });\n });\n }\n else {\n resolve(results);\n }\n });\n};\n\n/**\n * Create a promise resolver\n * @returns {{promise: Promise, resolve: Function, reject: Function}} resolver\n */\nPromise.defer = function () {\n var resolver = {};\n\n resolver.promise = new Promise(function (resolve, reject) {\n resolver.resolve = resolve;\n resolver.reject = reject;\n });\n\n return resolver;\n};\n\n/**\n * Create a cancellation error\n * @param {String} [message]\n * @extends Error\n */\nfunction CancellationError(message) {\n this.message = message || 'promise cancelled';\n this.stack = (new Error()).stack;\n}\n\nCancellationError.prototype = new Error();\nCancellationError.prototype.constructor = Error;\nCancellationError.prototype.name = 'CancellationError';\n\nPromise.CancellationError = CancellationError;\n\n\n/**\n * Create a timeout error\n * @param {String} [message]\n * @extends Error\n */\nfunction TimeoutError(message) {\n this.message = message || 'timeout exceeded';\n this.stack = (new Error()).stack;\n}\n\nTimeoutError.prototype = new Error();\nTimeoutError.prototype.constructor = Error;\nTimeoutError.prototype.name = 'TimeoutError';\n\nPromise.TimeoutError = TimeoutError;\n\n\nexports.Promise = Promise;\n","/**\n * Validate that the object only contains known option names\n * - Throws an error when unknown options are detected\n * - Throws an error when some of the allowed options are attached\n * @param {Object | undefined} options\n * @param {string[]} allowedOptionNames\n * @param {string} objectName\n * @retrun {Object} Returns the original options\n */\nexports.validateOptions = function validateOptions(options, allowedOptionNames, objectName) {\n if (!options) {\n return\n }\n\n var optionNames = options ? Object.keys(options) : []\n\n // check for unknown properties\n var unknownOptionName = optionNames.find(optionName => !allowedOptionNames.includes(optionName))\n if (unknownOptionName) {\n throw new Error('Object \"' + objectName + '\" contains an unknown option \"' + unknownOptionName + '\"')\n }\n\n // check for inherited properties which are not present on the object itself\n var illegalOptionName = allowedOptionNames.find(allowedOptionName => {\n return Object.prototype[allowedOptionName] && !optionNames.includes(allowedOptionName)\n })\n if (illegalOptionName) {\n throw new Error('Object \"' + objectName + '\" contains an inherited option \"' + illegalOptionName + '\" which is ' +\n 'not defined in the object itself but in its prototype. Only plain objects are allowed. ' +\n 'Please remove the option from the prototype or override it with a value \"undefined\".')\n }\n\n return options\n}\n\n// source: https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker\nexports.workerOptsNames = [\n 'credentials', 'name', 'type' ]\n\n// source: https://nodejs.org/api/child_process.html#child_processforkmodulepath-args-options\nexports.forkOptsNames = [\n 'cwd', 'detached', 'env', 'execPath', 'execArgv', 'gid', 'serialization',\n 'signal', 'killSignal', 'silent', 'stdio', 'uid', 'windowsVerbatimArguments',\n 'timeout'\n]\n\n// source: https://nodejs.org/api/worker_threads.html#new-workerfilename-options\nexports.workerThreadOptsNames = [\n 'argv', 'env', 'eval', 'execArgv', 'stdin', 'stdout', 'stderr', 'workerData',\n 'trackUnmanagedFds', 'transferList', 'resourceLimits', 'name'\n]\n","'use strict';\n\nvar {Promise} = require('./Promise');\nvar environment = require('./environment');\nconst {validateOptions, forkOptsNames, workerThreadOptsNames, workerOptsNames} = require(\"./validateOptions\");\n\n/**\n * Special message sent by parent which causes a child process worker to terminate itself.\n * Not a \"message object\"; this string is the entire message.\n */\nvar TERMINATE_METHOD_ID = '__workerpool-terminate__';\n\nfunction ensureWorkerThreads() {\n var WorkerThreads = tryRequireWorkerThreads()\n if (!WorkerThreads) {\n throw new Error('WorkerPool: workerType = \\'thread\\' is not supported, Node >= 11.7.0 required')\n }\n\n return WorkerThreads;\n}\n\n// check whether Worker is supported by the browser\nfunction ensureWebWorker() {\n // Workaround for a bug in PhantomJS (Or QtWebkit): https://github.com/ariya/phantomjs/issues/14534\n if (typeof Worker !== 'function' && (typeof Worker !== 'object' || typeof Worker.prototype.constructor !== 'function')) {\n throw new Error('WorkerPool: Web Workers not supported');\n }\n}\n\nfunction tryRequireWorkerThreads() {\n try {\n return require('worker_threads');\n } catch(error) {\n if (typeof error === 'object' && error !== null && error.code === 'MODULE_NOT_FOUND') {\n // no worker_threads available (old version of node.js)\n return null;\n } else {\n throw error;\n }\n }\n}\n\n// get the default worker script\nfunction getDefaultWorker() {\n if (environment.platform === 'browser') {\n // test whether the browser supports all features that we need\n if (typeof Blob === 'undefined') {\n throw new Error('Blob not supported by the browser');\n }\n if (!window.URL || typeof window.URL.createObjectURL !== 'function') {\n throw new Error('URL.createObjectURL not supported by the browser');\n }\n\n // use embedded worker.js\n var blob = new Blob([require('./generated/embeddedWorker')], {type: 'text/javascript'});\n return window.URL.createObjectURL(blob);\n }\n else {\n // use external worker.js in current directory\n return __dirname + '/worker.js';\n }\n}\n\nfunction setupWorker(script, options) {\n if (options.workerType === 'web') { // browser only\n ensureWebWorker();\n return setupBrowserWorker(script, options.workerOpts, Worker);\n } else if (options.workerType === 'thread') { // node.js only\n WorkerThreads = ensureWorkerThreads();\n return setupWorkerThreadWorker(script, WorkerThreads, options);\n } else if (options.workerType === 'process' || !options.workerType) { // node.js only\n return setupProcessWorker(script, resolveForkOptions(options), require('child_process'));\n } else { // options.workerType === 'auto' or undefined\n if (environment.platform === 'browser') {\n ensureWebWorker();\n return setupBrowserWorker(script, options.workerOpts, Worker);\n }\n else { // environment.platform === 'node'\n var WorkerThreads = tryRequireWorkerThreads();\n if (WorkerThreads) {\n return setupWorkerThreadWorker(script, WorkerThreads, options);\n } else {\n return setupProcessWorker(script, resolveForkOptions(options), require('child_process'));\n }\n }\n }\n}\n\nfunction setupBrowserWorker(script, workerOpts, Worker) {\n // validate the options right before creating the worker (not when creating the pool)\n validateOptions(workerOpts, workerOptsNames, 'workerOpts')\n\n // create the web worker\n var worker = new Worker(script, workerOpts);\n\n worker.isBrowserWorker = true;\n // add node.js API to the web worker\n worker.on = function (event, callback) {\n this.addEventListener(event, function (message) {\n callback(message.data);\n });\n };\n worker.send = function (message, transfer) {\n this.postMessage(message, transfer);\n };\n return worker;\n}\n\nfunction setupWorkerThreadWorker(script, WorkerThreads, options) {\n // validate the options right before creating the worker thread (not when creating the pool)\n validateOptions(options?.workerThreadOpts, workerThreadOptsNames, 'workerThreadOpts')\n\n var worker = new WorkerThreads.Worker(script, {\n stdout: options?.emitStdStreams ?? false, // pipe worker.STDOUT to process.STDOUT if not requested\n stderr: options?.emitStdStreams ?? false, // pipe worker.STDERR to process.STDERR if not requested\n ...options?.workerThreadOpts\n });\n worker.isWorkerThread = true;\n worker.send = function(message, transfer) {\n this.postMessage(message, transfer);\n };\n\n worker.kill = function() {\n this.terminate();\n return true;\n };\n\n worker.disconnect = function() {\n this.terminate();\n };\n\n if (options?.emitStdStreams) {\n worker.stdout.on('data', (data) => worker.emit(\"stdout\", data))\n worker.stderr.on('data', (data) => worker.emit(\"stderr\", data))\n }\n\n return worker;\n}\n\nfunction setupProcessWorker(script, options, child_process) {\n // validate the options right before creating the child process (not when creating the pool)\n validateOptions(options.forkOpts, forkOptsNames, 'forkOpts')\n\n // no WorkerThreads, fallback to sub-process based workers\n var worker = child_process.fork(\n script,\n options.forkArgs,\n options.forkOpts\n );\n\n // ignore transfer argument since it is not supported by process\n var send = worker.send;\n worker.send = function (message) {\n return send.call(worker, message);\n };\n\n if (options.emitStdStreams) {\n worker.stdout.on('data', (data) => worker.emit(\"stdout\", data))\n worker.stderr.on('data', (data) => worker.emit(\"stderr\", data))\n }\n\n worker.isChildProcess = true;\n return worker;\n}\n\n// add debug flags to child processes if the node inspector is active\nfunction resolveForkOptions(opts) {\n opts = opts || {};\n\n var processExecArgv = process.execArgv.join(' ');\n var inspectorActive = processExecArgv.indexOf('--inspect') !== -1;\n var debugBrk = processExecArgv.indexOf('--debug-brk') !== -1;\n\n var execArgv = [];\n if (inspectorActive) {\n execArgv.push('--inspect=' + opts.debugPort);\n\n if (debugBrk) {\n execArgv.push('--debug-brk');\n }\n }\n\n process.execArgv.forEach(function(arg) {\n if (arg.indexOf('--max-old-space-size') > -1) {\n execArgv.push(arg)\n }\n })\n\n return Object.assign({}, opts, {\n forkArgs: opts.forkArgs,\n forkOpts: Object.assign({}, opts.forkOpts, {\n execArgv: (opts.forkOpts && opts.forkOpts.execArgv || [])\n .concat(execArgv),\n stdio: opts.emitStdStreams ? \"pipe\": undefined\n })\n });\n}\n\n/**\n * Converts a serialized error to Error\n * @param {Object} obj Error that has been serialized and parsed to object\n * @return {Error} The equivalent Error.\n */\nfunction objectToError (obj) {\n var temp = new Error('')\n var props = Object.keys(obj)\n\n for (var i = 0; i < props.length; i++) {\n temp[props[i]] = obj[props[i]]\n }\n\n return temp\n}\n\nfunction handleEmittedStdPayload(handler, payload) {\n // TODO: refactor if parallel task execution gets added\n if (Object.keys(handler.processing).length !== 1) {\n return;\n }\n var task = Object.values(handler.processing)[0]\n if (task.options && typeof task.options.on === 'function') {\n task.options.on(payload);\n }\n}\n\n/**\n * A WorkerHandler controls a single worker. This worker can be a child process\n * on node.js or a WebWorker in a browser environment.\n * @param {String} [script] If no script is provided, a default worker with a\n * function run will be created.\n * @param {import('./types.js').WorkerPoolOptions} [_options] See docs\n * @constructor\n */\nfunction WorkerHandler(script, _options) {\n var me = this;\n var options = _options || {};\n\n this.script = script || getDefaultWorker();\n this.worker = setupWorker(this.script, options);\n this.debugPort = options.debugPort;\n this.forkOpts = options.forkOpts;\n this.forkArgs = options.forkArgs;\n this.workerOpts = options.workerOpts;\n this.workerThreadOpts = options.workerThreadOpts\n this.workerTerminateTimeout = options.workerTerminateTimeout;\n\n // The ready message is only sent if the worker.add method is called (And the default script is not used)\n if (!script) {\n this.worker.ready = true;\n }\n\n // queue for requests that are received before the worker is ready\n this.requestQueue = [];\n\n this.worker.on(\"stdout\", function (data) {\n handleEmittedStdPayload(me, {\"stdout\": data.toString()})\n })\n this.worker.on(\"stderr\", function (data) {\n handleEmittedStdPayload(me, {\"stderr\": data.toString()})\n })\n\n this.worker.on('message', function (response) {\n if (me.terminated) {\n return;\n }\n if (typeof response === 'string' && response === 'ready') {\n me.worker.ready = true;\n dispatchQueuedRequests();\n } else {\n // find the task from the processing queue, and run the tasks callback\n var id = response.id;\n var task = me.processing[id];\n if (task !== undefined) {\n if (response.isEvent) {\n if (task.options && typeof task.options.on === 'function') {\n task.options.on(response.payload);\n }\n } else {\n // remove the task from the queue\n delete me.processing[id];\n\n // test if we need to terminate\n if (me.terminating === true) {\n // complete worker termination if all tasks are finished\n me.terminate();\n }\n\n // resolve the task's promise\n if (response.error) {\n task.resolver.reject(objectToError(response.error));\n }\n else {\n task.resolver.resolve(response.result);\n }\n }\n }\n }\n });\n\n // reject all running tasks on worker error\n function onError(error) {\n me.terminated = true;\n\n for (var id in me.processing) {\n if (me.processing[id] !== undefined) {\n me.processing[id].resolver.reject(error);\n }\n }\n me.processing = Object.create(null);\n }\n\n // send all queued requests to worker\n function dispatchQueuedRequests()\n {\n for(const request of me.requestQueue.splice(0)) {\n me.worker.send(request.message, request.transfer);\n }\n }\n\n var worker = this.worker;\n // listen for worker messages error and exit\n this.worker.on('error', onError);\n this.worker.on('exit', function (exitCode, signalCode) {\n var message = 'Workerpool Worker terminated Unexpectedly\\n';\n\n message += ' exitCode: `' + exitCode + '`\\n';\n message += ' signalCode: `' + signalCode + '`\\n';\n\n message += ' workerpool.script: `' + me.script + '`\\n';\n message += ' spawnArgs: `' + worker.spawnargs + '`\\n';\n message += ' spawnfile: `' + worker.spawnfile + '`\\n'\n\n message += ' stdout: `' + worker.stdout + '`\\n'\n message += ' stderr: `' + worker.stderr + '`\\n'\n\n onError(new Error(message));\n });\n\n this.processing = Object.create(null); // queue with tasks currently in progress\n\n this.terminating = false;\n this.terminated = false;\n this.cleaning = false;\n this.terminationHandler = null;\n this.lastId = 0;\n}\n\n/**\n * Get a list with methods available on the worker.\n * @return {Promise.<String[], Error>} methods\n */\nWorkerHandler.prototype.methods = function () {\n return this.exec('methods');\n};\n\n/**\n * Execute a method with given parameters on the worker\n * @param {String} method\n * @param {Array} [params]\n * @param {{resolve: Function, reject: Function}} [resolver]\n * @param {import('./types.js').ExecOptions} [options]\n * @return {Promise.<*, Error>} result\n */\nWorkerHandler.prototype.exec = function(method, params, resolver, options) {\n if (!resolver) {\n resolver = Promise.defer();\n }\n\n // generate a unique id for the task\n var id = ++this.lastId;\n\n // register a new task as being in progress\n this.processing[id] = {\n id: id,\n resolver: resolver,\n options: options\n };\n\n // build a JSON-RPC request\n var request = {\n message: {\n id: id,\n method: method,\n params: params\n },\n transfer: options && options.transfer\n };\n\n if (this.terminated) {\n resolver.reject(new Error('Worker is terminated'));\n } else if (this.worker.ready) {\n // send the request to the worker\n this.worker.send(request.message, request.transfer);\n } else {\n this.requestQueue.push(request);\n }\n\n // on cancellation, force the worker to terminate\n var me = this;\n return resolver.promise.catch(function (error) {\n if (error instanceof Promise.CancellationError || error instanceof Promise.TimeoutError) {\n // remove this task from the queue. It is already rejected (hence this\n // catch event), and else it will be rejected again when terminating\n delete me.processing[id];\n\n // terminate worker\n return me.terminateAndNotify(true)\n .then(function() {\n throw error;\n }, function(err) {\n throw err;\n });\n } else {\n throw error;\n }\n })\n};\n\n/**\n * Test whether the worker is processing any tasks or cleaning up before termination.\n * @return {boolean} Returns true if the worker is busy\n */\nWorkerHandler.prototype.busy = function () {\n return this.cleaning || Object.keys(this.processing).length > 0;\n};\n\n/**\n * Terminate the worker.\n * @param {boolean} [force=false] If false (default), the worker is terminated\n * after finishing all tasks currently in\n * progress. If true, the worker will be\n * terminated immediately.\n * @param {function} [callback=null] If provided, will be called when process terminates.\n */\nWorkerHandler.prototype.terminate = function (force, callback) {\n var me = this;\n if (force) {\n // cancel all tasks in progress\n for (var id in this.processing) {\n if (this.processing[id] !== undefined) {\n this.processing[id].resolver.reject(new Error('Worker terminated'));\n }\n }\n this.processing = Object.create(null);\n }\n\n if (typeof callback === 'function') {\n this.terminationHandler = callback;\n }\n if (!this.busy()) {\n // all tasks are finished. kill the worker\n var cleanup = function(err) {\n me.terminated = true;\n me.cleaning = false;\n if (me.worker != null && me.worker.removeAllListeners) {\n // removeAllListeners is only available for child_process\n me.worker.removeAllListeners('message');\n }\n me.worker = null;\n me.terminating = false;\n if (me.terminationHandler) {\n me.terminationHandler(err, me);\n } else if (err) {\n throw err;\n }\n }\n\n if (this.worker) {\n if (typeof this.worker.kill === 'function') {\n if (this.worker.killed) {\n cleanup(new Error('worker already killed!'));\n return;\n }\n\n // child process and worker threads\n var cleanExitTimeout = setTimeout(function() {\n if (me.worker) {\n me.worker.kill();\n }\n }, this.workerTerminateTimeout);\n\n this.worker.once('exit', function() {\n clearTimeout(cleanExitTimeout);\n if (me.worker) {\n me.worker.killed = true;\n }\n cleanup();\n });\n\n if (this.worker.ready) {\n this.worker.send(TERMINATE_METHOD_ID);\n } else {\n this.requestQueue.push({ message: TERMINATE_METHOD_ID });\n }\n\n // mark that the worker is cleaning up resources\n // to prevent new tasks from being executed\n this.cleaning = true;\n return;\n }\n else if (typeof this.worker.terminate === 'function') {\n this.worker.terminate(); // web worker\n this.worker.killed = true;\n }\n else {\n throw new Error('Failed to terminate worker');\n }\n }\n cleanup();\n }\n else {\n // we can't terminate immediately, there are still tasks being executed\n this.terminating = true;\n }\n};\n\n/**\n * Terminate the worker, returning a Promise that resolves when the termination has been done.\n * @param {boolean} [force=false] If false (default), the worker is terminated\n * after finishing all tasks currently in\n * progress. If true, the worker will be\n * terminated immediately.\n * @param {number} [timeout] If provided and non-zero, worker termination promise will be rejected\n * after timeout if worker process has not been terminated.\n * @return {Promise.<WorkerHandler, Error>}\n */\nWorkerHandler.prototype.terminateAndNotify = function (force, timeout) {\n var resolver = Promise.defer();\n if (timeout) {\n resolver.promise.timeout(timeout);\n }\n this.terminate(force, function(err, worker) {\n if (err) {\n resolver.reject(err);\n } else {\n resolver.resolve(worker);\n }\n });\n return resolver.promise;\n};\n\nmodule.exports = WorkerHandler;\nmodule.exports._tryRequireWorkerThreads = tryRequireWorkerThreads;\nmodule.exports._setupProcessWorker = setupProcessWorker;\nmodule.exports._setupBrowserWorker = setupBrowserWorker;\nmodule.exports._setupWorkerThreadWorker = setupWorkerThreadWorker;\nmodule.exports.ensureWorkerThreads = ensureWorkerThreads;\n","/**\n * embeddedWorker.js contains an embedded version of worker.js.\n * This file is automatically generated,\n * changes made in this file will be overwritten.\n */\nmodule.exports = \"!function(e,n){\\\"object\\\"==typeof exports&&\\\"undefined\\\"!=typeof module?module.exports=n():\\\"function\\\"==typeof define&&define.amd?define(n):(e=\\\"undefined\\\"!=typeof globalThis?globalThis:e||self).worker=n()}(this,(function(){\\\"use strict\\\";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\\\"default\\\")?e.default:e}var n={};var t=function(e,n){this.message=e,this.transfer=n};return function(e){var n=t,r={exit:function(){}};if(\\\"undefined\\\"!=typeof self&&\\\"function\\\"==typeof postMessage&&\\\"function\\\"==typeof addEventListener)r.on=function(e,n){addEventListener(e,(function(e){n(e.data)}))},r.send=function(e){postMessage(e)};else{if(\\\"undefined\\\"==typeof process)throw new Error(\\\"Script must be executed as a worker\\\");var o;try{o=require(\\\"worker_threads\\\")}catch(e){if(\\\"object\\\"!=typeof e||null===e||\\\"MODULE_NOT_FOUND\\\"!==e.code)throw e}if(o&&null!==o.parentPort){var i=o.parentPort;r.send=i.postMessage.bind(i),r.on=i.on.bind(i),r.exit=process.exit.bind(process)}else r.on=process.on.bind(process),r.send=function(e){process.send(e)},r.on(\\\"disconnect\\\",(function(){process.exit(1)})),r.exit=process.exit.bind(process)}function s(e){return Object.getOwnPropertyNames(e).reduce((function(n,t){return Object.defineProperty(n,t,{value:e[t],enumerable:!0})}),{})}function d(e){return e&&\\\"function\\\"==typeof e.then&&\\\"function\\\"==typeof e.catch}r.methods={},r.methods.run=function(e,n){var t=new Function(\\\"return (\\\"+e+\\\").apply(null, arguments);\\\");return t.apply(t,n)},r.methods.methods=function(){return Object.keys(r.methods)},r.terminationHandler=void 0,r.cleanupAndExit=function(e){var n=function(){r.exit(e)};if(!r.terminationHandler)return n();var t=r.terminationHandler(e);d(t)?t.then(n,n):n()};var u=null;r.on(\\\"message\\\",(function(e){if(\\\"__workerpool-terminate__\\\"===e)return r.cleanupAndExit(0);try{var t=r.methods[e.method];if(!t)throw new Error('Unknown method \\\"'+e.method+'\\\"');u=e.id;var o=t.apply(t,e.params);d(o)?o.then((function(t){t instanceof n?r.send({id:e.id,result:t.message,error:null},t.transfer):r.send({id:e.id,result:t,error:null}),u=null})).catch((function(n){r.send({id:e.id,result:null,error:s(n)}),u=null})):(o instanceof n?r.send({id:e.id,result:o.message,error:null},o.transfer):r.send({id:e.id,result:o,error:null}),u=null)}catch(n){r.send({id:e.id,result:null,error:s(n)})}})),r.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(r.methods[t]=e[t]);n&&(r.terminationHandler=n.onTerminate),r.send(\\\"ready\\\")},r.emit=function(e){if(u){if(e instanceof n)return void r.send({id:u,isEvent:!0,payload:e.message},e.transfer);r.send({id:u,isEvent:!0,payload:e})}},e.add=r.register,e.emit=r.emit}(n),e(n)}));\\n//# sourceMappingURL=worker.min.js.map\\n\";\n","var {Promise} = require('./Promise');\nvar WorkerHandler = require('./WorkerHandler');\nvar environment = require('./environment');\nvar DebugPortAllocator = require('./debug-port-allocator');\nvar DEBUG_PORT_ALLOCATOR = new DebugPortAllocator();\n/**\n * A pool to manage workers, which can be created using the function workerpool.pool.\n *\n * @param {String} [script] Optional worker script\n * @param {import('./types.js').WorkerPoolOptions} [options] See docs\n * @constructor\n */\nfunction Pool(script, options) {\n if (typeof script === 'string') {\n /** @readonly */\n this.script = script || null;\n }\n else {\n this.script = null;\n options = script;\n }\n\n /** @private */\n this.workers = []; // queue with all workers\n /** @private */\n this.tasks = []; // queue with tasks awaiting execution\n\n options = options || {};\n\n /** @readonly */\n this.forkArgs = Object.freeze(options.forkArgs || []);\n /** @readonly */\n this.forkOpts = Object.freeze(options.forkOpts || {});\n /** @readonly */\n this.workerOpts = Object.freeze(options.workerOpts || {});\n /** @readonly */\n this.workerThreadOpts = Object.freeze(options.workerThreadOpts || {})\n /** @private */\n this.debugPortStart = (options.debugPortStart || 43210);\n /** @readonly @deprecated */\n this.nodeWorker = options.nodeWorker;\n /** @readonly\n * @type {'auto' | 'web' | 'process' | 'thread'}\n */\n this.workerType = options.workerType || options.nodeWorker || 'auto'\n /** @readonly */\n this.maxQueueSize = options.maxQueueSize || Infinity;\n /** @readonly */\n this.workerTerminateTimeout = options.workerTerminateTimeout || 1000;\n\n /** @readonly */\n this.onCreateWorker = options.onCreateWorker || (() => null);\n /** @readonly */\n this.onTerminateWorker = options.onTerminateWorker || (() => null);\n\n /** @readonly */\n this.emitStdStreams = options.emitStdStreams || false\n\n // configuration\n if (options && 'maxWorkers' in options) {\n validateMaxWorkers(options.maxWorkers);\n /** @readonly */\n this.maxWorkers = options.maxWorkers;\n }\n else {\n this.maxWorkers = Math.max((environment.cpus || 4) - 1, 1);\n }\n\n if (options && 'minWorkers' in options) {\n if(options.minWorkers === 'max') {\n /** @readonly */\n this.minWorkers = this.maxWorkers;\n } else {\n validateMinWorkers(options.minWorkers);\n this.minWorkers = options.minWorkers;\n this.maxWorkers = Math.max(this.minWorkers, this.maxWorkers); // in case minWorkers is higher than maxWorkers\n }\n this._ensureMinWorkers();\n }\n\n /** @private */\n this._boundNext = this._next.bind(this);\n\n\n if (this.workerType === 'thread') {\n WorkerHandler.ensureWorkerThreads();\n }\n}\n\n\n/**\n * Execute a function on a worker.\n *\n * Example usage:\n *\n * var pool = new Pool()\n *\n * // call a function available on the worker\n * pool.exec('fibonacci', [6])\n *\n * // offload a function\n * function add(a, b) {\n * return a + b\n * };\n * pool.exec(add, [2, 4])\n * .then(function (result) {\n * console.log(result); // outputs 6\n * })\n * .catch(function(error) {\n * console.log(error);\n * });\n * @template { (...args: any[]) => any } T\n * @param {String | T} method Function name or function.\n * If `method` is a string, the corresponding\n * method on the worker will be executed\n * If `method` is a Function, the function\n * will be stringified and executed via the\n * workers built-in function `run(fn, args)`.\n * @param {Parameters<T> | null} [params] Function arguments applied when calling the function\n * @param {import('./types.js').ExecOptions} [options] Options\n * @return {Promise<ReturnType<T>>}\n */\nPool.prototype.exec = function (method, params, options) {\n // validate type of arguments\n if (params && !Array.isArray(params)) {\n throw new TypeError('Array expected as argument \"params\"');\n }\n\n if (typeof method === 'string') {\n var resolver = Promise.defer();\n\n if (this.tasks.length >= this.maxQueueSize) {\n throw new Error('Max queue size of ' + this.maxQueueSize + ' reached');\n }\n\n // add a new task to the queue\n var tasks = this.tasks;\n var task = {\n method: method,\n params: params,\n resolver: resolver,\n timeout: null,\n options: options\n };\n tasks.push(task);\n\n // replace the timeout method of the Promise with our own,\n // which starts the timer as soon as the task is actually started\n var originalTimeout = resolver.promise.timeout;\n resolver.promise.timeout = function timeout (delay) {\n if (tasks.indexOf(task) !== -1) {\n // task is still queued -> start the timer later on\n task.timeout = delay;\n return resolver.promise;\n }\n else {\n // task is already being executed -> start timer immediately\n return originalTimeout.call(resolver.promise, delay);\n }\n };\n\n // trigger task execution\n this._next();\n\n return resolver.promise;\n }\n else if (typeof method === 'function') {\n // send stringified function and function arguments to worker\n return this.exec('run', [String(method), params], options);\n }\n else {\n throw new TypeError('Function or string expected as argument \"method\"');\n }\n};\n\n/**\n * Create a proxy for current worker. Returns an object containing all\n * methods available on the worker. All methods return promises resolving the methods result.\n * @template { { [k: string]: (...args: any[]) => any } } T\n * @return {Promise<import('./types.js').Proxy<T>, Error>} Returns a promise which resolves with a proxy object\n */\nPool.prototype.proxy = function () {\n if (arguments.length > 0) {\n throw new Error('No arguments expected');\n }\n\n var pool = this;\n return this.exec('methods')\n .then(function (methods) {\n var proxy = {};\n\n methods.forEach(function (method) {\n proxy[method] = function () {\n return pool.exec(method, Array.prototype.slice.call(arguments));\n }\n });\n\n return proxy;\n });\n};\n\n/**\n * Creates new array with the results of calling a provided callback function\n * on every element in this array.\n * @param {Array} array\n * @param {function} callback Function taking two arguments:\n * `callback(currentValue, index)`\n * @return {Promise.<Array>} Returns a promise which resolves with an Array\n * containing the results of the callback function\n * executed for each of the array elements.\n */\n/* TODO: implement map\nPool.prototype.map = function (array, callback) {\n};\n*/\n\n/**\n * Grab the first task from the queue, find a free worker, and assign the\n * worker to the task.\n * @private\n */\nPool.prototype._next = function () {\n if (this.tasks.length > 0) {\n // there are tasks in the queue\n\n // find an available worker\n var worker = this._getWorker();\n if (worker) {\n // get the first task from the queue\n var me = this;\n var task = this.tasks.shift();\n\n // check if the task is still pending (and not cancelled -> promise rejected)\n if (task.resolver.promise.pending) {\n // send the request to the worker\n var promise = worker.exec(task.method, task.params, task.resolver, task.options)\n .then(me._boundNext)\n .catch(function () {\n // if the worker crashed and terminated, remove it from the pool\n if (worker.terminated) {\n return me._removeWorker(worker);\n }\n }).then(function() {\n me._next(); // trigger next task in the queue\n });\n\n // start queued timer now\n if (typeof task.timeout === 'number') {\n promise.timeout(task.timeout);\n }\n } else {\n // The task taken was already complete (either rejected or resolved), so just trigger next task in the queue\n me._next();\n }\n }\n }\n};\n\n/**\n * Get an available worker. If no worker is available and the maximum number\n * of workers isn't yet reached, a new worker will be created and returned.\n * If no worker is available and the maximum number of workers is reached,\n * null will be returned.\n *\n * @return {WorkerHandler | null} worker\n * @private\n */\nPool.prototype._getWorker = function() {\n // find a non-busy worker\n var workers = this.workers;\n for (var i = 0; i < workers.length; i++) {\n var worker = workers[i];\n if (worker.busy() === false) {\n return worker;\n }\n }\n\n if (workers.length < this.maxWorkers) {\n // create a new worker\n worker = this._createWorkerHandler();\n workers.push(worker);\n return worker;\n }\n\n return null;\n};\n\n/**\n * Remove a worker from the pool.\n * Attempts to terminate worker if not already terminated, and ensures the minimum\n * pool size is met.\n * @param {WorkerHandler} worker\n * @return {Promise<WorkerHandler>}\n * @private\n */\nPool.prototype._removeWorker = function(worker) {\n var me = this;\n\n DEBUG_PORT_ALLOCATOR.releasePort(worker.debugPort);\n // _removeWorker will call this, but we need it to be removed synchronously\n this._removeWorkerFromList(worker);\n // If minWorkers set, spin up new workers to replace the crashed ones\n this._ensureMinWorkers();\n // terminate the worker (if not already terminated)\n return new Promise(function(resolve, reject) {\n worker.terminate(false, function(err) {\n me.onTerminateWorker({\n forkArgs: worker.forkArgs,\n forkOpts: worker.forkOpts,\n workerThreadOpts: worker.workerThreadOpts,\n script: worker.script\n });\n if (err) {\n reject(err);\n } else {\n resolve(worker);\n }\n });\n });\n};\n\n/**\n * Remove a worker from the pool list.\n * @param {WorkerHandler} worker\n * @private\n */\nPool.prototype._removeWorkerFromList = function(worker) {\n // remove from the list with workers\n var index = this.workers.indexOf(worker);\n if (index !== -1) {\n this.workers.splice(index, 1);\n }\n};\n\n/**\n * Close all active workers. Tasks currently being executed will be finished first.\n * @param {boolean} [force=false] If false (default), the workers are terminated\n * after finishing all tasks currently in\n * progress. If true, the workers will be\n * terminated immediately.\n * @param {number} [timeout] If provided and non-zero, worker termination promise will be rejected\n * after timeout if worker process has not been terminated.\n * @return {Promise.<void, Error>}\n */\nPool.prototype.terminate = function (force, timeout) {\n var me = this;\n\n // cancel any pending tasks\n this.tasks.forEach(function (task) {\n task.resolver.reject(new Error('Pool terminated'));\n });\n this.tasks.length = 0;\n\n var f = function (worker) {\n DEBUG_PORT_ALLOCATOR.releasePort(worker.debugPort);\n this._removeWorkerFromList(worker);\n };\n var removeWorker = f.bind(this);\n\n var promises = [];\n var workers = this.workers.slice();\n workers.forEach(function (worker) {\n var termPromise = worker.terminateAndNotify(force, timeout)\n .then(removeWorker)\n .always(function() {\n me.onTerminateWorker({\n forkArgs: worker.forkArgs,\n forkOpts: worker.forkOpts,\n workerThreadOpts: worker.workerThreadOpts,\n script: worker.script\n });\n });\n promises.push(termPromise);\n });\n return Promise.all(promises);\n};\n\n/**\n * Retrieve statistics on tasks and workers.\n * @return {{totalWorkers: number, busyWorkers: number, idleWorkers: number, pendingTasks: number, activeTasks: number}} Returns an object with statistics\n */\nPool.prototype.stats = function () {\n var totalWorkers = this.workers.length;\n var busyWorkers = this.workers.filter(function (worker) {\n return worker.busy();\n }).length;\n\n return {\n totalWorkers: totalWorkers,\n busyWorkers: busyWorkers,\n idleWorkers: totalWorkers - busyWorkers,\n\n pendingTasks: this.tasks.length,\n activeTasks: busyWorkers\n };\n};\n\n/**\n * Ensures that a minimum of minWorkers is up and running\n * @private\n */\nPool.prototype._ensureMinWorkers = function() {\n if (this.minWorkers) {\n for(var i = this.workers.length; i < this.minWorkers; i++) {\n this.workers.push(this._createWorkerHandler());\n }\n }\n};\n\n/**\n * Helper function to create a new WorkerHandler and pass all options.\n * @return {WorkerHandler}\n * @private\n */\nPool.prototype._createWorkerHandler = function () {\n const overriddenParams = this.onCreateWorker({\n forkArgs: this.forkArgs,\n forkOpts: this.forkOpts,\n workerOpts: this.workerOpts,\n workerThreadOpts: this.workerThreadOpts,\n script: this.script\n }) || {};\n\n return new WorkerHandler(overriddenParams.script || this.script, {\n forkArgs: overriddenParams.forkArgs || this.forkArgs,\n forkOpts: overriddenParams.forkOpts || this.forkOpts,\n workerOpts: overriddenParams.workerOpts || this.workerOpts,\n workerThreadOpts: overriddenParams.workerThreadOpts || this.workerThreadOpts,\n debugPort: DEBUG_PORT_ALLOCATOR.nextAvailableStartingAt(this.debugPortStart),\n workerType: this.workerType,\n workerTerminateTimeout: this.workerTerminateTimeout,\n emitStdStreams: this.emitStdStreams,\n });\n}\n\n/**\n * Ensure that the maxWorkers option is an integer >= 1\n * @param {*} maxWorkers\n * @returns {boolean} returns true maxWorkers has a valid value\n */\nfunction validateMaxWorkers(maxWorkers) {\n if (!isNumber(maxWorkers) || !isInteger(maxWorkers) || maxWorkers < 1) {\n throw new TypeError('Option maxWorkers must be an integer number >= 1');\n }\n}\n\n/**\n * Ensure that the minWorkers option is an integer >= 0\n * @param {*} minWorkers\n * @returns {boolean} returns true when minWorkers has a valid value\n */\nfunction validateMinWorkers(minWorkers) {\n if (!isNumber(minWorkers) || !isInteger(minWorkers) || minWorkers < 0) {\n throw new TypeError('Option minWorkers must be an integer number >= 0');\n }\n}\n\n/**\n * Test whether a variable is a number\n * @param {*} value\n * @returns {boolean} returns true when value is a number\n */\nfunction isNumber(value) {\n return typeof value === 'number';\n}\n\n/**\n * Test whether a number is an integer\n * @param {number} value\n * @returns {boolean} Returns true if value is an integer\n */\nfunction isInteger(value) {\n return Math.round(value) == value;\n}\n\nmodule.exports = Pool;\n","'use strict';\n\nvar MAX_PORTS = 65535;\nmodule.exports = DebugPortAllocator;\nfunction DebugPortAllocator() {\n this.ports = Object.create(null);\n this.length = 0;\n}\n\nDebugPortAllocator.prototype.nextAvailableStartingAt = function(starting) {\n while (this.ports[starting] === true) {\n starting++;\n }\n\n if (starting >= MAX_PORTS) {\n throw new Error('WorkerPool debug port limit reached: ' + starting + '>= ' + MAX_PORTS );\n }\n\n this.ports[starting] = true;\n this.length++;\n return starting;\n};\n\nDebugPortAllocator.prototype.releasePort = function(port) {\n delete this.ports[port];\n this.length--;\n};\n\n","/**\n * The helper class for transferring data from the worker to the main thread.\n *\n * @param {Object} message The object to deliver to the main thread.\n * @param {Object[]} transfer An array of transferable Objects to transfer ownership of.\n */\nfunction Transfer(message, transfer) {\n this.message = message;\n this.transfer = transfer;\n}\n\nmodule.exports = Transfer;\n","/**\n * worker must be started as a child process or a web worker.\n * It listens for RPC messages from the parent process.\n */\nvar Transfer = require('./transfer');\n\n/**\n * Special message sent by parent which causes the worker to terminate itself.\n * Not a \"message object\"; this string is the entire message.\n */\nvar TERMINATE_METHOD_ID = '__workerpool-terminate__';\n\n// var nodeOSPlatform = require('./environment').nodeOSPlatform;\n\n// create a worker API for sending and receiving messages which works both on\n// node.js and in the browser\nvar worker = {\n exit: function() {}\n};\nif (typeof self !== 'undefined' && typeof postMessage === 'function' && typeof addEventListener === 'function') {\n // worker in the browser\n worker.on = function (event, callback) {\n addEventListener(event, function (message) {\n callback(message.data);\n })\n };\n worker.send = function (message) {\n postMessage(message);\n };\n}\nelse if (typeof process !== 'undefined') {\n // node.js\n\n var WorkerThreads;\n try {\n WorkerThreads = require('worker_threads');\n } catch(error) {\n if (typeof error === 'object' && error !== null && error.code === 'MODULE_NOT_FOUND') {\n // no worker_threads, fallback to sub-process based workers\n } else {\n throw error;\n }\n }\n\n if (WorkerThreads &&\n /* if there is a parentPort, we are in a WorkerThread */\n WorkerThreads.parentPort !== null) {\n var parentPort = WorkerThreads.parentPort;\n worker.send = parentPort.postMessage.bind(parentPort);\n worker.on = parentPort.on.bind(parentPort);\n worker.exit = process.exit.bind(process);\n } else {\n worker.on = process.on.bind(process);\n // ignore transfer argument since it is not supported by process\n worker.send = function (message) {\n process.send(message);\n };\n // register disconnect handler only for subprocess worker to exit when parent is killed unexpectedly\n worker.on('disconnect', function () {\n process.exit(1);\n });\n worker.exit = process.exit.bind(process);\n }\n}\nelse {\n throw new Error('Script must be executed as a worker');\n}\n\nfunction convertError(error) {\n return Object.getOwnPropertyNames(error).reduce(function(product, name) {\n return Object.defineProperty(product, name, {\n\tvalue: error[name],\n\tenumerable: true\n });\n }, {});\n}\n\n/**\n * Test whether a value is a Promise via duck typing.\n * @param {*} value\n * @returns {boolean} Returns true when given value is an object\n * having functions `then` and `catch`.\n */\nfunction isPromise(value) {\n return value && (typeof value.then === 'function') && (typeof value.catch === 'function');\n}\n\n// functions available externally\nworker.methods = {};\n\n/**\n * Execute a function with provided arguments\n * @param {String} fn Stringified function\n * @param {Array} [args] Function arguments\n * @returns {*}\n */\nworker.methods.run = function run(fn, args) {\n var f = new Function('return (' + fn + ').apply(null, arguments);');\n return f.apply(f, args);\n};\n\n/**\n * Get a list with methods available on this worker\n * @return {String[]} methods\n */\nworker.methods.methods = function methods() {\n return Object.keys(worker.methods);\n};\n\n/**\n * Custom handler for when the worker is terminated.\n */\nworker.terminationHandler = undefined;\n\n/**\n * Cleanup and exit the worker.\n * @param {Number} code \n * @returns \n */\nworker.cleanupAndExit = function(code) {\n var _exit = function() {\n worker.exit(code);\n }\n\n if(!worker.terminationHandler) {\n return _exit();\n }\n\n var result = worker.terminationHandler(code);\n if (isPromise(result)) {\n result.then(_exit, _exit);\n } else {\n _exit();\n }\n}\n\nvar currentRequestId = null;\n\nworker.on('message', function (request) {\n if (request === TERMINATE_METHOD_ID) {\n return worker.cleanupAndExit(0);\n }\n try {\n var method = worker.methods[request.method];\n\n if (method) {\n currentRequestId = request.id;\n \n // execute the function\n var result = method.apply(method, request.params);\n\n if (isPromise(result)) {\n // promise returned, resolve this and then return\n result\n .then(function (result) {\n if (result instanceof Transfer) {\n worker.send({\n id: request.id,\n result: result.message,\n error: null\n }, result.transfer);\n } else {\n worker.send({\n id: request.id,\n result: result,\n error: null\n });\n }\n currentRequestId = null;\n })\n .catch(function (err) {\n worker.send({\n id: request.id,\n result: null,\n error: convertError(err)\n });\n currentRequestId = null;\n });\n }\n else {\n // immediate result\n if (result instanceof Transfer) {\n worker.send({\n id: request.id,\n result: result.message,\n error: null\n }, result.transfer);\n } else {\n worker.send({\n id: request.id,\n result: result,\n error: null\n });\n }\n\n currentRequestId = null;\n }\n }\n else {\n throw new Error('Unknown method \"' + request.method + '\"');\n }\n }\n catch (err) {\n worker.send({\n id: request.id,\n result: null,\n error: convertError(err)\n });\n }\n});\n\n/**\n * Register methods to the worker\n * @param {Object} [methods]\n * @param {import('./types.js').WorkerRegisterOptions} [options]\n */\nworker.register = function (methods, options) {\n\n if (methods) {\n for (var name in methods) {\n if (methods.hasOwnProperty(name)) {\n worker.methods[name] = methods[name];\n }\n }\n }\n\n if (options) {\n worker.terminationHandler = options.onTerminate;\n }\n\n worker.send('ready');\n};\n\nworker.emit = function (payload) {\n if (currentRequestId) {\n if (payload instanceof Transfer) {\n worker.send({\n id: currentRequestId,\n isEvent: true,\n payload: payload.message\n }, payload.transfer);\n return;\n }\n\n worker.send({\n id: currentRequestId,\n isEvent: true,\n payload\n });\n }\n};\n\nif (typeof exports !== 'undefined') {\n exports.add = worker.register;\n exports.emit = worker.emit;\n}\n","const {platform, isMainThread, cpus} = require('./environment');\n\n/** @typedef {import(\"./Pool\")} Pool */\n/** @typedef {import(\"./types.js\").WorkerPoolOptions} WorkerPoolOptions */\n/** @typedef {import(\"./types.js\").WorkerRegisterOptions} WorkerRegisterOptions */\n\n/**\n * @template { { [k: string]: (...args: any[]) => any } } T\n * @typedef {import('./types.js').Proxy<T>} Proxy<T>\n */\n\n/**\n * @overload\n * Create a new worker pool\n * @param {WorkerPoolOptions} [script]\n * @returns {Pool} pool\n */\n/**\n * @overload\n * Create a new worker pool\n * @param {string} [script]\n * @param {WorkerPoolOptions} [options]\n * @returns {Pool} pool\n */\nfunction pool(script, options) {\n var Pool = require('./Pool');\n\n return new Pool(script, options);\n};\nexports.pool = pool;\n\n/**\n * Create a worker and optionally register a set of methods to the worker.\n * @param {{ [k: string]: (...args: any[]) => any }} [methods]\n * @param {WorkerRegisterOptions} [options]\n */\nfunction worker(methods, options) {\n var worker = require('./worker');\n worker.add(methods, options);\n};\nexports.worker = worker;\n\n/**\n * Sends an event to the parent worker pool.\n * @param {any} payload \n */\nfunction workerEmit(payload) {\n var worker = require('./worker');\n worker.emit(payload);\n};\nexports.workerEmit = workerEmit;\n\nconst {Promise} = require('./Promise');\nexports.Promise = Promise;\n\nexports.Transfer = require('./transfer');\n\nexports.platform = platform;\nexports.isMainThread = isMainThread;\nexports.cpus = cpus;\n"],"names":["isNode","nodeProcess","versions","node","module","exports","platform","process","worker_threads","require","isMainThread","connected","Window","cpus","self","navigator","hardwareConcurrency","length","Promise","handler","parent","me","this","SyntaxError","_onSuccess","_onFail","resolved","rejected","pending","_process","onSuccess","onFail","push","then","resolve","reject","s","_then","f","_resolve","result","forEach","fn","_reject","error","cancel","CancellationError","timeout","delay","timer","setTimeout","TimeoutError","always","clearTimeout","callback","res","message","stack","Error","prototype","all","promises","remaining","results","p","i","defer","resolver","promise","constructor","name","_Promise","validateOptions","options","allowedOptionNames","objectName","optionNames","Object","keys","unknownOptionName","find","optionName","includes","illegalOptionName","allowedOptionName","workerOptsNames","forkOptsNames","workerThreadOptsNames","require$$0","environment","require$$1","require$$2","TERMINATE_METHOD_ID","ensureWorkerThreads","WorkerThreads","tryRequireWorkerThreads","ensureWebWorker","Worker","code","setupBrowserWorker","script","workerOpts","worker","isBrowserWorker","on","event","addEventListener","data","send","transfer","postMessage","setupWorkerThreadWorker","workerThreadOpts","stdout","emitStdStreams","stderr","isWorkerThread","kill","terminate","disconnect","emit","setupProcessWorker","child_process","forkOpts","fork","forkArgs","call","isChildProcess","resolveForkOptions","opts","processExecArgv","execArgv","join","inspectorActive","indexOf","debugBrk","debugPort","arg","assign","concat","stdio","undefined","handleEmittedStdPayload","payload","processing","task","values","WorkerHandler","_options","onError","id","terminated","create","Blob","window","URL","createObjectURL","blob","embeddedWorker","type","__dirname","getDefaultWorker","workerType","setupWorker","workerTerminateTimeout","ready","requestQueue","toString","response","request","splice","dispatchQueuedRequests","isEvent","terminating","obj","temp","props","objectToError","exitCode","signalCode","spawnargs","spawnfile","cleaning","terminationHandler","lastId","methods","exec","method","params","catch","terminateAndNotify","err","busy","force","cleanup","removeAllListeners","killed","cleanExitTimeout","once","WorkerHandlerModule","_tryRequireWorkerThreads","_setupProcessWorker","_setupBrowserWorker","_setupWorkerThreadWorker","DEBUG_PORT_ALLOCATOR","DebugPortAllocator","ports","debugPortAllocator","nextAvailableStartingAt","starting","releasePort","port","require$$3","Pool","workers","tasks","freeze","debugPortStart","nodeWorker","maxQueueSize","Infinity","onCreateWorker","onTerminateWorker","maxWorkers","isNumber","isInteger","TypeError","validateMaxWorkers","Math","max","minWorkers","validateMinWorkers","_ensureMinWorkers","_boundNext","_next","bind","value","round","Array","isArray","originalTimeout","String","proxy","arguments","pool","slice","_getWorker","shift","_removeWorker","_createWorkerHandler","_removeWorkerFromList","index","removeWorker","termPromise","stats","totalWorkers","busyWorkers","filter","idleWorkers","pendingTasks","activeTasks","overriddenParams","Pool_1","Transfer","exit","parentPort","convertError","getOwnPropertyNames","reduce","product","defineProperty","enumerable","isPromise","run","args","Function","apply","cleanupAndExit","_exit","currentRequestId","register","hasOwnProperty","onTerminate","add","pool_1","src","worker_1","workerEmit_1","workerEmit","require$$4","platform_1","isMainThread_1","cpus_1"],"mappings":";uRAGA,IAAIA,EAAS,SAAUC,GACrB,YACyB,IAAhBA,GACiB,MAAxBA,EAAYC,UACiB,MAA7BD,EAAYC,SAASC,MACrBF,EAAc,IAAO,oBAGzBG,EAAAC,QAAAL,OAAwBA,EAGxBI,EAA0BC,QAAAC,SAAmB,oBAAZC,SAA2BP,EAAOO,SAC/D,OACA,UAIJ,IAAIC,EAA6C,SAA5BJ,EAAOC,QAAQC,UAAuBG,QAAQ,kBACnEL,EAAAC,QAAAK,aAA0D,SAA5BN,EAAOC,QAAQC,WACtCE,GAAkBA,EAAeE,gBAAkBH,QAAQI,UAC5C,oBAAXC,OAGXR,EAAAC,QAAAQ,KAAkD,YAA5BT,EAAOC,QAAQC,SACjCQ,KAAKC,UAAUC,oBACfP,QAAQ,MAAMI,OAAOI,6DCjBzB,SAASC,EAAQC,EAASC,GACxB,IAAIC,EAAKC,KAET,KAAMA,gBAAgBJ,GACpB,MAAM,IAAIK,YAAY,oDAGxB,GAAuB,mBAAZJ,EACT,MAAM,IAAII,YAAY,uDAGxB,IAAIC,EAAa,GACbC,EAAU,GAMdH,KAAKI,UAAW,EAIhBJ,KAAKK,UAAW,EAIhBL,KAAKM,SAAU,EASf,IAAIC,EAAW,SAAUC,EAAWC,GAClCP,EAAWQ,KAAKF,GAChBL,EAAQO,KAAKD,IAWfT,KAAKW,KAAO,SAAUH,EAAWC,GAC/B,OAAO,IAAIb,GAAQ,SAAUgB,EAASC,GACpC,IAAIC,EAAIN,EAAYO,EAAMP,EAAWI,EAASC,GAAUD,EACpDI,EAAIP,EAAYM,EAAMN,EAAWG,EAASC,GAAUA,EAExDN,EAASO,EAAGE,EACb,GAAEjB,IAQL,IAAIkB,EAAW,SAAUC,GAgBvB,OAdAnB,EAAGK,UAAW,EACdL,EAAGM,UAAW,EAC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,EAAAD,EAAAvL,OAJd,SAAgBmF,EAAShH,GACVkB,IACNgM,IAAIlG,EAAShH,EACtB,EAWA,IAAkBsN,EAAAF,EAAAG,WAJlB,SAAoBjJ,GACLpD,IACN6B,KAAKuB,EACd,EAGA,MAAO7H,QAAAA,GAAWkM,IAClB,IAAe7I,EAAAsN,EAAA3Q,QAAGA,EAEFqP,EAAAsB,EAAAtB,SAAG0B,IAEHC,EAAAL,EAAAvR,SAAGA,EACC6R,EAAAN,EAAAnR,aAAGA,EACvB0R,EAAAP,EAAAhR,KAAeA"}
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "workerpool",
3
+ "license": "Apache-2.0",
4
+ "version": "9.1.1",
5
+ "description": "Offload tasks to a pool of workers on node.js and in the browser",
6
+ "homepage": "https://github.com/josdejong/workerpool",
7
+ "author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git://github.com/josdejong/workerpool.git"
11
+ },
12
+ "keywords": [
13
+ "worker",
14
+ "web worker",
15
+ "cluster",
16
+ "pool",
17
+ "isomorphic"
18
+ ],
19
+ "main": "src/index.js",
20
+ "browser": "dist/workerpool.js",
21
+ "types": "types/index.d.ts",
22
+ "files": [
23
+ "dist",
24
+ "src",
25
+ "types",
26
+ "HISTORY.md",
27
+ "LICENSE",
28
+ "README.md"
29
+ ],
30
+ "scripts": {
31
+ "build": "rollup -c rollup.config.mjs && npm run build:types",
32
+ "build:types": "tsc -p .",
33
+ "watch": "rollup -c rollup.config.mjs -w",
34
+ "test": "npm run build && mocha test && npm run test:types",
35
+ "test:types": "tsc -p test/types",
36
+ "test:debug": "npm run build && mocha debug test",
37
+ "coverage": "npm run build && c8 mocha && c8 report --reporter=html && echo Coverage report is available at ./coverage/index.html",
38
+ "prepublishOnly": "npm run test"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "20.12.5",
42
+ "@babel/core": "7.24.4",
43
+ "@babel/preset-env": "7.24.4",
44
+ "@rollup/plugin-babel": "6.0.4",
45
+ "@rollup/plugin-commonjs": "25.0.7",
46
+ "@rollup/plugin-json": "6.1.0",
47
+ "@rollup/plugin-node-resolve": "15.2.3",
48
+ "@rollup/plugin-terser": "0.4.4",
49
+ "c8": "9.1.0",
50
+ "date-format": "4.0.14",
51
+ "fs-extra": "11.2.0",
52
+ "find-process": "1.4.7",
53
+ "mocha": "10.4.0",
54
+ "rollup": "4.14.0",
55
+ "typescript": "5.4.4"
56
+ }
57
+ }