lakutata 2.0.96 → 2.0.97

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 (1189) hide show
  1. package/com/cacher.cjs +31 -135
  2. package/com/cacher.mjs +23 -127
  3. package/com/database.cjs +24 -166
  4. package/com/database.mjs +24 -166
  5. package/com/docker.cjs +94 -276
  6. package/com/docker.mjs +39 -221
  7. package/com/entrypoint.cjs +33 -119
  8. package/com/entrypoint.mjs +20 -106
  9. package/com/logger.cjs +19 -123
  10. package/com/logger.mjs +19 -123
  11. package/com/monitor.cjs +24 -88
  12. package/com/monitor.mjs +20 -84
  13. package/decorator/asst.cjs +5 -7
  14. package/decorator/asst.mjs +5 -7
  15. package/decorator/ctrl.cjs +22 -58
  16. package/decorator/ctrl.mjs +10 -46
  17. package/decorator/di.cjs +12 -42
  18. package/decorator/di.mjs +8 -38
  19. package/decorator/dto.cjs +13 -43
  20. package/decorator/dto.mjs +9 -39
  21. package/decorator/orm.cjs +117 -113
  22. package/decorator/orm.mjs +71 -67
  23. package/dtos.cjs +8 -38
  24. package/dtos.mjs +8 -38
  25. package/helper.cjs +73 -127
  26. package/helper.mjs +12 -66
  27. package/lakutata.cjs +116 -328
  28. package/lakutata.mjs +60 -272
  29. package/orm.cjs +854 -173
  30. package/orm.mjs +866 -65
  31. package/package.json +1 -1
  32. package/provider/database.cjs +26 -166
  33. package/provider/database.mjs +26 -166
  34. package/provider/passwordHash.cjs +18 -82
  35. package/provider/passwordHash.mjs +18 -82
  36. package/src/components/Database.cjs +36 -178
  37. package/src/components/Database.mjs +68 -210
  38. package/src/components/Logger.cjs +50 -191
  39. package/src/components/Logger.mjs +46 -194
  40. package/src/components/cacher/Cacher.cjs +511 -174
  41. package/src/components/cacher/Cacher.mjs +502 -171
  42. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +547 -35
  43. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +530 -34
  44. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +17 -61
  45. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +19 -63
  46. package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +21 -65
  47. package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +22 -66
  48. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +7 -45
  49. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +18 -56
  50. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +23 -67
  51. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +23 -67
  52. package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +6 -44
  53. package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +27 -65
  54. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +11 -55
  55. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +18 -62
  56. package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +4 -6
  57. package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +4 -6
  58. package/src/components/cacher/interfaces/CacherOptions.cjs +1 -1
  59. package/src/components/cacher/interfaces/CacherOptions.mjs +1 -1
  60. package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +4 -6
  61. package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +4 -6
  62. package/src/components/cacher/options/FileCacheOptions.cjs +15 -45
  63. package/src/components/cacher/options/FileCacheOptions.mjs +15 -45
  64. package/src/components/cacher/options/MemcacheCacheOptions.cjs +16 -46
  65. package/src/components/cacher/options/MemcacheCacheOptions.mjs +17 -47
  66. package/src/components/cacher/options/MongoCacheOptions.cjs +9 -39
  67. package/src/components/cacher/options/MongoCacheOptions.mjs +18 -48
  68. package/src/components/cacher/options/MysqlCacheOptions.cjs +9 -39
  69. package/src/components/cacher/options/MysqlCacheOptions.mjs +19 -49
  70. package/src/components/cacher/options/PostgresCacheOptions.cjs +21 -51
  71. package/src/components/cacher/options/PostgresCacheOptions.mjs +20 -50
  72. package/src/components/cacher/options/RedisCacheOptions.cjs +26 -56
  73. package/src/components/cacher/options/RedisCacheOptions.mjs +9 -39
  74. package/src/components/cacher/options/SqliteCacheOptions.cjs +15 -45
  75. package/src/components/cacher/options/SqliteCacheOptions.mjs +14 -44
  76. package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
  77. package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
  78. package/src/components/docker/ConnectionOptionsBuilder.cjs +32 -214
  79. package/src/components/docker/ConnectionOptionsBuilder.mjs +37 -219
  80. package/src/components/docker/Docker.cjs +8727 -408
  81. package/src/components/docker/Docker.mjs +8903 -578
  82. package/src/components/docker/exceptions/DockerConnectionException.cjs +4 -6
  83. package/src/components/docker/exceptions/DockerConnectionException.mjs +4 -6
  84. package/src/components/docker/exceptions/DockerImageBuildException.cjs +4 -6
  85. package/src/components/docker/exceptions/DockerImageBuildException.mjs +4 -6
  86. package/src/components/docker/exceptions/DockerImageImportException.cjs +4 -6
  87. package/src/components/docker/exceptions/DockerImageImportException.mjs +4 -6
  88. package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +4 -6
  89. package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +4 -6
  90. package/src/components/docker/exceptions/DockerImagePullException.cjs +4 -6
  91. package/src/components/docker/exceptions/DockerImagePullException.mjs +4 -6
  92. package/src/components/docker/exceptions/DockerImagePushException.cjs +4 -6
  93. package/src/components/docker/exceptions/DockerImagePushException.mjs +4 -6
  94. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +4 -6
  95. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +4 -6
  96. package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +4 -6
  97. package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +4 -6
  98. package/src/components/docker/interfaces/IDockerConnectionOptions.cjs +1 -1
  99. package/src/components/docker/interfaces/IDockerConnectionOptions.mjs +1 -1
  100. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.cjs +1 -1
  101. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.mjs +1 -1
  102. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.cjs +1 -1
  103. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.mjs +1 -1
  104. package/src/components/docker/interfaces/IDockerKeyObject.cjs +1 -1
  105. package/src/components/docker/interfaces/IDockerKeyObject.mjs +1 -1
  106. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.cjs +1 -1
  107. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.mjs +1 -1
  108. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.cjs +1 -1
  109. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.mjs +1 -1
  110. package/src/components/docker/lib/DockerContainer.cjs +174 -330
  111. package/src/components/docker/lib/DockerContainer.mjs +184 -340
  112. package/src/components/docker/lib/DockerContainerTTY.cjs +52 -260
  113. package/src/components/docker/lib/DockerContainerTTY.mjs +48 -263
  114. package/src/components/docker/lib/DockerImage.cjs +69 -131
  115. package/src/components/docker/lib/DockerImage.mjs +54 -116
  116. package/src/components/docker/lib/ParseEnvToRecord.cjs +1 -1
  117. package/src/components/docker/lib/ParseEnvToRecord.mjs +1 -1
  118. package/src/components/docker/lib/ParseRepositoryTag.cjs +1 -1
  119. package/src/components/docker/lib/ParseRepositoryTag.mjs +1 -1
  120. package/src/components/docker/options/DockerPruneOptions.cjs +14 -44
  121. package/src/components/docker/options/DockerPruneOptions.mjs +15 -45
  122. package/src/components/docker/options/auth/DockerAuthOptions.cjs +9 -39
  123. package/src/components/docker/options/auth/DockerAuthOptions.mjs +15 -45
  124. package/src/components/docker/options/container/ContainerCommitOptions.cjs +12 -42
  125. package/src/components/docker/options/container/ContainerCommitOptions.mjs +12 -42
  126. package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +13 -43
  127. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +12 -42
  128. package/src/components/docker/options/container/ContainerExecOptions.cjs +9 -39
  129. package/src/components/docker/options/container/ContainerExecOptions.mjs +11 -41
  130. package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +13 -43
  131. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +12 -42
  132. package/src/components/docker/options/container/ContainerKillOptions.cjs +9 -39
  133. package/src/components/docker/options/container/ContainerKillOptions.mjs +12 -42
  134. package/src/components/docker/options/container/ContainerLogsOptions.cjs +15 -45
  135. package/src/components/docker/options/container/ContainerLogsOptions.mjs +15 -45
  136. package/src/components/docker/options/container/ContainerRemoveOptions.cjs +9 -39
  137. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +12 -42
  138. package/src/components/docker/options/container/ContainerSettingOptions.cjs +9 -39
  139. package/src/components/docker/options/container/ContainerSettingOptions.mjs +43 -73
  140. package/src/components/docker/options/container/ContainerStopOptions.cjs +12 -42
  141. package/src/components/docker/options/container/ContainerStopOptions.mjs +9 -39
  142. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +9 -39
  143. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +12 -42
  144. package/src/components/docker/options/image/ImageBuildOptions.cjs +26 -56
  145. package/src/components/docker/options/image/ImageBuildOptions.mjs +25 -55
  146. package/src/components/docker/options/image/ImageExportOptions.cjs +14 -44
  147. package/src/components/docker/options/image/ImageExportOptions.mjs +14 -44
  148. package/src/components/docker/options/image/ImageImportOptions.cjs +13 -43
  149. package/src/components/docker/options/image/ImageImportOptions.mjs +12 -42
  150. package/src/components/docker/options/image/ImagePullOptions.cjs +9 -39
  151. package/src/components/docker/options/image/ImagePullOptions.mjs +16 -46
  152. package/src/components/docker/options/image/ImagePushOptions.cjs +15 -45
  153. package/src/components/docker/options/image/ImagePushOptions.mjs +15 -45
  154. package/src/components/docker/options/image/ImageRemoveOptions.cjs +12 -42
  155. package/src/components/docker/options/image/ImageRemoveOptions.mjs +13 -43
  156. package/src/components/docker/options/image/ImageTagOptions.cjs +9 -39
  157. package/src/components/docker/options/image/ImageTagOptions.mjs +12 -42
  158. package/src/components/docker/options/network/NetworkCreateOptions.cjs +9 -39
  159. package/src/components/docker/options/network/NetworkCreateOptions.mjs +20 -50
  160. package/src/components/docker/types/ContainerBind.cjs +1 -1
  161. package/src/components/docker/types/ContainerBind.mjs +1 -1
  162. package/src/components/docker/types/ContainerCapability.cjs +1 -1
  163. package/src/components/docker/types/ContainerCapability.mjs +1 -1
  164. package/src/components/docker/types/ContainerConfig.cjs +1 -1
  165. package/src/components/docker/types/ContainerConfig.mjs +1 -1
  166. package/src/components/docker/types/ContainerDevice.cjs +1 -1
  167. package/src/components/docker/types/ContainerDevice.mjs +1 -1
  168. package/src/components/docker/types/ContainerNetwork.cjs +1 -1
  169. package/src/components/docker/types/ContainerNetwork.mjs +1 -1
  170. package/src/components/docker/types/ContainerPort.cjs +1 -1
  171. package/src/components/docker/types/ContainerPort.mjs +1 -1
  172. package/src/components/docker/types/ContainerRestartPolicy.cjs +1 -1
  173. package/src/components/docker/types/ContainerRestartPolicy.mjs +1 -1
  174. package/src/components/docker/types/ContainerState.cjs +1 -1
  175. package/src/components/docker/types/ContainerState.mjs +1 -1
  176. package/src/components/docker/types/ContainerStats.cjs +1 -1
  177. package/src/components/docker/types/ContainerStats.mjs +1 -1
  178. package/src/components/docker/types/DockerOutputCallback.cjs +1 -1
  179. package/src/components/docker/types/DockerOutputCallback.mjs +1 -1
  180. package/src/components/docker/types/ImageConfig.cjs +1 -1
  181. package/src/components/docker/types/ImageConfig.mjs +1 -1
  182. package/src/components/docker/types/ImageExposePort.cjs +1 -1
  183. package/src/components/docker/types/ImageExposePort.mjs +1 -1
  184. package/src/components/docker/types/NetworkInfo.cjs +1 -1
  185. package/src/components/docker/types/NetworkInfo.mjs +1 -1
  186. package/src/components/entrypoint/Entrypoint.cjs +1961 -322
  187. package/src/components/entrypoint/Entrypoint.mjs +1928 -281
  188. package/src/components/entrypoint/exceptions/AccessDenyException.cjs +4 -6
  189. package/src/components/entrypoint/exceptions/AccessDenyException.mjs +4 -6
  190. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +4 -6
  191. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +4 -6
  192. package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +4 -6
  193. package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +4 -6
  194. package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +4 -6
  195. package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +4 -6
  196. package/src/components/entrypoint/lib/AccessControl.cjs +71 -133
  197. package/src/components/entrypoint/lib/AccessControl.mjs +75 -137
  198. package/src/components/entrypoint/lib/AccessControlRule.cjs +19 -81
  199. package/src/components/entrypoint/lib/AccessControlRule.mjs +23 -85
  200. package/src/components/entrypoint/lib/Controller.cjs +42 -104
  201. package/src/components/entrypoint/lib/Controller.mjs +43 -105
  202. package/src/components/monitor/AliveMonitor.cjs +40 -104
  203. package/src/components/monitor/AliveMonitor.mjs +50 -114
  204. package/src/components/monitor/CpuMonitor.cjs +40 -104
  205. package/src/components/monitor/CpuMonitor.mjs +48 -112
  206. package/src/components/monitor/EventLoopMonitor.cjs +19 -83
  207. package/src/components/monitor/EventLoopMonitor.mjs +24 -88
  208. package/src/components/monitor/HttpRequestMonitor.cjs +41 -105
  209. package/src/components/monitor/HttpRequestMonitor.mjs +45 -109
  210. package/src/components/monitor/MemoryMonitor.cjs +87 -151
  211. package/src/components/monitor/MemoryMonitor.mjs +71 -135
  212. package/src/components/monitor/interfaces/ICpuMonitorStatistics.cjs +1 -1
  213. package/src/components/monitor/interfaces/ICpuMonitorStatistics.mjs +1 -1
  214. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.cjs +1 -1
  215. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.mjs +1 -1
  216. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.cjs +1 -1
  217. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.mjs +1 -1
  218. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.cjs +1 -1
  219. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.mjs +1 -1
  220. package/src/components/monitor/interfaces/IMonitor.cjs +1 -1
  221. package/src/components/monitor/interfaces/IMonitor.mjs +1 -1
  222. package/src/constants/DIMetadataKey.cjs +3 -3
  223. package/src/constants/DIMetadataKey.mjs +3 -3
  224. package/src/constants/DTOMetadataKey.cjs +3 -3
  225. package/src/constants/DTOMetadataKey.mjs +3 -3
  226. package/src/decorators/asst/After.cjs +4 -6
  227. package/src/decorators/asst/After.mjs +5 -7
  228. package/src/decorators/asst/Before.cjs +4 -6
  229. package/src/decorators/asst/Before.mjs +5 -7
  230. package/src/decorators/ctrl/CLIAction.cjs +15 -51
  231. package/src/decorators/ctrl/CLIAction.mjs +19 -55
  232. package/src/decorators/ctrl/HTTPAction.cjs +15 -51
  233. package/src/decorators/ctrl/HTTPAction.mjs +19 -55
  234. package/src/decorators/ctrl/ServiceAction.cjs +15 -51
  235. package/src/decorators/ctrl/ServiceAction.mjs +18 -54
  236. package/src/decorators/ctrl/http/DELETE.cjs +12 -48
  237. package/src/decorators/ctrl/http/DELETE.mjs +14 -50
  238. package/src/decorators/ctrl/http/GET.cjs +12 -48
  239. package/src/decorators/ctrl/http/GET.mjs +14 -50
  240. package/src/decorators/ctrl/http/HEAD.cjs +12 -48
  241. package/src/decorators/ctrl/http/HEAD.mjs +14 -50
  242. package/src/decorators/ctrl/http/OPTIONS.cjs +12 -48
  243. package/src/decorators/ctrl/http/OPTIONS.mjs +14 -50
  244. package/src/decorators/ctrl/http/PATCH.cjs +12 -48
  245. package/src/decorators/ctrl/http/PATCH.mjs +14 -50
  246. package/src/decorators/ctrl/http/POST.cjs +12 -48
  247. package/src/decorators/ctrl/http/POST.mjs +14 -50
  248. package/src/decorators/ctrl/http/PUT.cjs +12 -48
  249. package/src/decorators/ctrl/http/PUT.mjs +14 -50
  250. package/src/decorators/di/Autoload.cjs +3 -3
  251. package/src/decorators/di/Autoload.mjs +3 -3
  252. package/src/decorators/di/Configurable.cjs +10 -40
  253. package/src/decorators/di/Configurable.mjs +12 -42
  254. package/src/decorators/di/Inject.cjs +20 -50
  255. package/src/decorators/di/Inject.mjs +25 -55
  256. package/src/decorators/di/Lifetime.cjs +5 -7
  257. package/src/decorators/di/Lifetime.mjs +15 -17
  258. package/src/decorators/dto/Accept.cjs +10 -40
  259. package/src/decorators/dto/Accept.mjs +13 -43
  260. package/src/decorators/dto/Expect.cjs +11 -41
  261. package/src/decorators/dto/Expect.mjs +13 -43
  262. package/src/decorators/dto/IndexSignature.cjs +10 -40
  263. package/src/decorators/dto/IndexSignature.mjs +13 -43
  264. package/src/decorators/dto/Return.cjs +10 -40
  265. package/src/decorators/dto/Return.mjs +13 -43
  266. package/src/decorators/orm/AfterInsert.cjs +17 -95
  267. package/src/decorators/orm/AfterInsert.mjs +17 -95
  268. package/src/decorators/orm/AfterLoad.cjs +17 -95
  269. package/src/decorators/orm/AfterLoad.mjs +17 -95
  270. package/src/decorators/orm/AfterRecover.cjs +17 -95
  271. package/src/decorators/orm/AfterRecover.mjs +17 -95
  272. package/src/decorators/orm/AfterRemove.cjs +17 -95
  273. package/src/decorators/orm/AfterRemove.mjs +17 -95
  274. package/src/decorators/orm/AfterSoftRemove.cjs +17 -95
  275. package/src/decorators/orm/AfterSoftRemove.mjs +17 -95
  276. package/src/decorators/orm/AfterUpdate.cjs +17 -95
  277. package/src/decorators/orm/AfterUpdate.mjs +17 -95
  278. package/src/decorators/orm/BeforeInsert.cjs +17 -95
  279. package/src/decorators/orm/BeforeInsert.mjs +17 -95
  280. package/src/decorators/orm/BeforeRecover.cjs +17 -95
  281. package/src/decorators/orm/BeforeRecover.mjs +17 -95
  282. package/src/decorators/orm/BeforeRemove.cjs +17 -95
  283. package/src/decorators/orm/BeforeRemove.mjs +17 -95
  284. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -95
  285. package/src/decorators/orm/BeforeSoftRemove.mjs +17 -95
  286. package/src/decorators/orm/BeforeUpdate.cjs +17 -95
  287. package/src/decorators/orm/BeforeUpdate.mjs +17 -95
  288. package/src/decorators/orm/Check.cjs +17 -95
  289. package/src/decorators/orm/Check.mjs +17 -95
  290. package/src/decorators/orm/ChildEntity.cjs +17 -95
  291. package/src/decorators/orm/ChildEntity.mjs +17 -95
  292. package/src/decorators/orm/Column.cjs +17 -95
  293. package/src/decorators/orm/Column.mjs +17 -95
  294. package/src/decorators/orm/CreateDateColumn.cjs +17 -95
  295. package/src/decorators/orm/CreateDateColumn.mjs +17 -95
  296. package/src/decorators/orm/DeleteDateColumn.cjs +17 -95
  297. package/src/decorators/orm/DeleteDateColumn.mjs +17 -95
  298. package/src/decorators/orm/Entity.cjs +17 -95
  299. package/src/decorators/orm/Entity.mjs +17 -95
  300. package/src/decorators/orm/EventSubscriber.cjs +17 -95
  301. package/src/decorators/orm/EventSubscriber.mjs +17 -95
  302. package/src/decorators/orm/Exclusion.cjs +17 -95
  303. package/src/decorators/orm/Exclusion.mjs +17 -95
  304. package/src/decorators/orm/Generated.cjs +17 -95
  305. package/src/decorators/orm/Generated.mjs +17 -95
  306. package/src/decorators/orm/Index.cjs +17 -95
  307. package/src/decorators/orm/Index.mjs +17 -95
  308. package/src/decorators/orm/JoinColumn.cjs +17 -95
  309. package/src/decorators/orm/JoinColumn.mjs +17 -95
  310. package/src/decorators/orm/JoinTable.cjs +17 -95
  311. package/src/decorators/orm/JoinTable.mjs +17 -95
  312. package/src/decorators/orm/ManyToMany.cjs +17 -95
  313. package/src/decorators/orm/ManyToMany.mjs +17 -95
  314. package/src/decorators/orm/ManyToOne.cjs +17 -95
  315. package/src/decorators/orm/ManyToOne.mjs +17 -95
  316. package/src/decorators/orm/ObjectIdColumn.cjs +17 -95
  317. package/src/decorators/orm/ObjectIdColumn.mjs +17 -95
  318. package/src/decorators/orm/OneToMany.cjs +17 -95
  319. package/src/decorators/orm/OneToMany.mjs +17 -95
  320. package/src/decorators/orm/OneToOne.cjs +17 -95
  321. package/src/decorators/orm/OneToOne.mjs +17 -95
  322. package/src/decorators/orm/PrimaryColumn.cjs +17 -95
  323. package/src/decorators/orm/PrimaryColumn.mjs +17 -95
  324. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -95
  325. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +17 -95
  326. package/src/decorators/orm/RelationId.cjs +17 -95
  327. package/src/decorators/orm/RelationId.mjs +17 -95
  328. package/src/decorators/orm/TableInheritance.cjs +17 -95
  329. package/src/decorators/orm/TableInheritance.mjs +17 -95
  330. package/src/decorators/orm/Tree.cjs +17 -95
  331. package/src/decorators/orm/Tree.mjs +17 -95
  332. package/src/decorators/orm/TreeChildren.cjs +17 -95
  333. package/src/decorators/orm/TreeChildren.mjs +17 -95
  334. package/src/decorators/orm/TreeLevelColumn.cjs +17 -95
  335. package/src/decorators/orm/TreeLevelColumn.mjs +17 -95
  336. package/src/decorators/orm/TreeParent.cjs +17 -95
  337. package/src/decorators/orm/TreeParent.mjs +17 -95
  338. package/src/decorators/orm/Unique.cjs +17 -95
  339. package/src/decorators/orm/Unique.mjs +17 -95
  340. package/src/decorators/orm/UpdateDateColumn.cjs +17 -95
  341. package/src/decorators/orm/UpdateDateColumn.mjs +17 -95
  342. package/src/decorators/orm/VersionColumn.cjs +17 -95
  343. package/src/decorators/orm/VersionColumn.mjs +17 -95
  344. package/src/decorators/orm/ViewColumn.cjs +17 -95
  345. package/src/decorators/orm/ViewColumn.mjs +17 -95
  346. package/src/decorators/orm/ViewEntity.cjs +17 -95
  347. package/src/decorators/orm/ViewEntity.mjs +17 -95
  348. package/src/decorators/orm/VirtualColumn.cjs +17 -95
  349. package/src/decorators/orm/VirtualColumn.mjs +17 -95
  350. package/src/dto/PaginationResultDTO.cjs +9 -39
  351. package/src/dto/PaginationResultDTO.mjs +18 -48
  352. package/src/dto/PaginationSearchDTO.cjs +9 -39
  353. package/src/dto/PaginationSearchDTO.mjs +13 -43
  354. package/src/exceptions/DestroyRuntimeContainerException.cjs +4 -6
  355. package/src/exceptions/DestroyRuntimeContainerException.mjs +4 -6
  356. package/src/exceptions/InvalidActionPatternDepthException.cjs +4 -6
  357. package/src/exceptions/InvalidActionPatternDepthException.mjs +4 -6
  358. package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +4 -6
  359. package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +4 -6
  360. package/src/exceptions/InvalidObjectTypeException.cjs +4 -6
  361. package/src/exceptions/InvalidObjectTypeException.mjs +4 -6
  362. package/src/exceptions/MethodNotFoundException.cjs +4 -6
  363. package/src/exceptions/MethodNotFoundException.mjs +4 -6
  364. package/src/exceptions/alias/AliasExistsException.cjs +4 -6
  365. package/src/exceptions/alias/AliasExistsException.mjs +6 -8
  366. package/src/exceptions/alias/AliasNotFoundException.cjs +4 -6
  367. package/src/exceptions/alias/AliasNotFoundException.mjs +4 -6
  368. package/src/exceptions/alias/InvalidAliasNameException.cjs +4 -6
  369. package/src/exceptions/alias/InvalidAliasNameException.mjs +4 -6
  370. package/src/exceptions/di/DependencyInjectionException.cjs +4 -6
  371. package/src/exceptions/di/DependencyInjectionException.mjs +4 -6
  372. package/src/exceptions/di/LifetimeLockedException.cjs +4 -6
  373. package/src/exceptions/di/LifetimeLockedException.mjs +4 -6
  374. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +4 -6
  375. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +4 -6
  376. package/src/exceptions/dto/InvalidMethodAcceptException.cjs +4 -6
  377. package/src/exceptions/dto/InvalidMethodAcceptException.mjs +4 -6
  378. package/src/exceptions/dto/InvalidMethodReturnException.cjs +4 -6
  379. package/src/exceptions/dto/InvalidMethodReturnException.mjs +4 -6
  380. package/src/exceptions/dto/InvalidValueException.cjs +4 -6
  381. package/src/exceptions/dto/InvalidValueException.mjs +4 -6
  382. package/src/interfaces/IBaseObjectConstructor.cjs +1 -1
  383. package/src/interfaces/IBaseObjectConstructor.mjs +1 -1
  384. package/src/interfaces/IConstructor.cjs +1 -1
  385. package/src/interfaces/IConstructor.mjs +1 -1
  386. package/src/interfaces/IPatRun.cjs +1 -1
  387. package/src/interfaces/IPatRun.mjs +1 -1
  388. package/src/lib/base/BaseObject.cjs +51 -259
  389. package/src/lib/base/BaseObject.mjs +41 -256
  390. package/src/lib/base/Context.cjs +11 -41
  391. package/src/lib/base/Context.mjs +23 -53
  392. package/src/lib/base/EventEmitter.cjs +1398 -47
  393. package/src/lib/base/EventEmitter.mjs +1397 -46
  394. package/src/lib/base/abstracts/Exception.cjs +12 -14
  395. package/src/lib/base/abstracts/Exception.mjs +4 -6
  396. package/src/lib/base/async-constructor/Append.cjs +1 -1
  397. package/src/lib/base/async-constructor/Append.mjs +1 -1
  398. package/src/lib/base/async-constructor/AsyncConstructor.cjs +1 -1
  399. package/src/lib/base/async-constructor/AsyncConstructor.mjs +1 -1
  400. package/src/lib/base/internal/ActionOptions.cjs +9 -39
  401. package/src/lib/base/internal/ActionOptions.mjs +9 -39
  402. package/src/lib/base/internal/ApplicationConfigLoader.cjs +54 -116
  403. package/src/lib/base/internal/ApplicationConfigLoader.mjs +54 -116
  404. package/src/lib/base/internal/BasicInfo.cjs +13 -15
  405. package/src/lib/base/internal/BasicInfo.mjs +15 -17
  406. package/src/lib/base/internal/CamelCase.cjs +1 -1
  407. package/src/lib/base/internal/CamelCase.mjs +1 -1
  408. package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +3 -3
  409. package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +3 -3
  410. package/src/lib/base/internal/ConstructorSymbol.cjs +3 -3
  411. package/src/lib/base/internal/ConstructorSymbol.mjs +3 -3
  412. package/src/lib/base/internal/ControllerEntrypoint.cjs +16 -24
  413. package/src/lib/base/internal/ControllerEntrypoint.mjs +39 -47
  414. package/src/lib/base/internal/DataValidator.cjs +203 -27
  415. package/src/lib/base/internal/DataValidator.mjs +203 -27
  416. package/src/lib/base/internal/DatabaseSymbol.cjs +1 -1
  417. package/src/lib/base/internal/DatabaseSymbol.mjs +1 -1
  418. package/src/lib/base/internal/FlexibleDTO.cjs +11 -41
  419. package/src/lib/base/internal/FlexibleDTO.mjs +13 -43
  420. package/src/lib/base/internal/GetActionDTOAndOptions.cjs +21 -51
  421. package/src/lib/base/internal/GetActionDTOAndOptions.mjs +23 -53
  422. package/src/lib/base/internal/IEEE754.cjs +1 -1
  423. package/src/lib/base/internal/IEEE754.mjs +1 -1
  424. package/src/lib/base/internal/MethodAssistantFunction.cjs +15 -17
  425. package/src/lib/base/internal/MethodAssistantFunction.mjs +8 -10
  426. package/src/lib/base/internal/MethodValidation.cjs +55 -85
  427. package/src/lib/base/internal/MethodValidation.mjs +42 -72
  428. package/src/lib/base/internal/ModuleConfigLoader.cjs +81 -143
  429. package/src/lib/base/internal/ModuleConfigLoader.mjs +76 -138
  430. package/src/lib/base/internal/ObjectConfiguration.cjs +26 -56
  431. package/src/lib/base/internal/ObjectConfiguration.mjs +25 -55
  432. package/src/lib/base/internal/ObjectContainer.cjs +3 -3
  433. package/src/lib/base/internal/ObjectContainer.mjs +3 -3
  434. package/src/lib/base/internal/ObjectInjection.cjs +3 -3
  435. package/src/lib/base/internal/ObjectInjection.mjs +3 -3
  436. package/src/lib/base/internal/ObjectLifetime.cjs +5 -7
  437. package/src/lib/base/internal/ObjectLifetime.mjs +12 -14
  438. package/src/lib/base/internal/ObjectSchemaValidation.cjs +23 -121
  439. package/src/lib/base/internal/ObjectSchemaValidation.mjs +14 -114
  440. package/src/lib/base/internal/ObjectType.cjs +27 -119
  441. package/src/lib/base/internal/ObjectType.mjs +20 -119
  442. package/src/lib/base/internal/ObjectWeakRefs.cjs +1 -1
  443. package/src/lib/base/internal/ObjectWeakRefs.mjs +1 -1
  444. package/src/lib/base/internal/PatternManager.cjs +831 -7
  445. package/src/lib/base/internal/PatternManager.mjs +835 -11
  446. package/src/lib/base/internal/StringifyPattern.cjs +5 -9
  447. package/src/lib/base/internal/StringifyPattern.mjs +5 -9
  448. package/src/lib/base/internal/ThrowWarning.cjs +1 -1
  449. package/src/lib/base/internal/ThrowWarning.mjs +1 -1
  450. package/src/lib/context/CLIContext.cjs +12 -42
  451. package/src/lib/context/CLIContext.mjs +15 -45
  452. package/src/lib/context/HTTPContext.cjs +15 -45
  453. package/src/lib/context/HTTPContext.mjs +14 -44
  454. package/src/lib/context/ServiceContext.cjs +12 -42
  455. package/src/lib/context/ServiceContext.mjs +18 -48
  456. package/src/lib/core/Alias.cjs +46 -48
  457. package/src/lib/core/Alias.mjs +24 -26
  458. package/src/lib/core/Application.cjs +486 -351
  459. package/src/lib/core/Application.mjs +531 -400
  460. package/src/lib/core/Component.cjs +24 -88
  461. package/src/lib/core/Component.mjs +28 -92
  462. package/src/lib/core/Container.cjs +50 -326
  463. package/src/lib/core/Container.mjs +45 -323
  464. package/src/lib/core/DTO.cjs +16 -194
  465. package/src/lib/core/DTO.mjs +12 -197
  466. package/src/lib/core/Module.cjs +39 -107
  467. package/src/lib/core/Module.mjs +53 -121
  468. package/src/lib/core/Provider.cjs +19 -81
  469. package/src/lib/core/Provider.mjs +25 -87
  470. package/src/lib/core/Time.cjs +5 -7
  471. package/src/lib/core/Time.mjs +5 -7
  472. package/src/lib/helpers/ArrayToSet.cjs +1 -1
  473. package/src/lib/helpers/ArrayToSet.mjs +1 -1
  474. package/src/lib/helpers/As.cjs +1 -1
  475. package/src/lib/helpers/As.mjs +1 -1
  476. package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +1 -1
  477. package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +1 -1
  478. package/src/lib/helpers/ConvertArrayLikeToStream.cjs +1 -1
  479. package/src/lib/helpers/ConvertArrayLikeToStream.mjs +1 -1
  480. package/src/lib/helpers/Delay.cjs +1 -1
  481. package/src/lib/helpers/Delay.mjs +1 -1
  482. package/src/lib/helpers/DevNull.cjs +1 -1
  483. package/src/lib/helpers/DevNull.mjs +1 -1
  484. package/src/lib/helpers/GetObjectNestingDepth.cjs +1 -1
  485. package/src/lib/helpers/GetObjectNestingDepth.mjs +1 -1
  486. package/src/lib/helpers/GetObjectPropertyPaths.cjs +1 -1
  487. package/src/lib/helpers/GetObjectPropertyPaths.mjs +1 -1
  488. package/src/lib/helpers/Glob.cjs +5502 -17
  489. package/src/lib/helpers/Glob.mjs +5472 -17
  490. package/src/lib/helpers/GraceExit.cjs +1 -1
  491. package/src/lib/helpers/GraceExit.mjs +1 -1
  492. package/src/lib/helpers/HexToIEEE754.cjs +1 -1
  493. package/src/lib/helpers/HexToIEEE754.mjs +1 -1
  494. package/src/lib/helpers/HexToSigned.cjs +1 -1
  495. package/src/lib/helpers/HexToSigned.mjs +1 -1
  496. package/src/lib/helpers/HexToUnsigned.cjs +1 -1
  497. package/src/lib/helpers/HexToUnsigned.mjs +1 -1
  498. package/src/lib/helpers/IEEE754ToHex.cjs +1 -1
  499. package/src/lib/helpers/IEEE754ToHex.mjs +1 -1
  500. package/src/lib/helpers/IPToolkit.cjs +1 -1
  501. package/src/lib/helpers/IPToolkit.mjs +1 -1
  502. package/src/lib/helpers/IsAbortError.cjs +1 -1
  503. package/src/lib/helpers/IsAbortError.mjs +1 -1
  504. package/src/lib/helpers/IsEmptyObject.cjs +1 -1
  505. package/src/lib/helpers/IsEmptyObject.mjs +1 -1
  506. package/src/lib/helpers/IsExists.cjs +1 -1
  507. package/src/lib/helpers/IsExists.mjs +1 -1
  508. package/src/lib/helpers/IsGlobString.cjs +4 -10
  509. package/src/lib/helpers/IsGlobString.mjs +3 -11
  510. package/src/lib/helpers/IsHtml.cjs +5 -5
  511. package/src/lib/helpers/IsHtml.mjs +6 -6
  512. package/src/lib/helpers/IsNativeFunction.cjs +1 -1
  513. package/src/lib/helpers/IsNativeFunction.mjs +1 -1
  514. package/src/lib/helpers/IsPath.cjs +1 -1
  515. package/src/lib/helpers/IsPath.mjs +1 -1
  516. package/src/lib/helpers/IsPromise.cjs +1 -1
  517. package/src/lib/helpers/IsPromise.mjs +1 -1
  518. package/src/lib/helpers/IsPromiseLike.cjs +1 -1
  519. package/src/lib/helpers/IsPromiseLike.mjs +1 -1
  520. package/src/lib/helpers/IsSymbol.cjs +10 -44
  521. package/src/lib/helpers/IsSymbol.mjs +9 -45
  522. package/src/lib/helpers/IsXML.cjs +1711 -6
  523. package/src/lib/helpers/IsXML.mjs +1712 -7
  524. package/src/lib/helpers/MD5.cjs +4 -4
  525. package/src/lib/helpers/MD5.mjs +4 -4
  526. package/src/lib/helpers/MergeArray.cjs +1 -1
  527. package/src/lib/helpers/MergeArray.mjs +1 -1
  528. package/src/lib/helpers/MergeMap.cjs +1 -1
  529. package/src/lib/helpers/MergeMap.mjs +1 -1
  530. package/src/lib/helpers/MergeSet.cjs +1 -1
  531. package/src/lib/helpers/MergeSet.mjs +1 -1
  532. package/src/lib/helpers/NoCase.cjs +1 -1
  533. package/src/lib/helpers/NoCase.mjs +1 -1
  534. package/src/lib/helpers/NonceStr.cjs +2 -6
  535. package/src/lib/helpers/NonceStr.mjs +4 -8
  536. package/src/lib/helpers/ObjectConstructor.cjs +1 -1
  537. package/src/lib/helpers/ObjectConstructor.mjs +1 -1
  538. package/src/lib/helpers/ObjectHash.cjs +405 -7
  539. package/src/lib/helpers/ObjectHash.mjs +399 -7
  540. package/src/lib/helpers/ObjectParentConstructor.cjs +1 -1
  541. package/src/lib/helpers/ObjectParentConstructor.mjs +1 -1
  542. package/src/lib/helpers/ObjectParentConstructors.cjs +1 -1
  543. package/src/lib/helpers/ObjectParentConstructors.mjs +1 -1
  544. package/src/lib/helpers/ObjectPath.cjs +1 -1
  545. package/src/lib/helpers/ObjectPath.mjs +1 -1
  546. package/src/lib/helpers/ObjectPrototype.cjs +1 -1
  547. package/src/lib/helpers/ObjectPrototype.mjs +1 -1
  548. package/src/lib/helpers/ObjectToMap.cjs +1 -1
  549. package/src/lib/helpers/ObjectToMap.mjs +1 -1
  550. package/src/lib/helpers/Paginator.cjs +1 -1
  551. package/src/lib/helpers/Paginator.mjs +1 -1
  552. package/src/lib/helpers/RandomString.cjs +172 -11
  553. package/src/lib/helpers/RandomString.mjs +166 -11
  554. package/src/lib/helpers/SHA1.cjs +4 -4
  555. package/src/lib/helpers/SHA1.mjs +4 -4
  556. package/src/lib/helpers/SHA256.cjs +4 -4
  557. package/src/lib/helpers/SHA256.mjs +4 -4
  558. package/src/lib/helpers/SetToArray.cjs +1 -1
  559. package/src/lib/helpers/SetToArray.mjs +1 -1
  560. package/src/lib/helpers/SignedToHex.cjs +1 -1
  561. package/src/lib/helpers/SignedToHex.mjs +1 -1
  562. package/src/lib/helpers/SortArray.cjs +2 -6
  563. package/src/lib/helpers/SortArray.mjs +7 -11
  564. package/src/lib/helpers/SortKeys.cjs +1 -1
  565. package/src/lib/helpers/SortKeys.mjs +1 -1
  566. package/src/lib/helpers/SortObject.cjs +1 -1
  567. package/src/lib/helpers/SortObject.mjs +1 -1
  568. package/src/lib/helpers/Statistics.cjs +2 -2
  569. package/src/lib/helpers/Statistics.mjs +2 -2
  570. package/src/lib/helpers/Templating.cjs +1 -1
  571. package/src/lib/helpers/Templating.mjs +1 -1
  572. package/src/lib/helpers/URLBuilder.cjs +417 -38
  573. package/src/lib/helpers/URLBuilder.mjs +417 -38
  574. package/src/lib/helpers/UUID.cjs +340 -22
  575. package/src/lib/helpers/UUID.mjs +340 -22
  576. package/src/lib/helpers/UniqueArray.cjs +1 -1
  577. package/src/lib/helpers/UniqueArray.mjs +1 -1
  578. package/src/lib/helpers/UnsignedToHex.cjs +1 -1
  579. package/src/lib/helpers/UnsignedToHex.mjs +1 -1
  580. package/src/lib/ioc/DependencyInjectionContainer.cjs +145 -197
  581. package/src/lib/ioc/DependencyInjectionContainer.mjs +102 -154
  582. package/src/lib/ioc/Errors.cjs +27 -57
  583. package/src/lib/ioc/Errors.mjs +25 -55
  584. package/src/lib/ioc/FunctionTokenizer.cjs +1 -1
  585. package/src/lib/ioc/FunctionTokenizer.mjs +1 -1
  586. package/src/lib/ioc/InjectionMode.cjs +1 -1
  587. package/src/lib/ioc/InjectionMode.mjs +1 -1
  588. package/src/lib/ioc/Lifetime.cjs +1 -1
  589. package/src/lib/ioc/Lifetime.mjs +1 -1
  590. package/src/lib/ioc/ListModules.cjs +5811 -99
  591. package/src/lib/ioc/ListModules.mjs +5779 -79
  592. package/src/lib/ioc/LoadModules.cjs +63 -93
  593. package/src/lib/ioc/LoadModules.mjs +65 -95
  594. package/src/lib/ioc/ParamParser.cjs +1 -1
  595. package/src/lib/ioc/ParamParser.mjs +1 -1
  596. package/src/lib/ioc/Resolvers.cjs +42 -72
  597. package/src/lib/ioc/Resolvers.mjs +44 -74
  598. package/src/lib/ioc/Utils.cjs +28 -58
  599. package/src/lib/ioc/Utils.mjs +34 -64
  600. package/src/lib/validation/VLD.cjs +11342 -98
  601. package/src/lib/validation/VLD.mjs +11298 -80
  602. package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -1
  603. package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -1
  604. package/src/lib/validation/interfaces/AnySchema.cjs +1 -1
  605. package/src/lib/validation/interfaces/AnySchema.mjs +1 -1
  606. package/src/lib/validation/interfaces/ArraySchema.cjs +1 -1
  607. package/src/lib/validation/interfaces/ArraySchema.mjs +1 -1
  608. package/src/lib/validation/interfaces/Base64Options.cjs +1 -1
  609. package/src/lib/validation/interfaces/Base64Options.mjs +1 -1
  610. package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -1
  611. package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -1
  612. package/src/lib/validation/interfaces/BigIntSchema.cjs +1 -1
  613. package/src/lib/validation/interfaces/BigIntSchema.mjs +1 -1
  614. package/src/lib/validation/interfaces/BinarySchema.cjs +1 -1
  615. package/src/lib/validation/interfaces/BinarySchema.mjs +1 -1
  616. package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -1
  617. package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -1
  618. package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -1
  619. package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -1
  620. package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -1
  621. package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -1
  622. package/src/lib/validation/interfaces/DateSchema.cjs +1 -1
  623. package/src/lib/validation/interfaces/DateSchema.mjs +1 -1
  624. package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -1
  625. package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -1
  626. package/src/lib/validation/interfaces/DomainOptions.cjs +1 -1
  627. package/src/lib/validation/interfaces/DomainOptions.mjs +1 -1
  628. package/src/lib/validation/interfaces/EmailOptions.cjs +1 -1
  629. package/src/lib/validation/interfaces/EmailOptions.mjs +1 -1
  630. package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -1
  631. package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -1
  632. package/src/lib/validation/interfaces/ErrorReport.cjs +1 -1
  633. package/src/lib/validation/interfaces/ErrorReport.mjs +1 -1
  634. package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -1
  635. package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -1
  636. package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -1
  637. package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -1
  638. package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -1
  639. package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -1
  640. package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -1
  641. package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -1
  642. package/src/lib/validation/interfaces/GuidOptions.cjs +1 -1
  643. package/src/lib/validation/interfaces/GuidOptions.mjs +1 -1
  644. package/src/lib/validation/interfaces/HexOptions.cjs +1 -1
  645. package/src/lib/validation/interfaces/HexOptions.mjs +1 -1
  646. package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -1
  647. package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -1
  648. package/src/lib/validation/interfaces/IpOptions.cjs +1 -1
  649. package/src/lib/validation/interfaces/IpOptions.mjs +1 -1
  650. package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -1
  651. package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -1
  652. package/src/lib/validation/interfaces/LinkSchema.cjs +1 -1
  653. package/src/lib/validation/interfaces/LinkSchema.mjs +1 -1
  654. package/src/lib/validation/interfaces/NumberSchema.cjs +1 -1
  655. package/src/lib/validation/interfaces/NumberSchema.mjs +1 -1
  656. package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -1
  657. package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -1
  658. package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -1
  659. package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -1
  660. package/src/lib/validation/interfaces/Reference.cjs +1 -1
  661. package/src/lib/validation/interfaces/Reference.mjs +1 -1
  662. package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -1
  663. package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -1
  664. package/src/lib/validation/interfaces/RenameOptions.cjs +1 -1
  665. package/src/lib/validation/interfaces/RenameOptions.mjs +1 -1
  666. package/src/lib/validation/interfaces/State.cjs +1 -1
  667. package/src/lib/validation/interfaces/State.mjs +1 -1
  668. package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -1
  669. package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -1
  670. package/src/lib/validation/interfaces/StringSchema.cjs +1 -1
  671. package/src/lib/validation/interfaces/StringSchema.mjs +1 -1
  672. package/src/lib/validation/interfaces/SwitchCases.cjs +1 -1
  673. package/src/lib/validation/interfaces/SwitchCases.mjs +1 -1
  674. package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -1
  675. package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -1
  676. package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -1
  677. package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -1
  678. package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -1
  679. package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -1
  680. package/src/lib/validation/interfaces/UriOptions.cjs +1 -1
  681. package/src/lib/validation/interfaces/UriOptions.mjs +1 -1
  682. package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -1
  683. package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -1
  684. package/src/lib/validation/interfaces/WhenOptions.cjs +1 -1
  685. package/src/lib/validation/interfaces/WhenOptions.mjs +1 -1
  686. package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -1
  687. package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -1
  688. package/src/lib/validation/types/CustomValidator.cjs +1 -1
  689. package/src/lib/validation/types/CustomValidator.mjs +1 -1
  690. package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -1
  691. package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -1
  692. package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -1
  693. package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -1
  694. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -1
  695. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -1
  696. package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -1
  697. package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -1
  698. package/src/lib/validation/types/IsUnion.cjs +1 -1
  699. package/src/lib/validation/types/IsUnion.mjs +1 -1
  700. package/src/lib/validation/types/LanguageMessages.cjs +1 -1
  701. package/src/lib/validation/types/LanguageMessages.mjs +1 -1
  702. package/src/lib/validation/types/NoNestedArrays.cjs +1 -1
  703. package/src/lib/validation/types/NoNestedArrays.mjs +1 -1
  704. package/src/lib/validation/types/NullableType.cjs +1 -1
  705. package/src/lib/validation/types/NullableType.mjs +1 -1
  706. package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -1
  707. package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -1
  708. package/src/lib/validation/types/PartialSchemaMap.cjs +1 -1
  709. package/src/lib/validation/types/PartialSchemaMap.mjs +1 -1
  710. package/src/lib/validation/types/PresenceMode.cjs +1 -1
  711. package/src/lib/validation/types/PresenceMode.mjs +1 -1
  712. package/src/lib/validation/types/Primitives.cjs +1 -1
  713. package/src/lib/validation/types/Primitives.mjs +1 -1
  714. package/src/lib/validation/types/Schema.cjs +1 -1
  715. package/src/lib/validation/types/Schema.mjs +1 -1
  716. package/src/lib/validation/types/SchemaFunction.cjs +1 -1
  717. package/src/lib/validation/types/SchemaFunction.mjs +1 -1
  718. package/src/lib/validation/types/SchemaLike.cjs +1 -1
  719. package/src/lib/validation/types/SchemaLike.mjs +1 -1
  720. package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -1
  721. package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -1
  722. package/src/lib/validation/types/SchemaMap.cjs +1 -1
  723. package/src/lib/validation/types/SchemaMap.mjs +1 -1
  724. package/src/lib/validation/types/StrictSchemaMap.cjs +1 -1
  725. package/src/lib/validation/types/StrictSchemaMap.mjs +1 -1
  726. package/src/lib/validation/types/Types.cjs +1 -1
  727. package/src/lib/validation/types/Types.mjs +1 -1
  728. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.cjs +1 -1
  729. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.mjs +1 -1
  730. package/src/options/ApplicationOptions.cjs +22 -84
  731. package/src/options/ApplicationOptions.mjs +25 -87
  732. package/src/options/LoadAnonymousObjectOptions.cjs +20 -82
  733. package/src/options/LoadAnonymousObjectOptions.mjs +22 -84
  734. package/src/options/LoadNamedObjectOptions.cjs +20 -82
  735. package/src/options/LoadNamedObjectOptions.mjs +22 -84
  736. package/src/options/LoadObjectOptions.cjs +23 -96
  737. package/src/options/LoadObjectOptions.mjs +18 -98
  738. package/src/options/ModuleLoadObjectsOptions.cjs +20 -82
  739. package/src/options/ModuleLoadObjectsOptions.mjs +20 -82
  740. package/src/options/ModuleOptions.cjs +26 -88
  741. package/src/options/ModuleOptions.mjs +25 -87
  742. package/src/options/OverridableNamedObjectOptions.cjs +20 -82
  743. package/src/options/OverridableNamedObjectOptions.mjs +23 -85
  744. package/src/options/OverridableObjectOptions.cjs +20 -82
  745. package/src/options/OverridableObjectOptions.mjs +22 -84
  746. package/src/providers/Database.cjs +41 -181
  747. package/src/providers/Database.mjs +74 -214
  748. package/src/providers/PasswordHash.cjs +541 -89
  749. package/src/providers/PasswordHash.mjs +535 -89
  750. package/src/providers/migration/GenerateMigration.cjs +37 -389
  751. package/src/providers/migration/GenerateMigration.mjs +33 -386
  752. package/src/types/ActionPattern.cjs +1 -1
  753. package/src/types/ActionPattern.mjs +1 -1
  754. package/src/types/ClassDecorator.cjs +1 -1
  755. package/src/types/ClassDecorator.mjs +1 -1
  756. package/src/types/ComponentOptions.cjs +1 -1
  757. package/src/types/ComponentOptions.mjs +1 -1
  758. package/src/types/JSONSchema.cjs +1 -1
  759. package/src/types/JSONSchema.mjs +1 -1
  760. package/src/types/MethodDecorator.cjs +1 -1
  761. package/src/types/MethodDecorator.mjs +1 -1
  762. package/src/types/ModuleOptions.cjs +1 -1
  763. package/src/types/ModuleOptions.mjs +1 -1
  764. package/src/types/ObjectOptions.cjs +1 -1
  765. package/src/types/ObjectOptions.mjs +1 -1
  766. package/src/types/ParameterDecorator.cjs +1 -1
  767. package/src/types/ParameterDecorator.mjs +1 -1
  768. package/src/types/PropertyDecorator.cjs +1 -1
  769. package/src/types/PropertyDecorator.mjs +1 -1
  770. package/src/types/ProviderOptions.cjs +1 -1
  771. package/src/types/ProviderOptions.mjs +1 -1
  772. package/vendor/Package.internal.1.cjs +938 -206
  773. package/vendor/Package.internal.1.mjs +938 -202
  774. package/vendor/Package.internal.10.cjs +17 -227
  775. package/vendor/Package.internal.10.mjs +18 -226
  776. package/vendor/Package.internal.11.cjs +15 -1608
  777. package/vendor/Package.internal.11.mjs +16 -1579
  778. package/vendor/Package.internal.12.cjs +13 -12547
  779. package/vendor/Package.internal.12.mjs +14 -12530
  780. package/vendor/Package.internal.13.cjs +22 -357
  781. package/vendor/Package.internal.13.mjs +23 -358
  782. package/vendor/Package.internal.14.cjs +17 -786
  783. package/vendor/Package.internal.14.mjs +18 -787
  784. package/vendor/Package.internal.15.cjs +18 -72
  785. package/vendor/Package.internal.15.mjs +19 -71
  786. package/vendor/Package.internal.16.cjs +13 -977
  787. package/vendor/Package.internal.16.mjs +14 -966
  788. package/vendor/Package.internal.17.cjs +19 -43
  789. package/vendor/Package.internal.17.mjs +20 -44
  790. package/vendor/Package.internal.18.cjs +16 -262
  791. package/vendor/Package.internal.18.mjs +17 -263
  792. package/vendor/Package.internal.19.cjs +16 -428
  793. package/vendor/Package.internal.19.mjs +17 -429
  794. package/vendor/Package.internal.2.cjs +29 -86
  795. package/vendor/Package.internal.2.mjs +30 -83
  796. package/vendor/Package.internal.20.cjs +18 -556
  797. package/vendor/Package.internal.20.mjs +19 -551
  798. package/vendor/Package.internal.21.cjs +19 -400
  799. package/vendor/Package.internal.21.mjs +20 -401
  800. package/vendor/Package.internal.22.cjs +56 -913
  801. package/vendor/Package.internal.22.mjs +57 -908
  802. package/vendor/Package.internal.23.cjs +15 -218
  803. package/vendor/Package.internal.23.mjs +17 -220
  804. package/vendor/Package.internal.24.cjs +16 -990
  805. package/vendor/Package.internal.24.mjs +17 -991
  806. package/vendor/Package.internal.25.cjs +32 -9
  807. package/vendor/Package.internal.25.mjs +33 -8
  808. package/vendor/Package.internal.26.cjs +15 -121
  809. package/vendor/Package.internal.26.mjs +16 -120
  810. package/vendor/Package.internal.27.cjs +18 -139
  811. package/vendor/Package.internal.27.mjs +19 -138
  812. package/vendor/Package.internal.28.cjs +21 -5
  813. package/vendor/Package.internal.28.mjs +22 -4
  814. package/vendor/Package.internal.29.cjs +36 -19
  815. package/vendor/Package.internal.29.mjs +37 -18
  816. package/vendor/Package.internal.3.cjs +532 -14232
  817. package/vendor/Package.internal.3.mjs +529 -14211
  818. package/vendor/Package.internal.30.cjs +22 -474
  819. package/vendor/Package.internal.30.mjs +23 -469
  820. package/vendor/Package.internal.31.cjs +21 -74
  821. package/vendor/Package.internal.31.mjs +24 -71
  822. package/vendor/Package.internal.310.cjs +10 -0
  823. package/vendor/Package.internal.310.mjs +8 -0
  824. package/vendor/Package.internal.32.cjs +40 -2
  825. package/vendor/Package.internal.32.mjs +42 -2
  826. package/vendor/Package.internal.33.cjs +34 -35
  827. package/vendor/Package.internal.33.mjs +35 -34
  828. package/vendor/Package.internal.34.cjs +20 -21
  829. package/vendor/Package.internal.34.mjs +21 -20
  830. package/vendor/Package.internal.35.cjs +29 -10
  831. package/vendor/Package.internal.35.mjs +30 -9
  832. package/vendor/Package.internal.36.cjs +39 -188
  833. package/vendor/Package.internal.36.mjs +42 -191
  834. package/vendor/Package.internal.37.cjs +43 -59
  835. package/vendor/Package.internal.37.mjs +46 -60
  836. package/vendor/Package.internal.38.cjs +43 -158
  837. package/vendor/Package.internal.38.mjs +44 -159
  838. package/vendor/Package.internal.39.cjs +19 -2070
  839. package/vendor/Package.internal.39.mjs +20 -2065
  840. package/vendor/Package.internal.4.cjs +463 -961
  841. package/vendor/Package.internal.4.mjs +444 -960
  842. package/vendor/Package.internal.40.cjs +16 -512
  843. package/vendor/Package.internal.40.mjs +17 -505
  844. package/vendor/Package.internal.41.cjs +15 -412
  845. package/vendor/Package.internal.41.mjs +16 -407
  846. package/vendor/Package.internal.42.cjs +21 -2356
  847. package/vendor/Package.internal.42.mjs +22 -2345
  848. package/vendor/Package.internal.43.cjs +17 -56
  849. package/vendor/Package.internal.43.mjs +18 -63
  850. package/vendor/Package.internal.44.cjs +25 -146
  851. package/vendor/Package.internal.44.mjs +26 -145
  852. package/vendor/Package.internal.45.cjs +31 -626
  853. package/vendor/Package.internal.45.mjs +33 -628
  854. package/vendor/Package.internal.46.cjs +16 -238
  855. package/vendor/Package.internal.46.mjs +17 -239
  856. package/vendor/Package.internal.47.cjs +16 -220
  857. package/vendor/Package.internal.47.mjs +17 -215
  858. package/vendor/Package.internal.48.cjs +23 -2
  859. package/vendor/Package.internal.48.mjs +25 -2
  860. package/vendor/Package.internal.49.cjs +24 -355
  861. package/vendor/Package.internal.49.mjs +27 -352
  862. package/vendor/Package.internal.5.cjs +4275 -340
  863. package/vendor/Package.internal.5.mjs +4274 -341
  864. package/vendor/Package.internal.50.cjs +30 -30
  865. package/vendor/Package.internal.50.mjs +32 -30
  866. package/vendor/Package.internal.51.cjs +48322 -38
  867. package/vendor/Package.internal.51.mjs +48282 -38
  868. package/vendor/Package.internal.510.cjs +154 -0
  869. package/vendor/Package.internal.510.mjs +142 -0
  870. package/vendor/Package.internal.511.cjs +168 -0
  871. package/vendor/Package.internal.511.mjs +156 -0
  872. package/vendor/Package.internal.512.cjs +6 -0
  873. package/vendor/Package.internal.512.mjs +6 -0
  874. package/vendor/Package.internal.513.cjs +192 -0
  875. package/vendor/Package.internal.513.mjs +180 -0
  876. package/vendor/Package.internal.52.cjs +676 -16
  877. package/vendor/Package.internal.52.mjs +672 -16
  878. package/vendor/{Package.internal.180.cjs → Package.internal.522.cjs} +1 -1
  879. package/vendor/{Package.internal.180.mjs → Package.internal.522.mjs} +2 -2
  880. package/vendor/Package.internal.53.cjs +7094 -63
  881. package/vendor/Package.internal.53.mjs +7067 -60
  882. package/vendor/Package.internal.54.cjs +183 -77
  883. package/vendor/Package.internal.54.mjs +184 -78
  884. package/vendor/Package.internal.542.cjs +171 -0
  885. package/vendor/Package.internal.542.mjs +153 -0
  886. package/vendor/Package.internal.55.cjs +3982 -56
  887. package/vendor/Package.internal.55.mjs +3995 -47
  888. package/vendor/Package.internal.552.cjs +49615 -0
  889. package/vendor/Package.internal.552.mjs +49572 -0
  890. package/vendor/Package.internal.56.cjs +838 -20
  891. package/vendor/Package.internal.56.mjs +839 -19
  892. package/vendor/Package.internal.57.cjs +14762 -322
  893. package/vendor/Package.internal.57.mjs +14740 -325
  894. package/vendor/Package.internal.58.cjs +136 -2
  895. package/vendor/Package.internal.58.mjs +126 -2
  896. package/vendor/Package.internal.59.cjs +323 -188
  897. package/vendor/Package.internal.59.mjs +319 -188
  898. package/vendor/Package.internal.6.cjs +4 -6109
  899. package/vendor/Package.internal.6.mjs +4 -6103
  900. package/vendor/Package.internal.7.cjs +6543 -494
  901. package/vendor/Package.internal.7.mjs +6531 -494
  902. package/vendor/Package.internal.8.cjs +152 -33
  903. package/vendor/Package.internal.8.mjs +152 -31
  904. package/vendor/Package.internal.9.cjs +16 -2160
  905. package/vendor/Package.internal.9.mjs +17 -2133
  906. package/vendor/Package.internal.100.cjs +0 -69
  907. package/vendor/Package.internal.100.mjs +0 -67
  908. package/vendor/Package.internal.101.cjs +0 -123
  909. package/vendor/Package.internal.101.mjs +0 -121
  910. package/vendor/Package.internal.102.cjs +0 -16
  911. package/vendor/Package.internal.102.mjs +0 -8
  912. package/vendor/Package.internal.103.cjs +0 -4
  913. package/vendor/Package.internal.103.mjs +0 -2
  914. package/vendor/Package.internal.104.cjs +0 -4
  915. package/vendor/Package.internal.104.mjs +0 -2
  916. package/vendor/Package.internal.105.cjs +0 -112
  917. package/vendor/Package.internal.105.mjs +0 -98
  918. package/vendor/Package.internal.106.cjs +0 -88
  919. package/vendor/Package.internal.106.mjs +0 -84
  920. package/vendor/Package.internal.107.cjs +0 -58
  921. package/vendor/Package.internal.107.mjs +0 -52
  922. package/vendor/Package.internal.108.cjs +0 -20
  923. package/vendor/Package.internal.108.mjs +0 -18
  924. package/vendor/Package.internal.109.cjs +0 -96
  925. package/vendor/Package.internal.109.mjs +0 -96
  926. package/vendor/Package.internal.110.cjs +0 -113
  927. package/vendor/Package.internal.110.mjs +0 -113
  928. package/vendor/Package.internal.111.cjs +0 -2176
  929. package/vendor/Package.internal.111.mjs +0 -2174
  930. package/vendor/Package.internal.112.cjs +0 -2466
  931. package/vendor/Package.internal.112.mjs +0 -2434
  932. package/vendor/Package.internal.113.cjs +0 -1306
  933. package/vendor/Package.internal.113.mjs +0 -1292
  934. package/vendor/Package.internal.114.cjs +0 -33
  935. package/vendor/Package.internal.114.mjs +0 -31
  936. package/vendor/Package.internal.115.cjs +0 -20
  937. package/vendor/Package.internal.115.mjs +0 -18
  938. package/vendor/Package.internal.116.cjs +0 -21
  939. package/vendor/Package.internal.116.mjs +0 -21
  940. package/vendor/Package.internal.117.cjs +0 -52
  941. package/vendor/Package.internal.117.mjs +0 -52
  942. package/vendor/Package.internal.118.cjs +0 -141
  943. package/vendor/Package.internal.118.mjs +0 -141
  944. package/vendor/Package.internal.119.cjs +0 -2
  945. package/vendor/Package.internal.119.mjs +0 -1
  946. package/vendor/Package.internal.120.cjs +0 -6
  947. package/vendor/Package.internal.120.mjs +0 -4
  948. package/vendor/Package.internal.121.cjs +0 -4
  949. package/vendor/Package.internal.121.mjs +0 -2
  950. package/vendor/Package.internal.122.cjs +0 -4
  951. package/vendor/Package.internal.122.mjs +0 -2
  952. package/vendor/Package.internal.123.cjs +0 -4
  953. package/vendor/Package.internal.123.mjs +0 -2
  954. package/vendor/Package.internal.124.cjs +0 -49
  955. package/vendor/Package.internal.124.mjs +0 -47
  956. package/vendor/Package.internal.125.cjs +0 -14
  957. package/vendor/Package.internal.125.mjs +0 -14
  958. package/vendor/Package.internal.126.cjs +0 -12
  959. package/vendor/Package.internal.126.mjs +0 -12
  960. package/vendor/Package.internal.127.cjs +0 -20
  961. package/vendor/Package.internal.127.mjs +0 -18
  962. package/vendor/Package.internal.128.cjs +0 -118
  963. package/vendor/Package.internal.128.mjs +0 -116
  964. package/vendor/Package.internal.129.cjs +0 -18
  965. package/vendor/Package.internal.129.mjs +0 -16
  966. package/vendor/Package.internal.130.cjs +0 -19
  967. package/vendor/Package.internal.130.mjs +0 -17
  968. package/vendor/Package.internal.131.cjs +0 -8876
  969. package/vendor/Package.internal.131.mjs +0 -8874
  970. package/vendor/Package.internal.132.cjs +0 -899
  971. package/vendor/Package.internal.132.mjs +0 -897
  972. package/vendor/Package.internal.133.cjs +0 -6769
  973. package/vendor/Package.internal.133.mjs +0 -6775
  974. package/vendor/Package.internal.134.cjs +0 -473
  975. package/vendor/Package.internal.134.mjs +0 -459
  976. package/vendor/Package.internal.135.cjs +0 -617
  977. package/vendor/Package.internal.135.mjs +0 -611
  978. package/vendor/Package.internal.136.cjs +0 -97
  979. package/vendor/Package.internal.136.mjs +0 -89
  980. package/vendor/Package.internal.137.cjs +0 -4
  981. package/vendor/Package.internal.137.mjs +0 -2
  982. package/vendor/Package.internal.138.cjs +0 -3753
  983. package/vendor/Package.internal.138.mjs +0 -3751
  984. package/vendor/Package.internal.139.cjs +0 -561
  985. package/vendor/Package.internal.139.mjs +0 -559
  986. package/vendor/Package.internal.140.cjs +0 -4
  987. package/vendor/Package.internal.140.mjs +0 -2
  988. package/vendor/Package.internal.141.cjs +0 -4
  989. package/vendor/Package.internal.141.mjs +0 -2
  990. package/vendor/Package.internal.142.cjs +0 -4
  991. package/vendor/Package.internal.142.mjs +0 -2
  992. package/vendor/Package.internal.143.cjs +0 -4
  993. package/vendor/Package.internal.143.mjs +0 -2
  994. package/vendor/Package.internal.144.cjs +0 -4
  995. package/vendor/Package.internal.144.mjs +0 -2
  996. package/vendor/Package.internal.145.cjs +0 -4
  997. package/vendor/Package.internal.145.mjs +0 -2
  998. package/vendor/Package.internal.146.cjs +0 -4
  999. package/vendor/Package.internal.146.mjs +0 -2
  1000. package/vendor/Package.internal.147.cjs +0 -4
  1001. package/vendor/Package.internal.147.mjs +0 -2
  1002. package/vendor/Package.internal.148.cjs +0 -4
  1003. package/vendor/Package.internal.148.mjs +0 -2
  1004. package/vendor/Package.internal.149.cjs +0 -4
  1005. package/vendor/Package.internal.149.mjs +0 -2
  1006. package/vendor/Package.internal.150.cjs +0 -4
  1007. package/vendor/Package.internal.150.mjs +0 -2
  1008. package/vendor/Package.internal.151.cjs +0 -408
  1009. package/vendor/Package.internal.151.mjs +0 -400
  1010. package/vendor/Package.internal.152.cjs +0 -104
  1011. package/vendor/Package.internal.152.mjs +0 -104
  1012. package/vendor/Package.internal.153.cjs +0 -27
  1013. package/vendor/Package.internal.153.mjs +0 -27
  1014. package/vendor/Package.internal.154.cjs +0 -4
  1015. package/vendor/Package.internal.154.mjs +0 -2
  1016. package/vendor/Package.internal.155.cjs +0 -4
  1017. package/vendor/Package.internal.155.mjs +0 -2
  1018. package/vendor/Package.internal.156.cjs +0 -723
  1019. package/vendor/Package.internal.156.mjs +0 -723
  1020. package/vendor/Package.internal.157.cjs +0 -1548
  1021. package/vendor/Package.internal.157.mjs +0 -1540
  1022. package/vendor/Package.internal.158.cjs +0 -364
  1023. package/vendor/Package.internal.158.mjs +0 -364
  1024. package/vendor/Package.internal.159.cjs +0 -107
  1025. package/vendor/Package.internal.159.mjs +0 -107
  1026. package/vendor/Package.internal.160.cjs +0 -636
  1027. package/vendor/Package.internal.160.mjs +0 -622
  1028. package/vendor/Package.internal.161.cjs +0 -543
  1029. package/vendor/Package.internal.161.mjs +0 -533
  1030. package/vendor/Package.internal.162.cjs +0 -605
  1031. package/vendor/Package.internal.162.mjs +0 -605
  1032. package/vendor/Package.internal.163.cjs +0 -139
  1033. package/vendor/Package.internal.163.mjs +0 -131
  1034. package/vendor/Package.internal.164.cjs +0 -119
  1035. package/vendor/Package.internal.164.mjs +0 -111
  1036. package/vendor/Package.internal.165.cjs +0 -1224
  1037. package/vendor/Package.internal.165.mjs +0 -1214
  1038. package/vendor/Package.internal.166.cjs +0 -90
  1039. package/vendor/Package.internal.166.mjs +0 -98
  1040. package/vendor/Package.internal.167.cjs +0 -4
  1041. package/vendor/Package.internal.167.mjs +0 -2
  1042. package/vendor/Package.internal.168.cjs +0 -4
  1043. package/vendor/Package.internal.168.mjs +0 -2
  1044. package/vendor/Package.internal.169.cjs +0 -55
  1045. package/vendor/Package.internal.169.mjs +0 -55
  1046. package/vendor/Package.internal.170.cjs +0 -10
  1047. package/vendor/Package.internal.170.mjs +0 -10
  1048. package/vendor/Package.internal.171.cjs +0 -12
  1049. package/vendor/Package.internal.171.mjs +0 -6
  1050. package/vendor/Package.internal.172.cjs +0 -165
  1051. package/vendor/Package.internal.172.mjs +0 -163
  1052. package/vendor/Package.internal.173.cjs +0 -23
  1053. package/vendor/Package.internal.173.mjs +0 -15
  1054. package/vendor/Package.internal.174.cjs +0 -251
  1055. package/vendor/Package.internal.174.mjs +0 -249
  1056. package/vendor/Package.internal.175.cjs +0 -949
  1057. package/vendor/Package.internal.175.mjs +0 -947
  1058. package/vendor/Package.internal.176.cjs +0 -27
  1059. package/vendor/Package.internal.176.mjs +0 -27
  1060. package/vendor/Package.internal.177.cjs +0 -80
  1061. package/vendor/Package.internal.177.mjs +0 -72
  1062. package/vendor/Package.internal.178.cjs +0 -655
  1063. package/vendor/Package.internal.178.mjs +0 -653
  1064. package/vendor/Package.internal.179.cjs +0 -77
  1065. package/vendor/Package.internal.179.mjs +0 -75
  1066. package/vendor/Package.internal.181.cjs +0 -70
  1067. package/vendor/Package.internal.181.mjs +0 -68
  1068. package/vendor/Package.internal.182.cjs +0 -112
  1069. package/vendor/Package.internal.182.mjs +0 -110
  1070. package/vendor/Package.internal.183.cjs +0 -102
  1071. package/vendor/Package.internal.183.mjs +0 -100
  1072. package/vendor/Package.internal.184.cjs +0 -45450
  1073. package/vendor/Package.internal.184.mjs +0 -45432
  1074. package/vendor/Package.internal.185.cjs +0 -8
  1075. package/vendor/Package.internal.185.mjs +0 -6
  1076. package/vendor/Package.internal.186.cjs +0 -30
  1077. package/vendor/Package.internal.186.mjs +0 -28
  1078. package/vendor/Package.internal.187.cjs +0 -317
  1079. package/vendor/Package.internal.187.mjs +0 -315
  1080. package/vendor/Package.internal.188.cjs +0 -943
  1081. package/vendor/Package.internal.188.mjs +0 -951
  1082. package/vendor/Package.internal.189.cjs +0 -1090
  1083. package/vendor/Package.internal.189.mjs +0 -1090
  1084. package/vendor/Package.internal.190.cjs +0 -165
  1085. package/vendor/Package.internal.190.mjs +0 -165
  1086. package/vendor/Package.internal.191.cjs +0 -15
  1087. package/vendor/Package.internal.191.mjs +0 -13
  1088. package/vendor/Package.internal.192.cjs +0 -14
  1089. package/vendor/Package.internal.192.mjs +0 -12
  1090. package/vendor/Package.internal.193.cjs +0 -49
  1091. package/vendor/Package.internal.193.mjs +0 -47
  1092. package/vendor/Package.internal.194.cjs +0 -493
  1093. package/vendor/Package.internal.194.mjs +0 -471
  1094. package/vendor/Package.internal.195.cjs +0 -4
  1095. package/vendor/Package.internal.195.mjs +0 -2
  1096. package/vendor/Package.internal.196.cjs +0 -4
  1097. package/vendor/Package.internal.196.mjs +0 -2
  1098. package/vendor/Package.internal.197.cjs +0 -4
  1099. package/vendor/Package.internal.197.mjs +0 -2
  1100. package/vendor/Package.internal.198.cjs +0 -4
  1101. package/vendor/Package.internal.198.mjs +0 -2
  1102. package/vendor/Package.internal.199.cjs +0 -4
  1103. package/vendor/Package.internal.199.mjs +0 -2
  1104. package/vendor/Package.internal.200.cjs +0 -4
  1105. package/vendor/Package.internal.200.mjs +0 -2
  1106. package/vendor/Package.internal.201.cjs +0 -4
  1107. package/vendor/Package.internal.201.mjs +0 -2
  1108. package/vendor/Package.internal.202.cjs +0 -4
  1109. package/vendor/Package.internal.202.mjs +0 -2
  1110. package/vendor/Package.internal.60.cjs +0 -27
  1111. package/vendor/Package.internal.60.mjs +0 -27
  1112. package/vendor/Package.internal.61.cjs +0 -4
  1113. package/vendor/Package.internal.61.mjs +0 -2
  1114. package/vendor/Package.internal.62.cjs +0 -200
  1115. package/vendor/Package.internal.62.mjs +0 -200
  1116. package/vendor/Package.internal.63.cjs +0 -4019
  1117. package/vendor/Package.internal.63.mjs +0 -4027
  1118. package/vendor/Package.internal.64.cjs +0 -4
  1119. package/vendor/Package.internal.64.mjs +0 -2
  1120. package/vendor/Package.internal.65.cjs +0 -321
  1121. package/vendor/Package.internal.65.mjs +0 -321
  1122. package/vendor/Package.internal.66.cjs +0 -365
  1123. package/vendor/Package.internal.66.mjs +0 -363
  1124. package/vendor/Package.internal.67.cjs +0 -403
  1125. package/vendor/Package.internal.67.mjs +0 -395
  1126. package/vendor/Package.internal.68.cjs +0 -127
  1127. package/vendor/Package.internal.68.mjs +0 -125
  1128. package/vendor/Package.internal.69.cjs +0 -31
  1129. package/vendor/Package.internal.69.mjs +0 -29
  1130. package/vendor/Package.internal.70.cjs +0 -87
  1131. package/vendor/Package.internal.70.mjs +0 -85
  1132. package/vendor/Package.internal.71.cjs +0 -61
  1133. package/vendor/Package.internal.71.mjs +0 -59
  1134. package/vendor/Package.internal.72.cjs +0 -34
  1135. package/vendor/Package.internal.72.mjs +0 -32
  1136. package/vendor/Package.internal.73.cjs +0 -4
  1137. package/vendor/Package.internal.73.mjs +0 -2
  1138. package/vendor/Package.internal.74.cjs +0 -684
  1139. package/vendor/Package.internal.74.mjs +0 -662
  1140. package/vendor/Package.internal.75.cjs +0 -13896
  1141. package/vendor/Package.internal.75.mjs +0 -13870
  1142. package/vendor/Package.internal.76.cjs +0 -37
  1143. package/vendor/Package.internal.76.mjs +0 -31
  1144. package/vendor/Package.internal.77.cjs +0 -4077
  1145. package/vendor/Package.internal.77.mjs +0 -4077
  1146. package/vendor/Package.internal.78.cjs +0 -1664
  1147. package/vendor/Package.internal.78.mjs +0 -1664
  1148. package/vendor/Package.internal.79.cjs +0 -259
  1149. package/vendor/Package.internal.79.mjs +0 -257
  1150. package/vendor/Package.internal.80.cjs +0 -4964
  1151. package/vendor/Package.internal.80.mjs +0 -4948
  1152. package/vendor/Package.internal.81.cjs +0 -1239
  1153. package/vendor/Package.internal.81.mjs +0 -1225
  1154. package/vendor/Package.internal.82.cjs +0 -340
  1155. package/vendor/Package.internal.82.mjs +0 -326
  1156. package/vendor/Package.internal.83.cjs +0 -34
  1157. package/vendor/Package.internal.83.mjs +0 -32
  1158. package/vendor/Package.internal.84.cjs +0 -88
  1159. package/vendor/Package.internal.84.mjs +0 -88
  1160. package/vendor/Package.internal.85.cjs +0 -55
  1161. package/vendor/Package.internal.85.mjs +0 -55
  1162. package/vendor/Package.internal.86.cjs +0 -15
  1163. package/vendor/Package.internal.86.mjs +0 -13
  1164. package/vendor/Package.internal.87.cjs +0 -1355
  1165. package/vendor/Package.internal.87.mjs +0 -1355
  1166. package/vendor/Package.internal.88.cjs +0 -12
  1167. package/vendor/Package.internal.88.mjs +0 -6
  1168. package/vendor/Package.internal.89.cjs +0 -4
  1169. package/vendor/Package.internal.89.mjs +0 -2
  1170. package/vendor/Package.internal.90.cjs +0 -351
  1171. package/vendor/Package.internal.90.mjs +0 -351
  1172. package/vendor/Package.internal.91.cjs +0 -80
  1173. package/vendor/Package.internal.91.mjs +0 -80
  1174. package/vendor/Package.internal.92.cjs +0 -1445
  1175. package/vendor/Package.internal.92.mjs +0 -1433
  1176. package/vendor/Package.internal.93.cjs +0 -144
  1177. package/vendor/Package.internal.93.mjs +0 -142
  1178. package/vendor/Package.internal.94.cjs +0 -1822
  1179. package/vendor/Package.internal.94.mjs +0 -1814
  1180. package/vendor/Package.internal.95.cjs +0 -130
  1181. package/vendor/Package.internal.95.mjs +0 -124
  1182. package/vendor/Package.internal.96.cjs +0 -208
  1183. package/vendor/Package.internal.96.mjs +0 -208
  1184. package/vendor/Package.internal.97.cjs +0 -1641
  1185. package/vendor/Package.internal.97.mjs +0 -1641
  1186. package/vendor/Package.internal.98.cjs +0 -74
  1187. package/vendor/Package.internal.98.mjs +0 -74
  1188. package/vendor/Package.internal.99.cjs +0 -28
  1189. package/vendor/Package.internal.99.mjs +0 -28
@@ -1,2354 +1,31 @@
1
- /* Build Date: Mon Nov 24 2025 18:02:01 GMT+0800 (China Standard Time) */
2
- import e from "stream";
1
+ /* Build Date: Mon Nov 24 2025 18:10:51 GMT+0800 (China Standard Time) */
2
+ import { a as e } from "./Package.internal.51.mjs";
3
3
 
4
- import { c as t } from "./Package.internal.8.mjs";
4
+ var t = {};
5
5
 
6
- import r from "events";
6
+ Object.defineProperty(t, "__esModule", {
7
+ value: true
8
+ });
7
9
 
8
- import n from "buffer";
10
+ var r = t.TreeChildren = n;
9
11
 
10
- import i from "util";
12
+ const a = e();
11
13
 
12
- import { r as a } from "./Package.internal.43.mjs";
13
-
14
- import { r as o } from "./Package.internal.173.mjs";
15
-
16
- import { r as f } from "./Package.internal.174.mjs";
17
-
18
- var s = {
19
- exports: {}
20
- };
21
-
22
- var l;
23
-
24
- var u;
25
-
26
- function d() {
27
- if (u) return l;
28
- u = 1;
29
- l = e;
30
- return l;
31
- }
32
-
33
- var c;
34
-
35
- var h;
36
-
37
- function p() {
38
- if (h) return c;
39
- h = 1;
40
- function e(e, t) {
41
- var r = Object.keys(e);
42
- if (Object.getOwnPropertySymbols) {
43
- var n = Object.getOwnPropertySymbols(e);
44
- t && (n = n.filter(function(t) {
45
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
46
- })), r.push.apply(r, n);
47
- }
48
- return r;
49
- }
50
- function t(t) {
51
- for (var n = 1; n < arguments.length; n++) {
52
- var i = null != arguments[n] ? arguments[n] : {};
53
- n % 2 ? e(Object(i), true).forEach(function(e) {
54
- r(t, e, i[e]);
55
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : e(Object(i)).forEach(function(e) {
56
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e));
57
- });
58
- }
59
- return t;
60
- }
61
- function r(e, t, r) {
62
- t = s(t);
63
- if (t in e) {
64
- Object.defineProperty(e, t, {
65
- value: r,
66
- enumerable: true,
67
- configurable: true,
68
- writable: true
69
- });
70
- } else {
71
- e[t] = r;
72
- }
73
- return e;
74
- }
75
- function a(e, t) {
76
- if (!(e instanceof t)) {
77
- throw new TypeError("Cannot call a class as a function");
78
- }
79
- }
80
- function o(e, t) {
81
- for (var r = 0; r < t.length; r++) {
82
- var n = t[r];
83
- n.enumerable = n.enumerable || false;
84
- n.configurable = true;
85
- if ("value" in n) n.writable = true;
86
- Object.defineProperty(e, s(n.key), n);
87
- }
88
- }
89
- function f(e, t, r) {
90
- if (t) o(e.prototype, t);
91
- Object.defineProperty(e, "prototype", {
92
- writable: false
93
- });
94
- return e;
95
- }
96
- function s(e) {
97
- var t = l(e, "string");
98
- return typeof t === "symbol" ? t : String(t);
99
- }
100
- function l(e, t) {
101
- if (typeof e !== "object" || e === null) return e;
102
- var r = e[Symbol.toPrimitive];
103
- if (r !== undefined) {
104
- var n = r.call(e, t);
105
- if (typeof n !== "object") return n;
106
- throw new TypeError("@@toPrimitive must return a primitive value.");
107
- }
108
- return String(e);
109
- }
110
- var u = n, d = u.Buffer;
111
- var p = i, b = p.inspect;
112
- var v = b && b.custom || "inspect";
113
- function g(e, t, r) {
114
- d.prototype.copy.call(e, t, r);
115
- }
116
- c = function() {
117
- function e() {
118
- a(this, e);
119
- this.head = null;
120
- this.tail = null;
121
- this.length = 0;
122
- }
123
- f(e, [ {
124
- key: "push",
125
- value: function e(t) {
126
- var r = {
127
- data: t,
128
- next: null
129
- };
130
- if (this.length > 0) this.tail.next = r; else this.head = r;
131
- this.tail = r;
132
- ++this.length;
133
- }
134
- }, {
135
- key: "unshift",
136
- value: function e(t) {
137
- var r = {
138
- data: t,
139
- next: this.head
140
- };
141
- if (this.length === 0) this.tail = r;
142
- this.head = r;
143
- ++this.length;
144
- }
145
- }, {
146
- key: "shift",
147
- value: function e() {
148
- if (this.length === 0) return;
149
- var t = this.head.data;
150
- if (this.length === 1) this.head = this.tail = null; else this.head = this.head.next;
151
- --this.length;
152
- return t;
153
- }
154
- }, {
155
- key: "clear",
156
- value: function e() {
157
- this.head = this.tail = null;
158
- this.length = 0;
159
- }
160
- }, {
161
- key: "join",
162
- value: function e(t) {
163
- if (this.length === 0) return "";
164
- var r = this.head;
165
- var n = "" + r.data;
166
- while (r = r.next) n += t + r.data;
167
- return n;
168
- }
169
- }, {
170
- key: "concat",
171
- value: function e(t) {
172
- if (this.length === 0) return d.alloc(0);
173
- var r = d.allocUnsafe(t >>> 0);
174
- var n = this.head;
175
- var i = 0;
176
- while (n) {
177
- g(n.data, r, i);
178
- i += n.data.length;
179
- n = n.next;
180
- }
181
- return r;
182
- }
183
- }, {
184
- key: "consume",
185
- value: function e(t, r) {
186
- var n;
187
- if (t < this.head.data.length) {
188
- n = this.head.data.slice(0, t);
189
- this.head.data = this.head.data.slice(t);
190
- } else if (t === this.head.data.length) {
191
- n = this.shift();
192
- } else {
193
- n = r ? this._getString(t) : this._getBuffer(t);
194
- }
195
- return n;
196
- }
197
- }, {
198
- key: "first",
199
- value: function e() {
200
- return this.head.data;
201
- }
202
- }, {
203
- key: "_getString",
204
- value: function e(t) {
205
- var r = this.head;
206
- var n = 1;
207
- var i = r.data;
208
- t -= i.length;
209
- while (r = r.next) {
210
- var a = r.data;
211
- var o = t > a.length ? a.length : t;
212
- if (o === a.length) i += a; else i += a.slice(0, t);
213
- t -= o;
214
- if (t === 0) {
215
- if (o === a.length) {
216
- ++n;
217
- if (r.next) this.head = r.next; else this.head = this.tail = null;
218
- } else {
219
- this.head = r;
220
- r.data = a.slice(o);
221
- }
222
- break;
223
- }
224
- ++n;
225
- }
226
- this.length -= n;
227
- return i;
228
- }
229
- }, {
230
- key: "_getBuffer",
231
- value: function e(t) {
232
- var r = d.allocUnsafe(t);
233
- var n = this.head;
234
- var i = 1;
235
- n.data.copy(r);
236
- t -= n.data.length;
237
- while (n = n.next) {
238
- var a = n.data;
239
- var o = t > a.length ? a.length : t;
240
- a.copy(r, r.length - t, 0, o);
241
- t -= o;
242
- if (t === 0) {
243
- if (o === a.length) {
244
- ++i;
245
- if (n.next) this.head = n.next; else this.head = this.tail = null;
246
- } else {
247
- this.head = n;
248
- n.data = a.slice(o);
249
- }
250
- break;
251
- }
252
- ++i;
253
- }
254
- this.length -= i;
255
- return r;
256
- }
257
- }, {
258
- key: v,
259
- value: function e(r, n) {
260
- return b(this, t(t({}, n), {}, {
261
- depth: 0,
262
- customInspect: false
263
- }));
264
- }
265
- } ]);
266
- return e;
267
- }();
268
- return c;
269
- }
270
-
271
- var b;
272
-
273
- var v;
274
-
275
- function g() {
276
- if (v) return b;
277
- v = 1;
278
- function e(e, n) {
279
- var a = this;
280
- var o = this._readableState && this._readableState.destroyed;
281
- var f = this._writableState && this._writableState.destroyed;
282
- if (o || f) {
283
- if (n) {
284
- n(e);
285
- } else if (e) {
286
- if (!this._writableState) {
287
- process.nextTick(i, this, e);
288
- } else if (!this._writableState.errorEmitted) {
289
- this._writableState.errorEmitted = true;
290
- process.nextTick(i, this, e);
291
- }
292
- }
293
- return this;
294
- }
295
- if (this._readableState) {
296
- this._readableState.destroyed = true;
297
- }
298
- if (this._writableState) {
299
- this._writableState.destroyed = true;
300
- }
301
- this._destroy(e || null, function(e) {
302
- if (!n && e) {
303
- if (!a._writableState) {
304
- process.nextTick(t, a, e);
305
- } else if (!a._writableState.errorEmitted) {
306
- a._writableState.errorEmitted = true;
307
- process.nextTick(t, a, e);
308
- } else {
309
- process.nextTick(r, a);
310
- }
311
- } else if (n) {
312
- process.nextTick(r, a);
313
- n(e);
314
- } else {
315
- process.nextTick(r, a);
316
- }
14
+ function n(e) {
15
+ return function(t, r) {
16
+ if (!e) e = {};
17
+ const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", t, r) : undefined;
18
+ const o = n && typeof n.name === "string" && n.name.toLowerCase() === "promise" || false;
19
+ (0, a.getMetadataArgsStorage)().relations.push({
20
+ isTreeChildren: true,
21
+ target: t.constructor,
22
+ propertyName: r,
23
+ isLazy: o,
24
+ relationType: "one-to-many",
25
+ type: () => t.constructor,
26
+ options: e
317
27
  });
318
- return this;
319
- }
320
- function t(e, t) {
321
- i(e, t);
322
- r(e);
323
- }
324
- function r(e) {
325
- if (e._writableState && !e._writableState.emitClose) return;
326
- if (e._readableState && !e._readableState.emitClose) return;
327
- e.emit("close");
328
- }
329
- function n() {
330
- if (this._readableState) {
331
- this._readableState.destroyed = false;
332
- this._readableState.reading = false;
333
- this._readableState.ended = false;
334
- this._readableState.endEmitted = false;
335
- }
336
- if (this._writableState) {
337
- this._writableState.destroyed = false;
338
- this._writableState.ended = false;
339
- this._writableState.ending = false;
340
- this._writableState.finalCalled = false;
341
- this._writableState.prefinished = false;
342
- this._writableState.finished = false;
343
- this._writableState.errorEmitted = false;
344
- }
345
- }
346
- function i(e, t) {
347
- e.emit("error", t);
348
- }
349
- function a(e, t) {
350
- var r = e._readableState;
351
- var n = e._writableState;
352
- if (r && r.autoDestroy || n && n.autoDestroy) e.destroy(t); else e.emit("error", t);
353
- }
354
- b = {
355
- destroy: e,
356
- undestroy: n,
357
- errorOrDestroy: a
358
- };
359
- return b;
360
- }
361
-
362
- var y = {};
363
-
364
- var w;
365
-
366
- function _() {
367
- if (w) return y;
368
- w = 1;
369
- const e = {};
370
- function t(t, r, n) {
371
- if (!n) {
372
- n = Error;
373
- }
374
- function i(e, t, n) {
375
- if (typeof r === "string") {
376
- return r;
377
- } else {
378
- return r(e, t, n);
379
- }
380
- }
381
- class NodeError extends n {
382
- constructor(e, t, r) {
383
- super(i(e, t, r));
384
- }
385
- }
386
- NodeError.prototype.name = n.name;
387
- NodeError.prototype.code = t;
388
- e[t] = NodeError;
389
- }
390
- function r(e, t) {
391
- if (Array.isArray(e)) {
392
- const r = e.length;
393
- e = e.map(e => String(e));
394
- if (r > 2) {
395
- return `one of ${t} ${e.slice(0, r - 1).join(", ")}, or ` + e[r - 1];
396
- } else if (r === 2) {
397
- return `one of ${t} ${e[0]} or ${e[1]}`;
398
- } else {
399
- return `of ${t} ${e[0]}`;
400
- }
401
- } else {
402
- return `of ${t} ${String(e)}`;
403
- }
404
- }
405
- function n(e, t, r) {
406
- return e.substr(0, t.length) === t;
407
- }
408
- function i(e, t, r) {
409
- if (r === undefined || r > e.length) {
410
- r = e.length;
411
- }
412
- return e.substring(r - t.length, r) === t;
413
- }
414
- function a(e, t, r) {
415
- if (typeof r !== "number") {
416
- r = 0;
417
- }
418
- if (r + t.length > e.length) {
419
- return false;
420
- } else {
421
- return e.indexOf(t, r) !== -1;
422
- }
423
- }
424
- t("ERR_INVALID_OPT_VALUE", function(e, t) {
425
- return 'The value "' + t + '" is invalid for option "' + e + '"';
426
- }, TypeError);
427
- t("ERR_INVALID_ARG_TYPE", function(e, t, o) {
428
- let f;
429
- if (typeof t === "string" && n(t, "not ")) {
430
- f = "must not be";
431
- t = t.replace(/^not /, "");
432
- } else {
433
- f = "must be";
434
- }
435
- let s;
436
- if (i(e, " argument")) {
437
- s = `The ${e} ${f} ${r(t, "type")}`;
438
- } else {
439
- const n = a(e, ".") ? "property" : "argument";
440
- s = `The "${e}" ${n} ${f} ${r(t, "type")}`;
441
- }
442
- s += `. Received type ${typeof o}`;
443
- return s;
444
- }, TypeError);
445
- t("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
446
- t("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
447
- return "The " + e + " method is not implemented";
448
- });
449
- t("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
450
- t("ERR_STREAM_DESTROYED", function(e) {
451
- return "Cannot call " + e + " after a stream was destroyed";
452
- });
453
- t("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
454
- t("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
455
- t("ERR_STREAM_WRITE_AFTER_END", "write after end");
456
- t("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
457
- t("ERR_UNKNOWN_ENCODING", function(e) {
458
- return "Unknown encoding: " + e;
459
- }, TypeError);
460
- t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
461
- y.codes = e;
462
- return y;
463
- }
464
-
465
- var m;
466
-
467
- var S;
468
-
469
- function R() {
470
- if (S) return m;
471
- S = 1;
472
- var e = _().codes.ERR_INVALID_OPT_VALUE;
473
- function t(e, t, r) {
474
- return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
475
- }
476
- function r(r, n, i, a) {
477
- var o = t(n, a, i);
478
- if (o != null) {
479
- if (!(isFinite(o) && Math.floor(o) === o) || o < 0) {
480
- var f = a ? i : "highWaterMark";
481
- throw new e(f, o);
482
- }
483
- return Math.floor(o);
484
- }
485
- return r.objectMode ? 16 : 16 * 1024;
486
- }
487
- m = {
488
- getHighWaterMark: r
489
28
  };
490
- return m;
491
29
  }
492
30
 
493
- var E;
494
-
495
- var k;
496
-
497
- function T() {
498
- if (k) return E;
499
- k = 1;
500
- E = C;
501
- function e(e) {
502
- var t = this;
503
- this.next = null;
504
- this.entry = null;
505
- this.finish = function() {
506
- X(t, e);
507
- };
508
- }
509
- var r;
510
- C.WritableState = D;
511
- var i = {
512
- deprecate: o()
513
- };
514
- var f = d();
515
- var s = n.Buffer;
516
- var l = (typeof t !== "undefined" ? t : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
517
- function u(e) {
518
- return s.from(e);
519
- }
520
- function c(e) {
521
- return s.isBuffer(e) || e instanceof l;
522
- }
523
- var h = g();
524
- var p = R(), b = p.getHighWaterMark;
525
- var v = _().codes, y = v.ERR_INVALID_ARG_TYPE, w = v.ERR_METHOD_NOT_IMPLEMENTED, m = v.ERR_MULTIPLE_CALLBACK, S = v.ERR_STREAM_CANNOT_PIPE, T = v.ERR_STREAM_DESTROYED, M = v.ERR_STREAM_NULL_VALUES, O = v.ERR_STREAM_WRITE_AFTER_END, P = v.ERR_UNKNOWN_ENCODING;
526
- var L = h.errorOrDestroy;
527
- a()(C, f);
528
- function A() {}
529
- function D(t, n, i) {
530
- r = r || j();
531
- t = t || {};
532
- if (typeof i !== "boolean") i = n instanceof r;
533
- this.objectMode = !!t.objectMode;
534
- if (i) this.objectMode = this.objectMode || !!t.writableObjectMode;
535
- this.highWaterMark = b(this, t, "writableHighWaterMark", i);
536
- this.finalCalled = false;
537
- this.needDrain = false;
538
- this.ending = false;
539
- this.ended = false;
540
- this.finished = false;
541
- this.destroyed = false;
542
- var a = t.decodeStrings === false;
543
- this.decodeStrings = !a;
544
- this.defaultEncoding = t.defaultEncoding || "utf8";
545
- this.length = 0;
546
- this.writing = false;
547
- this.corked = 0;
548
- this.sync = true;
549
- this.bufferProcessing = false;
550
- this.onwrite = function(e) {
551
- H(n, e);
552
- };
553
- this.writecb = null;
554
- this.writelen = 0;
555
- this.bufferedRequest = null;
556
- this.lastBufferedRequest = null;
557
- this.pendingcb = 0;
558
- this.prefinished = false;
559
- this.errorEmitted = false;
560
- this.emitClose = t.emitClose !== false;
561
- this.autoDestroy = !!t.autoDestroy;
562
- this.bufferedRequestCount = 0;
563
- this.corkedRequestsFree = new e(this);
564
- }
565
- D.prototype.getBuffer = function e() {
566
- var t = this.bufferedRequest;
567
- var r = [];
568
- while (t) {
569
- r.push(t);
570
- t = t.next;
571
- }
572
- return r;
573
- };
574
- (function() {
575
- try {
576
- Object.defineProperty(D.prototype, "buffer", {
577
- get: i.deprecate(function e() {
578
- return this.getBuffer();
579
- }, "_writableState.buffer is deprecated. Use _writableState.getBuffer " + "instead.", "DEP0003")
580
- });
581
- } catch (e) {}
582
- })();
583
- var x;
584
- if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
585
- x = Function.prototype[Symbol.hasInstance];
586
- Object.defineProperty(C, Symbol.hasInstance, {
587
- value: function e(t) {
588
- if (x.call(this, t)) return true;
589
- if (this !== C) return false;
590
- return t && t._writableState instanceof D;
591
- }
592
- });
593
- } else {
594
- x = function e(t) {
595
- return t instanceof this;
596
- };
597
- }
598
- function C(e) {
599
- r = r || j();
600
- var t = this instanceof r;
601
- if (!t && !x.call(C, this)) return new C(e);
602
- this._writableState = new D(e, this, t);
603
- this.writable = true;
604
- if (e) {
605
- if (typeof e.write === "function") this._write = e.write;
606
- if (typeof e.writev === "function") this._writev = e.writev;
607
- if (typeof e.destroy === "function") this._destroy = e.destroy;
608
- if (typeof e.final === "function") this._final = e.final;
609
- }
610
- f.call(this);
611
- }
612
- C.prototype.pipe = function() {
613
- L(this, new S);
614
- };
615
- function N(e, t) {
616
- var r = new O;
617
- L(e, r);
618
- process.nextTick(t, r);
619
- }
620
- function I(e, t, r, n) {
621
- var i;
622
- if (r === null) {
623
- i = new M;
624
- } else if (typeof r !== "string" && !t.objectMode) {
625
- i = new y("chunk", [ "string", "Buffer" ], r);
626
- }
627
- if (i) {
628
- L(e, i);
629
- process.nextTick(n, i);
630
- return false;
631
- }
632
- return true;
633
- }
634
- C.prototype.write = function(e, t, r) {
635
- var n = this._writableState;
636
- var i = false;
637
- var a = !n.objectMode && c(e);
638
- if (a && !s.isBuffer(e)) {
639
- e = u(e);
640
- }
641
- if (typeof t === "function") {
642
- r = t;
643
- t = null;
644
- }
645
- if (a) t = "buffer"; else if (!t) t = n.defaultEncoding;
646
- if (typeof r !== "function") r = A;
647
- if (n.ending) N(this, r); else if (a || I(this, n, e, r)) {
648
- n.pendingcb++;
649
- i = B(this, n, a, e, t, r);
650
- }
651
- return i;
652
- };
653
- C.prototype.cork = function() {
654
- this._writableState.corked++;
655
- };
656
- C.prototype.uncork = function() {
657
- var e = this._writableState;
658
- if (e.corked) {
659
- e.corked--;
660
- if (!e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest) G(this, e);
661
- }
662
- };
663
- C.prototype.setDefaultEncoding = function e(t) {
664
- if (typeof t === "string") t = t.toLowerCase();
665
- if (!([ "hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw" ].indexOf((t + "").toLowerCase()) > -1)) throw new P(t);
666
- this._writableState.defaultEncoding = t;
667
- return this;
668
- };
669
- Object.defineProperty(C.prototype, "writableBuffer", {
670
- enumerable: false,
671
- get: function e() {
672
- return this._writableState && this._writableState.getBuffer();
673
- }
674
- });
675
- function W(e, t, r) {
676
- if (!e.objectMode && e.decodeStrings !== false && typeof t === "string") {
677
- t = s.from(t, r);
678
- }
679
- return t;
680
- }
681
- Object.defineProperty(C.prototype, "writableHighWaterMark", {
682
- enumerable: false,
683
- get: function e() {
684
- return this._writableState.highWaterMark;
685
- }
686
- });
687
- function B(e, t, r, n, i, a) {
688
- if (!r) {
689
- var o = W(t, n, i);
690
- if (n !== o) {
691
- r = true;
692
- i = "buffer";
693
- n = o;
694
- }
695
- }
696
- var f = t.objectMode ? 1 : n.length;
697
- t.length += f;
698
- var s = t.length < t.highWaterMark;
699
- if (!s) t.needDrain = true;
700
- if (t.writing || t.corked) {
701
- var l = t.lastBufferedRequest;
702
- t.lastBufferedRequest = {
703
- chunk: n,
704
- encoding: i,
705
- isBuf: r,
706
- callback: a,
707
- next: null
708
- };
709
- if (l) {
710
- l.next = t.lastBufferedRequest;
711
- } else {
712
- t.bufferedRequest = t.lastBufferedRequest;
713
- }
714
- t.bufferedRequestCount += 1;
715
- } else {
716
- q(e, t, false, f, n, i, a);
717
- }
718
- return s;
719
- }
720
- function q(e, t, r, n, i, a, o) {
721
- t.writelen = n;
722
- t.writecb = o;
723
- t.writing = true;
724
- t.sync = true;
725
- if (t.destroyed) t.onwrite(new T("write")); else if (r) e._writev(i, t.onwrite); else e._write(i, a, t.onwrite);
726
- t.sync = false;
727
- }
728
- function U(e, t, r, n, i) {
729
- --t.pendingcb;
730
- if (r) {
731
- process.nextTick(i, n);
732
- process.nextTick(J, e, t);
733
- e._writableState.errorEmitted = true;
734
- L(e, n);
735
- } else {
736
- i(n);
737
- e._writableState.errorEmitted = true;
738
- L(e, n);
739
- J(e, t);
740
- }
741
- }
742
- function F(e) {
743
- e.writing = false;
744
- e.writecb = null;
745
- e.length -= e.writelen;
746
- e.writelen = 0;
747
- }
748
- function H(e, t) {
749
- var r = e._writableState;
750
- var n = r.sync;
751
- var i = r.writecb;
752
- if (typeof i !== "function") throw new m;
753
- F(r);
754
- if (t) U(e, r, n, t, i); else {
755
- var a = Y(r) || e.destroyed;
756
- if (!a && !r.corked && !r.bufferProcessing && r.bufferedRequest) {
757
- G(e, r);
758
- }
759
- if (n) {
760
- process.nextTick($, e, r, a, i);
761
- } else {
762
- $(e, r, a, i);
763
- }
764
- }
765
- }
766
- function $(e, t, r, n) {
767
- if (!r) V(e, t);
768
- t.pendingcb--;
769
- n();
770
- J(e, t);
771
- }
772
- function V(e, t) {
773
- if (t.length === 0 && t.needDrain) {
774
- t.needDrain = false;
775
- e.emit("drain");
776
- }
777
- }
778
- function G(t, r) {
779
- r.bufferProcessing = true;
780
- var n = r.bufferedRequest;
781
- if (t._writev && n && n.next) {
782
- var i = r.bufferedRequestCount;
783
- var a = new Array(i);
784
- var o = r.corkedRequestsFree;
785
- o.entry = n;
786
- var f = 0;
787
- var s = true;
788
- while (n) {
789
- a[f] = n;
790
- if (!n.isBuf) s = false;
791
- n = n.next;
792
- f += 1;
793
- }
794
- a.allBuffers = s;
795
- q(t, r, true, r.length, a, "", o.finish);
796
- r.pendingcb++;
797
- r.lastBufferedRequest = null;
798
- if (o.next) {
799
- r.corkedRequestsFree = o.next;
800
- o.next = null;
801
- } else {
802
- r.corkedRequestsFree = new e(r);
803
- }
804
- r.bufferedRequestCount = 0;
805
- } else {
806
- while (n) {
807
- var l = n.chunk;
808
- var u = n.encoding;
809
- var d = n.callback;
810
- var c = r.objectMode ? 1 : l.length;
811
- q(t, r, false, c, l, u, d);
812
- n = n.next;
813
- r.bufferedRequestCount--;
814
- if (r.writing) {
815
- break;
816
- }
817
- }
818
- if (n === null) r.lastBufferedRequest = null;
819
- }
820
- r.bufferedRequest = n;
821
- r.bufferProcessing = false;
822
- }
823
- C.prototype._write = function(e, t, r) {
824
- r(new w("_write()"));
825
- };
826
- C.prototype._writev = null;
827
- C.prototype.end = function(e, t, r) {
828
- var n = this._writableState;
829
- if (typeof e === "function") {
830
- r = e;
831
- e = null;
832
- t = null;
833
- } else if (typeof t === "function") {
834
- r = t;
835
- t = null;
836
- }
837
- if (e !== null && e !== undefined) this.write(e, t);
838
- if (n.corked) {
839
- n.corked = 1;
840
- this.uncork();
841
- }
842
- if (!n.ending) Q(this, n, r);
843
- return this;
844
- };
845
- Object.defineProperty(C.prototype, "writableLength", {
846
- enumerable: false,
847
- get: function e() {
848
- return this._writableState.length;
849
- }
850
- });
851
- function Y(e) {
852
- return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing;
853
- }
854
- function K(e, t) {
855
- e._final(function(r) {
856
- t.pendingcb--;
857
- if (r) {
858
- L(e, r);
859
- }
860
- t.prefinished = true;
861
- e.emit("prefinish");
862
- J(e, t);
863
- });
864
- }
865
- function z(e, t) {
866
- if (!t.prefinished && !t.finalCalled) {
867
- if (typeof e._final === "function" && !t.destroyed) {
868
- t.pendingcb++;
869
- t.finalCalled = true;
870
- process.nextTick(K, e, t);
871
- } else {
872
- t.prefinished = true;
873
- e.emit("prefinish");
874
- }
875
- }
876
- }
877
- function J(e, t) {
878
- var r = Y(t);
879
- if (r) {
880
- z(e, t);
881
- if (t.pendingcb === 0) {
882
- t.finished = true;
883
- e.emit("finish");
884
- if (t.autoDestroy) {
885
- var n = e._readableState;
886
- if (!n || n.autoDestroy && n.endEmitted) {
887
- e.destroy();
888
- }
889
- }
890
- }
891
- }
892
- return r;
893
- }
894
- function Q(e, t, r) {
895
- t.ending = true;
896
- J(e, t);
897
- if (r) {
898
- if (t.finished) process.nextTick(r); else e.once("finish", r);
899
- }
900
- t.ended = true;
901
- e.writable = false;
902
- }
903
- function X(e, t, r) {
904
- var n = e.entry;
905
- e.entry = null;
906
- while (n) {
907
- var i = n.callback;
908
- t.pendingcb--;
909
- i(r);
910
- n = n.next;
911
- }
912
- t.corkedRequestsFree.next = e;
913
- }
914
- Object.defineProperty(C.prototype, "destroyed", {
915
- enumerable: false,
916
- get: function e() {
917
- if (this._writableState === undefined) {
918
- return false;
919
- }
920
- return this._writableState.destroyed;
921
- },
922
- set: function e(t) {
923
- if (!this._writableState) {
924
- return;
925
- }
926
- this._writableState.destroyed = t;
927
- }
928
- });
929
- C.prototype.destroy = h.destroy;
930
- C.prototype._undestroy = h.undestroy;
931
- C.prototype._destroy = function(e, t) {
932
- t(e);
933
- };
934
- return E;
935
- }
936
-
937
- var M;
938
-
939
- var O;
940
-
941
- function j() {
942
- if (O) return M;
943
- O = 1;
944
- var e = Object.keys || function(e) {
945
- var t = [];
946
- for (var r in e) t.push(r);
947
- return t;
948
- };
949
- M = f;
950
- var t = U();
951
- var r = T();
952
- a()(f, t);
953
- {
954
- var n = e(r.prototype);
955
- for (var i = 0; i < n.length; i++) {
956
- var o = n[i];
957
- if (!f.prototype[o]) f.prototype[o] = r.prototype[o];
958
- }
959
- }
960
- function f(e) {
961
- if (!(this instanceof f)) return new f(e);
962
- t.call(this, e);
963
- r.call(this, e);
964
- this.allowHalfOpen = true;
965
- if (e) {
966
- if (e.readable === false) this.readable = false;
967
- if (e.writable === false) this.writable = false;
968
- if (e.allowHalfOpen === false) {
969
- this.allowHalfOpen = false;
970
- this.once("end", s);
971
- }
972
- }
973
- }
974
- Object.defineProperty(f.prototype, "writableHighWaterMark", {
975
- enumerable: false,
976
- get: function e() {
977
- return this._writableState.highWaterMark;
978
- }
979
- });
980
- Object.defineProperty(f.prototype, "writableBuffer", {
981
- enumerable: false,
982
- get: function e() {
983
- return this._writableState && this._writableState.getBuffer();
984
- }
985
- });
986
- Object.defineProperty(f.prototype, "writableLength", {
987
- enumerable: false,
988
- get: function e() {
989
- return this._writableState.length;
990
- }
991
- });
992
- function s() {
993
- if (this._writableState.ended) return;
994
- process.nextTick(l, this);
995
- }
996
- function l(e) {
997
- e.end();
998
- }
999
- Object.defineProperty(f.prototype, "destroyed", {
1000
- enumerable: false,
1001
- get: function e() {
1002
- if (this._readableState === undefined || this._writableState === undefined) {
1003
- return false;
1004
- }
1005
- return this._readableState.destroyed && this._writableState.destroyed;
1006
- },
1007
- set: function e(t) {
1008
- if (this._readableState === undefined || this._writableState === undefined) {
1009
- return;
1010
- }
1011
- this._readableState.destroyed = t;
1012
- this._writableState.destroyed = t;
1013
- }
1014
- });
1015
- return M;
1016
- }
1017
-
1018
- var P;
1019
-
1020
- var L;
1021
-
1022
- function A() {
1023
- if (L) return P;
1024
- L = 1;
1025
- var e = _().codes.ERR_STREAM_PREMATURE_CLOSE;
1026
- function t(e) {
1027
- var t = false;
1028
- return function() {
1029
- if (t) return;
1030
- t = true;
1031
- for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++) {
1032
- n[i] = arguments[i];
1033
- }
1034
- e.apply(this, n);
1035
- };
1036
- }
1037
- function r() {}
1038
- function n(e) {
1039
- return e.setHeader && typeof e.abort === "function";
1040
- }
1041
- function i(a, o, f) {
1042
- if (typeof o === "function") return i(a, null, o);
1043
- if (!o) o = {};
1044
- f = t(f || r);
1045
- var s = o.readable || o.readable !== false && a.readable;
1046
- var l = o.writable || o.writable !== false && a.writable;
1047
- var u = function e() {
1048
- if (!a.writable) c();
1049
- };
1050
- var d = a._writableState && a._writableState.finished;
1051
- var c = function e() {
1052
- l = false;
1053
- d = true;
1054
- if (!s) f.call(a);
1055
- };
1056
- var h = a._readableState && a._readableState.endEmitted;
1057
- var p = function e() {
1058
- s = false;
1059
- h = true;
1060
- if (!l) f.call(a);
1061
- };
1062
- var b = function e(t) {
1063
- f.call(a, t);
1064
- };
1065
- var v = function t() {
1066
- var r;
1067
- if (s && !h) {
1068
- if (!a._readableState || !a._readableState.ended) r = new e;
1069
- return f.call(a, r);
1070
- }
1071
- if (l && !d) {
1072
- if (!a._writableState || !a._writableState.ended) r = new e;
1073
- return f.call(a, r);
1074
- }
1075
- };
1076
- var g = function e() {
1077
- a.req.on("finish", c);
1078
- };
1079
- if (n(a)) {
1080
- a.on("complete", c);
1081
- a.on("abort", v);
1082
- if (a.req) g(); else a.on("request", g);
1083
- } else if (l && !a._writableState) {
1084
- a.on("end", u);
1085
- a.on("close", u);
1086
- }
1087
- a.on("end", p);
1088
- a.on("finish", c);
1089
- if (o.error !== false) a.on("error", b);
1090
- a.on("close", v);
1091
- return function() {
1092
- a.removeListener("complete", c);
1093
- a.removeListener("abort", v);
1094
- a.removeListener("request", g);
1095
- if (a.req) a.req.removeListener("finish", c);
1096
- a.removeListener("end", u);
1097
- a.removeListener("close", u);
1098
- a.removeListener("finish", c);
1099
- a.removeListener("end", p);
1100
- a.removeListener("error", b);
1101
- a.removeListener("close", v);
1102
- };
1103
- }
1104
- P = i;
1105
- return P;
1106
- }
1107
-
1108
- var D;
1109
-
1110
- var x;
1111
-
1112
- function C() {
1113
- if (x) return D;
1114
- x = 1;
1115
- var e;
1116
- function t(e, t, n) {
1117
- t = r(t);
1118
- if (t in e) {
1119
- Object.defineProperty(e, t, {
1120
- value: n,
1121
- enumerable: true,
1122
- configurable: true,
1123
- writable: true
1124
- });
1125
- } else {
1126
- e[t] = n;
1127
- }
1128
- return e;
1129
- }
1130
- function r(e) {
1131
- var t = n(e, "string");
1132
- return typeof t === "symbol" ? t : String(t);
1133
- }
1134
- function n(e, t) {
1135
- if (typeof e !== "object" || e === null) return e;
1136
- var r = e[Symbol.toPrimitive];
1137
- if (r !== undefined) {
1138
- var n = r.call(e, t);
1139
- if (typeof n !== "object") return n;
1140
- throw new TypeError("@@toPrimitive must return a primitive value.");
1141
- }
1142
- return String(e);
1143
- }
1144
- var i = A();
1145
- var a = Symbol("lastResolve");
1146
- var o = Symbol("lastReject");
1147
- var f = Symbol("error");
1148
- var s = Symbol("ended");
1149
- var l = Symbol("lastPromise");
1150
- var u = Symbol("handlePromise");
1151
- var d = Symbol("stream");
1152
- function c(e, t) {
1153
- return {
1154
- value: e,
1155
- done: t
1156
- };
1157
- }
1158
- function h(e) {
1159
- var t = e[a];
1160
- if (t !== null) {
1161
- var r = e[d].read();
1162
- if (r !== null) {
1163
- e[l] = null;
1164
- e[a] = null;
1165
- e[o] = null;
1166
- t(c(r, false));
1167
- }
1168
- }
1169
- }
1170
- function p(e) {
1171
- process.nextTick(h, e);
1172
- }
1173
- function b(e, t) {
1174
- return function(r, n) {
1175
- e.then(function() {
1176
- if (t[s]) {
1177
- r(c(undefined, true));
1178
- return;
1179
- }
1180
- t[u](r, n);
1181
- }, n);
1182
- };
1183
- }
1184
- var v = Object.getPrototypeOf(function() {});
1185
- var g = Object.setPrototypeOf((e = {
1186
- get stream() {
1187
- return this[d];
1188
- },
1189
- next: function e() {
1190
- var t = this;
1191
- var r = this[f];
1192
- if (r !== null) {
1193
- return Promise.reject(r);
1194
- }
1195
- if (this[s]) {
1196
- return Promise.resolve(c(undefined, true));
1197
- }
1198
- if (this[d].destroyed) {
1199
- return new Promise(function(e, r) {
1200
- process.nextTick(function() {
1201
- if (t[f]) {
1202
- r(t[f]);
1203
- } else {
1204
- e(c(undefined, true));
1205
- }
1206
- });
1207
- });
1208
- }
1209
- var n = this[l];
1210
- var i;
1211
- if (n) {
1212
- i = new Promise(b(n, this));
1213
- } else {
1214
- var a = this[d].read();
1215
- if (a !== null) {
1216
- return Promise.resolve(c(a, false));
1217
- }
1218
- i = new Promise(this[u]);
1219
- }
1220
- this[l] = i;
1221
- return i;
1222
- }
1223
- }, t(e, Symbol.asyncIterator, function() {
1224
- return this;
1225
- }), t(e, "return", function e() {
1226
- var t = this;
1227
- return new Promise(function(e, r) {
1228
- t[d].destroy(null, function(t) {
1229
- if (t) {
1230
- r(t);
1231
- return;
1232
- }
1233
- e(c(undefined, true));
1234
- });
1235
- });
1236
- }), e), v);
1237
- var y = function e(r) {
1238
- var n;
1239
- var h = Object.create(g, (n = {}, t(n, d, {
1240
- value: r,
1241
- writable: true
1242
- }), t(n, a, {
1243
- value: null,
1244
- writable: true
1245
- }), t(n, o, {
1246
- value: null,
1247
- writable: true
1248
- }), t(n, f, {
1249
- value: null,
1250
- writable: true
1251
- }), t(n, s, {
1252
- value: r._readableState.endEmitted,
1253
- writable: true
1254
- }), t(n, u, {
1255
- value: function e(t, r) {
1256
- var n = h[d].read();
1257
- if (n) {
1258
- h[l] = null;
1259
- h[a] = null;
1260
- h[o] = null;
1261
- t(c(n, false));
1262
- } else {
1263
- h[a] = t;
1264
- h[o] = r;
1265
- }
1266
- },
1267
- writable: true
1268
- }), n));
1269
- h[l] = null;
1270
- i(r, function(e) {
1271
- if (e && e.code !== "ERR_STREAM_PREMATURE_CLOSE") {
1272
- var t = h[o];
1273
- if (t !== null) {
1274
- h[l] = null;
1275
- h[a] = null;
1276
- h[o] = null;
1277
- t(e);
1278
- }
1279
- h[f] = e;
1280
- return;
1281
- }
1282
- var r = h[a];
1283
- if (r !== null) {
1284
- h[l] = null;
1285
- h[a] = null;
1286
- h[o] = null;
1287
- r(c(undefined, true));
1288
- }
1289
- h[s] = true;
1290
- });
1291
- r.on("readable", p.bind(null, h));
1292
- return h;
1293
- };
1294
- D = y;
1295
- return D;
1296
- }
1297
-
1298
- var N;
1299
-
1300
- var I;
1301
-
1302
- function W() {
1303
- if (I) return N;
1304
- I = 1;
1305
- function e(e, t, r, n, i, a, o) {
1306
- try {
1307
- var f = e[a](o);
1308
- var s = f.value;
1309
- } catch (e) {
1310
- r(e);
1311
- return;
1312
- }
1313
- if (f.done) {
1314
- t(s);
1315
- } else {
1316
- Promise.resolve(s).then(n, i);
1317
- }
1318
- }
1319
- function t(t) {
1320
- return function() {
1321
- var r = this, n = arguments;
1322
- return new Promise(function(i, a) {
1323
- var o = t.apply(r, n);
1324
- function f(t) {
1325
- e(o, i, a, f, s, "next", t);
1326
- }
1327
- function s(t) {
1328
- e(o, i, a, f, s, "throw", t);
1329
- }
1330
- f(undefined);
1331
- });
1332
- };
1333
- }
1334
- function r(e, t) {
1335
- var r = Object.keys(e);
1336
- if (Object.getOwnPropertySymbols) {
1337
- var n = Object.getOwnPropertySymbols(e);
1338
- t && (n = n.filter(function(t) {
1339
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1340
- })), r.push.apply(r, n);
1341
- }
1342
- return r;
1343
- }
1344
- function n(e) {
1345
- for (var t = 1; t < arguments.length; t++) {
1346
- var n = null != arguments[t] ? arguments[t] : {};
1347
- t % 2 ? r(Object(n), true).forEach(function(t) {
1348
- i(e, t, n[t]);
1349
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function(t) {
1350
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1351
- });
1352
- }
1353
- return e;
1354
- }
1355
- function i(e, t, r) {
1356
- t = a(t);
1357
- if (t in e) {
1358
- Object.defineProperty(e, t, {
1359
- value: r,
1360
- enumerable: true,
1361
- configurable: true,
1362
- writable: true
1363
- });
1364
- } else {
1365
- e[t] = r;
1366
- }
1367
- return e;
1368
- }
1369
- function a(e) {
1370
- var t = o(e, "string");
1371
- return typeof t === "symbol" ? t : String(t);
1372
- }
1373
- function o(e, t) {
1374
- if (typeof e !== "object" || e === null) return e;
1375
- var r = e[Symbol.toPrimitive];
1376
- if (r !== undefined) {
1377
- var n = r.call(e, t);
1378
- if (typeof n !== "object") return n;
1379
- throw new TypeError("@@toPrimitive must return a primitive value.");
1380
- }
1381
- return String(e);
1382
- }
1383
- var f = _().codes.ERR_INVALID_ARG_TYPE;
1384
- function s(e, r, i) {
1385
- var a;
1386
- if (r && typeof r.next === "function") {
1387
- a = r;
1388
- } else if (r && r[Symbol.asyncIterator]) a = r[Symbol.asyncIterator](); else if (r && r[Symbol.iterator]) a = r[Symbol.iterator](); else throw new f("iterable", [ "Iterable" ], r);
1389
- var o = new e(n({
1390
- objectMode: true
1391
- }, i));
1392
- var s = false;
1393
- o._read = function() {
1394
- if (!s) {
1395
- s = true;
1396
- l();
1397
- }
1398
- };
1399
- function l() {
1400
- return u.apply(this, arguments);
1401
- }
1402
- function u() {
1403
- u = t(function*() {
1404
- try {
1405
- var e = yield a.next(), t = e.value, r = e.done;
1406
- if (r) {
1407
- o.push(null);
1408
- } else if (o.push(yield t)) {
1409
- l();
1410
- } else {
1411
- s = false;
1412
- }
1413
- } catch (e) {
1414
- o.destroy(e);
1415
- }
1416
- });
1417
- return u.apply(this, arguments);
1418
- }
1419
- return o;
1420
- }
1421
- N = s;
1422
- return N;
1423
- }
1424
-
1425
- var B;
1426
-
1427
- var q;
1428
-
1429
- function U() {
1430
- if (q) return B;
1431
- q = 1;
1432
- B = U;
1433
- var e;
1434
- U.ReadableState = I;
1435
- r.EventEmitter;
1436
- var o = function e(t, r) {
1437
- return t.listeners(r).length;
1438
- };
1439
- var s = d();
1440
- var l = n.Buffer;
1441
- var u = (typeof t !== "undefined" ? t : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
1442
- function c(e) {
1443
- return l.from(e);
1444
- }
1445
- function h(e) {
1446
- return l.isBuffer(e) || e instanceof u;
1447
- }
1448
- var b = i;
1449
- var v;
1450
- if (b && b.debuglog) {
1451
- v = b.debuglog("stream");
1452
- } else {
1453
- v = function e() {};
1454
- }
1455
- var y = p();
1456
- var w = g();
1457
- var m = R(), S = m.getHighWaterMark;
1458
- var E = _().codes, k = E.ERR_INVALID_ARG_TYPE, T = E.ERR_STREAM_PUSH_AFTER_EOF, M = E.ERR_METHOD_NOT_IMPLEMENTED, O = E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
1459
- var P;
1460
- var L;
1461
- var A;
1462
- a()(U, s);
1463
- var D = w.errorOrDestroy;
1464
- var x = [ "error", "close", "destroy", "pause", "resume" ];
1465
- function N(e, t, r) {
1466
- if (typeof e.prependListener === "function") return e.prependListener(t, r);
1467
- if (!e._events || !e._events[t]) e.on(t, r); else if (Array.isArray(e._events[t])) e._events[t].unshift(r); else e._events[t] = [ r, e._events[t] ];
1468
- }
1469
- function I(t, r, n) {
1470
- e = e || j();
1471
- t = t || {};
1472
- if (typeof n !== "boolean") n = r instanceof e;
1473
- this.objectMode = !!t.objectMode;
1474
- if (n) this.objectMode = this.objectMode || !!t.readableObjectMode;
1475
- this.highWaterMark = S(this, t, "readableHighWaterMark", n);
1476
- this.buffer = new y;
1477
- this.length = 0;
1478
- this.pipes = null;
1479
- this.pipesCount = 0;
1480
- this.flowing = null;
1481
- this.ended = false;
1482
- this.endEmitted = false;
1483
- this.reading = false;
1484
- this.sync = true;
1485
- this.needReadable = false;
1486
- this.emittedReadable = false;
1487
- this.readableListening = false;
1488
- this.resumeScheduled = false;
1489
- this.paused = true;
1490
- this.emitClose = t.emitClose !== false;
1491
- this.autoDestroy = !!t.autoDestroy;
1492
- this.destroyed = false;
1493
- this.defaultEncoding = t.defaultEncoding || "utf8";
1494
- this.awaitDrain = 0;
1495
- this.readingMore = false;
1496
- this.decoder = null;
1497
- this.encoding = null;
1498
- if (t.encoding) {
1499
- if (!P) P = f().StringDecoder;
1500
- this.decoder = new P(t.encoding);
1501
- this.encoding = t.encoding;
1502
- }
1503
- }
1504
- function U(t) {
1505
- e = e || j();
1506
- if (!(this instanceof U)) return new U(t);
1507
- var r = this instanceof e;
1508
- this._readableState = new I(t, this, r);
1509
- this.readable = true;
1510
- if (t) {
1511
- if (typeof t.read === "function") this._read = t.read;
1512
- if (typeof t.destroy === "function") this._destroy = t.destroy;
1513
- }
1514
- s.call(this);
1515
- }
1516
- Object.defineProperty(U.prototype, "destroyed", {
1517
- enumerable: false,
1518
- get: function e() {
1519
- if (this._readableState === undefined) {
1520
- return false;
1521
- }
1522
- return this._readableState.destroyed;
1523
- },
1524
- set: function e(t) {
1525
- if (!this._readableState) {
1526
- return;
1527
- }
1528
- this._readableState.destroyed = t;
1529
- }
1530
- });
1531
- U.prototype.destroy = w.destroy;
1532
- U.prototype._undestroy = w.undestroy;
1533
- U.prototype._destroy = function(e, t) {
1534
- t(e);
1535
- };
1536
- U.prototype.push = function(e, t) {
1537
- var r = this._readableState;
1538
- var n;
1539
- if (!r.objectMode) {
1540
- if (typeof e === "string") {
1541
- t = t || r.defaultEncoding;
1542
- if (t !== r.encoding) {
1543
- e = l.from(e, t);
1544
- t = "";
1545
- }
1546
- n = true;
1547
- }
1548
- } else {
1549
- n = true;
1550
- }
1551
- return F(this, e, t, false, n);
1552
- };
1553
- U.prototype.unshift = function(e) {
1554
- return F(this, e, null, true, false);
1555
- };
1556
- function F(e, t, r, n, i) {
1557
- v("readableAddChunk", t);
1558
- var a = e._readableState;
1559
- if (t === null) {
1560
- a.reading = false;
1561
- K(e, a);
1562
- } else {
1563
- var o;
1564
- if (!i) o = $(a, t);
1565
- if (o) {
1566
- D(e, o);
1567
- } else if (a.objectMode || t && t.length > 0) {
1568
- if (typeof t !== "string" && !a.objectMode && Object.getPrototypeOf(t) !== l.prototype) {
1569
- t = c(t);
1570
- }
1571
- if (n) {
1572
- if (a.endEmitted) D(e, new O); else H(e, a, t, true);
1573
- } else if (a.ended) {
1574
- D(e, new T);
1575
- } else if (a.destroyed) {
1576
- return false;
1577
- } else {
1578
- a.reading = false;
1579
- if (a.decoder && !r) {
1580
- t = a.decoder.write(t);
1581
- if (a.objectMode || t.length !== 0) H(e, a, t, false); else Q(e, a);
1582
- } else {
1583
- H(e, a, t, false);
1584
- }
1585
- }
1586
- } else if (!n) {
1587
- a.reading = false;
1588
- Q(e, a);
1589
- }
1590
- }
1591
- return !a.ended && (a.length < a.highWaterMark || a.length === 0);
1592
- }
1593
- function H(e, t, r, n) {
1594
- if (t.flowing && t.length === 0 && !t.sync) {
1595
- t.awaitDrain = 0;
1596
- e.emit("data", r);
1597
- } else {
1598
- t.length += t.objectMode ? 1 : r.length;
1599
- if (n) t.buffer.unshift(r); else t.buffer.push(r);
1600
- if (t.needReadable) z(e);
1601
- }
1602
- Q(e, t);
1603
- }
1604
- function $(e, t) {
1605
- var r;
1606
- if (!h(t) && typeof t !== "string" && t !== undefined && !e.objectMode) {
1607
- r = new k("chunk", [ "string", "Buffer", "Uint8Array" ], t);
1608
- }
1609
- return r;
1610
- }
1611
- U.prototype.isPaused = function() {
1612
- return this._readableState.flowing === false;
1613
- };
1614
- U.prototype.setEncoding = function(e) {
1615
- if (!P) P = f().StringDecoder;
1616
- var t = new P(e);
1617
- this._readableState.decoder = t;
1618
- this._readableState.encoding = this._readableState.decoder.encoding;
1619
- var r = this._readableState.buffer.head;
1620
- var n = "";
1621
- while (r !== null) {
1622
- n += t.write(r.data);
1623
- r = r.next;
1624
- }
1625
- this._readableState.buffer.clear();
1626
- if (n !== "") this._readableState.buffer.push(n);
1627
- this._readableState.length = n.length;
1628
- return this;
1629
- };
1630
- var V = 1073741824;
1631
- function G(e) {
1632
- if (e >= V) {
1633
- e = V;
1634
- } else {
1635
- e--;
1636
- e |= e >>> 1;
1637
- e |= e >>> 2;
1638
- e |= e >>> 4;
1639
- e |= e >>> 8;
1640
- e |= e >>> 16;
1641
- e++;
1642
- }
1643
- return e;
1644
- }
1645
- function Y(e, t) {
1646
- if (e <= 0 || t.length === 0 && t.ended) return 0;
1647
- if (t.objectMode) return 1;
1648
- if (e !== e) {
1649
- if (t.flowing && t.length) return t.buffer.head.data.length; else return t.length;
1650
- }
1651
- if (e > t.highWaterMark) t.highWaterMark = G(e);
1652
- if (e <= t.length) return e;
1653
- if (!t.ended) {
1654
- t.needReadable = true;
1655
- return 0;
1656
- }
1657
- return t.length;
1658
- }
1659
- U.prototype.read = function(e) {
1660
- v("read", e);
1661
- e = parseInt(e, 10);
1662
- var t = this._readableState;
1663
- var r = e;
1664
- if (e !== 0) t.emittedReadable = false;
1665
- if (e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) {
1666
- v("read: emitReadable", t.length, t.ended);
1667
- if (t.length === 0 && t.ended) oe(this); else z(this);
1668
- return null;
1669
- }
1670
- e = Y(e, t);
1671
- if (e === 0 && t.ended) {
1672
- if (t.length === 0) oe(this);
1673
- return null;
1674
- }
1675
- var n = t.needReadable;
1676
- v("need readable", n);
1677
- if (t.length === 0 || t.length - e < t.highWaterMark) {
1678
- n = true;
1679
- v("length less than watermark", n);
1680
- }
1681
- if (t.ended || t.reading) {
1682
- n = false;
1683
- v("reading or ended", n);
1684
- } else if (n) {
1685
- v("do read");
1686
- t.reading = true;
1687
- t.sync = true;
1688
- if (t.length === 0) t.needReadable = true;
1689
- this._read(t.highWaterMark);
1690
- t.sync = false;
1691
- if (!t.reading) e = Y(r, t);
1692
- }
1693
- var i;
1694
- if (e > 0) i = ae(e, t); else i = null;
1695
- if (i === null) {
1696
- t.needReadable = t.length <= t.highWaterMark;
1697
- e = 0;
1698
- } else {
1699
- t.length -= e;
1700
- t.awaitDrain = 0;
1701
- }
1702
- if (t.length === 0) {
1703
- if (!t.ended) t.needReadable = true;
1704
- if (r !== e && t.ended) oe(this);
1705
- }
1706
- if (i !== null) this.emit("data", i);
1707
- return i;
1708
- };
1709
- function K(e, t) {
1710
- v("onEofChunk");
1711
- if (t.ended) return;
1712
- if (t.decoder) {
1713
- var r = t.decoder.end();
1714
- if (r && r.length) {
1715
- t.buffer.push(r);
1716
- t.length += t.objectMode ? 1 : r.length;
1717
- }
1718
- }
1719
- t.ended = true;
1720
- if (t.sync) {
1721
- z(e);
1722
- } else {
1723
- t.needReadable = false;
1724
- if (!t.emittedReadable) {
1725
- t.emittedReadable = true;
1726
- J(e);
1727
- }
1728
- }
1729
- }
1730
- function z(e) {
1731
- var t = e._readableState;
1732
- v("emitReadable", t.needReadable, t.emittedReadable);
1733
- t.needReadable = false;
1734
- if (!t.emittedReadable) {
1735
- v("emitReadable", t.flowing);
1736
- t.emittedReadable = true;
1737
- process.nextTick(J, e);
1738
- }
1739
- }
1740
- function J(e) {
1741
- var t = e._readableState;
1742
- v("emitReadable_", t.destroyed, t.length, t.ended);
1743
- if (!t.destroyed && (t.length || t.ended)) {
1744
- e.emit("readable");
1745
- t.emittedReadable = false;
1746
- }
1747
- t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark;
1748
- ie(e);
1749
- }
1750
- function Q(e, t) {
1751
- if (!t.readingMore) {
1752
- t.readingMore = true;
1753
- process.nextTick(X, e, t);
1754
- }
1755
- }
1756
- function X(e, t) {
1757
- while (!t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && t.length === 0)) {
1758
- var r = t.length;
1759
- v("maybeReadMore read 0");
1760
- e.read(0);
1761
- if (r === t.length) break;
1762
- }
1763
- t.readingMore = false;
1764
- }
1765
- U.prototype._read = function(e) {
1766
- D(this, new M("_read()"));
1767
- };
1768
- U.prototype.pipe = function(e, t) {
1769
- var r = this;
1770
- var n = this._readableState;
1771
- switch (n.pipesCount) {
1772
- case 0:
1773
- n.pipes = e;
1774
- break;
1775
-
1776
- case 1:
1777
- n.pipes = [ n.pipes, e ];
1778
- break;
1779
-
1780
- default:
1781
- n.pipes.push(e);
1782
- break;
1783
- }
1784
- n.pipesCount += 1;
1785
- v("pipe count=%d opts=%j", n.pipesCount, t);
1786
- var i = (!t || t.end !== false) && e !== process.stdout && e !== process.stderr;
1787
- var a = i ? s : g;
1788
- if (n.endEmitted) process.nextTick(a); else r.once("end", a);
1789
- e.on("unpipe", f);
1790
- function f(e, t) {
1791
- v("onunpipe");
1792
- if (e === r) {
1793
- if (t && t.hasUnpiped === false) {
1794
- t.hasUnpiped = true;
1795
- d();
1796
- }
1797
- }
1798
- }
1799
- function s() {
1800
- v("onend");
1801
- e.end();
1802
- }
1803
- var l = Z(r);
1804
- e.on("drain", l);
1805
- var u = false;
1806
- function d() {
1807
- v("cleanup");
1808
- e.removeListener("close", p);
1809
- e.removeListener("finish", b);
1810
- e.removeListener("drain", l);
1811
- e.removeListener("error", h);
1812
- e.removeListener("unpipe", f);
1813
- r.removeListener("end", s);
1814
- r.removeListener("end", g);
1815
- r.removeListener("data", c);
1816
- u = true;
1817
- if (n.awaitDrain && (!e._writableState || e._writableState.needDrain)) l();
1818
- }
1819
- r.on("data", c);
1820
- function c(t) {
1821
- v("ondata");
1822
- var i = e.write(t);
1823
- v("dest.write", i);
1824
- if (i === false) {
1825
- if ((n.pipesCount === 1 && n.pipes === e || n.pipesCount > 1 && se(n.pipes, e) !== -1) && !u) {
1826
- v("false write response, pause", n.awaitDrain);
1827
- n.awaitDrain++;
1828
- }
1829
- r.pause();
1830
- }
1831
- }
1832
- function h(t) {
1833
- v("onerror", t);
1834
- g();
1835
- e.removeListener("error", h);
1836
- if (o(e, "error") === 0) D(e, t);
1837
- }
1838
- N(e, "error", h);
1839
- function p() {
1840
- e.removeListener("finish", b);
1841
- g();
1842
- }
1843
- e.once("close", p);
1844
- function b() {
1845
- v("onfinish");
1846
- e.removeListener("close", p);
1847
- g();
1848
- }
1849
- e.once("finish", b);
1850
- function g() {
1851
- v("unpipe");
1852
- r.unpipe(e);
1853
- }
1854
- e.emit("pipe", r);
1855
- if (!n.flowing) {
1856
- v("pipe resume");
1857
- r.resume();
1858
- }
1859
- return e;
1860
- };
1861
- function Z(e) {
1862
- return function t() {
1863
- var r = e._readableState;
1864
- v("pipeOnDrain", r.awaitDrain);
1865
- if (r.awaitDrain) r.awaitDrain--;
1866
- if (r.awaitDrain === 0 && o(e, "data")) {
1867
- r.flowing = true;
1868
- ie(e);
1869
- }
1870
- };
1871
- }
1872
- U.prototype.unpipe = function(e) {
1873
- var t = this._readableState;
1874
- var r = {
1875
- hasUnpiped: false
1876
- };
1877
- if (t.pipesCount === 0) return this;
1878
- if (t.pipesCount === 1) {
1879
- if (e && e !== t.pipes) return this;
1880
- if (!e) e = t.pipes;
1881
- t.pipes = null;
1882
- t.pipesCount = 0;
1883
- t.flowing = false;
1884
- if (e) e.emit("unpipe", this, r);
1885
- return this;
1886
- }
1887
- if (!e) {
1888
- var n = t.pipes;
1889
- var i = t.pipesCount;
1890
- t.pipes = null;
1891
- t.pipesCount = 0;
1892
- t.flowing = false;
1893
- for (var a = 0; a < i; a++) n[a].emit("unpipe", this, {
1894
- hasUnpiped: false
1895
- });
1896
- return this;
1897
- }
1898
- var o = se(t.pipes, e);
1899
- if (o === -1) return this;
1900
- t.pipes.splice(o, 1);
1901
- t.pipesCount -= 1;
1902
- if (t.pipesCount === 1) t.pipes = t.pipes[0];
1903
- e.emit("unpipe", this, r);
1904
- return this;
1905
- };
1906
- U.prototype.on = function(e, t) {
1907
- var r = s.prototype.on.call(this, e, t);
1908
- var n = this._readableState;
1909
- if (e === "data") {
1910
- n.readableListening = this.listenerCount("readable") > 0;
1911
- if (n.flowing !== false) this.resume();
1912
- } else if (e === "readable") {
1913
- if (!n.endEmitted && !n.readableListening) {
1914
- n.readableListening = n.needReadable = true;
1915
- n.flowing = false;
1916
- n.emittedReadable = false;
1917
- v("on readable", n.length, n.reading);
1918
- if (n.length) {
1919
- z(this);
1920
- } else if (!n.reading) {
1921
- process.nextTick(te, this);
1922
- }
1923
- }
1924
- }
1925
- return r;
1926
- };
1927
- U.prototype.addListener = U.prototype.on;
1928
- U.prototype.removeListener = function(e, t) {
1929
- var r = s.prototype.removeListener.call(this, e, t);
1930
- if (e === "readable") {
1931
- process.nextTick(ee, this);
1932
- }
1933
- return r;
1934
- };
1935
- U.prototype.removeAllListeners = function(e) {
1936
- var t = s.prototype.removeAllListeners.apply(this, arguments);
1937
- if (e === "readable" || e === undefined) {
1938
- process.nextTick(ee, this);
1939
- }
1940
- return t;
1941
- };
1942
- function ee(e) {
1943
- var t = e._readableState;
1944
- t.readableListening = e.listenerCount("readable") > 0;
1945
- if (t.resumeScheduled && !t.paused) {
1946
- t.flowing = true;
1947
- } else if (e.listenerCount("data") > 0) {
1948
- e.resume();
1949
- }
1950
- }
1951
- function te(e) {
1952
- v("readable nexttick read 0");
1953
- e.read(0);
1954
- }
1955
- U.prototype.resume = function() {
1956
- var e = this._readableState;
1957
- if (!e.flowing) {
1958
- v("resume");
1959
- e.flowing = !e.readableListening;
1960
- re(this, e);
1961
- }
1962
- e.paused = false;
1963
- return this;
1964
- };
1965
- function re(e, t) {
1966
- if (!t.resumeScheduled) {
1967
- t.resumeScheduled = true;
1968
- process.nextTick(ne, e, t);
1969
- }
1970
- }
1971
- function ne(e, t) {
1972
- v("resume", t.reading);
1973
- if (!t.reading) {
1974
- e.read(0);
1975
- }
1976
- t.resumeScheduled = false;
1977
- e.emit("resume");
1978
- ie(e);
1979
- if (t.flowing && !t.reading) e.read(0);
1980
- }
1981
- U.prototype.pause = function() {
1982
- v("call pause flowing=%j", this._readableState.flowing);
1983
- if (this._readableState.flowing !== false) {
1984
- v("pause");
1985
- this._readableState.flowing = false;
1986
- this.emit("pause");
1987
- }
1988
- this._readableState.paused = true;
1989
- return this;
1990
- };
1991
- function ie(e) {
1992
- var t = e._readableState;
1993
- v("flow", t.flowing);
1994
- while (t.flowing && e.read() !== null) ;
1995
- }
1996
- U.prototype.wrap = function(e) {
1997
- var t = this;
1998
- var r = this._readableState;
1999
- var n = false;
2000
- e.on("end", function() {
2001
- v("wrapped end");
2002
- if (r.decoder && !r.ended) {
2003
- var e = r.decoder.end();
2004
- if (e && e.length) t.push(e);
2005
- }
2006
- t.push(null);
2007
- });
2008
- e.on("data", function(i) {
2009
- v("wrapped data");
2010
- if (r.decoder) i = r.decoder.write(i);
2011
- if (r.objectMode && (i === null || i === undefined)) return; else if (!r.objectMode && (!i || !i.length)) return;
2012
- var a = t.push(i);
2013
- if (!a) {
2014
- n = true;
2015
- e.pause();
2016
- }
2017
- });
2018
- for (var i in e) {
2019
- if (this[i] === undefined && typeof e[i] === "function") {
2020
- this[i] = function t(r) {
2021
- return function t() {
2022
- return e[r].apply(e, arguments);
2023
- };
2024
- }(i);
2025
- }
2026
- }
2027
- for (var a = 0; a < x.length; a++) {
2028
- e.on(x[a], this.emit.bind(this, x[a]));
2029
- }
2030
- this._read = function(t) {
2031
- v("wrapped _read", t);
2032
- if (n) {
2033
- n = false;
2034
- e.resume();
2035
- }
2036
- };
2037
- return this;
2038
- };
2039
- if (typeof Symbol === "function") {
2040
- U.prototype[Symbol.asyncIterator] = function() {
2041
- if (L === undefined) {
2042
- L = C();
2043
- }
2044
- return L(this);
2045
- };
2046
- }
2047
- Object.defineProperty(U.prototype, "readableHighWaterMark", {
2048
- enumerable: false,
2049
- get: function e() {
2050
- return this._readableState.highWaterMark;
2051
- }
2052
- });
2053
- Object.defineProperty(U.prototype, "readableBuffer", {
2054
- enumerable: false,
2055
- get: function e() {
2056
- return this._readableState && this._readableState.buffer;
2057
- }
2058
- });
2059
- Object.defineProperty(U.prototype, "readableFlowing", {
2060
- enumerable: false,
2061
- get: function e() {
2062
- return this._readableState.flowing;
2063
- },
2064
- set: function e(t) {
2065
- if (this._readableState) {
2066
- this._readableState.flowing = t;
2067
- }
2068
- }
2069
- });
2070
- U._fromList = ae;
2071
- Object.defineProperty(U.prototype, "readableLength", {
2072
- enumerable: false,
2073
- get: function e() {
2074
- return this._readableState.length;
2075
- }
2076
- });
2077
- function ae(e, t) {
2078
- if (t.length === 0) return null;
2079
- var r;
2080
- if (t.objectMode) r = t.buffer.shift(); else if (!e || e >= t.length) {
2081
- if (t.decoder) r = t.buffer.join(""); else if (t.buffer.length === 1) r = t.buffer.first(); else r = t.buffer.concat(t.length);
2082
- t.buffer.clear();
2083
- } else {
2084
- r = t.buffer.consume(e, t.decoder);
2085
- }
2086
- return r;
2087
- }
2088
- function oe(e) {
2089
- var t = e._readableState;
2090
- v("endReadable", t.endEmitted);
2091
- if (!t.endEmitted) {
2092
- t.ended = true;
2093
- process.nextTick(fe, t, e);
2094
- }
2095
- }
2096
- function fe(e, t) {
2097
- v("endReadableNT", e.endEmitted, e.length);
2098
- if (!e.endEmitted && e.length === 0) {
2099
- e.endEmitted = true;
2100
- t.readable = false;
2101
- t.emit("end");
2102
- if (e.autoDestroy) {
2103
- var r = t._writableState;
2104
- if (!r || r.autoDestroy && r.finished) {
2105
- t.destroy();
2106
- }
2107
- }
2108
- }
2109
- }
2110
- if (typeof Symbol === "function") {
2111
- U.from = function(e, t) {
2112
- if (A === undefined) {
2113
- A = W();
2114
- }
2115
- return A(U, e, t);
2116
- };
2117
- }
2118
- function se(e, t) {
2119
- for (var r = 0, n = e.length; r < n; r++) {
2120
- if (e[r] === t) return r;
2121
- }
2122
- return -1;
2123
- }
2124
- return B;
2125
- }
2126
-
2127
- var F;
2128
-
2129
- var H;
2130
-
2131
- function $() {
2132
- if (H) return F;
2133
- H = 1;
2134
- F = s;
2135
- var e = _().codes, t = e.ERR_METHOD_NOT_IMPLEMENTED, r = e.ERR_MULTIPLE_CALLBACK, n = e.ERR_TRANSFORM_ALREADY_TRANSFORMING, i = e.ERR_TRANSFORM_WITH_LENGTH_0;
2136
- var o = j();
2137
- a()(s, o);
2138
- function f(e, t) {
2139
- var n = this._transformState;
2140
- n.transforming = false;
2141
- var i = n.writecb;
2142
- if (i === null) {
2143
- return this.emit("error", new r);
2144
- }
2145
- n.writechunk = null;
2146
- n.writecb = null;
2147
- if (t != null) this.push(t);
2148
- i(e);
2149
- var a = this._readableState;
2150
- a.reading = false;
2151
- if (a.needReadable || a.length < a.highWaterMark) {
2152
- this._read(a.highWaterMark);
2153
- }
2154
- }
2155
- function s(e) {
2156
- if (!(this instanceof s)) return new s(e);
2157
- o.call(this, e);
2158
- this._transformState = {
2159
- afterTransform: f.bind(this),
2160
- needTransform: false,
2161
- transforming: false,
2162
- writecb: null,
2163
- writechunk: null,
2164
- writeencoding: null
2165
- };
2166
- this._readableState.needReadable = true;
2167
- this._readableState.sync = false;
2168
- if (e) {
2169
- if (typeof e.transform === "function") this._transform = e.transform;
2170
- if (typeof e.flush === "function") this._flush = e.flush;
2171
- }
2172
- this.on("prefinish", l);
2173
- }
2174
- function l() {
2175
- var e = this;
2176
- if (typeof this._flush === "function" && !this._readableState.destroyed) {
2177
- this._flush(function(t, r) {
2178
- u(e, t, r);
2179
- });
2180
- } else {
2181
- u(this, null, null);
2182
- }
2183
- }
2184
- s.prototype.push = function(e, t) {
2185
- this._transformState.needTransform = false;
2186
- return o.prototype.push.call(this, e, t);
2187
- };
2188
- s.prototype._transform = function(e, r, n) {
2189
- n(new t("_transform()"));
2190
- };
2191
- s.prototype._write = function(e, t, r) {
2192
- var n = this._transformState;
2193
- n.writecb = r;
2194
- n.writechunk = e;
2195
- n.writeencoding = t;
2196
- if (!n.transforming) {
2197
- var i = this._readableState;
2198
- if (n.needTransform || i.needReadable || i.length < i.highWaterMark) this._read(i.highWaterMark);
2199
- }
2200
- };
2201
- s.prototype._read = function(e) {
2202
- var t = this._transformState;
2203
- if (t.writechunk !== null && !t.transforming) {
2204
- t.transforming = true;
2205
- this._transform(t.writechunk, t.writeencoding, t.afterTransform);
2206
- } else {
2207
- t.needTransform = true;
2208
- }
2209
- };
2210
- s.prototype._destroy = function(e, t) {
2211
- o.prototype._destroy.call(this, e, function(e) {
2212
- t(e);
2213
- });
2214
- };
2215
- function u(e, t, r) {
2216
- if (t) return e.emit("error", t);
2217
- if (r != null) e.push(r);
2218
- if (e._writableState.length) throw new i;
2219
- if (e._transformState.transforming) throw new n;
2220
- return e.push(null);
2221
- }
2222
- return F;
2223
- }
2224
-
2225
- var V;
2226
-
2227
- var G;
2228
-
2229
- function Y() {
2230
- if (G) return V;
2231
- G = 1;
2232
- V = t;
2233
- var e = $();
2234
- a()(t, e);
2235
- function t(r) {
2236
- if (!(this instanceof t)) return new t(r);
2237
- e.call(this, r);
2238
- }
2239
- t.prototype._transform = function(e, t, r) {
2240
- r(null, e);
2241
- };
2242
- return V;
2243
- }
2244
-
2245
- var K;
2246
-
2247
- var z;
2248
-
2249
- function J() {
2250
- if (z) return K;
2251
- z = 1;
2252
- var e;
2253
- function t(e) {
2254
- var t = false;
2255
- return function() {
2256
- if (t) return;
2257
- t = true;
2258
- e.apply(void 0, arguments);
2259
- };
2260
- }
2261
- var r = _().codes, n = r.ERR_MISSING_ARGS, i = r.ERR_STREAM_DESTROYED;
2262
- function a(e) {
2263
- if (e) throw e;
2264
- }
2265
- function o(e) {
2266
- return e.setHeader && typeof e.abort === "function";
2267
- }
2268
- function f(r, n, a, f) {
2269
- f = t(f);
2270
- var s = false;
2271
- r.on("close", function() {
2272
- s = true;
2273
- });
2274
- if (e === undefined) e = A();
2275
- e(r, {
2276
- readable: n,
2277
- writable: a
2278
- }, function(e) {
2279
- if (e) return f(e);
2280
- s = true;
2281
- f();
2282
- });
2283
- var l = false;
2284
- return function(e) {
2285
- if (s) return;
2286
- if (l) return;
2287
- l = true;
2288
- if (o(r)) return r.abort();
2289
- if (typeof r.destroy === "function") return r.destroy();
2290
- f(e || new i("pipe"));
2291
- };
2292
- }
2293
- function s(e) {
2294
- e();
2295
- }
2296
- function l(e, t) {
2297
- return e.pipe(t);
2298
- }
2299
- function u(e) {
2300
- if (!e.length) return a;
2301
- if (typeof e[e.length - 1] !== "function") return a;
2302
- return e.pop();
2303
- }
2304
- function d() {
2305
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) {
2306
- t[r] = arguments[r];
2307
- }
2308
- var i = u(t);
2309
- if (Array.isArray(t[0])) t = t[0];
2310
- if (t.length < 2) {
2311
- throw new n("streams");
2312
- }
2313
- var a;
2314
- var o = t.map(function(e, r) {
2315
- var n = r < t.length - 1;
2316
- var l = r > 0;
2317
- return f(e, n, l, function(e) {
2318
- if (!a) a = e;
2319
- if (e) o.forEach(s);
2320
- if (n) return;
2321
- o.forEach(s);
2322
- i(a);
2323
- });
2324
- });
2325
- return t.reduce(l);
2326
- }
2327
- K = d;
2328
- return K;
2329
- }
2330
-
2331
- s.exports;
2332
-
2333
- (function(t, r) {
2334
- var n = e;
2335
- if (process.env.READABLE_STREAM === "disable" && n) {
2336
- t.exports = n.Readable;
2337
- Object.assign(t.exports, n);
2338
- t.exports.Stream = n;
2339
- } else {
2340
- r = t.exports = U();
2341
- r.Stream = n || r;
2342
- r.Readable = r;
2343
- r.Writable = T();
2344
- r.Duplex = j();
2345
- r.Transform = $();
2346
- r.PassThrough = Y();
2347
- r.finished = A();
2348
- r.pipeline = J();
2349
- }
2350
- })(s, s.exports);
2351
-
2352
- var Q = s.exports;
2353
-
2354
- export { Q as r };
31
+ export { r as T };