plugin-agent-orchestrator 1.1.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +207 -204
  2. package/client-v2.d.ts +2 -2
  3. package/client-v2.js +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.js +1 -1
  6. package/dist/client/117.2e4cb0477da3db1f.js +10 -0
  7. package/dist/client/253.93deb9e0192e76a5.js +10 -0
  8. package/dist/client/325.8f7f509bdb35e142.js +10 -0
  9. package/dist/client/404.498d2d9516dd1dce.js +10 -0
  10. package/dist/client/418.6f01da17774a5a25.js +10 -0
  11. package/dist/client/53.774ff07505d521fa.js +10 -0
  12. package/dist/client/619.e342b0fa467d39ca.js +10 -0
  13. package/dist/client/627.fdd60bcc0f3a9cf6.js +10 -0
  14. package/dist/client/652.477e21bfff67bc1c.js +10 -0
  15. package/dist/client/981.e0546ffc34afedcd.js +10 -0
  16. package/dist/client/993.5d04b510835ab0d2.js +10 -0
  17. package/dist/client/index.js +1 -1
  18. package/dist/client-v2/117.ccf43ae8631f7d74.js +10 -0
  19. package/dist/client-v2/214.cdf76752053a8990.js +10 -0
  20. package/dist/client-v2/253.1198df22f5baf304.js +10 -0
  21. package/dist/client-v2/264.78887ff88f969467.js +10 -0
  22. package/dist/client-v2/325.fafe5a6e83ba9cb3.js +10 -0
  23. package/dist/client-v2/404.9ba964c28a151c81.js +10 -0
  24. package/dist/client-v2/{41.3deb9e57a0f64fc4.js → 41.b28cf7a675a603d1.js} +1 -1
  25. package/dist/client-v2/418.55b6b28cda8bb5f3.js +10 -0
  26. package/dist/client-v2/{53.349fff8db80b19d4.js → 53.282081f97e4308c6.js} +1 -1
  27. package/dist/client-v2/{619.0a2144aaffefe018.js → 619.8c03913873785fb6.js} +1 -1
  28. package/dist/client-v2/627.e16f4a0dd596c3e6.js +10 -0
  29. package/dist/client-v2/652.1a48364774d5383a.js +10 -0
  30. package/dist/client-v2/{70.ffff2997c10fd4b0.js → 70.9166ed70906d041f.js} +1 -1
  31. package/dist/client-v2/{981.e4a1f41cfc94a856.js → 981.a81521f0296c7db8.js} +1 -1
  32. package/dist/client-v2/993.ca5b28f1e2b4c1ef.js +10 -0
  33. package/dist/client-v2/index.js +1 -1
  34. package/dist/externalVersion.js +10 -7
  35. package/dist/locale/en-US.json +229 -1
  36. package/dist/locale/zh-CN.json +229 -1
  37. package/dist/node_modules/adm-zip/adm-zip.js +1 -1
  38. package/dist/node_modules/adm-zip/package.json +1 -1
  39. package/dist/node_modules/ajv/package.json +1 -1
  40. package/dist/node_modules/zod/index.cjs +1 -1
  41. package/dist/node_modules/zod/package.json +1 -1
  42. package/dist/server/collections/agent-execution-spans.js +145 -6
  43. package/dist/server/collections/agent-governance-audit-events.js +47 -0
  44. package/dist/server/collections/agent-governance-policies.js +47 -0
  45. package/dist/server/collections/agent-governance-policy-versions.js +48 -0
  46. package/dist/server/collections/agent-governance-prompt-bindings.js +50 -0
  47. package/dist/server/collections/agent-loop-runs.js +23 -5
  48. package/dist/server/migrations/20261110000000-add-usage-pricing-snapshots.js +117 -0
  49. package/dist/server/migrations/20261110010000-add-usage-department-attribution.js +54 -0
  50. package/dist/server/plugin.js +114 -33
  51. package/dist/server/resources/agent-governance.js +192 -0
  52. package/dist/server/resources/agent-harness-profile.js +11 -3
  53. package/dist/server/resources/agent-monitor.js +109 -339
  54. package/dist/server/resources/agent-usage.js +423 -0
  55. package/dist/server/resources/native-monitor-format.js +179 -0
  56. package/dist/server/resources/tracing.js +35 -12
  57. package/dist/server/services/AgentGovernanceService.js +500 -0
  58. package/dist/server/services/DepartmentAttribution.js +65 -0
  59. package/dist/server/services/ExecutionSpanService.js +96 -3
  60. package/dist/server/services/GovernanceAdmission.js +211 -0
  61. package/dist/server/services/HarnessCapabilities.js +118 -0
  62. package/dist/server/services/LoopBudgetService.js +29 -11
  63. package/dist/server/services/LoopRunRepository.js +15 -6
  64. package/dist/server/services/LoopRunStateMachine.js +18 -7
  65. package/dist/server/services/LoopTriggerService.js +1 -1
  66. package/dist/server/services/LoopWorkerService.js +66 -32
  67. package/dist/server/services/ManagedPromptProtection.js +99 -0
  68. package/dist/server/services/NativeAgentMonitorSyncService.js +584 -0
  69. package/dist/server/services/NativeSubAgentObserver.js +141 -508
  70. package/dist/server/services/NativeUsageAttribution.js +97 -0
  71. package/dist/server/services/TokenTracker.js +787 -104
  72. package/dist/server/services/TracingRetentionPolicy.js +66 -0
  73. package/dist/server/services/VerificationService.js +18 -8
  74. package/dist/server/skill-hub/sandbox-config.json +6 -6
  75. package/dist/server/utils/ensure-indexes.js +14 -5
  76. package/package.json +63 -53
  77. package/server.d.ts +2 -2
  78. package/server.js +1 -1
  79. package/src/client/AgentRunsTab.tsx +2 -2
  80. package/src/client/ApprovalsTab.tsx +2 -2
  81. package/src/client/HarnessProfilesTab.tsx +2 -2
  82. package/src/client/OrchestratorSettings.tsx +152 -152
  83. package/src/client/SkillPages.tsx +41 -0
  84. package/src/client/__tests__/embedded-settings.test.tsx +232 -0
  85. package/src/client/hooks/useRunEventStream.ts +76 -76
  86. package/src/client/index.tsx +2 -2
  87. package/src/client/plugin.tsx +76 -32
  88. package/src/client/skill-hub/components/ExecutionHistory.tsx +200 -200
  89. package/src/client/skill-hub/components/GitSkillImport.tsx +562 -562
  90. package/src/client/skill-hub/components/LoopSettings.tsx +331 -331
  91. package/src/client/skill-hub/components/SkillEditor.tsx +460 -460
  92. package/src/client/skill-hub/components/SkillManager.tsx +194 -194
  93. package/src/client/skill-hub/components/SkillMetrics.tsx +162 -162
  94. package/src/client/skill-hub/components/SkillTestPanel.tsx +141 -141
  95. package/src/client/skill-hub/index.tsx +6 -6
  96. package/src/client/skill-hub/locale.ts +16 -16
  97. package/src/client/skill-hub/tools/InteractionSchemasProvider.tsx +132 -132
  98. package/src/client/skill-hub/tools/SkillHubCard.tsx +104 -104
  99. package/src/client/skill-hub/tools/loopTemplates.ts +52 -52
  100. package/src/client/skill-hub/tools/registerSkillLoopCards.ts +71 -71
  101. package/src/client/skill-hub/utils/jsonFields.ts +41 -41
  102. package/src/client-v2/__tests__/embedded-settings.test.tsx +193 -0
  103. package/src/client-v2/components/AIEmployeeSelect.tsx +47 -47
  104. package/src/client-v2/components/AIEmployeesContext.tsx +97 -97
  105. package/src/client-v2/components/AgentBindingsTab.tsx +269 -269
  106. package/src/client-v2/components/AgentRunsTab.tsx +92 -83
  107. package/src/client-v2/components/ApprovalsTab.tsx +337 -337
  108. package/src/client-v2/components/EmployeeGovernanceTab.tsx +702 -0
  109. package/src/client-v2/components/HarnessProfilesTab.tsx +704 -541
  110. package/src/client-v2/components/KnowledgeAccessTab.tsx +116 -116
  111. package/src/client-v2/components/RetrievalTraceTab.tsx +162 -162
  112. package/src/client-v2/components/UsageGovernanceTab.tsx +386 -0
  113. package/src/client-v2/index.tsx +1 -1
  114. package/src/client-v2/pages/AgentBindingsPage.tsx +22 -13
  115. package/src/client-v2/pages/ApprovalsPage.tsx +19 -10
  116. package/src/client-v2/pages/EmployeeGovernancePage.tsx +22 -0
  117. package/src/client-v2/pages/ExecutionHistoryPage.tsx +19 -10
  118. package/src/client-v2/pages/HarnessProfilesPage.tsx +19 -10
  119. package/src/client-v2/pages/KnowledgeAccessPage.tsx +19 -10
  120. package/src/client-v2/pages/LoopSettingsPage.tsx +19 -10
  121. package/src/client-v2/pages/MemoryInspectorPage.tsx +22 -13
  122. package/src/client-v2/pages/RetrievalTracePage.tsx +19 -10
  123. package/src/client-v2/pages/RulesPage.tsx +22 -13
  124. package/src/client-v2/pages/SkillDefinitionsPage.tsx +19 -10
  125. package/src/client-v2/pages/SkillMetricsPage.tsx +19 -10
  126. package/src/client-v2/pages/TracingPage.tsx +22 -13
  127. package/src/client-v2/pages/UsageGovernancePage.tsx +22 -0
  128. package/src/client-v2/plugin.tsx +139 -99
  129. package/src/client-v2/skill-hub/components/ExecutionHistory.tsx +196 -196
  130. package/src/client-v2/skill-hub/components/FileLinkList.tsx +37 -37
  131. package/src/client-v2/skill-hub/components/GitSkillImport.tsx +539 -539
  132. package/src/client-v2/skill-hub/components/LoopSettings.tsx +331 -331
  133. package/src/client-v2/skill-hub/components/SkillEditor.tsx +453 -453
  134. package/src/client-v2/skill-hub/components/SkillManager.tsx +191 -174
  135. package/src/client-v2/skill-hub/components/SkillMetrics.tsx +162 -162
  136. package/src/client-v2/skill-hub/components/SkillTestPanel.tsx +135 -135
  137. package/src/client-v2/skill-hub/locale.ts +13 -13
  138. package/src/client-v2/skill-hub/tools/InteractionSchemasProvider.tsx +62 -0
  139. package/src/client-v2/skill-hub/tools/SkillHubCard.tsx +104 -0
  140. package/src/client-v2/skill-hub/tools/__tests__/interactions.test.ts +110 -0
  141. package/src/client-v2/skill-hub/tools/interactions.ts +128 -0
  142. package/src/client-v2/skill-hub/tools/loopTemplates.ts +52 -52
  143. package/src/client-v2/skill-hub/utils/jsonFields.ts +41 -41
  144. package/src/client-v2/utils/jsonFields.ts +41 -41
  145. package/src/index.ts +2 -2
  146. package/src/locale/en-US.json +229 -1
  147. package/src/locale/zh-CN.json +229 -1
  148. package/src/server/__tests__/agent-execution-context.test.ts +18 -18
  149. package/src/server/__tests__/agent-governance.integration.test.ts +392 -0
  150. package/src/server/__tests__/agent-knowledge-insights.test.ts +123 -123
  151. package/src/server/__tests__/agent-monitor-acl.integration.test.ts +274 -0
  152. package/src/server/__tests__/agent-registry-service.test.ts +147 -147
  153. package/src/server/__tests__/agent-runtime-lifecycle.test.ts +46 -46
  154. package/src/server/__tests__/agent-usage-report.integration.test.ts +342 -0
  155. package/src/server/__tests__/code-validator.test.ts +63 -63
  156. package/src/server/__tests__/external-rag-search.test.ts +107 -107
  157. package/src/server/__tests__/harness-capabilities.test.ts +95 -0
  158. package/src/server/__tests__/harness-compiler.test.ts +214 -214
  159. package/src/server/__tests__/harness-profile-service.test.ts +167 -167
  160. package/src/server/__tests__/harness-runtime-policy.test.ts +293 -293
  161. package/src/server/__tests__/harness-tool-plan.test.ts +182 -172
  162. package/src/server/__tests__/input-schema-validator.test.ts +26 -26
  163. package/src/server/__tests__/loop-approval-decision.test.ts +577 -512
  164. package/src/server/__tests__/loop-approval-expiry.test.ts +258 -258
  165. package/src/server/__tests__/loop-budget-service.test.ts +36 -0
  166. package/src/server/__tests__/loop-pattern-schema.test.ts +73 -73
  167. package/src/server/__tests__/loop-run-repository.test.ts +32 -0
  168. package/src/server/__tests__/loop-run-state-machine.test.ts +101 -101
  169. package/src/server/__tests__/loop-trigger-service.test.ts +192 -148
  170. package/src/server/__tests__/loop-worker-claim.test.ts +72 -9
  171. package/src/server/__tests__/loop-worker-execution.test.ts +382 -317
  172. package/src/server/__tests__/native-agent-monitor-sync.test.ts +350 -0
  173. package/src/server/__tests__/native-sub-agent-observer.test.ts +470 -662
  174. package/src/server/__tests__/native-usage-attribution.integration.test.ts +175 -0
  175. package/src/server/__tests__/skill-access-service.test.ts +64 -64
  176. package/src/server/__tests__/skill-execute.test.ts +70 -70
  177. package/src/server/__tests__/skill-execution-task-policy.test.ts +140 -140
  178. package/src/server/__tests__/skill-sandbox-worker-mode.test.ts +15 -15
  179. package/src/server/__tests__/skill-settings.test.ts +63 -63
  180. package/src/server/__tests__/skill-tool-name.test.ts +23 -23
  181. package/src/server/__tests__/token-tracker.test.ts +639 -0
  182. package/src/server/__tests__/tool-loop-detection.test.ts +276 -276
  183. package/src/server/__tests__/tracing-retention-policy.test.ts +37 -0
  184. package/src/server/__tests__/usage-ledger.integration.test.ts +194 -0
  185. package/src/server/collections/agent-execution-spans.ts +393 -245
  186. package/src/server/collections/agent-governance-audit-events.ts +26 -0
  187. package/src/server/collections/agent-governance-policies.ts +26 -0
  188. package/src/server/collections/agent-governance-policy-versions.ts +27 -0
  189. package/src/server/collections/agent-governance-prompt-bindings.ts +29 -0
  190. package/src/server/collections/agent-loop-action-approvals.ts +39 -39
  191. package/src/server/collections/agent-loop-runs.ts +396 -369
  192. package/src/server/collections/agent-loop-steps.ts +220 -220
  193. package/src/server/collections/agent-memory-contexts.ts +95 -95
  194. package/src/server/collections/orchestrator-config.ts +87 -87
  195. package/src/server/collections/orchestrator-logs.ts +116 -116
  196. package/src/server/collections/skill-definitions.ts +159 -159
  197. package/src/server/collections/skill-executions.ts +154 -154
  198. package/src/server/collections/skill-loop-configs.ts +65 -65
  199. package/src/server/collections/skill-metrics.ts +36 -36
  200. package/src/server/collections/skill-registry-installations.ts +41 -41
  201. package/src/server/collections/skill-worker-configs.ts +86 -86
  202. package/src/server/index.ts +1 -1
  203. package/src/server/migrations/20260423000000-add-progress-fields.ts +50 -50
  204. package/src/server/migrations/20260425000000-add-interaction-schema.ts +37 -37
  205. package/src/server/migrations/20260427000000-add-tracing-detail-fields.ts +41 -41
  206. package/src/server/migrations/20260427000001-change-other-json-to-text.ts +61 -61
  207. package/src/server/migrations/20260524001000-add-plan-approval-and-harness-profiles.ts +145 -145
  208. package/src/server/migrations/20260601000000-add-token-fields.ts +89 -89
  209. package/src/server/migrations/20260615000000-normalize-ai-employee-tool-bindings.ts +39 -39
  210. package/src/server/migrations/20260621000000-native-policy-profile-defaults.ts +190 -190
  211. package/src/server/migrations/20260727000000-remove-unused-knowledge-scopes.ts +25 -25
  212. package/src/server/migrations/20260727010000-backfill-skill-tool-names.ts +45 -45
  213. package/src/server/migrations/20261110000000-add-usage-pricing-snapshots.ts +117 -0
  214. package/src/server/migrations/20261110010000-add-usage-department-attribution.ts +35 -0
  215. package/src/server/plugin.ts +674 -573
  216. package/src/server/resources/agent-governance.ts +168 -0
  217. package/src/server/resources/agent-harness-profile.ts +110 -94
  218. package/src/server/resources/agent-knowledge-insights.ts +306 -306
  219. package/src/server/resources/agent-loop-approval.ts +84 -84
  220. package/src/server/resources/agent-loop-events-stream.ts +108 -108
  221. package/src/server/resources/agent-loop.ts +252 -252
  222. package/src/server/resources/agent-monitor.ts +215 -482
  223. package/src/server/resources/agent-usage.ts +420 -0
  224. package/src/server/resources/native-monitor-format.ts +157 -0
  225. package/src/server/resources/tracing.ts +303 -267
  226. package/src/server/services/AgentExecutionContext.ts +23 -23
  227. package/src/server/services/AgentGovernanceService.ts +548 -0
  228. package/src/server/services/AgentMemoryContextService.ts +344 -344
  229. package/src/server/services/AgentRegistryService.ts +220 -220
  230. package/src/server/services/AgentRuntimeLifecycle.ts +64 -64
  231. package/src/server/services/CodeValidator.ts +238 -238
  232. package/src/server/services/DepartmentAttribution.ts +54 -0
  233. package/src/server/services/DurableCircuitBreakerService.ts +235 -235
  234. package/src/server/services/ExecutionSpanService.ts +278 -146
  235. package/src/server/services/FileManager.ts +159 -159
  236. package/src/server/services/GovernanceAdmission.ts +239 -0
  237. package/src/server/services/HarnessCapabilities.ts +119 -0
  238. package/src/server/services/HarnessCompiler.ts +170 -170
  239. package/src/server/services/HarnessProfileService.ts +235 -235
  240. package/src/server/services/HarnessSchema.ts +194 -194
  241. package/src/server/services/InputSchemaValidator.ts +44 -44
  242. package/src/server/services/LoopBudgetService.ts +332 -271
  243. package/src/server/services/LoopControlService.ts +120 -120
  244. package/src/server/services/LoopPatternSchema.ts +231 -231
  245. package/src/server/services/LoopPatternService.ts +171 -171
  246. package/src/server/services/LoopRunRepository.ts +350 -332
  247. package/src/server/services/LoopRunStateMachine.ts +545 -525
  248. package/src/server/services/LoopSchedulerService.ts +195 -195
  249. package/src/server/services/LoopTriggerService.ts +169 -159
  250. package/src/server/services/LoopWorkerService.ts +986 -912
  251. package/src/server/services/ManagedPromptProtection.ts +88 -0
  252. package/src/server/services/NativeAgentMonitorSyncService.ts +691 -0
  253. package/src/server/services/NativeSubAgentObserver.ts +331 -757
  254. package/src/server/services/NativeUsageAttribution.ts +98 -0
  255. package/src/server/services/PathLockService.ts +317 -317
  256. package/src/server/services/PluginAiRuntimeAdapter.ts +387 -387
  257. package/src/server/services/RunEventBus.ts +58 -58
  258. package/src/server/services/SandboxRunner.ts +492 -492
  259. package/src/server/services/SkillAccessService.ts +175 -175
  260. package/src/server/services/SkillManager.ts +585 -585
  261. package/src/server/services/SkillRepositoryService.ts +236 -236
  262. package/src/server/services/TokenTracker.ts +1158 -287
  263. package/src/server/services/ToolLoopDetectionService.ts +210 -210
  264. package/src/server/services/TracingRetentionPolicy.ts +56 -0
  265. package/src/server/services/VerificationSchema.ts +31 -31
  266. package/src/server/services/VerificationService.ts +332 -313
  267. package/src/server/services/WorkerEnvManager.ts +198 -198
  268. package/src/server/services/__tests__/SkillRepositoryService.test.ts +33 -33
  269. package/src/server/services/harness-runtime-policy.ts +134 -134
  270. package/src/server/services/pythonGuardTemplate.ts +87 -87
  271. package/src/server/services/sandboxCapabilities.ts +348 -348
  272. package/src/server/skill-hub/actions/__tests__/git-import.test.ts +563 -563
  273. package/src/server/skill-hub/actions/git-import.ts +936 -936
  274. package/src/server/skill-hub/mcp/McpController.ts +107 -107
  275. package/src/server/skill-hub/middlewares/git-import-request-method-policy.ts +51 -51
  276. package/src/server/skill-hub/plugin.ts +1232 -1232
  277. package/src/server/skill-hub/sandbox-config.json +6 -6
  278. package/src/server/skill-hub/services/RegistrySkillInstallationService.ts +281 -281
  279. package/src/server/skill-hub/services/__tests__/RegistrySkillInstallationService.test.ts +295 -295
  280. package/src/server/skill-hub/tasks/SkillExecutionTask.ts +568 -568
  281. package/src/server/skill-hub/utils/json-fields.ts +57 -57
  282. package/src/server/tools/delegate-task.ts +30 -30
  283. package/src/server/tools/external-rag-search.ts +329 -329
  284. package/src/server/tools/skill-execute.ts +216 -216
  285. package/src/server/types.ts +21 -21
  286. package/src/server/utils/ai-manager.ts +24 -24
  287. package/src/server/utils/ctx-utils.ts +132 -132
  288. package/src/server/utils/ensure-indexes.ts +119 -96
  289. package/src/server/utils/ha-lock.ts +80 -80
  290. package/src/server/utils/loop-pattern-context.ts +84 -84
  291. package/src/server/utils/record-utils.ts +19 -19
  292. package/src/server/utils/skill-settings.ts +135 -135
  293. package/src/server/utils/skill-tool-name.ts +58 -58
  294. package/dist/client-v2/117.7565cff57c39318a.js +0 -10
  295. package/dist/client-v2/214.106635011859dede.js +0 -10
  296. package/dist/client-v2/253.59577b40d9875be0.js +0 -10
  297. package/dist/client-v2/264.7ed8bee71fa5935c.js +0 -10
  298. package/dist/client-v2/418.41ed200e7d6da332.js +0 -10
  299. package/dist/client-v2/794.a67a2614405ba627.js +0 -10
  300. package/dist/client-v2/993.b0688fdc5ccb000a.js +0 -10
  301. package/dist/node_modules/simple-git/dist/cjs/index.js +0 -7399
  302. package/dist/node_modules/simple-git/dist/esm/index.js +0 -4745
  303. package/dist/node_modules/simple-git/dist/esm/package.json +0 -3
  304. package/dist/node_modules/simple-git/dist/src/lib/api.d.ts +0 -13
  305. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +0 -9
  306. package/dist/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +0 -15
  307. package/dist/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +0 -30
  308. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +0 -7
  309. package/dist/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +0 -32
  310. package/dist/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +0 -12
  311. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +0 -15
  312. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +0 -21
  313. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +0 -5
  314. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +0 -2
  315. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +0 -2
  316. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +0 -3
  317. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +0 -2
  318. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +0 -6
  319. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +0 -11
  320. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +0 -2
  321. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +0 -6
  322. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +0 -4
  323. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +0 -5
  324. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +0 -3
  325. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +0 -3
  326. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +0 -3
  327. package/dist/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +0 -2
  328. package/dist/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +0 -3
  329. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +0 -3
  330. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +0 -7
  331. package/dist/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +0 -11
  332. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +0 -11
  333. package/dist/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +0 -3
  334. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +0 -48
  335. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -3
  336. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +0 -2
  337. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +0 -3
  338. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +0 -12
  339. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +0 -14
  340. package/dist/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +0 -4
  341. package/dist/node_modules/simple-git/dist/src/lib/responses/CleanSummary.d.ts +0 -9
  342. package/dist/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +0 -13
  343. package/dist/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +0 -10
  344. package/dist/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +0 -9
  345. package/dist/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +0 -11
  346. package/dist/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +0 -9
  347. package/dist/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +0 -16
  348. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +0 -25
  349. package/dist/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +0 -19
  350. package/dist/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +0 -7
  351. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +0 -25
  352. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +0 -14
  353. package/dist/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +0 -2
  354. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +0 -11
  355. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +0 -23
  356. package/dist/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +0 -20
  357. package/dist/node_modules/simple-git/dist/src/lib/task-callback.d.ts +0 -2
  358. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +0 -3
  359. package/dist/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +0 -7
  360. package/dist/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +0 -2
  361. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +0 -2
  362. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +0 -9
  363. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +0 -2
  364. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +0 -25
  365. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +0 -9
  366. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +0 -4
  367. package/dist/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +0 -8
  368. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +0 -12
  369. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +0 -12
  370. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +0 -5
  371. package/dist/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +0 -4
  372. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +0 -2
  373. package/dist/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +0 -12
  374. package/dist/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +0 -5
  375. package/dist/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +0 -3
  376. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +0 -32
  377. package/dist/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +0 -4
  378. package/dist/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +0 -3
  379. package/dist/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +0 -3
  380. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +0 -9
  381. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +0 -8
  382. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +0 -11
  383. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +0 -2
  384. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +0 -4
  385. package/dist/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +0 -3
  386. package/dist/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +0 -5
  387. package/dist/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +0 -18
  388. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +0 -14
  389. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +0 -9
  390. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +0 -21
  391. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +0 -136
  392. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +0 -19
  393. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +0 -14
  394. package/dist/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +0 -10
  395. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -7
  396. package/dist/node_modules/simple-git/dist/src/lib/utils/index.d.ts +0 -8
  397. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +0 -15
  398. package/dist/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +0 -2
  399. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +0 -13
  400. package/dist/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +0 -5
  401. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +0 -47
  402. package/dist/node_modules/simple-git/dist/typings/errors.d.ts +0 -5
  403. package/dist/node_modules/simple-git/dist/typings/index.d.ts +0 -14
  404. package/dist/node_modules/simple-git/dist/typings/response.d.ts +0 -556
  405. package/dist/node_modules/simple-git/dist/typings/simple-git.d.ts +0 -1033
  406. package/dist/node_modules/simple-git/dist/typings/types.d.ts +0 -22
  407. package/dist/node_modules/simple-git/node_modules/debug/package.json +0 -64
  408. package/dist/node_modules/simple-git/node_modules/debug/src/browser.js +0 -272
  409. package/dist/node_modules/simple-git/node_modules/debug/src/common.js +0 -292
  410. package/dist/node_modules/simple-git/node_modules/debug/src/index.js +0 -10
  411. package/dist/node_modules/simple-git/node_modules/debug/src/node.js +0 -263
  412. package/dist/node_modules/simple-git/package.json +0 -1
  413. package/dist/node_modules/simple-git/promise.js +0 -17
@@ -1 +1 @@
1
- (function(){var e={761:function(e,t,n){const r=n(182);const i=n(17);const o=n(57);const s=n(744);const get_Bool=(...e)=>r.findLast(e,(e=>typeof e==="boolean"));const get_Str=(...e)=>r.findLast(e,(e=>typeof e==="string"));const get_Fun=(...e)=>r.findLast(e,(e=>typeof e==="function"));const a={noSort:false,readEntries:false,method:r.Constants.NONE,fs:null};e.exports=function(e,t){let n=null;const f=Object.assign(Object.create(null),a);if(e&&"object"===typeof e){if(!(e instanceof Uint8Array)){Object.assign(f,e);e=f.input?f.input:undefined;if(f.input)delete f.input}if(Buffer.isBuffer(e)){n=e;f.method=r.Constants.BUFFER;e=undefined}}Object.assign(f,t);const c=new r(f);if(typeof f.decoder!=="object"||typeof f.decoder.encode!=="function"||typeof f.decoder.decode!=="function"){f.decoder=r.decoder}if(e&&"string"===typeof e){if(c.fs.existsSync(e)){f.method=r.Constants.FILE;f.filename=e;n=c.fs.readFileSync(e)}else{throw r.Errors.INVALID_FILENAME()}}const l=new s(n,f);const{canonical:u,sanitize:d,zipnamefix:m}=r;function getEntry(e){if(e&&l){var t;if(typeof e==="string")t=l.getEntry(i.posix.normalize(e));if(typeof e==="object"&&typeof e.entryName!=="undefined"&&typeof e.header!=="undefined")t=l.getEntry(e.entryName);if(t){return t}}return null}function fixPath(e){const{join:t,normalize:n,sep:r}=i.posix;return t(i.isAbsolute(e)?"/":".",n(r+e.split("\\").join(r)+r))}function filenameFilter(e){if(e instanceof RegExp){return function(e){return function(t){return e.test(t)}}(e)}else if("function"!==typeof e){return()=>true}return e}const relativePath=(e,t)=>{let n=t.slice(-1);n=n===c.sep?c.sep:"";return i.relative(e,t)+n};return{readFile:function(e,t){var n=getEntry(e);return n&&n.getData(t)||null},childCount:function(e){const t=getEntry(e);if(t){return l.getChildCount(t)}},readFileAsync:function(e,t){var n=getEntry(e);if(n){n.getDataAsync(t)}else{t(null,"getEntry failed for:"+e)}},readAsText:function(e,t){var n=getEntry(e);if(n){var r=n.getData();if(r&&r.length){return r.toString(t||"utf8")}}return""},readAsTextAsync:function(e,t,n){var r=getEntry(e);if(r){r.getDataAsync((function(e,r){if(r){t(e,r);return}if(e&&e.length){t(e.toString(n||"utf8"))}else{t("")}}))}else{t("")}},deleteFile:function(e,t=true){var n=getEntry(e);if(n){l.deleteFile(n.entryName,t)}},deleteEntry:function(e){var t=getEntry(e);if(t){l.deleteEntry(t.entryName)}},addZipComment:function(e){l.comment=e},getZipComment:function(){return l.comment||""},addZipEntryComment:function(e,t){var n=getEntry(e);if(n){n.comment=t}},getZipEntryComment:function(e){var t=getEntry(e);if(t){return t.comment||""}return""},updateFile:function(e,t){var n=getEntry(e);if(n){n.setData(t)}},addLocalFile:function(e,t,n,o){if(c.fs.existsSync(e)){t=t?fixPath(t):"";const r=i.win32.basename(i.win32.normalize(e));t+=n?n:r;const s=c.fs.statSync(e);const a=s.isFile()?c.fs.readFileSync(e):Buffer.alloc(0);if(s.isDirectory())t+=c.sep;this.addFile(t,a,o,s)}else{throw r.Errors.FILE_NOT_FOUND(e)}},addLocalFileAsync:function(e,t){e=typeof e==="object"?e:{localPath:e};const n=i.resolve(e.localPath);const{comment:r}=e;let{zipPath:o,zipName:s}=e;const a=this;c.fs.stat(n,(function(e,f){if(e)return t(e,false);o=o?fixPath(o):"";const l=i.win32.basename(i.win32.normalize(n));o+=s?s:l;if(f.isFile()){c.fs.readFile(n,(function(e,n){if(e)return t(e,false);a.addFile(o,n,r,f);return setImmediate(t,undefined,true)}))}else if(f.isDirectory()){o+=c.sep;a.addFile(o,Buffer.alloc(0),r,f);return setImmediate(t,undefined,true)}}))},addLocalFolder:function(e,t,n){n=filenameFilter(n);t=t?fixPath(t):"";e=i.normalize(e);if(c.fs.existsSync(e)){const r=c.findFiles(e);const o=this;if(r.length){for(const s of r){const r=i.join(t,relativePath(e,s));if(n(r)){o.addLocalFile(s,i.dirname(r))}}}}else{throw r.Errors.FILE_NOT_FOUND(e)}},addLocalFolderAsync:function(e,t,n,o){o=filenameFilter(o);n=n?fixPath(n):"";e=i.normalize(e);var s=this;c.fs.open(e,"r",(function(i){if(i&&i.code==="ENOENT"){t(undefined,r.Errors.FILE_NOT_FOUND(e))}else if(i){t(undefined,i)}else{var a=c.findFiles(e);var f=-1;var next=function(){f+=1;if(f<a.length){var r=a[f];var i=relativePath(e,r).split("\\").join("/");i=i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(o(i)){c.fs.stat(r,(function(e,o){if(e)t(undefined,e);if(o.isFile()){c.fs.readFile(r,(function(e,r){if(e){t(undefined,e)}else{s.addFile(n+i,r,"",o);next()}}))}else{s.addFile(n+i+"/",Buffer.alloc(0),"",o);next()}}))}else{process.nextTick((()=>{next()}))}}else{t(true,undefined)}};next()}}))},addLocalFolderAsync2:function(e,t){const n=this;e=typeof e==="object"?e:{localPath:e};localPath=i.resolve(fixPath(e.localPath));let{zipPath:o,filter:s,namefix:a}=e;if(s instanceof RegExp){s=function(e){return function(t){return e.test(t)}}(s)}else if("function"!==typeof s){s=function(){return true}}o=o?fixPath(o):"";if(a=="latin1"){a=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")}if(typeof a!=="function")a=e=>e;const relPathFix=e=>i.join(o,a(relativePath(localPath,e)));const fileNameFix=e=>i.win32.basename(i.win32.normalize(a(e)));c.fs.open(localPath,"r",(function(e){if(e&&e.code==="ENOENT"){t(undefined,r.Errors.FILE_NOT_FOUND(localPath))}else if(e){t(undefined,e)}else{c.findFilesAsync(localPath,(function(e,r){if(e)return t(e);r=r.filter((e=>s(relPathFix(e))));if(!r.length)t(undefined,false);setImmediate(r.reverse().reduce((function(e,t){return function(r,o){if(r||o===false)return setImmediate(e,r,false);n.addLocalFileAsync({localPath:t,zipPath:i.dirname(relPathFix(t)),zipName:fileNameFix(t)},e)}}),t))}))}}))},addLocalFolderPromise:function(e,t){return new Promise(((n,r)=>{this.addLocalFolderAsync2(Object.assign({localPath:e},t),((e,t)=>{if(e)r(e);if(t)n(this)}))}))},addFile:function(e,t,n,r){e=m(e);let i=getEntry(e);const s=i!=null;if(!s){i=new o(f);i.entryName=e}i.comment=n||"";const a="object"===typeof r&&r instanceof c.fs.Stats;if(a){i.header.time=r.mtime}var u=i.isDirectory?16:0;let d=i.isDirectory?16384:32768;if(a){d|=4095&r.mode}else if("number"===typeof r){d|=4095&r}else{d|=i.isDirectory?493:420}u=(u|d<<16)>>>0;i.attr=u;i.setData(t);if(!s)l.setEntry(i);return i},getEntries:function(e){l.password=e;return l?l.entries:[]},getEntry:function(e){return getEntry(e)},getEntryCount:function(){return l.getEntryCount()},forEach:function(e){return l.forEach(e)},extractEntryTo:function(e,t,n,o,s,a){o=get_Bool(false,o);s=get_Bool(false,s);n=get_Bool(true,n);a=get_Str(s,a);var f=getEntry(e);if(!f){throw r.Errors.NO_ENTRY()}var m=u(f.entryName);var h=d(t,a&&!f.isDirectory?a:n?m:i.basename(m));if(f.isDirectory){var I=l.getEntryChildren(f);I.forEach((function(e){if(e.isDirectory)return;var a=e.getData();if(!a){throw r.Errors.CANT_EXTRACT_FILE()}var f=u(e.entryName);var l=d(t,n?f:i.basename(f));const m=s?e.header.fileAttr:undefined;c.writeFileTo(l,a,o,m)}));return true}var p=f.getData(l.password);if(!p)throw r.Errors.CANT_EXTRACT_FILE();if(c.fs.existsSync(h)&&!o){throw r.Errors.CANT_OVERRIDE()}const y=s?e.header.fileAttr:undefined;c.writeFileTo(h,p,o,y);return true},test:function(e){if(!l){return false}for(var t in l.entries){try{if(t.isDirectory){continue}var n=l.entries[t].getData(e);if(!n){return false}}catch(e){return false}}return true},extractAllTo:function(e,t,n,i){n=get_Bool(false,n);i=get_Str(n,i);t=get_Bool(false,t);if(!l)throw r.Errors.NO_ZIP();l.entries.forEach((function(o){var s=d(e,u(o.entryName));if(o.isDirectory){c.makeDir(s);return}var a=o.getData(i);if(!a){throw r.Errors.CANT_EXTRACT_FILE()}const f=n?o.header.fileAttr:undefined;c.writeFileTo(s,a,t,f);try{c.fs.utimesSync(s,o.header.time,o.header.time)}catch(e){throw r.Errors.CANT_EXTRACT_FILE()}}))},extractAllToAsync:function(e,t,n,o){o=get_Fun(t,n,o);n=get_Bool(false,n);t=get_Bool(false,t);if(!o){return new Promise(((r,i)=>{this.extractAllToAsync(e,t,n,(function(e){if(e){i(e)}else{r(this)}}))}))}if(!l){o(r.Errors.NO_ZIP());return}e=i.resolve(e);const getPath=t=>d(e,i.normalize(u(t.entryName)));const getError=(e,t)=>new Error(e+': "'+t+'"');const s=[];const a=[];l.entries.forEach((e=>{if(e.isDirectory){s.push(e)}else{a.push(e)}}));for(const e of s){const t=getPath(e);const r=n?e.header.fileAttr:undefined;try{c.makeDir(t);if(r)c.fs.chmodSync(t,r);c.fs.utimesSync(t,e.header.time,e.header.time)}catch(e){o(getError("Unable to create folder",t))}}a.reverse().reduce((function(o,s){return function(a){if(a){o(a)}else{const a=i.normalize(u(s.entryName));const f=d(e,a);s.getDataAsync((function(e,i){if(i){o(i)}else if(!e){o(r.Errors.CANT_EXTRACT_FILE())}else{const r=n?s.header.fileAttr:undefined;c.writeFileToAsync(f,e,t,r,(function(e){if(!e){o(getError("Unable to write file",f))}c.fs.utimes(f,s.header.time,s.header.time,(function(e){if(e){o(getError("Unable to set times",f))}else{o()}}))}))}}))}}}),o)()},writeZip:function(e,t){if(arguments.length===1){if(typeof e==="function"){t=e;e=""}}if(!e&&f.filename){e=f.filename}if(!e)return;var n=l.compressToBuffer();if(n){var r=c.writeFileTo(e,n,true);if(typeof t==="function")t(!r?new Error("failed"):null,"")}},writeZipPromise:function(e,t){const{overwrite:n,perm:r}=Object.assign({overwrite:true},t);return new Promise(((t,i)=>{if(!e&&f.filename)e=f.filename;if(!e)i("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((o=>{const ret=e=>e?t(e):i("ADM-ZIP: Wasn't able to write zip file");c.writeFileToAsync(e,o,n,r,ret)}),i)}))},toBufferPromise:function(){return new Promise(((e,t)=>{l.toAsyncBuffer(e,t)}))},toBuffer:function(e,t,n,r){if(typeof e==="function"){l.toAsyncBuffer(e,t,n,r);return null}return l.compressToBuffer()}}}},32:function(e,t,n){var r=n(182),i=r.Constants;e.exports=function(){var e=20,t=10,n=0,o=0,s=0,a=0,f=0,c=0,l=0,u=0,d=0,m=0,h=0,I=0,p=0;e|=r.isWin?2560:768;n|=i.FLG_EFS;const y={extraLen:0};const uint32=e=>Math.max(0,e)>>>0;const uint16=e=>Math.max(0,e)&65535;const uint8=e=>Math.max(0,e)&255;s=r.fromDate2DOS(new Date);return{get made(){return e},set made(t){e=t},get version(){return t},set version(e){t=e},get flags(){return n},set flags(e){n=e},get flags_efs(){return(n&i.FLG_EFS)>0},set flags_efs(e){if(e){n|=i.FLG_EFS}else{n&=~i.FLG_EFS}},get flags_desc(){return(n&i.FLG_DESC)>0},set flags_desc(e){if(e){n|=i.FLG_DESC}else{n&=~i.FLG_DESC}},get method(){return o},set method(e){switch(e){case i.STORED:this.version=10;case i.DEFLATED:default:this.version=20}o=e},get time(){return r.fromDOS2Date(this.timeval)},set time(e){e=new Date(e);this.timeval=r.fromDate2DOS(e)},get timeval(){return s},set timeval(e){s=uint32(e)},get timeHighByte(){return uint8(s>>>8)},get crc(){return a},set crc(e){a=uint32(e)},get compressedSize(){return f},set compressedSize(e){f=uint32(e)},get size(){return c},set size(e){c=uint32(e)},get fileNameLength(){return l},set fileNameLength(e){l=e},get extraLength(){return u},set extraLength(e){u=e},get extraLocalLength(){return y.extraLen},set extraLocalLength(e){y.extraLen=e},get commentLength(){return d},set commentLength(e){d=e},get diskNumStart(){return m},set diskNumStart(e){m=uint32(e)},get inAttr(){return h},set inAttr(e){h=uint32(e)},get attr(){return I},set attr(e){I=uint32(e)},get fileAttr(){return(I||0)>>16&4095},get offset(){return p},set offset(e){p=uint32(e)},get encrypted(){return(n&i.FLG_ENC)===i.FLG_ENC},get centralHeaderSize(){return i.CENHDR+l+u+d},get realDataOffset(){return p+i.LOCHDR+y.fnameLen+y.extraLen},get localHeader(){return y},loadLocalHeaderFromBinary:function(e){var t=e.slice(p,p+i.LOCHDR);if(t.readUInt32LE(0)!==i.LOCSIG){throw r.Errors.INVALID_LOC()}y.version=t.readUInt16LE(i.LOCVER);y.flags=t.readUInt16LE(i.LOCFLG);y.flags_desc=(y.flags&i.FLG_DESC)>0;y.method=t.readUInt16LE(i.LOCHOW);y.time=t.readUInt32LE(i.LOCTIM);y.crc=t.readUInt32LE(i.LOCCRC);y.compressedSize=t.readUInt32LE(i.LOCSIZ);y.size=t.readUInt32LE(i.LOCLEN);y.fnameLen=t.readUInt16LE(i.LOCNAM);y.extraLen=t.readUInt16LE(i.LOCEXT);const n=p+i.LOCHDR+y.fnameLen;const o=n+y.extraLen;return e.slice(n,o)},loadFromBinary:function(y){if(y.length!==i.CENHDR||y.readUInt32LE(0)!==i.CENSIG){throw r.Errors.INVALID_CEN()}e=y.readUInt16LE(i.CENVEM);t=y.readUInt16LE(i.CENVER);n=y.readUInt16LE(i.CENFLG);o=y.readUInt16LE(i.CENHOW);s=y.readUInt32LE(i.CENTIM);a=y.readUInt32LE(i.CENCRC);f=y.readUInt32LE(i.CENSIZ);c=y.readUInt32LE(i.CENLEN);l=y.readUInt16LE(i.CENNAM);u=y.readUInt16LE(i.CENEXT);d=y.readUInt16LE(i.CENCOM);m=y.readUInt16LE(i.CENDSK);h=y.readUInt16LE(i.CENATT);I=y.readUInt32LE(i.CENATX);p=y.readUInt32LE(i.CENOFF)},localHeaderToBinary:function(){var e=Buffer.alloc(i.LOCHDR);e.writeUInt32LE(i.LOCSIG,0);e.writeUInt16LE(t,i.LOCVER);e.writeUInt16LE(n,i.LOCFLG);e.writeUInt16LE(o,i.LOCHOW);e.writeUInt32LE(s,i.LOCTIM);e.writeUInt32LE(a,i.LOCCRC);e.writeUInt32LE(f,i.LOCSIZ);e.writeUInt32LE(c,i.LOCLEN);e.writeUInt16LE(l,i.LOCNAM);e.writeUInt16LE(y.extraLen,i.LOCEXT);return e},centralHeaderToBinary:function(){var r=Buffer.alloc(i.CENHDR+l+u+d);r.writeUInt32LE(i.CENSIG,0);r.writeUInt16LE(e,i.CENVEM);r.writeUInt16LE(t,i.CENVER);r.writeUInt16LE(n,i.CENFLG);r.writeUInt16LE(o,i.CENHOW);r.writeUInt32LE(s,i.CENTIM);r.writeUInt32LE(a,i.CENCRC);r.writeUInt32LE(f,i.CENSIZ);r.writeUInt32LE(c,i.CENLEN);r.writeUInt16LE(l,i.CENNAM);r.writeUInt16LE(u,i.CENEXT);r.writeUInt16LE(d,i.CENCOM);r.writeUInt16LE(m,i.CENDSK);r.writeUInt16LE(h,i.CENATT);r.writeUInt32LE(I,i.CENATX);r.writeUInt32LE(p,i.CENOFF);return r},toJSON:function(){const bytes=function(e){return e+" bytes"};return{made:e,version:t,flags:n,method:r.methodToString(o),time:this.time,crc:"0x"+a.toString(16).toUpperCase(),compressedSize:bytes(f),size:bytes(c),fileNameLength:bytes(l),extraLength:bytes(u),commentLength:bytes(d),diskNumStart:m,inAttr:h,attr:I,offset:p,centralHeaderSize:bytes(i.CENHDR+l+u+d)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},958:function(e,t,n){t.EntryHeader=n(32);t.MainHeader=n(408)},408:function(e,t,n){var r=n(182),i=r.Constants;e.exports=function(){var e=0,t=0,n=0,o=0,s=0;return{get diskEntries(){return e},set diskEntries(n){e=t=n},get totalEntries(){return t},set totalEntries(n){t=e=n},get size(){return n},set size(e){n=e},get offset(){return o},set offset(e){o=e},get commentLength(){return s},set commentLength(e){s=e},get mainHeaderSize(){return i.ENDHDR+s},loadFromBinary:function(a){if((a.length!==i.ENDHDR||a.readUInt32LE(0)!==i.ENDSIG)&&(a.length<i.ZIP64HDR||a.readUInt32LE(0)!==i.ZIP64SIG)){throw r.Errors.INVALID_END()}if(a.readUInt32LE(0)===i.ENDSIG){e=a.readUInt16LE(i.ENDSUB);t=a.readUInt16LE(i.ENDTOT);n=a.readUInt32LE(i.ENDSIZ);o=a.readUInt32LE(i.ENDOFF);s=a.readUInt16LE(i.ENDCOM)}else{e=r.readBigUInt64LE(a,i.ZIP64SUB);t=r.readBigUInt64LE(a,i.ZIP64TOT);n=r.readBigUInt64LE(a,i.ZIP64SIZE);o=r.readBigUInt64LE(a,i.ZIP64OFF);s=0}},toBinary:function(){var r=Buffer.alloc(i.ENDHDR+s);r.writeUInt32LE(i.ENDSIG,0);r.writeUInt32LE(0,4);r.writeUInt16LE(e,i.ENDSUB);r.writeUInt16LE(t,i.ENDTOT);r.writeUInt32LE(n,i.ENDSIZ);r.writeUInt32LE(o,i.ENDOFF);r.writeUInt16LE(s,i.ENDCOM);r.fill(" ",i.ENDHDR);return r},toJSON:function(){const offset=function(e,t){let n=e.toString(16).toUpperCase();while(n.length<t)n="0"+n;return"0x"+n};return{diskEntries:e,totalEntries:t,size:n+" bytes",offset:offset(o,4),commentLength:s}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},686:function(e,t,n){e.exports=function(e){var t=n(796);var r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),o=[],s=0;i.on("data",(function(e){o.push(e);s+=e.length}));i.on("end",(function(){var e=Buffer.alloc(s),t=0;e.fill(0);for(var r=0;r<o.length;r++){var i=o[r];i.copy(e,t);t+=i.length}n&&n(e)}));i.end(e)}}}},928:function(e,t,n){t.Deflater=n(686);t.Inflater=n(153);t.ZipCrypto=n(228)},153:function(e,t,n){const r=+(process.versions?process.versions.node:"").split(".")[0]||0;e.exports=function(e,t){var i=n(796);const o=r>=15&&t>0?{maxOutputLength:t}:{};return{inflate:function(){return i.inflateRawSync(e,o)},inflateAsync:function(t){var n=i.createInflateRaw(o),r=[],s=0;n.on("data",(function(e){r.push(e);s+=e.length}));n.on("end",(function(){var e=Buffer.alloc(s),n=0;e.fill(0);for(var i=0;i<r.length;i++){var o=r[i];o.copy(e,n);n+=o.length}t&&t(e)}));n.end(e)}}}},228:function(e,t,n){"use strict";const{randomFillSync:r}=n(113);const i=n(255);const o=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++){if(0!==(t&1)){t=t>>>1^3988292384}else{t>>>=1}}return t>>>0}));const uMul=(e,t)=>Math.imul(e,t)>>>0;const crc32update=(e,t)=>o[(e^t)&255]^e>>>8;const genSalt=()=>{if("function"===typeof r){return r(Buffer.alloc(12))}else{return genSalt.node()}};genSalt.node=()=>{const e=Buffer.alloc(12);const t=e.length;for(let n=0;n<t;n++)e[n]=Math.random()*256&255;return e};const s={genSalt:genSalt};function Initkeys(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<t.length;e++){this.updateKeys(t[e])}}Initkeys.prototype.updateKeys=function(e){const t=this.keys;t[0]=crc32update(t[0],e);t[1]+=t[0]&255;t[1]=uMul(t[1],134775813)+1;t[2]=crc32update(t[2],t[1]>>>24);return e};Initkeys.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return uMul(e,e^1)>>8&255};function make_decrypter(e){const t=new Initkeys(e);return function(e){const n=Buffer.alloc(e.length);let r=0;for(let i of e){n[r++]=t.updateKeys(i^t.next())}return n}}function make_encrypter(e){const t=new Initkeys(e);return function(e,n,r=0){if(!n)n=Buffer.alloc(e.length);for(let i of e){const e=t.next();n[r++]=i^e;t.updateKeys(i)}return n}}function decrypt(e,t,n){if(!e||!Buffer.isBuffer(e)||e.length<12){return Buffer.alloc(0)}const r=make_decrypter(n);const o=r(e.slice(0,12));const s=(t.flags&8)===8?t.timeHighByte:t.crc>>>24;if(o[11]!==s){throw i.WRONG_PASSWORD()}return r(e.slice(12))}function _salter(e){if(Buffer.isBuffer(e)&&e.length>=12){s.genSalt=function(){return e.slice(0,12)}}else if(e==="node"){s.genSalt=genSalt.node}else{s.genSalt=genSalt}}function encrypt(e,t,n,r=false){if(e==null)e=Buffer.alloc(0);if(!Buffer.isBuffer(e))e=Buffer.from(e.toString());const i=make_encrypter(n);const o=s.genSalt();o[11]=t.crc>>>24&255;if(r)o[10]=t.crc>>>16&255;const a=Buffer.alloc(e.length+12);i(o,a);return i(e,a,12)}e.exports={decrypt:decrypt,encrypt:encrypt,_salter:_salter}},522:function(e){e.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}},396:function(e){e.exports={efs:true,encode:e=>Buffer.from(e,"utf8"),decode:e=>e.toString("utf8")}},255:function(e,t){const n={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function E(e){return function(...t){if(t.length){e=e.replace(/\{(\d)\}/g,((e,n)=>t[n]||""))}return new Error("ADM-ZIP: "+e)}}for(const e of Object.keys(n)){t[e]=E(n[e])}},321:function(e,t,n){const r=n(17);e.exports=function(e,{fs:t}){var n=e||"",i=newAttr(),o=null;function newAttr(){return{directory:false,readonly:false,hidden:false,executable:false,mtime:0,atime:0}}if(n&&t.existsSync(n)){o=t.statSync(n);i.directory=o.isDirectory();i.mtime=o.mtime;i.atime=o.atime;i.executable=(73&o.mode)!==0;i.readonly=(128&o.mode)===0;i.hidden=r.basename(n)[0]==="."}else{console.warn("Invalid path: "+n)}return{get directory(){return i.directory},get readOnly(){return i.readonly},get hidden(){return i.hidden},get mtime(){return i.mtime},get atime(){return i.atime},get executable(){return i.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:n,isDirectory:i.directory,isReadOnly:i.readonly,isHidden:i.hidden,isExecutable:i.executable,mTime:i.mtime,aTime:i.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},182:function(e,t,n){e.exports=n(291);e.exports.Constants=n(522);e.exports.Errors=n(255);e.exports.FileAttr=n(321);e.exports.decoder=n(396)},291:function(e,t,n){const r=n(147);const i=n(17);const o=n(522);const s=n(255);const a=typeof process==="object"&&"win32"===process.platform;const is_Obj=e=>typeof e==="object"&&e!==null;const f=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++){if((t&1)!==0){t=3988292384^t>>>1}else{t>>>=1}}return t>>>0}));function Utils(e){this.sep=i.sep;this.fs=r;if(is_Obj(e)){if(is_Obj(e.fs)&&typeof e.fs.statSync==="function"){this.fs=e.fs}}}e.exports=Utils;Utils.prototype.makeDir=function(e){const t=this;function mkdirSync(e){let n=e.split(t.sep)[0];e.split(t.sep).forEach((function(e){if(!e||e.substr(-1,1)===":")return;n+=t.sep+e;var r;try{r=t.fs.statSync(n)}catch(e){if(e.message&&e.message.startsWith("ENOENT")){t.fs.mkdirSync(n)}else{throw e}}if(r&&r.isFile())throw s.FILE_IN_THE_WAY(`"${n}"`)}))}mkdirSync(e)};Utils.prototype.writeFileTo=function(e,t,n,r){const o=this;if(o.fs.existsSync(e)){if(!n)return false;var s=o.fs.statSync(e);if(s.isDirectory()){return false}}var a=i.dirname(e);if(!o.fs.existsSync(a)){o.makeDir(a)}var f;try{f=o.fs.openSync(e,"w",438)}catch(t){o.fs.chmodSync(e,438);f=o.fs.openSync(e,"w",438)}if(f){try{o.fs.writeSync(f,t,0,t.length,0)}finally{o.fs.closeSync(f)}}o.fs.chmodSync(e,r||438);return true};Utils.prototype.writeFileToAsync=function(e,t,n,r,o){if(typeof r==="function"){o=r;r=undefined}const s=this;s.fs.exists(e,(function(a){if(a&&!n)return o(false);s.fs.stat(e,(function(n,f){if(a&&f.isDirectory()){return o(false)}var c=i.dirname(e);s.fs.exists(c,(function(n){if(!n)s.makeDir(c);s.fs.open(e,"w",438,(function(n,i){if(n){s.fs.chmod(e,438,(function(){s.fs.open(e,"w",438,(function(n,i){s.fs.write(i,t,0,t.length,0,(function(){s.fs.close(i,(function(){s.fs.chmod(e,r||438,(function(){o(true)}))}))}))}))}))}else if(i){s.fs.write(i,t,0,t.length,0,(function(){s.fs.close(i,(function(){s.fs.chmod(e,r||438,(function(){o(true)}))}))}))}else{s.fs.chmod(e,r||438,(function(){o(true)}))}}))}))}))}))};Utils.prototype.findFiles=function(e){const t=this;function findSync(e,n,r){if(typeof n==="boolean"){r=n;n=undefined}let o=[];t.fs.readdirSync(e).forEach((function(s){const a=i.join(e,s);const f=t.fs.statSync(a);if(!n||n.test(a)){o.push(i.normalize(a)+(f.isDirectory()?t.sep:""))}if(f.isDirectory()&&r)o=o.concat(findSync(a,n,r))}));return o}return findSync(e,undefined,true)};Utils.prototype.findFilesAsync=function(e,t){const n=this;let r=[];n.fs.readdir(e,(function(o,s){if(o)return t(o);let a=s.length;if(!a)return t(null,r);s.forEach((function(o){o=i.join(e,o);n.fs.stat(o,(function(e,s){if(e)return t(e);if(s){r.push(i.normalize(o)+(s.isDirectory()?n.sep:""));if(s.isDirectory()){n.findFilesAsync(o,(function(e,n){if(e)return t(e);r=r.concat(n);if(!--a)t(null,r)}))}else{if(!--a)t(null,r)}}}))}))}))};Utils.prototype.getAttributes=function(){};Utils.prototype.setAttributes=function(){};Utils.crc32update=function(e,t){return f[(e^t)&255]^e>>>8};Utils.crc32=function(e){if(typeof e==="string"){e=Buffer.from(e,"utf8")}let t=e.length;let n=~0;for(let r=0;r<t;)n=Utils.crc32update(n,e[r++]);return~n>>>0};Utils.methodToString=function(e){switch(e){case o.STORED:return"STORED ("+e+")";case o.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};Utils.canonical=function(e){if(!e)return"";const t=i.posix.normalize("/"+e.split("\\").join("/"));return i.join(".",t)};Utils.zipnamefix=function(e){if(!e)return"";const t=i.posix.normalize("/"+e.split("\\").join("/"));return i.posix.join(".",t)};Utils.findLast=function(e,t){if(!Array.isArray(e))throw new TypeError("arr is not array");const n=e.length>>>0;for(let r=n-1;r>=0;r--){if(t(e[r],r,e)){return e[r]}}return void 0};Utils.sanitize=function(e,t){e=i.resolve(i.normalize(e));var n=t.split("/");for(var r=0,o=n.length;r<o;r++){var s=i.normalize(i.join(e,n.slice(r,o).join(i.sep)));if(s.indexOf(e)===0){return s}}return i.normalize(i.join(e,i.basename(t)))};Utils.toBuffer=function toBuffer(e,t){if(Buffer.isBuffer(e)){return e}else if(e instanceof Uint8Array){return Buffer.from(e)}else{return typeof e==="string"?t(e):Buffer.alloc(0)}};Utils.readBigUInt64LE=function(e,t){const n=e.readUInt32LE(t);const r=e.readUInt32LE(t+4);return r*4294967296+n};Utils.fromDOS2Date=function(e){return new Date((e>>25&127)+1980,Math.max((e>>21&15)-1,0),Math.max(e>>16&31,1),e>>11&31,e>>5&63,(e&31)<<1)};Utils.fromDate2DOS=function(e){let t=0;let n=0;if(e.getFullYear()>1979){t=(e.getFullYear()-1980&127)<<9|e.getMonth()+1<<5|e.getDate();n=e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1}return t<<16|n};Utils.isWin=a;Utils.crcTable=f},57:function(e,t,n){var r=n(182),i=n(958),o=r.Constants,s=n(928);e.exports=function(e,t){var n=new i.EntryHeader,a=Buffer.alloc(0),f=Buffer.alloc(0),c=false,l=null,u=Buffer.alloc(0),d=Buffer.alloc(0),m=true;const h=e;const I=typeof h.decoder==="object"?h.decoder:r.decoder;m=I.hasOwnProperty("efs")?I.efs:false;function getCompressedDataFromZip(){if(!t||!(t instanceof Uint8Array)){return Buffer.alloc(0)}d=n.loadLocalHeaderFromBinary(t);return t.slice(n.realDataOffset,n.realDataOffset+n.compressedSize)}function crc32OK(e){if(!n.flags_desc&&!n.localHeader.flags_desc){if(r.crc32(e)!==n.localHeader.crc){return false}}else{const i={};const s=n.realDataOffset+n.compressedSize;if(t.readUInt32LE(s)==o.LOCSIG||t.readUInt32LE(s)==o.CENSIG){throw r.Errors.DESCRIPTOR_NOT_EXIST()}if(t.readUInt32LE(s)==o.EXTSIG){i.crc=t.readUInt32LE(s+o.EXTCRC);i.compressedSize=t.readUInt32LE(s+o.EXTSIZ);i.size=t.readUInt32LE(s+o.EXTLEN)}else if(t.readUInt16LE(s+12)===19280){i.crc=t.readUInt32LE(s+o.EXTCRC-4);i.compressedSize=t.readUInt32LE(s+o.EXTSIZ-4);i.size=t.readUInt32LE(s+o.EXTLEN-4)}else{throw r.Errors.DESCRIPTOR_UNKNOWN()}if(i.compressedSize!==n.compressedSize||i.size!==n.size||i.crc!==n.crc){throw r.Errors.DESCRIPTOR_FAULTY()}if(r.crc32(e)!==i.crc){return false}}return true}function decompress(e,t,i){if(typeof t==="undefined"&&typeof e==="string"){i=e;e=void 0}if(c){if(e&&t){t(Buffer.alloc(0),r.Errors.DIRECTORY_CONTENT_ERROR())}return Buffer.alloc(0)}var o=getCompressedDataFromZip();if(o.length===0){if(e&&t)t(o);return o}if(n.encrypted){if("string"!==typeof i&&!Buffer.isBuffer(i)){throw r.Errors.INVALID_PASS_PARAM()}o=s.ZipCrypto.decrypt(o,n,i)}var f=Buffer.alloc(n.size);switch(n.method){case r.Constants.STORED:o.copy(f);if(!crc32OK(f)){if(e&&t)t(f,r.Errors.BAD_CRC());throw r.Errors.BAD_CRC()}else{if(e&&t)t(f);return f}case r.Constants.DEFLATED:var l=new s.Inflater(o,n.size);if(!e){const e=l.inflate(f);e.copy(f,0);if(!crc32OK(f)){throw r.Errors.BAD_CRC(`"${I.decode(a)}"`)}return f}else{l.inflateAsync((function(e){e.copy(e,0);if(t){if(!crc32OK(e)){t(e,r.Errors.BAD_CRC())}else{t(e)}}}))}break;default:if(e&&t)t(Buffer.alloc(0),r.Errors.UNKNOWN_METHOD());throw r.Errors.UNKNOWN_METHOD()}}function compress(e,i){if((!l||!l.length)&&Buffer.isBuffer(t)){if(e&&i)i(getCompressedDataFromZip());return getCompressedDataFromZip()}if(l.length&&!c){var o;switch(n.method){case r.Constants.STORED:n.compressedSize=n.size;o=Buffer.alloc(l.length);l.copy(o);if(e&&i)i(o);return o;default:case r.Constants.DEFLATED:var a=new s.Deflater(l);if(!e){var f=a.deflate();n.compressedSize=f.length;return f}else{a.deflateAsync((function(e){o=Buffer.alloc(e.length);n.compressedSize=e.length;e.copy(o);i&&i(o)}))}a=null;break}}else if(e&&i){i(Buffer.alloc(0))}else{return Buffer.alloc(0)}}function readUInt64LE(e,t){return r.readBigUInt64LE(e,t)}function parseExtra(e){try{var t=0;var n,i,s;while(t+4<e.length){n=e.readUInt16LE(t);t+=2;i=e.readUInt16LE(t);t+=2;s=e.slice(t,t+i);t+=i;if(o.ID_ZIP64===n){parseZip64ExtendedInformation(s)}}}catch(e){throw r.Errors.EXTRA_FIELD_PARSE_ERROR()}}function parseZip64ExtendedInformation(e){var t,r,i,s;if(e.length>=o.EF_ZIP64_SCOMP){t=readUInt64LE(e,o.EF_ZIP64_SUNCOMP);if(n.size===o.EF_ZIP64_OR_32){n.size=t}}if(e.length>=o.EF_ZIP64_RHO){r=readUInt64LE(e,o.EF_ZIP64_SCOMP);if(n.compressedSize===o.EF_ZIP64_OR_32){n.compressedSize=r}}if(e.length>=o.EF_ZIP64_DSN){i=readUInt64LE(e,o.EF_ZIP64_RHO);if(n.offset===o.EF_ZIP64_OR_32){n.offset=i}}if(e.length>=o.EF_ZIP64_DSN+4){s=e.readUInt32LE(o.EF_ZIP64_DSN);if(n.diskNumStart===o.EF_ZIP64_OR_16){n.diskNumStart=s}}}return{get entryName(){return I.decode(a)},get rawEntryName(){return a},set entryName(e){a=r.toBuffer(e,I.encode);var t=a[a.length-1];c=t===47||t===92;n.fileNameLength=a.length},get efs(){if(typeof m==="function"){return m(this.entryName)}else{return m}},get extra(){return u},set extra(e){u=e;n.extraLength=e.length;parseExtra(e)},get comment(){return I.decode(f)},set comment(e){f=r.toBuffer(e,I.encode);n.commentLength=f.length;if(f.length>65535)throw r.Errors.COMMENT_TOO_LONG()},get name(){var e=I.decode(a);return c?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return c},getCompressedData:function(){return compress(false,null)},getCompressedDataAsync:function(e){compress(true,e)},setData:function(e){l=r.toBuffer(e,r.decoder.encode);if(!c&&l.length){n.size=l.length;n.method=r.Constants.DEFLATED;n.crc=r.crc32(e);n.changed=true}else{n.method=r.Constants.STORED}},getData:function(e){if(n.changed){return l}else{return decompress(false,null,e)}},getDataAsync:function(e,t){if(n.changed){e(l)}else{decompress(true,e,t)}},set attr(e){n.attr=e},get attr(){return n.attr},set header(e){n.loadFromBinary(e)},get header(){return n},packCentralHeader:function(){n.flags_efs=this.efs;n.extraLength=u.length;var e=n.centralHeaderToBinary();var t=r.Constants.CENHDR;a.copy(e,t);t+=a.length;u.copy(e,t);t+=n.extraLength;f.copy(e,t);return e},packLocalHeader:function(){let e=0;n.flags_efs=this.efs;n.extraLocalLength=d.length;const t=n.localHeaderToBinary();const r=Buffer.alloc(t.length+a.length+n.extraLocalLength);t.copy(r,e);e+=t.length;a.copy(r,e);e+=a.length;d.copy(r,e);e+=d.length;return r},toJSON:function(){const bytes=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:n.toJSON(),compressedData:bytes(t),data:bytes(l)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},744:function(e,t,n){const r=n(57);const i=n(958);const o=n(182);e.exports=function(e,t){var n=[],s={},a=Buffer.alloc(0),f=new i.MainHeader,c=false;var l=null;const u=new Set;const d=t;const{noSort:m,decoder:h}=d;if(e){readMainHeader(d.readEntries)}else{c=true}function makeTemporaryFolders(){const e=new Set;for(const t of Object.keys(s)){const n=t.split("/");n.pop();if(!n.length)continue;for(let t=0;t<n.length;t++){const r=n.slice(0,t+1).join("/")+"/";e.add(r)}}for(const t of e){if(!(t in s)){const e=new r(d);e.entryName=t;e.attr=16;e.temporary=true;n.push(e);s[e.entryName]=e;u.add(e)}}}function readEntries(){c=true;s={};if(f.diskEntries>(e.length-f.offset)/o.Constants.CENHDR){throw o.Errors.DISK_ENTRY_TOO_LARGE()}n=new Array(f.diskEntries);var t=f.offset;for(var i=0;i<n.length;i++){var a=t,l=new r(d,e);l.header=e.slice(a,a+=o.Constants.CENHDR);l.entryName=e.slice(a,a+=l.header.fileNameLength);if(l.header.extraLength){l.extra=e.slice(a,a+=l.header.extraLength)}if(l.header.commentLength)l.comment=e.slice(a,a+l.header.commentLength);t+=l.header.centralHeaderSize;n[i]=l;s[l.entryName]=l}u.clear();makeTemporaryFolders()}function readMainHeader(t){var n=e.length-o.Constants.ENDHDR,r=Math.max(0,n-65535),i=r,s=e.length,c=-1,l=0;const u=typeof d.trailingSpace==="boolean"?d.trailingSpace:false;if(u)r=0;for(n;n>=i;n--){if(e[n]!==80)continue;if(e.readUInt32LE(n)===o.Constants.ENDSIG){c=n;l=n;s=n+o.Constants.ENDHDR;i=n-o.Constants.END64HDR;continue}if(e.readUInt32LE(n)===o.Constants.END64SIG){i=r;continue}if(e.readUInt32LE(n)===o.Constants.ZIP64SIG){c=n;s=n+o.readBigUInt64LE(e,n+o.Constants.ZIP64SIZE)+o.Constants.ZIP64LEAD;break}}if(c==-1)throw o.Errors.INVALID_FORMAT();f.loadFromBinary(e.slice(c,s));if(f.commentLength){a=e.slice(l+o.Constants.ENDHDR)}if(t)readEntries()}function sortEntries(){if(n.length>1&&!m){n.sort(((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase())))}}return{get entries(){if(!c){readEntries()}return n.filter((e=>!u.has(e)))},get comment(){return h.decode(a)},set comment(e){a=o.toBuffer(e,h.encode);f.commentLength=a.length},getEntryCount:function(){if(!c){return f.diskEntries}return n.length},forEach:function(e){this.entries.forEach(e)},getEntry:function(e){if(!c){readEntries()}return s[e]||null},setEntry:function(e){if(!c){readEntries()}n.push(e);s[e.entryName]=e;f.totalEntries=n.length},deleteFile:function(e,t=true){if(!c){readEntries()}const n=s[e];const r=this.getEntryChildren(n,t).map((e=>e.entryName));r.forEach(this.deleteEntry)},deleteEntry:function(e){if(!c){readEntries()}const t=s[e];const r=n.indexOf(t);if(r>=0){n.splice(r,1);delete s[e];f.totalEntries=n.length}},getEntryChildren:function(e,t=true){if(!c){readEntries()}if(typeof e==="object"){if(e.isDirectory&&t){const t=[];const r=e.entryName;for(const e of n){if(e.entryName.startsWith(r)){t.push(e)}}return t}else{return[e]}}return[]},getChildCount:function(e){if(e&&e.isDirectory){const t=this.getEntryChildren(e);return t.includes(e)?t.length-1:t.length}return 0},compressToBuffer:function(){if(!c){readEntries()}sortEntries();const t=[];const n=[];let r=0;let i=0;f.size=0;f.offset=0;let s=0;for(const e of this.entries){const o=e.getCompressedData();e.header.offset=i;const a=e.packLocalHeader();const c=a.length+o.length;i+=c;t.push(a);t.push(o);const l=e.packCentralHeader();n.push(l);f.size+=l.length;r+=c+l.length;s++}r+=f.mainHeaderSize;f.offset=i;f.totalEntries=s;i=0;const l=Buffer.alloc(r);for(const e of t){e.copy(l,i);i+=e.length}for(const e of n){e.copy(l,i);i+=e.length}const u=f.toBinary();if(a){a.copy(u,o.Constants.ENDHDR)}u.copy(l,i);e=l;c=false;return l},toAsyncBuffer:function(t,n,r,i){try{if(!c){readEntries()}sortEntries();const n=[];const s=[];let l=0;let u=0;let d=0;f.size=0;f.offset=0;const compress2Buffer=function(m){if(m.length>0){const e=m.shift();const t=e.entryName+e.extra.toString();if(r)r(t);e.getCompressedDataAsync((function(r){if(i)i(t);e.header.offset=u;const o=e.packLocalHeader();const a=o.length+r.length;u+=a;n.push(o);n.push(r);const c=e.packCentralHeader();s.push(c);f.size+=c.length;l+=a+c.length;d++;compress2Buffer(m)}))}else{l+=f.mainHeaderSize;f.offset=u;f.totalEntries=d;u=0;const r=Buffer.alloc(l);n.forEach((function(e){e.copy(r,u);u+=e.length}));s.forEach((function(e){e.copy(r,u);u+=e.length}));const i=f.toBinary();if(a){a.copy(i,o.Constants.ENDHDR)}i.copy(r,u);e=r;c=false;t(r)}};compress2Buffer(Array.from(this.entries))}catch(e){n(e)}}}}},113:function(e){"use strict";e.exports=require("crypto")},147:function(e){"use strict";e.exports=require("fs")},17:function(e){"use strict";e.exports=require("path")},796:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var i=t[n]={exports:{}};var o=true;try{e[n](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(761);module.exports=n})();
1
+ (()=>{var e={761:(e,t,n)=>{const r=n(182);const i=n(17);const o=n(57);const s=n(744);const get_Bool=(...e)=>r.findLast(e,(e=>typeof e==="boolean"));const get_Str=(...e)=>r.findLast(e,(e=>typeof e==="string"));const get_Fun=(...e)=>r.findLast(e,(e=>typeof e==="function"));const a={noSort:false,readEntries:false,method:r.Constants.NONE,fs:null};e.exports=function(e,t){let n=null;const f=Object.assign(Object.create(null),a);if(e&&"object"===typeof e){if(!(e instanceof Uint8Array)){Object.assign(f,e);e=f.input?f.input:undefined;if(f.input)delete f.input}if(Buffer.isBuffer(e)){n=e;f.method=r.Constants.BUFFER;e=undefined}}Object.assign(f,t);const c=new r(f);if(typeof f.decoder!=="object"||typeof f.decoder.encode!=="function"||typeof f.decoder.decode!=="function"){f.decoder=r.decoder}if(e&&"string"===typeof e){if(c.fs.existsSync(e)){f.method=r.Constants.FILE;f.filename=e;n=c.fs.readFileSync(e)}else{throw r.Errors.INVALID_FILENAME()}}const l=new s(n,f);const{canonical:u,sanitize:d,zipnamefix:m}=r;function getEntry(e){if(e&&l){var t;if(typeof e==="string")t=l.getEntry(i.posix.normalize(e));if(typeof e==="object"&&typeof e.entryName!=="undefined"&&typeof e.header!=="undefined")t=l.getEntry(e.entryName);if(t){return t}}return null}function fixPath(e){const{join:t,normalize:n,sep:r}=i.posix;return t(i.isAbsolute(e)?"/":".",n(r+e.split("\\").join(r)+r))}function filenameFilter(e){if(e instanceof RegExp){return function(e){return function(t){return e.test(t)}}(e)}else if("function"!==typeof e){return()=>true}return e}const relativePath=(e,t)=>{let n=t.slice(-1);n=n===c.sep?c.sep:"";return i.relative(e,t)+n};return{readFile:function(e,t){var n=getEntry(e);return n&&n.getData(t)||null},childCount:function(e){const t=getEntry(e);if(t){return l.getChildCount(t)}},readFileAsync:function(e,t){var n=getEntry(e);if(n){n.getDataAsync(t)}else{t(null,"getEntry failed for:"+e)}},readAsText:function(e,t){var n=getEntry(e);if(n){var r=n.getData();if(r&&r.length){return r.toString(t||"utf8")}}return""},readAsTextAsync:function(e,t,n){var r=getEntry(e);if(r){r.getDataAsync((function(e,r){if(r){t(e,r);return}if(e&&e.length){t(e.toString(n||"utf8"))}else{t("")}}))}else{t("")}},deleteFile:function(e,t=true){var n=getEntry(e);if(n){l.deleteFile(n.entryName,t)}},deleteEntry:function(e){var t=getEntry(e);if(t){l.deleteEntry(t.entryName)}},addZipComment:function(e){l.comment=e},getZipComment:function(){return l.comment||""},addZipEntryComment:function(e,t){var n=getEntry(e);if(n){n.comment=t}},getZipEntryComment:function(e){var t=getEntry(e);if(t){return t.comment||""}return""},updateFile:function(e,t){var n=getEntry(e);if(n){n.setData(t)}},addLocalFile:function(e,t,n,o){if(c.fs.existsSync(e)){t=t?fixPath(t):"";const r=i.win32.basename(i.win32.normalize(e));t+=n?n:r;const s=c.fs.statSync(e);const a=s.isFile()?c.fs.readFileSync(e):Buffer.alloc(0);if(s.isDirectory())t+=c.sep;this.addFile(t,a,o,s)}else{throw r.Errors.FILE_NOT_FOUND(e)}},addLocalFileAsync:function(e,t){e=typeof e==="object"?e:{localPath:e};const n=i.resolve(e.localPath);const{comment:r}=e;let{zipPath:o,zipName:s}=e;const a=this;c.fs.stat(n,(function(e,f){if(e)return t(e,false);o=o?fixPath(o):"";const l=i.win32.basename(i.win32.normalize(n));o+=s?s:l;if(f.isFile()){c.fs.readFile(n,(function(e,n){if(e)return t(e,false);a.addFile(o,n,r,f);return setImmediate(t,undefined,true)}))}else if(f.isDirectory()){o+=c.sep;a.addFile(o,Buffer.alloc(0),r,f);return setImmediate(t,undefined,true)}}))},addLocalFolder:function(e,t,n){n=filenameFilter(n);t=t?fixPath(t):"";e=i.normalize(e);if(c.fs.existsSync(e)){const r=c.findFiles(e);const o=this;if(r.length){for(const s of r){const r=i.join(t,relativePath(e,s));if(n(r)){o.addLocalFile(s,i.dirname(r))}}}}else{throw r.Errors.FILE_NOT_FOUND(e)}},addLocalFolderAsync:function(e,t,n,o){o=filenameFilter(o);n=n?fixPath(n):"";e=i.normalize(e);var s=this;c.fs.open(e,"r",(function(i){if(i&&i.code==="ENOENT"){t(undefined,r.Errors.FILE_NOT_FOUND(e))}else if(i){t(undefined,i)}else{var a=c.findFiles(e);var f=-1;var next=function(){f+=1;if(f<a.length){var r=a[f];var i=relativePath(e,r).split("\\").join("/");i=i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(o(i)){c.fs.stat(r,(function(e,o){if(e)t(undefined,e);if(o.isFile()){c.fs.readFile(r,(function(e,r){if(e){t(undefined,e)}else{s.addFile(n+i,r,"",o);next()}}))}else{s.addFile(n+i+"/",Buffer.alloc(0),"",o);next()}}))}else{process.nextTick((()=>{next()}))}}else{t(true,undefined)}};next()}}))},addLocalFolderAsync2:function(e,t){const n=this;e=typeof e==="object"?e:{localPath:e};localPath=i.resolve(fixPath(e.localPath));let{zipPath:o,filter:s,namefix:a}=e;if(s instanceof RegExp){s=function(e){return function(t){return e.test(t)}}(s)}else if("function"!==typeof s){s=function(){return true}}o=o?fixPath(o):"";if(a=="latin1"){a=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")}if(typeof a!=="function")a=e=>e;const relPathFix=e=>i.join(o,a(relativePath(localPath,e)));const fileNameFix=e=>i.win32.basename(i.win32.normalize(a(e)));c.fs.open(localPath,"r",(function(e){if(e&&e.code==="ENOENT"){t(undefined,r.Errors.FILE_NOT_FOUND(localPath))}else if(e){t(undefined,e)}else{c.findFilesAsync(localPath,(function(e,r){if(e)return t(e);r=r.filter((e=>s(relPathFix(e))));if(!r.length)t(undefined,false);setImmediate(r.reverse().reduce((function(e,t){return function(r,o){if(r||o===false)return setImmediate(e,r,false);n.addLocalFileAsync({localPath:t,zipPath:i.dirname(relPathFix(t)),zipName:fileNameFix(t)},e)}}),t))}))}}))},addLocalFolderPromise:function(e,t){return new Promise(((n,r)=>{this.addLocalFolderAsync2(Object.assign({localPath:e},t),((e,t)=>{if(e)r(e);if(t)n(this)}))}))},addFile:function(e,t,n,r){e=m(e);let i=getEntry(e);const s=i!=null;if(!s){i=new o(f);i.entryName=e}i.comment=n||"";const a="object"===typeof r&&r instanceof c.fs.Stats;if(a){i.header.time=r.mtime}var u=i.isDirectory?16:0;let d=i.isDirectory?16384:32768;if(a){d|=4095&r.mode}else if("number"===typeof r){d|=4095&r}else{d|=i.isDirectory?493:420}u=(u|d<<16)>>>0;i.attr=u;i.setData(t);if(!s)l.setEntry(i);return i},getEntries:function(e){l.password=e;return l?l.entries:[]},getEntry:function(e){return getEntry(e)},getEntryCount:function(){return l.getEntryCount()},forEach:function(e){return l.forEach(e)},extractEntryTo:function(e,t,n,o,s,a){o=get_Bool(false,o);s=get_Bool(false,s);n=get_Bool(true,n);a=get_Str(s,a);var f=getEntry(e);if(!f){throw r.Errors.NO_ENTRY()}var m=u(f.entryName);var h=d(t,a&&!f.isDirectory?a:n?m:i.basename(m));if(f.isDirectory){var I=l.getEntryChildren(f);I.forEach((function(e){if(e.isDirectory)return;var a=e.getData();if(!a){throw r.Errors.CANT_EXTRACT_FILE()}var f=u(e.entryName);var l=d(t,n?f:i.basename(f));const m=s?e.header.fileAttr:undefined;c.writeFileTo(l,a,o,m)}));return true}var p=f.getData(l.password);if(!p)throw r.Errors.CANT_EXTRACT_FILE();if(c.fs.existsSync(h)&&!o){throw r.Errors.CANT_OVERRIDE()}const y=s?e.header.fileAttr:undefined;c.writeFileTo(h,p,o,y);return true},test:function(e){if(!l){return false}for(var t in l.entries){try{if(t.isDirectory){continue}var n=l.entries[t].getData(e);if(!n){return false}}catch(e){return false}}return true},extractAllTo:function(e,t,n,i){n=get_Bool(false,n);i=get_Str(n,i);t=get_Bool(false,t);if(!l)throw r.Errors.NO_ZIP();l.entries.forEach((function(o){var s=d(e,u(o.entryName));if(o.isDirectory){c.makeDir(s);return}var a=o.getData(i);if(!a){throw r.Errors.CANT_EXTRACT_FILE()}const f=n?o.header.fileAttr:undefined;c.writeFileTo(s,a,t,f);try{c.fs.utimesSync(s,o.header.time,o.header.time)}catch(e){throw r.Errors.CANT_EXTRACT_FILE()}}))},extractAllToAsync:function(e,t,n,o){o=get_Fun(t,n,o);n=get_Bool(false,n);t=get_Bool(false,t);if(!o){return new Promise(((r,i)=>{this.extractAllToAsync(e,t,n,(function(e){if(e){i(e)}else{r(this)}}))}))}if(!l){o(r.Errors.NO_ZIP());return}e=i.resolve(e);const getPath=t=>d(e,i.normalize(u(t.entryName)));const getError=(e,t)=>new Error(e+': "'+t+'"');const s=[];const a=[];l.entries.forEach((e=>{if(e.isDirectory){s.push(e)}else{a.push(e)}}));for(const e of s){const t=getPath(e);const r=n?e.header.fileAttr:undefined;try{c.makeDir(t);if(r)c.fs.chmodSync(t,r);c.fs.utimesSync(t,e.header.time,e.header.time)}catch(e){o(getError("Unable to create folder",t))}}a.reverse().reduce((function(o,s){return function(a){if(a){o(a)}else{const a=i.normalize(u(s.entryName));const f=d(e,a);s.getDataAsync((function(e,i){if(i){o(i)}else if(!e){o(r.Errors.CANT_EXTRACT_FILE())}else{const r=n?s.header.fileAttr:undefined;c.writeFileToAsync(f,e,t,r,(function(e){if(!e){o(getError("Unable to write file",f))}c.fs.utimes(f,s.header.time,s.header.time,(function(e){if(e){o(getError("Unable to set times",f))}else{o()}}))}))}}))}}}),o)()},writeZip:function(e,t){if(arguments.length===1){if(typeof e==="function"){t=e;e=""}}if(!e&&f.filename){e=f.filename}if(!e)return;var n=l.compressToBuffer();if(n){var r=c.writeFileTo(e,n,true);if(typeof t==="function")t(!r?new Error("failed"):null,"")}},writeZipPromise:function(e,t){const{overwrite:n,perm:r}=Object.assign({overwrite:true},t);return new Promise(((t,i)=>{if(!e&&f.filename)e=f.filename;if(!e)i("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((o=>{const ret=e=>e?t(e):i("ADM-ZIP: Wasn't able to write zip file");c.writeFileToAsync(e,o,n,r,ret)}),i)}))},toBufferPromise:function(){return new Promise(((e,t)=>{l.toAsyncBuffer(e,t)}))},toBuffer:function(e,t,n,r){if(typeof e==="function"){l.toAsyncBuffer(e,t,n,r);return null}return l.compressToBuffer()}}}},32:(e,t,n)=>{var r=n(182),i=r.Constants;e.exports=function(){var e=20,t=10,n=0,o=0,s=0,a=0,f=0,c=0,l=0,u=0,d=0,m=0,h=0,I=0,p=0;e|=r.isWin?2560:768;n|=i.FLG_EFS;const y={extraLen:0};const uint32=e=>Math.max(0,e)>>>0;const uint16=e=>Math.max(0,e)&65535;const uint8=e=>Math.max(0,e)&255;s=r.fromDate2DOS(new Date);return{get made(){return e},set made(t){e=t},get version(){return t},set version(e){t=e},get flags(){return n},set flags(e){n=e},get flags_efs(){return(n&i.FLG_EFS)>0},set flags_efs(e){if(e){n|=i.FLG_EFS}else{n&=~i.FLG_EFS}},get flags_desc(){return(n&i.FLG_DESC)>0},set flags_desc(e){if(e){n|=i.FLG_DESC}else{n&=~i.FLG_DESC}},get method(){return o},set method(e){switch(e){case i.STORED:this.version=10;case i.DEFLATED:default:this.version=20}o=e},get time(){return r.fromDOS2Date(this.timeval)},set time(e){e=new Date(e);this.timeval=r.fromDate2DOS(e)},get timeval(){return s},set timeval(e){s=uint32(e)},get timeHighByte(){return uint8(s>>>8)},get crc(){return a},set crc(e){a=uint32(e)},get compressedSize(){return f},set compressedSize(e){f=uint32(e)},get size(){return c},set size(e){c=uint32(e)},get fileNameLength(){return l},set fileNameLength(e){l=e},get extraLength(){return u},set extraLength(e){u=e},get extraLocalLength(){return y.extraLen},set extraLocalLength(e){y.extraLen=e},get commentLength(){return d},set commentLength(e){d=e},get diskNumStart(){return m},set diskNumStart(e){m=uint32(e)},get inAttr(){return h},set inAttr(e){h=uint32(e)},get attr(){return I},set attr(e){I=uint32(e)},get fileAttr(){return(I||0)>>16&4095},get offset(){return p},set offset(e){p=uint32(e)},get encrypted(){return(n&i.FLG_ENC)===i.FLG_ENC},get centralHeaderSize(){return i.CENHDR+l+u+d},get realDataOffset(){return p+i.LOCHDR+y.fnameLen+y.extraLen},get localHeader(){return y},loadLocalHeaderFromBinary:function(e){var t=e.slice(p,p+i.LOCHDR);if(t.readUInt32LE(0)!==i.LOCSIG){throw r.Errors.INVALID_LOC()}y.version=t.readUInt16LE(i.LOCVER);y.flags=t.readUInt16LE(i.LOCFLG);y.flags_desc=(y.flags&i.FLG_DESC)>0;y.method=t.readUInt16LE(i.LOCHOW);y.time=t.readUInt32LE(i.LOCTIM);y.crc=t.readUInt32LE(i.LOCCRC);y.compressedSize=t.readUInt32LE(i.LOCSIZ);y.size=t.readUInt32LE(i.LOCLEN);y.fnameLen=t.readUInt16LE(i.LOCNAM);y.extraLen=t.readUInt16LE(i.LOCEXT);const n=p+i.LOCHDR+y.fnameLen;const o=n+y.extraLen;return e.slice(n,o)},loadFromBinary:function(y){if(y.length!==i.CENHDR||y.readUInt32LE(0)!==i.CENSIG){throw r.Errors.INVALID_CEN()}e=y.readUInt16LE(i.CENVEM);t=y.readUInt16LE(i.CENVER);n=y.readUInt16LE(i.CENFLG);o=y.readUInt16LE(i.CENHOW);s=y.readUInt32LE(i.CENTIM);a=y.readUInt32LE(i.CENCRC);f=y.readUInt32LE(i.CENSIZ);c=y.readUInt32LE(i.CENLEN);l=y.readUInt16LE(i.CENNAM);u=y.readUInt16LE(i.CENEXT);d=y.readUInt16LE(i.CENCOM);m=y.readUInt16LE(i.CENDSK);h=y.readUInt16LE(i.CENATT);I=y.readUInt32LE(i.CENATX);p=y.readUInt32LE(i.CENOFF)},localHeaderToBinary:function(){var e=Buffer.alloc(i.LOCHDR);e.writeUInt32LE(i.LOCSIG,0);e.writeUInt16LE(t,i.LOCVER);e.writeUInt16LE(n,i.LOCFLG);e.writeUInt16LE(o,i.LOCHOW);e.writeUInt32LE(s,i.LOCTIM);e.writeUInt32LE(a,i.LOCCRC);e.writeUInt32LE(f,i.LOCSIZ);e.writeUInt32LE(c,i.LOCLEN);e.writeUInt16LE(l,i.LOCNAM);e.writeUInt16LE(y.extraLen,i.LOCEXT);return e},centralHeaderToBinary:function(){var r=Buffer.alloc(i.CENHDR+l+u+d);r.writeUInt32LE(i.CENSIG,0);r.writeUInt16LE(e,i.CENVEM);r.writeUInt16LE(t,i.CENVER);r.writeUInt16LE(n,i.CENFLG);r.writeUInt16LE(o,i.CENHOW);r.writeUInt32LE(s,i.CENTIM);r.writeUInt32LE(a,i.CENCRC);r.writeUInt32LE(f,i.CENSIZ);r.writeUInt32LE(c,i.CENLEN);r.writeUInt16LE(l,i.CENNAM);r.writeUInt16LE(u,i.CENEXT);r.writeUInt16LE(d,i.CENCOM);r.writeUInt16LE(m,i.CENDSK);r.writeUInt16LE(h,i.CENATT);r.writeUInt32LE(I,i.CENATX);r.writeUInt32LE(p,i.CENOFF);return r},toJSON:function(){const bytes=function(e){return e+" bytes"};return{made:e,version:t,flags:n,method:r.methodToString(o),time:this.time,crc:"0x"+a.toString(16).toUpperCase(),compressedSize:bytes(f),size:bytes(c),fileNameLength:bytes(l),extraLength:bytes(u),commentLength:bytes(d),diskNumStart:m,inAttr:h,attr:I,offset:p,centralHeaderSize:bytes(i.CENHDR+l+u+d)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},958:(e,t,n)=>{t.EntryHeader=n(32);t.MainHeader=n(408)},408:(e,t,n)=>{var r=n(182),i=r.Constants;e.exports=function(){var e=0,t=0,n=0,o=0,s=0;return{get diskEntries(){return e},set diskEntries(n){e=t=n},get totalEntries(){return t},set totalEntries(n){t=e=n},get size(){return n},set size(e){n=e},get offset(){return o},set offset(e){o=e},get commentLength(){return s},set commentLength(e){s=e},get mainHeaderSize(){return i.ENDHDR+s},loadFromBinary:function(a){if((a.length!==i.ENDHDR||a.readUInt32LE(0)!==i.ENDSIG)&&(a.length<i.ZIP64HDR||a.readUInt32LE(0)!==i.ZIP64SIG)){throw r.Errors.INVALID_END()}if(a.readUInt32LE(0)===i.ENDSIG){e=a.readUInt16LE(i.ENDSUB);t=a.readUInt16LE(i.ENDTOT);n=a.readUInt32LE(i.ENDSIZ);o=a.readUInt32LE(i.ENDOFF);s=a.readUInt16LE(i.ENDCOM)}else{e=r.readBigUInt64LE(a,i.ZIP64SUB);t=r.readBigUInt64LE(a,i.ZIP64TOT);n=r.readBigUInt64LE(a,i.ZIP64SIZE);o=r.readBigUInt64LE(a,i.ZIP64OFF);s=0}},toBinary:function(){var r=Buffer.alloc(i.ENDHDR+s);r.writeUInt32LE(i.ENDSIG,0);r.writeUInt32LE(0,4);r.writeUInt16LE(e,i.ENDSUB);r.writeUInt16LE(t,i.ENDTOT);r.writeUInt32LE(n,i.ENDSIZ);r.writeUInt32LE(o,i.ENDOFF);r.writeUInt16LE(s,i.ENDCOM);r.fill(" ",i.ENDHDR);return r},toJSON:function(){const offset=function(e,t){let n=e.toString(16).toUpperCase();while(n.length<t)n="0"+n;return"0x"+n};return{diskEntries:e,totalEntries:t,size:n+" bytes",offset:offset(o,4),commentLength:s}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},686:(e,t,n)=>{e.exports=function(e){var t=n(796);var r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),o=[],s=0;i.on("data",(function(e){o.push(e);s+=e.length}));i.on("end",(function(){var e=Buffer.alloc(s),t=0;e.fill(0);for(var r=0;r<o.length;r++){var i=o[r];i.copy(e,t);t+=i.length}n&&n(e)}));i.end(e)}}}},928:(e,t,n)=>{t.Deflater=n(686);t.Inflater=n(153);t.ZipCrypto=n(228)},153:(e,t,n)=>{const r=+(process.versions?process.versions.node:"").split(".")[0]||0;e.exports=function(e,t){var i=n(796);const o=r>=15&&t>0?{maxOutputLength:t}:{};return{inflate:function(){return i.inflateRawSync(e,o)},inflateAsync:function(t){var n=i.createInflateRaw(o),r=[],s=0;n.on("data",(function(e){r.push(e);s+=e.length}));n.on("end",(function(){var e=Buffer.alloc(s),n=0;e.fill(0);for(var i=0;i<r.length;i++){var o=r[i];o.copy(e,n);n+=o.length}t&&t(e)}));n.end(e)}}}},228:(e,t,n)=>{"use strict";const{randomFillSync:r}=n(113);const i=n(255);const o=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++){if(0!==(t&1)){t=t>>>1^3988292384}else{t>>>=1}}return t>>>0}));const uMul=(e,t)=>Math.imul(e,t)>>>0;const crc32update=(e,t)=>o[(e^t)&255]^e>>>8;const genSalt=()=>{if("function"===typeof r){return r(Buffer.alloc(12))}else{return genSalt.node()}};genSalt.node=()=>{const e=Buffer.alloc(12);const t=e.length;for(let n=0;n<t;n++)e[n]=Math.random()*256&255;return e};const s={genSalt:genSalt};function Initkeys(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<t.length;e++){this.updateKeys(t[e])}}Initkeys.prototype.updateKeys=function(e){const t=this.keys;t[0]=crc32update(t[0],e);t[1]+=t[0]&255;t[1]=uMul(t[1],134775813)+1;t[2]=crc32update(t[2],t[1]>>>24);return e};Initkeys.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return uMul(e,e^1)>>8&255};function make_decrypter(e){const t=new Initkeys(e);return function(e){const n=Buffer.alloc(e.length);let r=0;for(let i of e){n[r++]=t.updateKeys(i^t.next())}return n}}function make_encrypter(e){const t=new Initkeys(e);return function(e,n,r=0){if(!n)n=Buffer.alloc(e.length);for(let i of e){const e=t.next();n[r++]=i^e;t.updateKeys(i)}return n}}function decrypt(e,t,n){if(!e||!Buffer.isBuffer(e)||e.length<12){return Buffer.alloc(0)}const r=make_decrypter(n);const o=r(e.slice(0,12));const s=(t.flags&8)===8?t.timeHighByte:t.crc>>>24;if(o[11]!==s){throw i.WRONG_PASSWORD()}return r(e.slice(12))}function _salter(e){if(Buffer.isBuffer(e)&&e.length>=12){s.genSalt=function(){return e.slice(0,12)}}else if(e==="node"){s.genSalt=genSalt.node}else{s.genSalt=genSalt}}function encrypt(e,t,n,r=false){if(e==null)e=Buffer.alloc(0);if(!Buffer.isBuffer(e))e=Buffer.from(e.toString());const i=make_encrypter(n);const o=s.genSalt();o[11]=t.crc>>>24&255;if(r)o[10]=t.crc>>>16&255;const a=Buffer.alloc(e.length+12);i(o,a);return i(e,a,12)}e.exports={decrypt:decrypt,encrypt:encrypt,_salter:_salter}},522:e=>{e.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}},396:e=>{e.exports={efs:true,encode:e=>Buffer.from(e,"utf8"),decode:e=>e.toString("utf8")}},255:(e,t)=>{const n={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function E(e){return function(...t){if(t.length){e=e.replace(/\{(\d)\}/g,((e,n)=>t[n]||""))}return new Error("ADM-ZIP: "+e)}}for(const e of Object.keys(n)){t[e]=E(n[e])}},321:(e,t,n)=>{const r=n(17);e.exports=function(e,{fs:t}){var n=e||"",i=newAttr(),o=null;function newAttr(){return{directory:false,readonly:false,hidden:false,executable:false,mtime:0,atime:0}}if(n&&t.existsSync(n)){o=t.statSync(n);i.directory=o.isDirectory();i.mtime=o.mtime;i.atime=o.atime;i.executable=(73&o.mode)!==0;i.readonly=(128&o.mode)===0;i.hidden=r.basename(n)[0]==="."}else{console.warn("Invalid path: "+n)}return{get directory(){return i.directory},get readOnly(){return i.readonly},get hidden(){return i.hidden},get mtime(){return i.mtime},get atime(){return i.atime},get executable(){return i.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:n,isDirectory:i.directory,isReadOnly:i.readonly,isHidden:i.hidden,isExecutable:i.executable,mTime:i.mtime,aTime:i.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},182:(e,t,n)=>{e.exports=n(291);e.exports.Constants=n(522);e.exports.Errors=n(255);e.exports.FileAttr=n(321);e.exports.decoder=n(396)},291:(e,t,n)=>{const r=n(147);const i=n(17);const o=n(522);const s=n(255);const a=typeof process==="object"&&"win32"===process.platform;const is_Obj=e=>typeof e==="object"&&e!==null;const f=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++){if((t&1)!==0){t=3988292384^t>>>1}else{t>>>=1}}return t>>>0}));function Utils(e){this.sep=i.sep;this.fs=r;if(is_Obj(e)){if(is_Obj(e.fs)&&typeof e.fs.statSync==="function"){this.fs=e.fs}}}e.exports=Utils;Utils.prototype.makeDir=function(e){const t=this;function mkdirSync(e){let n=e.split(t.sep)[0];e.split(t.sep).forEach((function(e){if(!e||e.substr(-1,1)===":")return;n+=t.sep+e;var r;try{r=t.fs.statSync(n)}catch(e){if(e.message&&e.message.startsWith("ENOENT")){t.fs.mkdirSync(n)}else{throw e}}if(r&&r.isFile())throw s.FILE_IN_THE_WAY(`"${n}"`)}))}mkdirSync(e)};Utils.prototype.writeFileTo=function(e,t,n,r){const o=this;if(o.fs.existsSync(e)){if(!n)return false;var s=o.fs.statSync(e);if(s.isDirectory()){return false}}var a=i.dirname(e);if(!o.fs.existsSync(a)){o.makeDir(a)}var f;try{f=o.fs.openSync(e,"w",438)}catch(t){o.fs.chmodSync(e,438);f=o.fs.openSync(e,"w",438)}if(f){try{o.fs.writeSync(f,t,0,t.length,0)}finally{o.fs.closeSync(f)}}o.fs.chmodSync(e,r||438);return true};Utils.prototype.writeFileToAsync=function(e,t,n,r,o){if(typeof r==="function"){o=r;r=undefined}const s=this;s.fs.exists(e,(function(a){if(a&&!n)return o(false);s.fs.stat(e,(function(n,f){if(a&&f.isDirectory()){return o(false)}var c=i.dirname(e);s.fs.exists(c,(function(n){if(!n)s.makeDir(c);s.fs.open(e,"w",438,(function(n,i){if(n){s.fs.chmod(e,438,(function(){s.fs.open(e,"w",438,(function(n,i){s.fs.write(i,t,0,t.length,0,(function(){s.fs.close(i,(function(){s.fs.chmod(e,r||438,(function(){o(true)}))}))}))}))}))}else if(i){s.fs.write(i,t,0,t.length,0,(function(){s.fs.close(i,(function(){s.fs.chmod(e,r||438,(function(){o(true)}))}))}))}else{s.fs.chmod(e,r||438,(function(){o(true)}))}}))}))}))}))};Utils.prototype.findFiles=function(e){const t=this;function findSync(e,n,r){if(typeof n==="boolean"){r=n;n=undefined}let o=[];t.fs.readdirSync(e).forEach((function(s){const a=i.join(e,s);const f=t.fs.statSync(a);if(!n||n.test(a)){o.push(i.normalize(a)+(f.isDirectory()?t.sep:""))}if(f.isDirectory()&&r)o=o.concat(findSync(a,n,r))}));return o}return findSync(e,undefined,true)};Utils.prototype.findFilesAsync=function(e,t){const n=this;let r=[];n.fs.readdir(e,(function(o,s){if(o)return t(o);let a=s.length;if(!a)return t(null,r);s.forEach((function(o){o=i.join(e,o);n.fs.stat(o,(function(e,s){if(e)return t(e);if(s){r.push(i.normalize(o)+(s.isDirectory()?n.sep:""));if(s.isDirectory()){n.findFilesAsync(o,(function(e,n){if(e)return t(e);r=r.concat(n);if(!--a)t(null,r)}))}else{if(!--a)t(null,r)}}}))}))}))};Utils.prototype.getAttributes=function(){};Utils.prototype.setAttributes=function(){};Utils.crc32update=function(e,t){return f[(e^t)&255]^e>>>8};Utils.crc32=function(e){if(typeof e==="string"){e=Buffer.from(e,"utf8")}let t=e.length;let n=~0;for(let r=0;r<t;)n=Utils.crc32update(n,e[r++]);return~n>>>0};Utils.methodToString=function(e){switch(e){case o.STORED:return"STORED ("+e+")";case o.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};Utils.canonical=function(e){if(!e)return"";const t=i.posix.normalize("/"+e.split("\\").join("/"));return i.join(".",t)};Utils.zipnamefix=function(e){if(!e)return"";const t=i.posix.normalize("/"+e.split("\\").join("/"));return i.posix.join(".",t)};Utils.findLast=function(e,t){if(!Array.isArray(e))throw new TypeError("arr is not array");const n=e.length>>>0;for(let r=n-1;r>=0;r--){if(t(e[r],r,e)){return e[r]}}return void 0};Utils.sanitize=function(e,t){e=i.resolve(i.normalize(e));var n=t.split("/");for(var r=0,o=n.length;r<o;r++){var s=i.normalize(i.join(e,n.slice(r,o).join(i.sep)));if(s.indexOf(e)===0){return s}}return i.normalize(i.join(e,i.basename(t)))};Utils.toBuffer=function toBuffer(e,t){if(Buffer.isBuffer(e)){return e}else if(e instanceof Uint8Array){return Buffer.from(e)}else{return typeof e==="string"?t(e):Buffer.alloc(0)}};Utils.readBigUInt64LE=function(e,t){const n=e.readUInt32LE(t);const r=e.readUInt32LE(t+4);return r*4294967296+n};Utils.fromDOS2Date=function(e){return new Date((e>>25&127)+1980,Math.max((e>>21&15)-1,0),Math.max(e>>16&31,1),e>>11&31,e>>5&63,(e&31)<<1)};Utils.fromDate2DOS=function(e){let t=0;let n=0;if(e.getFullYear()>1979){t=(e.getFullYear()-1980&127)<<9|e.getMonth()+1<<5|e.getDate();n=e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1}return t<<16|n};Utils.isWin=a;Utils.crcTable=f},57:(e,t,n)=>{var r=n(182),i=n(958),o=r.Constants,s=n(928);e.exports=function(e,t){var n=new i.EntryHeader,a=Buffer.alloc(0),f=Buffer.alloc(0),c=false,l=null,u=Buffer.alloc(0),d=Buffer.alloc(0),m=true;const h=e;const I=typeof h.decoder==="object"?h.decoder:r.decoder;m=I.hasOwnProperty("efs")?I.efs:false;function getCompressedDataFromZip(){if(!t||!(t instanceof Uint8Array)){return Buffer.alloc(0)}d=n.loadLocalHeaderFromBinary(t);return t.slice(n.realDataOffset,n.realDataOffset+n.compressedSize)}function crc32OK(e){if(!n.flags_desc&&!n.localHeader.flags_desc){if(r.crc32(e)!==n.localHeader.crc){return false}}else{const i={};const s=n.realDataOffset+n.compressedSize;if(t.readUInt32LE(s)==o.LOCSIG||t.readUInt32LE(s)==o.CENSIG){throw r.Errors.DESCRIPTOR_NOT_EXIST()}if(t.readUInt32LE(s)==o.EXTSIG){i.crc=t.readUInt32LE(s+o.EXTCRC);i.compressedSize=t.readUInt32LE(s+o.EXTSIZ);i.size=t.readUInt32LE(s+o.EXTLEN)}else if(t.readUInt16LE(s+12)===19280){i.crc=t.readUInt32LE(s+o.EXTCRC-4);i.compressedSize=t.readUInt32LE(s+o.EXTSIZ-4);i.size=t.readUInt32LE(s+o.EXTLEN-4)}else{throw r.Errors.DESCRIPTOR_UNKNOWN()}if(i.compressedSize!==n.compressedSize||i.size!==n.size||i.crc!==n.crc){throw r.Errors.DESCRIPTOR_FAULTY()}if(r.crc32(e)!==i.crc){return false}}return true}function decompress(e,t,i){if(typeof t==="undefined"&&typeof e==="string"){i=e;e=void 0}if(c){if(e&&t){t(Buffer.alloc(0),r.Errors.DIRECTORY_CONTENT_ERROR())}return Buffer.alloc(0)}var o=getCompressedDataFromZip();if(o.length===0){if(e&&t)t(o);return o}if(n.encrypted){if("string"!==typeof i&&!Buffer.isBuffer(i)){throw r.Errors.INVALID_PASS_PARAM()}o=s.ZipCrypto.decrypt(o,n,i)}var f=Buffer.alloc(n.size);switch(n.method){case r.Constants.STORED:o.copy(f);if(!crc32OK(f)){if(e&&t)t(f,r.Errors.BAD_CRC());throw r.Errors.BAD_CRC()}else{if(e&&t)t(f);return f}case r.Constants.DEFLATED:var l=new s.Inflater(o,n.size);if(!e){const e=l.inflate(f);e.copy(f,0);if(!crc32OK(f)){throw r.Errors.BAD_CRC(`"${I.decode(a)}"`)}return f}else{l.inflateAsync((function(e){e.copy(e,0);if(t){if(!crc32OK(e)){t(e,r.Errors.BAD_CRC())}else{t(e)}}}))}break;default:if(e&&t)t(Buffer.alloc(0),r.Errors.UNKNOWN_METHOD());throw r.Errors.UNKNOWN_METHOD()}}function compress(e,i){if((!l||!l.length)&&Buffer.isBuffer(t)){if(e&&i)i(getCompressedDataFromZip());return getCompressedDataFromZip()}if(l.length&&!c){var o;switch(n.method){case r.Constants.STORED:n.compressedSize=n.size;o=Buffer.alloc(l.length);l.copy(o);if(e&&i)i(o);return o;default:case r.Constants.DEFLATED:var a=new s.Deflater(l);if(!e){var f=a.deflate();n.compressedSize=f.length;return f}else{a.deflateAsync((function(e){o=Buffer.alloc(e.length);n.compressedSize=e.length;e.copy(o);i&&i(o)}))}a=null;break}}else if(e&&i){i(Buffer.alloc(0))}else{return Buffer.alloc(0)}}function readUInt64LE(e,t){return r.readBigUInt64LE(e,t)}function parseExtra(e){try{var t=0;var n,i,s;while(t+4<e.length){n=e.readUInt16LE(t);t+=2;i=e.readUInt16LE(t);t+=2;s=e.slice(t,t+i);t+=i;if(o.ID_ZIP64===n){parseZip64ExtendedInformation(s)}}}catch(e){throw r.Errors.EXTRA_FIELD_PARSE_ERROR()}}function parseZip64ExtendedInformation(e){var t,r,i,s;if(e.length>=o.EF_ZIP64_SCOMP){t=readUInt64LE(e,o.EF_ZIP64_SUNCOMP);if(n.size===o.EF_ZIP64_OR_32){n.size=t}}if(e.length>=o.EF_ZIP64_RHO){r=readUInt64LE(e,o.EF_ZIP64_SCOMP);if(n.compressedSize===o.EF_ZIP64_OR_32){n.compressedSize=r}}if(e.length>=o.EF_ZIP64_DSN){i=readUInt64LE(e,o.EF_ZIP64_RHO);if(n.offset===o.EF_ZIP64_OR_32){n.offset=i}}if(e.length>=o.EF_ZIP64_DSN+4){s=e.readUInt32LE(o.EF_ZIP64_DSN);if(n.diskNumStart===o.EF_ZIP64_OR_16){n.diskNumStart=s}}}return{get entryName(){return I.decode(a)},get rawEntryName(){return a},set entryName(e){a=r.toBuffer(e,I.encode);var t=a[a.length-1];c=t===47||t===92;n.fileNameLength=a.length},get efs(){if(typeof m==="function"){return m(this.entryName)}else{return m}},get extra(){return u},set extra(e){u=e;n.extraLength=e.length;parseExtra(e)},get comment(){return I.decode(f)},set comment(e){f=r.toBuffer(e,I.encode);n.commentLength=f.length;if(f.length>65535)throw r.Errors.COMMENT_TOO_LONG()},get name(){var e=I.decode(a);return c?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return c},getCompressedData:function(){return compress(false,null)},getCompressedDataAsync:function(e){compress(true,e)},setData:function(e){l=r.toBuffer(e,r.decoder.encode);if(!c&&l.length){n.size=l.length;n.method=r.Constants.DEFLATED;n.crc=r.crc32(e);n.changed=true}else{n.method=r.Constants.STORED}},getData:function(e){if(n.changed){return l}else{return decompress(false,null,e)}},getDataAsync:function(e,t){if(n.changed){e(l)}else{decompress(true,e,t)}},set attr(e){n.attr=e},get attr(){return n.attr},set header(e){n.loadFromBinary(e)},get header(){return n},packCentralHeader:function(){n.flags_efs=this.efs;n.extraLength=u.length;var e=n.centralHeaderToBinary();var t=r.Constants.CENHDR;a.copy(e,t);t+=a.length;u.copy(e,t);t+=n.extraLength;f.copy(e,t);return e},packLocalHeader:function(){let e=0;n.flags_efs=this.efs;n.extraLocalLength=d.length;const t=n.localHeaderToBinary();const r=Buffer.alloc(t.length+a.length+n.extraLocalLength);t.copy(r,e);e+=t.length;a.copy(r,e);e+=a.length;d.copy(r,e);e+=d.length;return r},toJSON:function(){const bytes=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:n.toJSON(),compressedData:bytes(t),data:bytes(l)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},744:(e,t,n)=>{const r=n(57);const i=n(958);const o=n(182);e.exports=function(e,t){var n=[],s={},a=Buffer.alloc(0),f=new i.MainHeader,c=false;var l=null;const u=new Set;const d=t;const{noSort:m,decoder:h}=d;if(e){readMainHeader(d.readEntries)}else{c=true}function makeTemporaryFolders(){const e=new Set;for(const t of Object.keys(s)){const n=t.split("/");n.pop();if(!n.length)continue;for(let t=0;t<n.length;t++){const r=n.slice(0,t+1).join("/")+"/";e.add(r)}}for(const t of e){if(!(t in s)){const e=new r(d);e.entryName=t;e.attr=16;e.temporary=true;n.push(e);s[e.entryName]=e;u.add(e)}}}function readEntries(){c=true;s={};if(f.diskEntries>(e.length-f.offset)/o.Constants.CENHDR){throw o.Errors.DISK_ENTRY_TOO_LARGE()}n=new Array(f.diskEntries);var t=f.offset;for(var i=0;i<n.length;i++){var a=t,l=new r(d,e);l.header=e.slice(a,a+=o.Constants.CENHDR);l.entryName=e.slice(a,a+=l.header.fileNameLength);if(l.header.extraLength){l.extra=e.slice(a,a+=l.header.extraLength)}if(l.header.commentLength)l.comment=e.slice(a,a+l.header.commentLength);t+=l.header.centralHeaderSize;n[i]=l;s[l.entryName]=l}u.clear();makeTemporaryFolders()}function readMainHeader(t){var n=e.length-o.Constants.ENDHDR,r=Math.max(0,n-65535),i=r,s=e.length,c=-1,l=0;const u=typeof d.trailingSpace==="boolean"?d.trailingSpace:false;if(u)r=0;for(n;n>=i;n--){if(e[n]!==80)continue;if(e.readUInt32LE(n)===o.Constants.ENDSIG){c=n;l=n;s=n+o.Constants.ENDHDR;i=n-o.Constants.END64HDR;continue}if(e.readUInt32LE(n)===o.Constants.END64SIG){i=r;continue}if(e.readUInt32LE(n)===o.Constants.ZIP64SIG){c=n;s=n+o.readBigUInt64LE(e,n+o.Constants.ZIP64SIZE)+o.Constants.ZIP64LEAD;break}}if(c==-1)throw o.Errors.INVALID_FORMAT();f.loadFromBinary(e.slice(c,s));if(f.commentLength){a=e.slice(l+o.Constants.ENDHDR)}if(t)readEntries()}function sortEntries(){if(n.length>1&&!m){n.sort(((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase())))}}return{get entries(){if(!c){readEntries()}return n.filter((e=>!u.has(e)))},get comment(){return h.decode(a)},set comment(e){a=o.toBuffer(e,h.encode);f.commentLength=a.length},getEntryCount:function(){if(!c){return f.diskEntries}return n.length},forEach:function(e){this.entries.forEach(e)},getEntry:function(e){if(!c){readEntries()}return s[e]||null},setEntry:function(e){if(!c){readEntries()}n.push(e);s[e.entryName]=e;f.totalEntries=n.length},deleteFile:function(e,t=true){if(!c){readEntries()}const n=s[e];const r=this.getEntryChildren(n,t).map((e=>e.entryName));r.forEach(this.deleteEntry)},deleteEntry:function(e){if(!c){readEntries()}const t=s[e];const r=n.indexOf(t);if(r>=0){n.splice(r,1);delete s[e];f.totalEntries=n.length}},getEntryChildren:function(e,t=true){if(!c){readEntries()}if(typeof e==="object"){if(e.isDirectory&&t){const t=[];const r=e.entryName;for(const e of n){if(e.entryName.startsWith(r)){t.push(e)}}return t}else{return[e]}}return[]},getChildCount:function(e){if(e&&e.isDirectory){const t=this.getEntryChildren(e);return t.includes(e)?t.length-1:t.length}return 0},compressToBuffer:function(){if(!c){readEntries()}sortEntries();const t=[];const n=[];let r=0;let i=0;f.size=0;f.offset=0;let s=0;for(const e of this.entries){const o=e.getCompressedData();e.header.offset=i;const a=e.packLocalHeader();const c=a.length+o.length;i+=c;t.push(a);t.push(o);const l=e.packCentralHeader();n.push(l);f.size+=l.length;r+=c+l.length;s++}r+=f.mainHeaderSize;f.offset=i;f.totalEntries=s;i=0;const l=Buffer.alloc(r);for(const e of t){e.copy(l,i);i+=e.length}for(const e of n){e.copy(l,i);i+=e.length}const u=f.toBinary();if(a){a.copy(u,o.Constants.ENDHDR)}u.copy(l,i);e=l;c=false;return l},toAsyncBuffer:function(t,n,r,i){try{if(!c){readEntries()}sortEntries();const n=[];const s=[];let l=0;let u=0;let d=0;f.size=0;f.offset=0;const compress2Buffer=function(m){if(m.length>0){const e=m.shift();const t=e.entryName+e.extra.toString();if(r)r(t);e.getCompressedDataAsync((function(r){if(i)i(t);e.header.offset=u;const o=e.packLocalHeader();const a=o.length+r.length;u+=a;n.push(o);n.push(r);const c=e.packCentralHeader();s.push(c);f.size+=c.length;l+=a+c.length;d++;compress2Buffer(m)}))}else{l+=f.mainHeaderSize;f.offset=u;f.totalEntries=d;u=0;const r=Buffer.alloc(l);n.forEach((function(e){e.copy(r,u);u+=e.length}));s.forEach((function(e){e.copy(r,u);u+=e.length}));const i=f.toBinary();if(a){a.copy(i,o.Constants.ENDHDR)}i.copy(r,u);e=r;c=false;t(r)}};compress2Buffer(Array.from(this.entries))}catch(e){n(e)}}}}},113:e=>{"use strict";e.exports=require("crypto")},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")},796:e=>{"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var i=t[n]={exports:{}};var o=true;try{e[n](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(761);module.exports=n})();
@@ -1 +1 @@
1
- {"name":"adm-zip","version":"0.5.17","description":"Javascript implementation of zip for nodejs with support for electron original-fs. Allows user to create or extract zip files both in memory or to/from disk","scripts":{"test":"mocha -R spec","test:format":"npm run format:prettier:raw -- --check","format":"npm run format:prettier","format:prettier":"npm run format:prettier:raw -- --write","format:prettier:raw":"prettier \"**/*.{js,yml,json}\""},"keywords":["zip","methods","archive","unzip"],"homepage":"https://github.com/cthackers/adm-zip","author":"Nasca Iacob <sy@another-d-mention.ro> (https://github.com/cthackers)","bugs":{"email":"sy@another-d-mention.ro","url":"https://github.com/cthackers/adm-zip/issues"},"license":"MIT","files":["adm-zip.js","headers","methods","util","zipEntry.js","zipFile.js","LICENSE"],"main":"adm-zip.js","repository":{"type":"git","url":"https://github.com/cthackers/adm-zip.git"},"engines":{"node":">=12.0"},"overrides":{"mocha":{"chokidar":"^4.0.3"}},"devDependencies":{"chai":"^6.2.2","iconv-lite":"^0.7.2","mocha":"12.0.0-beta-10","prettier":"^3.8.1","rimraf":"^3.0.2"},"_lastModified":"2026-05-02T19:41:20.113Z"}
1
+ {"name":"adm-zip","version":"0.5.17","description":"Javascript implementation of zip for nodejs with support for electron original-fs. Allows user to create or extract zip files both in memory or to/from disk","scripts":{"test":"mocha -R spec","test:format":"npm run format:prettier:raw -- --check","format":"npm run format:prettier","format:prettier":"npm run format:prettier:raw -- --write","format:prettier:raw":"prettier \"**/*.{js,yml,json}\""},"keywords":["zip","methods","archive","unzip"],"homepage":"https://github.com/cthackers/adm-zip","author":"Nasca Iacob <sy@another-d-mention.ro> (https://github.com/cthackers)","bugs":{"email":"sy@another-d-mention.ro","url":"https://github.com/cthackers/adm-zip/issues"},"license":"MIT","files":["adm-zip.js","headers","methods","util","zipEntry.js","zipFile.js","LICENSE"],"main":"adm-zip.js","repository":{"type":"git","url":"https://github.com/cthackers/adm-zip.git"},"engines":{"node":">=12.0"},"overrides":{"mocha":{"chokidar":"^4.0.3"}},"devDependencies":{"chai":"^6.2.2","iconv-lite":"^0.7.2","mocha":"12.0.0-beta-10","prettier":"^3.8.1","rimraf":"^3.0.2"},"_lastModified":"2026-11-11T04:03:33.593Z"}
@@ -1 +1 @@
1
- {"name":"ajv","version":"6.12.6","description":"Another JSON Schema Validator","main":"lib/ajv.js","typings":"lib/ajv.d.ts","files":["lib/","dist/","scripts/","LICENSE",".tonic_example.js"],"scripts":{"eslint":"eslint lib/{compile/,}*.js spec/{**/,}*.js scripts --ignore-pattern spec/JSON-Schema-Test-Suite","jshint":"jshint lib/{compile/,}*.js","lint":"npm run jshint && npm run eslint","test-spec":"mocha spec/{**/,}*.spec.js -R spec","test-fast":"AJV_FAST_TEST=true npm run test-spec","test-debug":"npm run test-spec -- --inspect-brk","test-cov":"nyc npm run test-spec","test-ts":"tsc --target ES5 --noImplicitAny --noEmit spec/typescript/index.ts","bundle":"del-cli dist && node ./scripts/bundle.js . Ajv pure_getters","bundle-beautify":"node ./scripts/bundle.js js-beautify","build":"del-cli lib/dotjs/*.js \"!lib/dotjs/index.js\" && node scripts/compile-dots.js","test-karma":"karma start","test-browser":"del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma","test-all":"npm run test-cov && if-node-version 10 npm run test-browser","test":"npm run lint && npm run build && npm run test-all","prepublish":"npm run build && npm run bundle","watch":"watch \"npm run build\" ./lib/dot"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"repository":{"type":"git","url":"https://github.com/ajv-validator/ajv.git"},"keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation"],"author":"Evgeny Poberezkin","license":"MIT","bugs":{"url":"https://github.com/ajv-validator/ajv/issues"},"homepage":"https://github.com/ajv-validator/ajv","tonicExampleFilename":".tonic_example.js","dependencies":{"fast-deep-equal":"^3.1.1","fast-json-stable-stringify":"^2.0.0","json-schema-traverse":"^0.4.1","uri-js":"^4.2.2"},"devDependencies":{"ajv-async":"^1.0.0","bluebird":"^3.5.3","brfs":"^2.0.0","browserify":"^16.2.0","chai":"^4.0.1","coveralls":"^3.0.1","del-cli":"^3.0.0","dot":"^1.0.3","eslint":"^7.3.1","gh-pages-generator":"^0.2.3","glob":"^7.0.0","if-node-version":"^1.0.0","js-beautify":"^1.7.3","jshint":"^2.10.2","json-schema-test":"^2.0.0","karma":"^5.0.0","karma-chrome-launcher":"^3.0.0","karma-mocha":"^2.0.0","karma-sauce-launcher":"^4.1.3","mocha":"^8.0.1","nyc":"^15.0.0","pre-commit":"^1.1.1","require-globify":"^1.3.0","typescript":"^3.9.5","uglify-js":"^3.6.9","watch":"^1.0.0"},"collective":{"type":"opencollective","url":"https://opencollective.com/ajv"},"funding":{"type":"github","url":"https://github.com/sponsors/epoberezkin"},"_lastModified":"2026-07-27T16:29:46.571Z"}
1
+ {"name":"ajv","version":"6.12.6","description":"Another JSON Schema Validator","main":"lib/ajv.js","typings":"lib/ajv.d.ts","files":["lib/","dist/","scripts/","LICENSE",".tonic_example.js"],"scripts":{"eslint":"eslint lib/{compile/,}*.js spec/{**/,}*.js scripts --ignore-pattern spec/JSON-Schema-Test-Suite","jshint":"jshint lib/{compile/,}*.js","lint":"npm run jshint && npm run eslint","test-spec":"mocha spec/{**/,}*.spec.js -R spec","test-fast":"AJV_FAST_TEST=true npm run test-spec","test-debug":"npm run test-spec -- --inspect-brk","test-cov":"nyc npm run test-spec","test-ts":"tsc --target ES5 --noImplicitAny --noEmit spec/typescript/index.ts","bundle":"del-cli dist && node ./scripts/bundle.js . Ajv pure_getters","bundle-beautify":"node ./scripts/bundle.js js-beautify","build":"del-cli lib/dotjs/*.js \"!lib/dotjs/index.js\" && node scripts/compile-dots.js","test-karma":"karma start","test-browser":"del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma","test-all":"npm run test-cov && if-node-version 10 npm run test-browser","test":"npm run lint && npm run build && npm run test-all","prepublish":"npm run build && npm run bundle","watch":"watch \"npm run build\" ./lib/dot"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"repository":{"type":"git","url":"https://github.com/ajv-validator/ajv.git"},"keywords":["JSON","schema","validator","validation","jsonschema","json-schema","json-schema-validator","json-schema-validation"],"author":"Evgeny Poberezkin","license":"MIT","bugs":{"url":"https://github.com/ajv-validator/ajv/issues"},"homepage":"https://github.com/ajv-validator/ajv","tonicExampleFilename":".tonic_example.js","dependencies":{"fast-deep-equal":"^3.1.1","fast-json-stable-stringify":"^2.0.0","json-schema-traverse":"^0.4.1","uri-js":"^4.2.2"},"devDependencies":{"ajv-async":"^1.0.0","bluebird":"^3.5.3","brfs":"^2.0.0","browserify":"^16.2.0","chai":"^4.0.1","coveralls":"^3.0.1","del-cli":"^3.0.0","dot":"^1.0.3","eslint":"^7.3.1","gh-pages-generator":"^0.2.3","glob":"^7.0.0","if-node-version":"^1.0.0","js-beautify":"^1.7.3","jshint":"^2.10.2","json-schema-test":"^2.0.0","karma":"^5.0.0","karma-chrome-launcher":"^3.0.0","karma-mocha":"^2.0.0","karma-sauce-launcher":"^4.1.3","mocha":"^8.0.1","nyc":"^15.0.0","pre-commit":"^1.1.1","require-globify":"^1.3.0","typescript":"^3.9.5","uglify-js":"^3.6.9","watch":"^1.0.0"},"collective":{"type":"opencollective","url":"https://opencollective.com/ajv"},"funding":{"type":"github","url":"https://github.com/sponsors/epoberezkin"},"_lastModified":"2026-11-11T04:03:33.210Z"}