lakutata 2.0.96 → 2.0.98

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