windows-development-sandbox 1.4.3 → 1.5.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 (2958) hide show
  1. package/.sandbox-config.example.json +1 -2
  2. package/README.md +9 -9
  3. package/config.example.json +159 -7
  4. package/dist/api.d.ts +2 -2
  5. package/dist/api.js +2 -2
  6. package/dist/cli/args.d.ts +15 -0
  7. package/dist/cli/args.js +24 -1
  8. package/dist/cli/commands/accounts.js +27 -26
  9. package/dist/cli/commands/agent-commands.d.ts +1 -1
  10. package/dist/cli/commands/agent-commands.js +10 -35
  11. package/dist/cli/commands/context.d.ts +6 -0
  12. package/dist/cli/commands/data/clean.d.ts +1 -13
  13. package/dist/cli/commands/data/clean.js +13 -98
  14. package/dist/cli/commands/data/index.js +4 -5
  15. package/dist/cli/commands/index.d.ts +2 -1
  16. package/dist/cli/commands/index.js +2 -1
  17. package/dist/cli/commands/launch/first-start.d.ts +1 -1
  18. package/dist/cli/commands/launch/first-start.js +1 -1
  19. package/dist/cli/commands/launch/launch.d.ts +3 -0
  20. package/dist/cli/commands/launch/launch.js +68 -6
  21. package/dist/cli/commands/launch/prepare.d.ts +2 -2
  22. package/dist/cli/commands/launch/prepare.js +1 -2
  23. package/dist/cli/commands/launch/resume-offer.d.ts +8 -0
  24. package/dist/cli/commands/launch/resume-offer.js +41 -0
  25. package/dist/cli/commands/maintenance/doctor.js +2 -48
  26. package/dist/cli/commands/maintenance/host-claude.d.ts +3 -0
  27. package/dist/cli/commands/maintenance/host-claude.js +11 -1
  28. package/dist/cli/commands/maintenance/index.d.ts +2 -0
  29. package/dist/cli/commands/maintenance/index.js +2 -0
  30. package/dist/cli/commands/maintenance/logs.js +8 -28
  31. package/dist/cli/commands/maintenance/migrate.d.ts +13 -0
  32. package/dist/cli/commands/maintenance/migrate.js +55 -0
  33. package/dist/cli/commands/maintenance/update.d.ts +22 -0
  34. package/dist/cli/commands/maintenance/update.js +106 -0
  35. package/dist/cli/commands/maintenance/watch.js +5 -1
  36. package/dist/cli/commands/projects/here.d.ts +3 -1
  37. package/dist/cli/commands/projects/here.js +24 -7
  38. package/dist/cli/commands/projects/projects.d.ts +0 -12
  39. package/dist/cli/commands/projects/projects.js +42 -102
  40. package/dist/cli/commands/projects/restart.d.ts +2 -12
  41. package/dist/cli/commands/projects/restart.js +10 -53
  42. package/dist/cli/commands/registry.js +5 -1
  43. package/dist/cli/commands/repair/index.d.ts +0 -3
  44. package/dist/cli/commands/repair/index.js +4 -37
  45. package/dist/cli/commands/resume.d.ts +2 -0
  46. package/dist/cli/commands/resume.js +61 -0
  47. package/dist/cli/commands/sessions/attach.d.ts +1 -1
  48. package/dist/cli/commands/sessions/attach.js +13 -14
  49. package/dist/cli/commands/sessions/control.d.ts +1 -1
  50. package/dist/cli/commands/sessions/control.js +23 -19
  51. package/dist/cli/commands/sessions/exec.d.ts +2 -2
  52. package/dist/cli/commands/sessions/exec.js +14 -14
  53. package/dist/cli/commands/sessions/list.d.ts +1 -14
  54. package/dist/cli/commands/sessions/list.js +19 -39
  55. package/dist/cli/commands/sessions/reopen.d.ts +36 -0
  56. package/dist/cli/commands/sessions/reopen.js +99 -0
  57. package/dist/cli/commands/sessions/status.d.ts +1 -1
  58. package/dist/cli/commands/sessions/status.js +37 -97
  59. package/dist/cli/commands/sessions/window.d.ts +1 -1
  60. package/dist/cli/commands/sessions/window.js +7 -7
  61. package/dist/cli/commands/setup/facts.js +2 -12
  62. package/dist/cli/commands/setup/index.js +10 -25
  63. package/dist/cli/commands/shared-use.d.ts +29 -0
  64. package/dist/cli/commands/shared-use.js +69 -0
  65. package/dist/cli/index.js +13 -2
  66. package/dist/cli/manifest.d.ts +182 -1
  67. package/dist/cli/manifest.js +80 -5
  68. package/dist/cli/menu/apps.d.ts +26 -15
  69. package/dist/cli/menu/apps.js +83 -114
  70. package/dist/cli/menu/command-form.d.ts +5 -0
  71. package/dist/cli/menu/command-form.js +44 -27
  72. package/dist/cli/menu/menu.d.ts +7 -12
  73. package/dist/cli/menu/menu.js +81 -96
  74. package/dist/cli/menu/pages/accounts-page.d.ts +29 -0
  75. package/dist/cli/menu/pages/accounts-page.js +168 -0
  76. package/dist/cli/menu/pages/apps-page.d.ts +26 -0
  77. package/dist/cli/menu/pages/apps-page.js +75 -0
  78. package/dist/cli/menu/pages/list-page.d.ts +42 -0
  79. package/dist/cli/menu/pages/list-page.js +65 -0
  80. package/dist/cli/menu/pages/maintenance-page.d.ts +76 -0
  81. package/dist/cli/menu/pages/maintenance-page.js +483 -0
  82. package/dist/cli/menu/pages/sandbox-page.d.ts +32 -0
  83. package/dist/cli/menu/pages/sandbox-page.js +273 -0
  84. package/dist/cli/menu/pages/scopes.d.ts +9 -0
  85. package/dist/cli/menu/pages/scopes.js +15 -0
  86. package/dist/cli/menu/pages/sessions-page.d.ts +20 -0
  87. package/dist/cli/menu/pages/sessions-page.js +94 -0
  88. package/dist/cli/menu/pages/settings-page.d.ts +31 -0
  89. package/dist/cli/menu/pages/settings-page.js +207 -0
  90. package/dist/cli/menu/pages/start-page.d.ts +43 -0
  91. package/dist/cli/menu/pages/start-page.js +192 -0
  92. package/dist/cli/menu/settings/categories.js +9 -2
  93. package/dist/cli/menu/settings/collections/collection-editor.d.ts +2 -2
  94. package/dist/cli/menu/settings/collections/collection-editor.js +9 -25
  95. package/dist/cli/menu/settings/config-file.d.ts +9 -0
  96. package/dist/cli/menu/settings/config-file.js +18 -7
  97. package/dist/cli/menu/settings/draft.d.ts +26 -0
  98. package/dist/cli/menu/settings/draft.js +67 -0
  99. package/dist/cli/menu/settings/editor-actions.d.ts +0 -1
  100. package/dist/cli/menu/settings/editor-actions.js +0 -1
  101. package/dist/cli/menu/settings/index.d.ts +2 -2
  102. package/dist/cli/menu/settings/index.js +1 -1
  103. package/dist/cli/menu/settings/object-editor.js +8 -28
  104. package/dist/cli/menu/shell.d.ts +54 -0
  105. package/dist/cli/menu/shell.js +109 -0
  106. package/dist/cli/services/accounts-service.d.ts +44 -0
  107. package/dist/cli/services/accounts-service.js +115 -0
  108. package/dist/cli/services/agent-commands-service.d.ts +22 -0
  109. package/dist/cli/services/agent-commands-service.js +44 -0
  110. package/dist/cli/services/data-service.d.ts +43 -0
  111. package/dist/cli/services/data-service.js +66 -0
  112. package/dist/cli/services/data-targets.d.ts +13 -0
  113. package/dist/cli/services/data-targets.js +67 -0
  114. package/dist/cli/services/databases-service.d.ts +27 -0
  115. package/dist/cli/services/databases-service.js +57 -0
  116. package/dist/cli/services/health-service.d.ts +28 -0
  117. package/dist/cli/services/health-service.js +120 -0
  118. package/dist/cli/services/index.d.ts +12 -0
  119. package/dist/cli/services/index.js +12 -0
  120. package/dist/cli/services/logs-service.d.ts +25 -0
  121. package/dist/cli/services/logs-service.js +54 -0
  122. package/dist/cli/services/migrate-service.d.ts +29 -0
  123. package/dist/cli/services/migrate-service.js +43 -0
  124. package/dist/cli/services/projects-service.d.ts +56 -0
  125. package/dist/cli/services/projects-service.js +111 -0
  126. package/dist/cli/services/sandbox-service.d.ts +78 -0
  127. package/dist/cli/services/sandbox-service.js +125 -0
  128. package/dist/cli/services/sessions-service.d.ts +42 -0
  129. package/dist/cli/services/sessions-service.js +81 -0
  130. package/dist/cli/services/update-service.d.ts +74 -0
  131. package/dist/cli/services/update-service.js +185 -0
  132. package/dist/cli/tui/app.d.ts +13 -0
  133. package/dist/cli/tui/app.js +37 -3
  134. package/dist/cli/tui/dialogs/overlay.d.ts +34 -0
  135. package/dist/cli/tui/dialogs/overlay.js +104 -0
  136. package/dist/cli/tui/frame.d.ts +13 -4
  137. package/dist/cli/tui/frame.js +10 -8
  138. package/dist/cli/tui/index.d.ts +5 -2
  139. package/dist/cli/tui/index.js +3 -0
  140. package/dist/cli/tui/key-bar.d.ts +5 -0
  141. package/dist/cli/tui/key-bar.js +22 -0
  142. package/dist/cli/tui/list/list-screen.d.ts +9 -0
  143. package/dist/cli/tui/list/list-screen.js +62 -22
  144. package/dist/cli/tui/list/list-types.d.ts +12 -1
  145. package/dist/cli/tui/tab-bar.d.ts +9 -0
  146. package/dist/cli/tui/tab-bar.js +33 -0
  147. package/dist/cli/tui/text.js +4 -1
  148. package/dist/core/config/defaults.js +77 -7
  149. package/dist/core/config/index.d.ts +1 -1
  150. package/dist/core/config/index.js +1 -1
  151. package/dist/core/config/loader.d.ts +13 -9
  152. package/dist/core/config/loader.js +61 -20
  153. package/dist/core/detect/databases.d.ts +2 -2
  154. package/dist/core/detect/databases.js +4 -4
  155. package/dist/core/detect/pwsh.d.ts +4 -4
  156. package/dist/core/detect/pwsh.js +11 -11
  157. package/dist/core/detect/toolchains.d.ts +7 -4
  158. package/dist/core/detect/toolchains.js +15 -6
  159. package/dist/core/detect/versions.d.ts +22 -14
  160. package/dist/core/detect/versions.js +43 -29
  161. package/dist/core/disk.d.ts +13 -7
  162. package/dist/core/disk.js +18 -12
  163. package/dist/core/local-config/file.d.ts +1 -1
  164. package/dist/core/local-config/file.js +2 -2
  165. package/dist/core/local-config/overrides.d.ts +7 -7
  166. package/dist/core/local-config/overrides.js +20 -18
  167. package/dist/core/local-config/policy.d.ts +2 -2
  168. package/dist/core/local-config/policy.js +5 -3
  169. package/dist/core/local-config/trust.d.ts +6 -6
  170. package/dist/core/local-config/trust.js +16 -8
  171. package/dist/core/package-info.d.ts +1 -1
  172. package/dist/core/package-info.js +2 -2
  173. package/dist/core/prompt.d.ts +2 -2
  174. package/dist/core/prompt.js +6 -5
  175. package/dist/core/run/guest-workspace.d.ts +6 -2
  176. package/dist/core/run/guest-workspace.js +4 -1
  177. package/dist/core/run/resolve-run.d.ts +5 -2
  178. package/dist/core/run/resolve-run.js +6 -3
  179. package/dist/core/run/versions.d.ts +3 -3
  180. package/dist/core/run/versions.js +4 -4
  181. package/dist/core/safe-paths.d.ts +6 -3
  182. package/dist/core/safe-paths.js +8 -5
  183. package/dist/core/schema/common.d.ts +3 -3
  184. package/dist/core/schema/common.js +9 -3
  185. package/dist/core/schema/config.d.ts +29 -10
  186. package/dist/core/schema/config.js +4 -1
  187. package/dist/core/schema/databases.d.ts +1 -1
  188. package/dist/core/schema/databases.js +4 -2
  189. package/dist/core/schema/harness.d.ts +14 -0
  190. package/dist/core/schema/harness.js +25 -0
  191. package/dist/core/schema/json-schema.d.ts +2 -2
  192. package/dist/core/schema/json-schema.js +10 -8
  193. package/dist/core/schema/resume.d.ts +11 -0
  194. package/dist/core/schema/resume.js +12 -0
  195. package/dist/core/schema/sandbox.d.ts +3 -0
  196. package/dist/core/schema/sandbox.js +5 -0
  197. package/dist/core/schema/toolchains.d.ts +3 -3
  198. package/dist/core/schema/toolchains.js +7 -5
  199. package/dist/core/types.d.ts +20 -3
  200. package/dist/core/util/errors.d.ts +1 -1
  201. package/dist/core/util/errors.js +3 -1
  202. package/dist/core/util/fs.d.ts +7 -7
  203. package/dist/core/util/fs.js +16 -12
  204. package/dist/core/util/index.d.ts +2 -2
  205. package/dist/core/util/index.js +2 -2
  206. package/dist/core/util/jsonc.d.ts +2 -2
  207. package/dist/core/util/jsonc.js +9 -4
  208. package/dist/core/util/links.d.ts +3 -3
  209. package/dist/core/util/links.js +6 -6
  210. package/dist/core/util/paths.d.ts +8 -6
  211. package/dist/core/util/paths.js +19 -13
  212. package/dist/core/util/process.d.ts +7 -11
  213. package/dist/core/util/process.js +8 -49
  214. package/dist/core/util/text.d.ts +6 -4
  215. package/dist/core/util/text.js +17 -4
  216. package/dist/guest/agents/agent-installer.d.ts +21 -10
  217. package/dist/guest/agents/agent-installer.js +76 -59
  218. package/dist/guest/agents/profile-links.d.ts +5 -0
  219. package/dist/guest/agents/profile-links.js +27 -0
  220. package/dist/guest/apps/shortcuts.d.ts +1 -1
  221. package/dist/guest/apps/shortcuts.js +11 -20
  222. package/dist/guest/audit/parse.d.ts +1 -1
  223. package/dist/guest/audit/parse.js +2 -2
  224. package/dist/guest/audit/process-audit.d.ts +2 -2
  225. package/dist/guest/audit/process-audit.js +4 -4
  226. package/dist/guest/boot/boot-env.d.ts +2 -2
  227. package/dist/guest/boot/boot-env.js +4 -4
  228. package/dist/guest/boot/boot.d.ts +18 -1
  229. package/dist/guest/boot/boot.js +168 -119
  230. package/dist/guest/boot/guide.d.ts +4 -4
  231. package/dist/guest/boot/guide.js +44 -40
  232. package/dist/guest/boot/project-env.d.ts +1 -1
  233. package/dist/guest/boot/project-env.js +2 -2
  234. package/dist/guest/boot/project-status.d.ts +2 -2
  235. package/dist/guest/boot/project-status.js +5 -3
  236. package/dist/guest/daemon/daemon.d.ts +7 -1
  237. package/dist/guest/daemon/daemon.js +48 -42
  238. package/dist/guest/daemon/exec.d.ts +3 -3
  239. package/dist/guest/daemon/exec.js +10 -6
  240. package/dist/guest/daemon/idle-shutdown.d.ts +8 -1
  241. package/dist/guest/daemon/idle-shutdown.js +26 -14
  242. package/dist/guest/daemon/project-provisioner.d.ts +17 -8
  243. package/dist/guest/daemon/project-provisioner.js +68 -58
  244. package/dist/guest/daemon/relays.d.ts +1 -1
  245. package/dist/guest/daemon/relays.js +2 -2
  246. package/dist/guest/daemon/sessions.d.ts +30 -8
  247. package/dist/guest/daemon/sessions.js +170 -105
  248. package/dist/guest/daemon/state.d.ts +5 -14
  249. package/dist/guest/daemon/state.js +16 -13
  250. package/dist/guest/entries/daemon.js +2 -2
  251. package/dist/guest/entries/db.js +4 -2
  252. package/dist/guest/git/decision.d.ts +1 -1
  253. package/dist/guest/git/decision.js +2 -2
  254. package/dist/guest/network/addresses.d.ts +1 -1
  255. package/dist/guest/network/addresses.js +6 -4
  256. package/dist/guest/network/allow-only.d.ts +2 -2
  257. package/dist/guest/network/allow-only.js +4 -4
  258. package/dist/guest/network/firewall.d.ts +2 -2
  259. package/dist/guest/network/firewall.js +12 -12
  260. package/dist/guest/runtime/csc.d.ts +13 -3
  261. package/dist/guest/runtime/csc.js +28 -11
  262. package/dist/guest/runtime/fs.d.ts +2 -2
  263. package/dist/guest/runtime/fs.js +5 -3
  264. package/dist/guest/runtime/log.d.ts +2 -2
  265. package/dist/guest/runtime/log.js +4 -4
  266. package/dist/guest/runtime/ports.d.ts +6 -4
  267. package/dist/guest/runtime/ports.js +22 -16
  268. package/dist/guest/runtime/process.d.ts +17 -9
  269. package/dist/guest/runtime/process.js +38 -14
  270. package/dist/guest/runtime/project-context.d.ts +3 -3
  271. package/dist/guest/runtime/project-context.js +9 -3
  272. package/dist/guest/sessions/cmdline.d.ts +3 -3
  273. package/dist/guest/sessions/cmdline.js +10 -6
  274. package/dist/guest/sessions/conversation.d.ts +5 -0
  275. package/dist/guest/sessions/conversation.js +38 -0
  276. package/dist/guest/sessions/pty-host.d.ts +5 -5
  277. package/dist/guest/sessions/pty-host.js +17 -10
  278. package/dist/guest/sessions/viewer.d.ts +1 -1
  279. package/dist/guest/sessions/viewer.js +2 -2
  280. package/dist/guest/setup/claude-mem.d.ts +2 -2
  281. package/dist/guest/setup/claude-mem.js +9 -6
  282. package/dist/guest/setup/claude-profile.d.ts +2 -2
  283. package/dist/guest/setup/claude-profile.js +5 -5
  284. package/dist/guest/setup/desktop.d.ts +1 -1
  285. package/dist/guest/setup/desktop.js +4 -13
  286. package/dist/guest/setup/environment.d.ts +3 -3
  287. package/dist/guest/setup/environment.js +26 -33
  288. package/dist/guest/setup/git-identity.d.ts +1 -1
  289. package/dist/guest/setup/git-identity.js +2 -2
  290. package/dist/guest/setup/git-rules.d.ts +1 -1
  291. package/dist/guest/setup/git-rules.js +2 -2
  292. package/dist/guest/setup/hooks.d.ts +3 -3
  293. package/dist/guest/setup/hooks.js +10 -8
  294. package/dist/guest/setup/managed-policy.d.ts +2 -2
  295. package/dist/guest/setup/managed-policy.js +5 -3
  296. package/dist/guest/toolchains/native/mesa.js +2 -2
  297. package/dist/guest/toolchains/native/rust-extras.d.ts +2 -2
  298. package/dist/guest/toolchains/native/rust-extras.js +4 -4
  299. package/dist/guest/toolchains/native/vcruntime.js +2 -10
  300. package/dist/guest/toolchains/plan.js +8 -3
  301. package/dist/guest/toolchains/tools/cli.js +3 -3
  302. package/dist/guest/toolchains/tools/vscode.js +4 -9
  303. package/dist/host/agent-commands/commands.d.ts +4 -4
  304. package/dist/host/agent-commands/commands.js +12 -8
  305. package/dist/host/agent-commands/forwarders.d.ts +2 -2
  306. package/dist/host/agent-commands/forwarders.js +14 -12
  307. package/dist/host/agent-commands/reconcile.d.ts +1 -1
  308. package/dist/host/agent-commands/reconcile.js +4 -4
  309. package/dist/host/agent-commands/user-path.d.ts +5 -2
  310. package/dist/host/agent-commands/user-path.js +15 -23
  311. package/dist/host/audit/collect.d.ts +2 -2
  312. package/dist/host/audit/collect.js +6 -2
  313. package/dist/host/audit/log.d.ts +1 -1
  314. package/dist/host/audit/log.js +2 -2
  315. package/dist/host/channel/attach.d.ts +4 -4
  316. package/dist/host/channel/attach.js +8 -8
  317. package/dist/host/channel/channel.d.ts +3 -1
  318. package/dist/host/channel/channel.js +3 -1
  319. package/dist/host/install/index.d.ts +4 -0
  320. package/dist/host/install/index.js +4 -0
  321. package/dist/host/install/install-record.d.ts +19 -0
  322. package/dist/host/install/install-record.js +28 -0
  323. package/dist/host/install/layout.d.ts +29 -0
  324. package/dist/host/install/layout.js +111 -0
  325. package/dist/host/install/scheduled-task.d.ts +10 -0
  326. package/dist/host/install/scheduled-task.js +40 -0
  327. package/dist/host/install/shims.d.ts +10 -0
  328. package/dist/host/install/shims.js +55 -0
  329. package/dist/host/launch/index.d.ts +1 -1
  330. package/dist/host/launch/index.js +1 -1
  331. package/dist/host/launch/mappings.js +4 -2
  332. package/dist/host/launch/pc-scan.js +8 -1
  333. package/dist/host/launch/project-scan.d.ts +2 -0
  334. package/dist/host/launch/project-scan.js +15 -0
  335. package/dist/host/launch/session-file.js +2 -0
  336. package/dist/host/launch/toolchains.js +12 -2
  337. package/dist/host/launch/wsb-file.js +1 -1
  338. package/dist/host/life/crash-report.d.ts +3 -1
  339. package/dist/host/life/crash-report.js +4 -2
  340. package/dist/host/life/index.d.ts +1 -0
  341. package/dist/host/life/index.js +1 -0
  342. package/dist/host/life/keep-awake.d.ts +3 -2
  343. package/dist/host/life/keep-awake.js +10 -7
  344. package/dist/host/life/life-record.d.ts +1 -1
  345. package/dist/host/life/life-record.js +3 -4
  346. package/dist/host/life/session-ledger.d.ts +65 -0
  347. package/dist/host/life/session-ledger.js +163 -0
  348. package/dist/host/life/stop-events.d.ts +4 -4
  349. package/dist/host/life/stop-events.js +14 -12
  350. package/dist/host/life/windows-update.d.ts +1 -1
  351. package/dist/host/life/windows-update.js +7 -5
  352. package/dist/host/migrate/backup.d.ts +15 -0
  353. package/dist/host/migrate/backup.js +92 -0
  354. package/dist/host/migrate/index.d.ts +5 -0
  355. package/dist/host/migrate/index.js +4 -0
  356. package/dist/host/migrate/marker.d.ts +21 -0
  357. package/dist/host/migrate/marker.js +49 -0
  358. package/dist/host/migrate/migration.d.ts +26 -0
  359. package/dist/host/migrate/migration.js +3 -0
  360. package/dist/host/migrate/migrations/config-file.d.ts +8 -0
  361. package/dist/host/migrate/migrations/config-file.js +28 -0
  362. package/dist/host/migrate/migrations/follow-machine-storage.d.ts +2 -0
  363. package/dist/host/migrate/migrations/follow-machine-storage.js +36 -0
  364. package/dist/host/migrate/migrations/unpin-config-defaults.d.ts +2 -0
  365. package/dist/host/migrate/migrations/unpin-config-defaults.js +41 -0
  366. package/dist/host/migrate/registry.d.ts +2 -0
  367. package/dist/host/migrate/registry.js +3 -0
  368. package/dist/host/migrate/runner.d.ts +21 -0
  369. package/dist/host/migrate/runner.js +67 -0
  370. package/dist/host/migrate/snapshots.d.ts +6 -0
  371. package/dist/host/migrate/snapshots.js +2200 -0
  372. package/dist/host/native.d.ts +8 -3
  373. package/dist/host/native.js +56 -6
  374. package/dist/host/network/port-forward.d.ts +4 -4
  375. package/dist/host/network/port-forward.js +11 -5
  376. package/dist/host/profile/accounts.d.ts +1 -0
  377. package/dist/host/profile/accounts.js +13 -0
  378. package/dist/host/profile/agent-accounts.d.ts +29 -0
  379. package/dist/host/profile/agent-accounts.js +169 -0
  380. package/dist/host/profile/index.d.ts +1 -0
  381. package/dist/host/profile/index.js +1 -0
  382. package/dist/host/profile/personalize.js +25 -22
  383. package/dist/host/projects/mapper.d.ts +1 -1
  384. package/dist/host/projects/mapper.js +2 -2
  385. package/dist/host/projects/registry.d.ts +11 -0
  386. package/dist/host/projects/registry.js +28 -0
  387. package/dist/host/sandbox/doctor.d.ts +1 -1
  388. package/dist/host/sandbox/doctor.js +2 -2
  389. package/dist/host/sandbox/host-claude.d.ts +4 -1
  390. package/dist/host/sandbox/host-claude.js +24 -3
  391. package/dist/host/sandbox/platform.d.ts +9 -7
  392. package/dist/host/sandbox/platform.js +29 -17
  393. package/dist/host/sandbox/probe.d.ts +1 -1
  394. package/dist/host/sandbox/probe.js +2 -2
  395. package/dist/host/sandbox/window.d.ts +2 -2
  396. package/dist/host/sandbox/window.js +36 -56
  397. package/dist/host/sandbox/wsb-cli.d.ts +10 -10
  398. package/dist/host/sandbox/wsb-cli.js +30 -18
  399. package/dist/host/sharing/acl.d.ts +30 -0
  400. package/dist/host/sharing/acl.js +65 -0
  401. package/dist/host/sharing/active-record.d.ts +27 -0
  402. package/dist/host/sharing/active-record.js +70 -0
  403. package/dist/host/sharing/borrow.d.ts +11 -0
  404. package/dist/host/sharing/borrow.js +20 -0
  405. package/dist/host/sharing/current.d.ts +11 -0
  406. package/dist/host/sharing/current.js +37 -0
  407. package/dist/host/sharing/index.d.ts +8 -0
  408. package/dist/host/sharing/index.js +10 -0
  409. package/dist/host/sharing/lifecycle.d.ts +26 -0
  410. package/dist/host/sharing/lifecycle.js +79 -0
  411. package/dist/host/sharing/machine-paths.d.ts +6 -0
  412. package/dist/host/sharing/machine-paths.js +13 -0
  413. package/dist/host/sharing/owner.d.ts +28 -0
  414. package/dist/host/sharing/owner.js +73 -0
  415. package/dist/host/sharing/rules.d.ts +39 -0
  416. package/dist/host/sharing/rules.js +60 -0
  417. package/dist/host/storage/cleanup.d.ts +4 -3
  418. package/dist/host/storage/cleanup.js +16 -13
  419. package/dist/host/storage/state-files.d.ts +1 -1
  420. package/dist/host/test-guard.d.ts +2 -2
  421. package/dist/host/test-guard.js +6 -5
  422. package/dist/host/tools/conpty.d.ts +2 -2
  423. package/dist/host/tools/conpty.js +5 -3
  424. package/dist/host/tools/windows-terminal.d.ts +6 -6
  425. package/dist/host/tools/windows-terminal.js +12 -8
  426. package/dist/host/update/decision.d.ts +29 -0
  427. package/dist/host/update/decision.js +32 -0
  428. package/dist/host/update/index.d.ts +6 -0
  429. package/dist/host/update/index.js +6 -0
  430. package/dist/host/update/notice.d.ts +11 -0
  431. package/dist/host/update/notice.js +28 -0
  432. package/dist/host/update/release-source.d.ts +32 -0
  433. package/dist/host/update/release-source.js +79 -0
  434. package/dist/host/update/update-lock.d.ts +7 -0
  435. package/dist/host/update/update-lock.js +48 -0
  436. package/dist/host/update/update-state.d.ts +24 -0
  437. package/dist/host/update/update-state.js +24 -0
  438. package/dist/host/update/updater.d.ts +62 -0
  439. package/dist/host/update/updater.js +241 -0
  440. package/dist/host/workspace-view/active-views.d.ts +2 -2
  441. package/dist/host/workspace-view/active-views.js +13 -9
  442. package/dist/host/workspace-view/plan.d.ts +3 -3
  443. package/dist/host/workspace-view/plan.js +7 -5
  444. package/dist/host/workspace-view/rules.d.ts +3 -1
  445. package/dist/host/workspace-view/rules.js +3 -1
  446. package/dist/host/workspace-view/view-state.d.ts +3 -3
  447. package/dist/host/workspace-view/view-state.js +6 -6
  448. package/dist/runtime/daemon.js +1542 -1181
  449. package/dist/runtime/db.js +482 -362
  450. package/dist/runtime/gitguard.js +2 -2
  451. package/dist/runtime/main.js +1424 -1229
  452. package/dist/runtime/netproxy.js +292 -203
  453. package/dist/runtime/view.js +255 -199
  454. package/dist/selftest/accounts.test.js +9 -9
  455. package/dist/selftest/agent-commands.test.js +8 -8
  456. package/dist/selftest/channel.test.js +58 -52
  457. package/dist/selftest/cli.test.js +67 -108
  458. package/dist/selftest/cmdline.test.js +4 -3
  459. package/dist/selftest/data.test.js +37 -19
  460. package/dist/selftest/detect.test.js +43 -28
  461. package/dist/selftest/generate.test.js +39 -37
  462. package/dist/selftest/git-access.test.js +2 -1
  463. package/dist/selftest/guest-boot.test.js +40 -38
  464. package/dist/selftest/host-sim.test.js +3 -0
  465. package/dist/selftest/hostile-input.test.js +2 -0
  466. package/dist/selftest/index.d.ts +3 -3
  467. package/dist/selftest/index.js +37 -9
  468. package/dist/selftest/install.test.d.ts +2 -0
  469. package/dist/selftest/install.test.js +49 -0
  470. package/dist/selftest/live-daemon.test.js +17 -17
  471. package/dist/selftest/live-git.test.js +3 -3
  472. package/dist/selftest/live-network.test.js +51 -2
  473. package/dist/selftest/live-projects.test.js +25 -21
  474. package/dist/selftest/live-terminal.test.js +34 -22
  475. package/dist/selftest/local-config.test.js +37 -38
  476. package/dist/selftest/menu-screens.d.ts +2 -0
  477. package/dist/selftest/menu-screens.js +224 -0
  478. package/dist/selftest/menu.test.d.ts +2 -0
  479. package/dist/selftest/menu.test.js +149 -0
  480. package/dist/selftest/migrate.test.d.ts +2 -0
  481. package/dist/selftest/migrate.test.js +194 -0
  482. package/dist/selftest/mirror.test.js +51 -82
  483. package/dist/selftest/network.test.js +5 -5
  484. package/dist/selftest/personalization.test.js +15 -16
  485. package/dist/selftest/projects.test.js +241 -228
  486. package/dist/selftest/repo-guard.test.js +34 -32
  487. package/dist/selftest/resume.test.d.ts +2 -0
  488. package/dist/selftest/resume.test.js +175 -0
  489. package/dist/selftest/secrets.test.js +2 -2
  490. package/dist/selftest/setup.test.js +33 -25
  491. package/dist/selftest/shared-use.test.d.ts +2 -0
  492. package/dist/selftest/shared-use.test.js +116 -0
  493. package/dist/selftest/sharing.test.d.ts +2 -0
  494. package/dist/selftest/sharing.test.js +201 -0
  495. package/dist/selftest/support/fixtures.d.ts +24 -7
  496. package/dist/selftest/support/fixtures.js +45 -32
  497. package/dist/selftest/support/harness.d.ts +1 -1
  498. package/dist/selftest/support/harness.js +2 -2
  499. package/dist/selftest/support/live.d.ts +18 -12
  500. package/dist/selftest/support/live.js +27 -16
  501. package/dist/selftest/support/releases.d.ts +15 -0
  502. package/dist/selftest/support/releases.js +73 -0
  503. package/dist/selftest/sync.test.js +65 -63
  504. package/dist/selftest/toolchains.test.js +86 -99
  505. package/dist/selftest/update-service.test.d.ts +2 -0
  506. package/dist/selftest/update-service.test.js +188 -0
  507. package/dist/selftest/update.test.d.ts +2 -0
  508. package/dist/selftest/update.test.js +172 -0
  509. package/dist/selftest/workspace-view.test.js +21 -16
  510. package/dist/selftest/workspace.test.js +9 -8
  511. package/dist/shared/apps/catalogue.d.ts +8 -3
  512. package/dist/shared/apps/catalogue.js +3 -1
  513. package/dist/shared/apps/selection.d.ts +3 -3
  514. package/dist/shared/apps/selection.js +7 -5
  515. package/dist/shared/channel/schema.d.ts +38 -9
  516. package/dist/shared/channel/schema.js +2 -0
  517. package/dist/shared/download/archive.d.ts +4 -4
  518. package/dist/shared/download/archive.js +11 -17
  519. package/dist/shared/download/downloader.d.ts +4 -1
  520. package/dist/shared/download/downloader.js +2 -1
  521. package/dist/shared/download/github.d.ts +7 -5
  522. package/dist/shared/download/github.js +13 -10
  523. package/dist/shared/download/http.d.ts +3 -3
  524. package/dist/shared/download/http.js +8 -4
  525. package/dist/shared/download/spawn.d.ts +2 -1
  526. package/dist/shared/download/spawn.js +7 -5
  527. package/dist/shared/io/json.d.ts +4 -4
  528. package/dist/shared/io/json.js +9 -7
  529. package/dist/shared/io/safe-remove.d.ts +2 -2
  530. package/dist/shared/io/safe-remove.js +20 -17
  531. package/dist/shared/network/firewall-rules.d.ts +19 -13
  532. package/dist/shared/network/firewall-rules.js +31 -23
  533. package/dist/shared/network/policy.d.ts +4 -4
  534. package/dist/shared/network/policy.js +15 -11
  535. package/dist/shared/paths/agent-profile.d.ts +9 -0
  536. package/dist/shared/paths/agent-profile.js +21 -0
  537. package/dist/shared/paths/claude-paths.d.ts +7 -6
  538. package/dist/shared/paths/claude-paths.js +19 -14
  539. package/dist/shared/paths/conversation.d.ts +23 -0
  540. package/dist/shared/paths/conversation.js +25 -0
  541. package/dist/shared/paths/guest-paths.d.ts +12 -12
  542. package/dist/shared/paths/guest-paths.js +26 -22
  543. package/dist/shared/paths/index.d.ts +2 -0
  544. package/dist/shared/paths/index.js +2 -0
  545. package/dist/shared/paths/projects.d.ts +24 -19
  546. package/dist/shared/paths/projects.js +37 -24
  547. package/dist/shared/pty/client.d.ts +3 -3
  548. package/dist/shared/pty/client.js +6 -6
  549. package/dist/shared/pty/console-input.d.ts +1 -1
  550. package/dist/shared/pty/console-input.js +11 -42
  551. package/dist/shared/pty/output-filter.d.ts +4 -1
  552. package/dist/shared/pty/output-filter.js +4 -1
  553. package/dist/shared/pty/protocol.d.ts +7 -5
  554. package/dist/shared/pty/protocol.js +11 -9
  555. package/dist/shared/pty/terminal.d.ts +8 -5
  556. package/dist/shared/pty/terminal.js +12 -6
  557. package/dist/shared/scripts.d.ts +4 -0
  558. package/dist/shared/scripts.js +26 -0
  559. package/dist/shared/system.d.ts +11 -1
  560. package/dist/shared/system.js +15 -1
  561. package/dist/shared/test-guard.d.ts +3 -3
  562. package/dist/shared/test-guard.js +15 -9
  563. package/dist/sync/claude-mem.d.ts +2 -2
  564. package/dist/sync/claude-mem.js +10 -7
  565. package/dist/sync/history.d.ts +4 -4
  566. package/dist/sync/history.js +9 -6
  567. package/dist/sync/sync-cycle.d.ts +4 -4
  568. package/dist/sync/sync-cycle.js +6 -6
  569. package/dist/sync/sync-state.d.ts +3 -3
  570. package/dist/sync/sync-state.js +9 -3
  571. package/dist/sync/watcher.d.ts +42 -2
  572. package/dist/sync/watcher.js +199 -98
  573. package/native/{power.cs → csharp/HostTools/KeepAwake.cs} +2 -1
  574. package/native/csharp/HostTools/Program.cs +227 -0
  575. package/native/csharp/HostTools/UserPath.cs +74 -0
  576. package/native/csharp/HostTools/Window.cs +143 -0
  577. package/native/scripts/capture-look.ps1 +22 -0
  578. package/native/scripts/check-syntax.ps1 +14 -0
  579. package/native/scripts/edit-user-path.ps1 +11 -0
  580. package/native/scripts/hide-window.ps1 +8 -0
  581. package/native/{keep-awake.ps1 → scripts/keep-awake.ps1} +2 -2
  582. package/native/scripts/run-elevated.ps1 +12 -0
  583. package/native/scripts/sandbox-probe.ps1 +15 -0
  584. package/native/scripts/set-folder-access.ps1 +44 -0
  585. package/native/scripts/set-update-task.ps1 +43 -0
  586. package/native/scripts/show-window.ps1 +13 -0
  587. package/native/{stop-events.ps1 → scripts/stop-events.ps1} +1 -1
  588. package/node_modules/@inquirer/ansi/LICENSE +22 -0
  589. package/node_modules/@inquirer/ansi/README.md +89 -0
  590. package/node_modules/@inquirer/ansi/dist/commonjs/index.d.ts +14 -0
  591. package/node_modules/@inquirer/ansi/dist/commonjs/index.js +28 -0
  592. package/node_modules/@inquirer/ansi/dist/commonjs/package.json +3 -0
  593. package/node_modules/@inquirer/ansi/dist/esm/index.d.ts +14 -0
  594. package/node_modules/@inquirer/ansi/dist/esm/index.js +21 -0
  595. package/node_modules/@inquirer/ansi/dist/esm/package.json +3 -0
  596. package/node_modules/@inquirer/ansi/package.json +97 -0
  597. package/node_modules/@inquirer/checkbox/LICENSE +22 -0
  598. package/node_modules/@inquirer/checkbox/README.md +188 -0
  599. package/node_modules/@inquirer/checkbox/dist/commonjs/index.d.ts +57 -0
  600. package/node_modules/@inquirer/checkbox/dist/commonjs/index.js +209 -0
  601. package/node_modules/@inquirer/checkbox/dist/commonjs/package.json +3 -0
  602. package/node_modules/@inquirer/checkbox/dist/esm/index.d.ts +57 -0
  603. package/node_modules/@inquirer/checkbox/dist/esm/index.js +202 -0
  604. package/node_modules/@inquirer/checkbox/dist/esm/package.json +3 -0
  605. package/node_modules/@inquirer/checkbox/package.json +113 -0
  606. package/node_modules/@inquirer/confirm/LICENSE +22 -0
  607. package/node_modules/@inquirer/confirm/README.md +92 -0
  608. package/node_modules/@inquirer/confirm/dist/commonjs/index.d.ts +10 -0
  609. package/node_modules/@inquirer/confirm/dist/commonjs/index.js +50 -0
  610. package/node_modules/@inquirer/confirm/dist/commonjs/package.json +3 -0
  611. package/node_modules/@inquirer/confirm/dist/esm/index.d.ts +10 -0
  612. package/node_modules/@inquirer/confirm/dist/esm/index.js +48 -0
  613. package/node_modules/@inquirer/confirm/dist/esm/package.json +3 -0
  614. package/node_modules/@inquirer/confirm/package.json +110 -0
  615. package/node_modules/@inquirer/core/LICENSE +22 -0
  616. package/node_modules/@inquirer/core/README.md +383 -0
  617. package/node_modules/@inquirer/core/dist/commonjs/index.d.ts +13 -0
  618. package/node_modules/@inquirer/core/dist/commonjs/index.js +46 -0
  619. package/node_modules/@inquirer/core/dist/commonjs/lib/Separator.d.ts +10 -0
  620. package/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js +28 -0
  621. package/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.d.ts +4 -0
  622. package/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js +156 -0
  623. package/node_modules/@inquirer/core/dist/commonjs/lib/errors.d.ts +20 -0
  624. package/node_modules/@inquirer/core/dist/commonjs/lib/errors.js +29 -0
  625. package/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.d.ts +23 -0
  626. package/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js +118 -0
  627. package/node_modules/@inquirer/core/dist/commonjs/lib/key.d.ts +12 -0
  628. package/node_modules/@inquirer/core/dist/commonjs/lib/key.js +29 -0
  629. package/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.d.ts +3 -0
  630. package/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js +33 -0
  631. package/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.d.ts +16 -0
  632. package/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js +124 -0
  633. package/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.d.ts +7 -0
  634. package/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js +18 -0
  635. package/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.d.ts +14 -0
  636. package/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js +82 -0
  637. package/node_modules/@inquirer/core/dist/commonjs/lib/theme.d.ts +155 -0
  638. package/node_modules/@inquirer/core/dist/commonjs/lib/theme.js +27 -0
  639. package/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.d.ts +2 -0
  640. package/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js +14 -0
  641. package/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.d.ts +3 -0
  642. package/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js +23 -0
  643. package/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.d.ts +1 -0
  644. package/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js +17 -0
  645. package/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.d.ts +5 -0
  646. package/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js +38 -0
  647. package/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.d.ts +6 -0
  648. package/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js +7 -0
  649. package/node_modules/@inquirer/core/dist/commonjs/lib/use-state.d.ts +4 -0
  650. package/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js +23 -0
  651. package/node_modules/@inquirer/core/dist/commonjs/lib/utils.d.ts +13 -0
  652. package/node_modules/@inquirer/core/dist/commonjs/lib/utils.js +32 -0
  653. package/node_modules/@inquirer/core/dist/commonjs/package.json +3 -0
  654. package/node_modules/@inquirer/core/dist/esm/index.d.ts +13 -0
  655. package/node_modules/@inquirer/core/dist/esm/index.js +12 -0
  656. package/node_modules/@inquirer/core/dist/esm/lib/Separator.d.ts +10 -0
  657. package/node_modules/@inquirer/core/dist/esm/lib/Separator.js +21 -0
  658. package/node_modules/@inquirer/core/dist/esm/lib/create-prompt.d.ts +4 -0
  659. package/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js +117 -0
  660. package/node_modules/@inquirer/core/dist/esm/lib/errors.d.ts +20 -0
  661. package/node_modules/@inquirer/core/dist/esm/lib/errors.js +21 -0
  662. package/node_modules/@inquirer/core/dist/esm/lib/hook-engine.d.ts +23 -0
  663. package/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js +110 -0
  664. package/node_modules/@inquirer/core/dist/esm/lib/key.d.ts +12 -0
  665. package/node_modules/@inquirer/core/dist/esm/lib/key.js +19 -0
  666. package/node_modules/@inquirer/core/dist/esm/lib/make-theme.d.ts +3 -0
  667. package/node_modules/@inquirer/core/dist/esm/lib/make-theme.js +30 -0
  668. package/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.d.ts +16 -0
  669. package/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js +121 -0
  670. package/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.d.ts +7 -0
  671. package/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js +14 -0
  672. package/node_modules/@inquirer/core/dist/esm/lib/screen-manager.d.ts +14 -0
  673. package/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js +79 -0
  674. package/node_modules/@inquirer/core/dist/esm/lib/theme.d.ts +155 -0
  675. package/node_modules/@inquirer/core/dist/esm/lib/theme.js +21 -0
  676. package/node_modules/@inquirer/core/dist/esm/lib/use-effect.d.ts +2 -0
  677. package/node_modules/@inquirer/core/dist/esm/lib/use-effect.js +11 -0
  678. package/node_modules/@inquirer/core/dist/esm/lib/use-keypress.d.ts +3 -0
  679. package/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js +20 -0
  680. package/node_modules/@inquirer/core/dist/esm/lib/use-memo.d.ts +1 -0
  681. package/node_modules/@inquirer/core/dist/esm/lib/use-memo.js +14 -0
  682. package/node_modules/@inquirer/core/dist/esm/lib/use-prefix.d.ts +5 -0
  683. package/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js +35 -0
  684. package/node_modules/@inquirer/core/dist/esm/lib/use-ref.d.ts +6 -0
  685. package/node_modules/@inquirer/core/dist/esm/lib/use-ref.js +4 -0
  686. package/node_modules/@inquirer/core/dist/esm/lib/use-state.d.ts +4 -0
  687. package/node_modules/@inquirer/core/dist/esm/lib/use-state.js +20 -0
  688. package/node_modules/@inquirer/core/dist/esm/lib/utils.d.ts +13 -0
  689. package/node_modules/@inquirer/core/dist/esm/lib/utils.js +25 -0
  690. package/node_modules/@inquirer/core/dist/esm/package.json +3 -0
  691. package/node_modules/@inquirer/core/package.json +119 -0
  692. package/node_modules/@inquirer/editor/LICENSE +22 -0
  693. package/node_modules/@inquirer/editor/README.md +101 -0
  694. package/node_modules/@inquirer/editor/dist/commonjs/index.d.ts +17 -0
  695. package/node_modules/@inquirer/editor/dist/commonjs/index.js +76 -0
  696. package/node_modules/@inquirer/editor/dist/commonjs/package.json +3 -0
  697. package/node_modules/@inquirer/editor/dist/esm/index.d.ts +17 -0
  698. package/node_modules/@inquirer/editor/dist/esm/index.js +74 -0
  699. package/node_modules/@inquirer/editor/dist/esm/package.json +3 -0
  700. package/node_modules/@inquirer/editor/package.json +111 -0
  701. package/node_modules/@inquirer/expand/LICENSE +22 -0
  702. package/node_modules/@inquirer/expand/README.md +141 -0
  703. package/node_modules/@inquirer/expand/dist/commonjs/index.d.ts +25 -0
  704. package/node_modules/@inquirer/expand/dist/commonjs/index.js +115 -0
  705. package/node_modules/@inquirer/expand/dist/commonjs/package.json +3 -0
  706. package/node_modules/@inquirer/expand/dist/esm/index.d.ts +25 -0
  707. package/node_modules/@inquirer/expand/dist/esm/index.js +108 -0
  708. package/node_modules/@inquirer/expand/dist/esm/package.json +3 -0
  709. package/node_modules/@inquirer/expand/package.json +111 -0
  710. package/node_modules/@inquirer/external-editor/LICENSE +22 -0
  711. package/node_modules/@inquirer/external-editor/README.md +154 -0
  712. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.d.ts +10 -0
  713. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.js +17 -0
  714. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.d.ts +10 -0
  715. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.js +17 -0
  716. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.d.ts +10 -0
  717. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.js +17 -0
  718. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.d.ts +10 -0
  719. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.js +17 -0
  720. package/node_modules/@inquirer/external-editor/dist/commonjs/index.d.ts +39 -0
  721. package/node_modules/@inquirer/external-editor/dist/commonjs/index.js +203 -0
  722. package/node_modules/@inquirer/external-editor/dist/commonjs/package.json +3 -0
  723. package/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.d.ts +10 -0
  724. package/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js +13 -0
  725. package/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.d.ts +10 -0
  726. package/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.js +13 -0
  727. package/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.d.ts +10 -0
  728. package/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.js +13 -0
  729. package/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.d.ts +10 -0
  730. package/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.js +13 -0
  731. package/node_modules/@inquirer/external-editor/dist/esm/index.d.ts +39 -0
  732. package/node_modules/@inquirer/external-editor/dist/esm/index.js +191 -0
  733. package/node_modules/@inquirer/external-editor/dist/esm/package.json +3 -0
  734. package/node_modules/@inquirer/external-editor/package.json +115 -0
  735. package/node_modules/@inquirer/figures/LICENSE +22 -0
  736. package/node_modules/@inquirer/figures/dist/commonjs/index.d.ts +275 -0
  737. package/node_modules/@inquirer/figures/dist/commonjs/index.js +321 -0
  738. package/node_modules/@inquirer/figures/dist/commonjs/package.json +3 -0
  739. package/node_modules/@inquirer/figures/dist/esm/index.d.ts +275 -0
  740. package/node_modules/@inquirer/figures/dist/esm/index.js +314 -0
  741. package/node_modules/@inquirer/figures/dist/esm/package.json +3 -0
  742. package/node_modules/@inquirer/figures/package.json +98 -0
  743. package/node_modules/@inquirer/input/LICENSE +22 -0
  744. package/node_modules/@inquirer/input/README.md +101 -0
  745. package/node_modules/@inquirer/input/dist/commonjs/index.d.ts +20 -0
  746. package/node_modules/@inquirer/input/dist/commonjs/index.js +99 -0
  747. package/node_modules/@inquirer/input/dist/commonjs/package.json +3 -0
  748. package/node_modules/@inquirer/input/dist/esm/index.d.ts +20 -0
  749. package/node_modules/@inquirer/input/dist/esm/index.js +97 -0
  750. package/node_modules/@inquirer/input/dist/esm/package.json +3 -0
  751. package/node_modules/@inquirer/input/package.json +110 -0
  752. package/node_modules/@inquirer/number/LICENSE +22 -0
  753. package/node_modules/@inquirer/number/README.md +95 -0
  754. package/node_modules/@inquirer/number/dist/commonjs/index.d.ts +15 -0
  755. package/node_modules/@inquirer/number/dist/commonjs/index.js +96 -0
  756. package/node_modules/@inquirer/number/dist/commonjs/package.json +3 -0
  757. package/node_modules/@inquirer/number/dist/esm/index.d.ts +15 -0
  758. package/node_modules/@inquirer/number/dist/esm/index.js +94 -0
  759. package/node_modules/@inquirer/number/dist/esm/package.json +3 -0
  760. package/node_modules/@inquirer/number/package.json +110 -0
  761. package/node_modules/@inquirer/password/LICENSE +22 -0
  762. package/node_modules/@inquirer/password/README.md +93 -0
  763. package/node_modules/@inquirer/password/dist/commonjs/index.d.ts +10 -0
  764. package/node_modules/@inquirer/password/dist/commonjs/index.js +57 -0
  765. package/node_modules/@inquirer/password/dist/commonjs/package.json +3 -0
  766. package/node_modules/@inquirer/password/dist/esm/index.d.ts +10 -0
  767. package/node_modules/@inquirer/password/dist/esm/index.js +55 -0
  768. package/node_modules/@inquirer/password/dist/esm/package.json +3 -0
  769. package/node_modules/@inquirer/password/package.json +111 -0
  770. package/node_modules/@inquirer/prompts/LICENSE +22 -0
  771. package/node_modules/@inquirer/prompts/README.md +528 -0
  772. package/node_modules/@inquirer/prompts/dist/commonjs/index.d.ts +10 -0
  773. package/node_modules/@inquirer/prompts/dist/commonjs/index.js +27 -0
  774. package/node_modules/@inquirer/prompts/dist/commonjs/package.json +3 -0
  775. package/node_modules/@inquirer/prompts/dist/esm/index.d.ts +10 -0
  776. package/node_modules/@inquirer/prompts/dist/esm/index.js +10 -0
  777. package/node_modules/@inquirer/prompts/dist/esm/package.json +3 -0
  778. package/node_modules/@inquirer/prompts/package.json +120 -0
  779. package/node_modules/@inquirer/rawlist/LICENSE +22 -0
  780. package/node_modules/@inquirer/rawlist/README.md +124 -0
  781. package/node_modules/@inquirer/rawlist/dist/commonjs/index.d.ts +18 -0
  782. package/node_modules/@inquirer/rawlist/dist/commonjs/index.js +132 -0
  783. package/node_modules/@inquirer/rawlist/dist/commonjs/package.json +3 -0
  784. package/node_modules/@inquirer/rawlist/dist/esm/index.d.ts +18 -0
  785. package/node_modules/@inquirer/rawlist/dist/esm/index.js +125 -0
  786. package/node_modules/@inquirer/rawlist/dist/esm/package.json +3 -0
  787. package/node_modules/@inquirer/rawlist/package.json +111 -0
  788. package/node_modules/@inquirer/search/LICENSE +22 -0
  789. package/node_modules/@inquirer/search/README.md +212 -0
  790. package/node_modules/@inquirer/search/dist/commonjs/index.d.ts +40 -0
  791. package/node_modules/@inquirer/search/dist/commonjs/index.js +206 -0
  792. package/node_modules/@inquirer/search/dist/commonjs/package.json +3 -0
  793. package/node_modules/@inquirer/search/dist/esm/index.d.ts +40 -0
  794. package/node_modules/@inquirer/search/dist/esm/index.js +199 -0
  795. package/node_modules/@inquirer/search/dist/esm/package.json +3 -0
  796. package/node_modules/@inquirer/search/package.json +112 -0
  797. package/node_modules/@inquirer/select/LICENSE +22 -0
  798. package/node_modules/@inquirer/select/README.md +181 -0
  799. package/node_modules/@inquirer/select/dist/commonjs/index.d.ts +40 -0
  800. package/node_modules/@inquirer/select/dist/commonjs/index.js +194 -0
  801. package/node_modules/@inquirer/select/dist/commonjs/package.json +3 -0
  802. package/node_modules/@inquirer/select/dist/esm/index.d.ts +40 -0
  803. package/node_modules/@inquirer/select/dist/esm/index.js +187 -0
  804. package/node_modules/@inquirer/select/dist/esm/package.json +3 -0
  805. package/node_modules/@inquirer/select/package.json +113 -0
  806. package/node_modules/@inquirer/type/LICENSE +22 -0
  807. package/node_modules/@inquirer/type/dist/commonjs/index.d.ts +2 -0
  808. package/node_modules/@inquirer/type/dist/commonjs/index.js +18 -0
  809. package/node_modules/@inquirer/type/dist/commonjs/inquirer.d.ts +38 -0
  810. package/node_modules/@inquirer/type/dist/commonjs/inquirer.js +2 -0
  811. package/node_modules/@inquirer/type/dist/commonjs/package.json +3 -0
  812. package/node_modules/@inquirer/type/dist/commonjs/utils.d.ts +29 -0
  813. package/node_modules/@inquirer/type/dist/commonjs/utils.js +3 -0
  814. package/node_modules/@inquirer/type/dist/esm/index.d.ts +2 -0
  815. package/node_modules/@inquirer/type/dist/esm/index.js +2 -0
  816. package/node_modules/@inquirer/type/dist/esm/inquirer.d.ts +38 -0
  817. package/node_modules/@inquirer/type/dist/esm/inquirer.js +1 -0
  818. package/node_modules/@inquirer/type/dist/esm/package.json +3 -0
  819. package/node_modules/@inquirer/type/dist/esm/utils.d.ts +29 -0
  820. package/node_modules/@inquirer/type/dist/esm/utils.js +2 -0
  821. package/node_modules/@inquirer/type/package.json +106 -0
  822. package/node_modules/ansi-regex/index.d.ts +37 -0
  823. package/node_modules/ansi-regex/index.js +10 -0
  824. package/node_modules/ansi-regex/license +9 -0
  825. package/node_modules/ansi-regex/package.json +55 -0
  826. package/node_modules/ansi-regex/readme.md +78 -0
  827. package/node_modules/ansi-styles/index.d.ts +345 -0
  828. package/node_modules/ansi-styles/index.js +163 -0
  829. package/node_modules/ansi-styles/license +9 -0
  830. package/node_modules/ansi-styles/package.json +56 -0
  831. package/node_modules/ansi-styles/readme.md +152 -0
  832. package/node_modules/chardet/LICENSE +19 -0
  833. package/node_modules/chardet/README.md +135 -0
  834. package/node_modules/chardet/lib/encoding/ascii.d.ts +6 -0
  835. package/node_modules/chardet/lib/encoding/ascii.js +23 -0
  836. package/node_modules/chardet/lib/encoding/ascii.js.map +1 -0
  837. package/node_modules/chardet/lib/encoding/index.d.ts +14 -0
  838. package/node_modules/chardet/lib/encoding/index.js +3 -0
  839. package/node_modules/chardet/lib/encoding/index.js.map +1 -0
  840. package/node_modules/chardet/lib/encoding/iso2022.d.ts +23 -0
  841. package/node_modules/chardet/lib/encoding/iso2022.js +114 -0
  842. package/node_modules/chardet/lib/encoding/iso2022.js.map +1 -0
  843. package/node_modules/chardet/lib/encoding/mbcs.d.ts +50 -0
  844. package/node_modules/chardet/lib/encoding/mbcs.js +347 -0
  845. package/node_modules/chardet/lib/encoding/mbcs.js.map +1 -0
  846. package/node_modules/chardet/lib/encoding/sbcs.d.ts +94 -0
  847. package/node_modules/chardet/lib/encoding/sbcs.js +935 -0
  848. package/node_modules/chardet/lib/encoding/sbcs.js.map +1 -0
  849. package/node_modules/chardet/lib/encoding/unicode.d.ts +27 -0
  850. package/node_modules/chardet/lib/encoding/unicode.js +109 -0
  851. package/node_modules/chardet/lib/encoding/unicode.js.map +1 -0
  852. package/node_modules/chardet/lib/encoding/utf8.d.ts +6 -0
  853. package/node_modules/chardet/lib/encoding/utf8.js +72 -0
  854. package/node_modules/chardet/lib/encoding/utf8.js.map +1 -0
  855. package/node_modules/chardet/lib/fs/browser.d.ts +2 -0
  856. package/node_modules/chardet/lib/fs/browser.js +6 -0
  857. package/node_modules/chardet/lib/fs/browser.js.map +1 -0
  858. package/node_modules/chardet/lib/fs/node.d.ts +2 -0
  859. package/node_modules/chardet/lib/fs/node.js +11 -0
  860. package/node_modules/chardet/lib/fs/node.js.map +1 -0
  861. package/node_modules/chardet/lib/index.d.ts +20 -0
  862. package/node_modules/chardet/lib/index.js +177 -0
  863. package/node_modules/chardet/lib/index.js.map +1 -0
  864. package/node_modules/chardet/lib/match.d.ts +9 -0
  865. package/node_modules/chardet/lib/match.js +8 -0
  866. package/node_modules/chardet/lib/match.js.map +1 -0
  867. package/node_modules/chardet/lib/utils.d.ts +1 -0
  868. package/node_modules/chardet/lib/utils.js +10 -0
  869. package/node_modules/chardet/lib/utils.js.map +1 -0
  870. package/node_modules/chardet/package.json +100 -0
  871. package/node_modules/cli-width/LICENSE +13 -0
  872. package/node_modules/cli-width/README.md +71 -0
  873. package/node_modules/cli-width/index.d.ts +13 -0
  874. package/node_modules/cli-width/index.js +49 -0
  875. package/node_modules/cli-width/package.json +40 -0
  876. package/node_modules/color-convert/CHANGELOG.md +54 -0
  877. package/node_modules/color-convert/LICENSE +21 -0
  878. package/node_modules/color-convert/README.md +68 -0
  879. package/node_modules/color-convert/conversions.js +839 -0
  880. package/node_modules/color-convert/index.js +81 -0
  881. package/node_modules/color-convert/package.json +48 -0
  882. package/node_modules/color-convert/route.js +97 -0
  883. package/node_modules/color-name/LICENSE +8 -0
  884. package/node_modules/color-name/README.md +11 -0
  885. package/node_modules/color-name/index.js +152 -0
  886. package/node_modules/color-name/package.json +28 -0
  887. package/node_modules/commander/LICENSE +22 -0
  888. package/node_modules/commander/Readme.md +1176 -0
  889. package/node_modules/commander/esm.mjs +16 -0
  890. package/node_modules/commander/index.js +24 -0
  891. package/node_modules/commander/lib/argument.js +150 -0
  892. package/node_modules/commander/lib/command.js +2777 -0
  893. package/node_modules/commander/lib/error.js +39 -0
  894. package/node_modules/commander/lib/help.js +747 -0
  895. package/node_modules/commander/lib/option.js +380 -0
  896. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  897. package/node_modules/commander/package-support.json +19 -0
  898. package/node_modules/commander/package.json +82 -0
  899. package/node_modules/commander/typings/esm.d.mts +3 -0
  900. package/node_modules/commander/typings/index.d.ts +1113 -0
  901. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  902. package/node_modules/emoji-regex/README.md +73 -0
  903. package/node_modules/emoji-regex/es2015/index.js +6 -0
  904. package/node_modules/emoji-regex/es2015/text.js +6 -0
  905. package/node_modules/emoji-regex/index.d.ts +23 -0
  906. package/node_modules/emoji-regex/index.js +6 -0
  907. package/node_modules/emoji-regex/package.json +50 -0
  908. package/node_modules/emoji-regex/text.js +6 -0
  909. package/node_modules/iconv-lite/LICENSE +21 -0
  910. package/node_modules/iconv-lite/README.md +138 -0
  911. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  912. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  913. package/node_modules/iconv-lite/encodings/index.js +23 -0
  914. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  915. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  916. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  917. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  918. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  919. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  920. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  921. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  922. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  923. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  924. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  925. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  926. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  927. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  928. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  929. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  930. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  931. package/node_modules/iconv-lite/lib/index.d.ts +129 -0
  932. package/node_modules/iconv-lite/lib/index.js +182 -0
  933. package/node_modules/iconv-lite/lib/streams.js +105 -0
  934. package/node_modules/iconv-lite/package.json +70 -0
  935. package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
  936. package/node_modules/ignore/LICENSE-MIT +21 -0
  937. package/node_modules/ignore/README.md +501 -0
  938. package/node_modules/ignore/index.d.ts +81 -0
  939. package/node_modules/ignore/index.js +1566 -0
  940. package/node_modules/ignore/legacy.js +1346 -0
  941. package/node_modules/ignore/package.json +93 -0
  942. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  943. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  944. package/node_modules/is-fullwidth-code-point/license +9 -0
  945. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  946. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  947. package/node_modules/jsonc-parser/CHANGELOG.md +76 -0
  948. package/node_modules/jsonc-parser/LICENSE.md +21 -0
  949. package/node_modules/jsonc-parser/README.md +364 -0
  950. package/node_modules/jsonc-parser/SECURITY.md +41 -0
  951. package/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
  952. package/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
  953. package/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
  954. package/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
  955. package/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
  956. package/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
  957. package/node_modules/jsonc-parser/lib/esm/main.js +178 -0
  958. package/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
  959. package/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
  960. package/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
  961. package/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
  962. package/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
  963. package/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
  964. package/node_modules/jsonc-parser/lib/umd/main.js +194 -0
  965. package/node_modules/jsonc-parser/package.json +37 -0
  966. package/node_modules/lodash/LICENSE +47 -0
  967. package/node_modules/lodash/README.md +39 -0
  968. package/node_modules/lodash/_DataView.js +7 -0
  969. package/node_modules/lodash/_Hash.js +32 -0
  970. package/node_modules/lodash/_LazyWrapper.js +28 -0
  971. package/node_modules/lodash/_ListCache.js +32 -0
  972. package/node_modules/lodash/_LodashWrapper.js +22 -0
  973. package/node_modules/lodash/_Map.js +7 -0
  974. package/node_modules/lodash/_MapCache.js +32 -0
  975. package/node_modules/lodash/_Promise.js +7 -0
  976. package/node_modules/lodash/_Set.js +7 -0
  977. package/node_modules/lodash/_SetCache.js +27 -0
  978. package/node_modules/lodash/_Stack.js +27 -0
  979. package/node_modules/lodash/_Symbol.js +6 -0
  980. package/node_modules/lodash/_Uint8Array.js +6 -0
  981. package/node_modules/lodash/_WeakMap.js +7 -0
  982. package/node_modules/lodash/_apply.js +21 -0
  983. package/node_modules/lodash/_arrayAggregator.js +22 -0
  984. package/node_modules/lodash/_arrayEach.js +22 -0
  985. package/node_modules/lodash/_arrayEachRight.js +21 -0
  986. package/node_modules/lodash/_arrayEvery.js +23 -0
  987. package/node_modules/lodash/_arrayFilter.js +25 -0
  988. package/node_modules/lodash/_arrayIncludes.js +17 -0
  989. package/node_modules/lodash/_arrayIncludesWith.js +22 -0
  990. package/node_modules/lodash/_arrayLikeKeys.js +49 -0
  991. package/node_modules/lodash/_arrayMap.js +21 -0
  992. package/node_modules/lodash/_arrayPush.js +20 -0
  993. package/node_modules/lodash/_arrayReduce.js +26 -0
  994. package/node_modules/lodash/_arrayReduceRight.js +24 -0
  995. package/node_modules/lodash/_arraySample.js +15 -0
  996. package/node_modules/lodash/_arraySampleSize.js +17 -0
  997. package/node_modules/lodash/_arrayShuffle.js +15 -0
  998. package/node_modules/lodash/_arraySome.js +23 -0
  999. package/node_modules/lodash/_asciiSize.js +12 -0
  1000. package/node_modules/lodash/_asciiToArray.js +12 -0
  1001. package/node_modules/lodash/_asciiWords.js +15 -0
  1002. package/node_modules/lodash/_assignMergeValue.js +20 -0
  1003. package/node_modules/lodash/_assignValue.js +28 -0
  1004. package/node_modules/lodash/_assocIndexOf.js +21 -0
  1005. package/node_modules/lodash/_baseAggregator.js +21 -0
  1006. package/node_modules/lodash/_baseAssign.js +17 -0
  1007. package/node_modules/lodash/_baseAssignIn.js +17 -0
  1008. package/node_modules/lodash/_baseAssignValue.js +25 -0
  1009. package/node_modules/lodash/_baseAt.js +23 -0
  1010. package/node_modules/lodash/_baseClamp.js +22 -0
  1011. package/node_modules/lodash/_baseClone.js +166 -0
  1012. package/node_modules/lodash/_baseConforms.js +18 -0
  1013. package/node_modules/lodash/_baseConformsTo.js +27 -0
  1014. package/node_modules/lodash/_baseCreate.js +30 -0
  1015. package/node_modules/lodash/_baseDelay.js +21 -0
  1016. package/node_modules/lodash/_baseDifference.js +67 -0
  1017. package/node_modules/lodash/_baseEach.js +14 -0
  1018. package/node_modules/lodash/_baseEachRight.js +14 -0
  1019. package/node_modules/lodash/_baseEvery.js +21 -0
  1020. package/node_modules/lodash/_baseExtremum.js +32 -0
  1021. package/node_modules/lodash/_baseFill.js +32 -0
  1022. package/node_modules/lodash/_baseFilter.js +21 -0
  1023. package/node_modules/lodash/_baseFindIndex.js +24 -0
  1024. package/node_modules/lodash/_baseFindKey.js +23 -0
  1025. package/node_modules/lodash/_baseFlatten.js +38 -0
  1026. package/node_modules/lodash/_baseFor.js +16 -0
  1027. package/node_modules/lodash/_baseForOwn.js +16 -0
  1028. package/node_modules/lodash/_baseForOwnRight.js +16 -0
  1029. package/node_modules/lodash/_baseForRight.js +15 -0
  1030. package/node_modules/lodash/_baseFunctions.js +19 -0
  1031. package/node_modules/lodash/_baseGet.js +24 -0
  1032. package/node_modules/lodash/_baseGetAllKeys.js +20 -0
  1033. package/node_modules/lodash/_baseGetTag.js +28 -0
  1034. package/node_modules/lodash/_baseGt.js +14 -0
  1035. package/node_modules/lodash/_baseHas.js +19 -0
  1036. package/node_modules/lodash/_baseHasIn.js +13 -0
  1037. package/node_modules/lodash/_baseInRange.js +18 -0
  1038. package/node_modules/lodash/_baseIndexOf.js +20 -0
  1039. package/node_modules/lodash/_baseIndexOfWith.js +23 -0
  1040. package/node_modules/lodash/_baseIntersection.js +74 -0
  1041. package/node_modules/lodash/_baseInverter.js +21 -0
  1042. package/node_modules/lodash/_baseInvoke.js +24 -0
  1043. package/node_modules/lodash/_baseIsArguments.js +18 -0
  1044. package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  1045. package/node_modules/lodash/_baseIsDate.js +18 -0
  1046. package/node_modules/lodash/_baseIsEqual.js +28 -0
  1047. package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  1048. package/node_modules/lodash/_baseIsMap.js +18 -0
  1049. package/node_modules/lodash/_baseIsMatch.js +62 -0
  1050. package/node_modules/lodash/_baseIsNaN.js +12 -0
  1051. package/node_modules/lodash/_baseIsNative.js +47 -0
  1052. package/node_modules/lodash/_baseIsRegExp.js +18 -0
  1053. package/node_modules/lodash/_baseIsSet.js +18 -0
  1054. package/node_modules/lodash/_baseIsTypedArray.js +60 -0
  1055. package/node_modules/lodash/_baseIteratee.js +31 -0
  1056. package/node_modules/lodash/_baseKeys.js +30 -0
  1057. package/node_modules/lodash/_baseKeysIn.js +33 -0
  1058. package/node_modules/lodash/_baseLodash.js +10 -0
  1059. package/node_modules/lodash/_baseLt.js +14 -0
  1060. package/node_modules/lodash/_baseMap.js +22 -0
  1061. package/node_modules/lodash/_baseMatches.js +22 -0
  1062. package/node_modules/lodash/_baseMatchesProperty.js +33 -0
  1063. package/node_modules/lodash/_baseMean.js +20 -0
  1064. package/node_modules/lodash/_baseMerge.js +42 -0
  1065. package/node_modules/lodash/_baseMergeDeep.js +94 -0
  1066. package/node_modules/lodash/_baseNth.js +20 -0
  1067. package/node_modules/lodash/_baseOrderBy.js +49 -0
  1068. package/node_modules/lodash/_basePick.js +19 -0
  1069. package/node_modules/lodash/_basePickBy.js +30 -0
  1070. package/node_modules/lodash/_baseProperty.js +14 -0
  1071. package/node_modules/lodash/_basePropertyDeep.js +16 -0
  1072. package/node_modules/lodash/_basePropertyOf.js +14 -0
  1073. package/node_modules/lodash/_basePullAll.js +51 -0
  1074. package/node_modules/lodash/_basePullAt.js +37 -0
  1075. package/node_modules/lodash/_baseRandom.js +18 -0
  1076. package/node_modules/lodash/_baseRange.js +28 -0
  1077. package/node_modules/lodash/_baseReduce.js +23 -0
  1078. package/node_modules/lodash/_baseRepeat.js +35 -0
  1079. package/node_modules/lodash/_baseRest.js +17 -0
  1080. package/node_modules/lodash/_baseSample.js +15 -0
  1081. package/node_modules/lodash/_baseSampleSize.js +18 -0
  1082. package/node_modules/lodash/_baseSet.js +51 -0
  1083. package/node_modules/lodash/_baseSetData.js +17 -0
  1084. package/node_modules/lodash/_baseSetToString.js +22 -0
  1085. package/node_modules/lodash/_baseShuffle.js +15 -0
  1086. package/node_modules/lodash/_baseSlice.js +31 -0
  1087. package/node_modules/lodash/_baseSome.js +22 -0
  1088. package/node_modules/lodash/_baseSortBy.js +21 -0
  1089. package/node_modules/lodash/_baseSortedIndex.js +42 -0
  1090. package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  1091. package/node_modules/lodash/_baseSortedUniq.js +30 -0
  1092. package/node_modules/lodash/_baseSum.js +24 -0
  1093. package/node_modules/lodash/_baseTimes.js +20 -0
  1094. package/node_modules/lodash/_baseToNumber.js +24 -0
  1095. package/node_modules/lodash/_baseToPairs.js +18 -0
  1096. package/node_modules/lodash/_baseToString.js +37 -0
  1097. package/node_modules/lodash/_baseTrim.js +19 -0
  1098. package/node_modules/lodash/_baseUnary.js +14 -0
  1099. package/node_modules/lodash/_baseUniq.js +72 -0
  1100. package/node_modules/lodash/_baseUnset.js +52 -0
  1101. package/node_modules/lodash/_baseUpdate.js +18 -0
  1102. package/node_modules/lodash/_baseValues.js +19 -0
  1103. package/node_modules/lodash/_baseWhile.js +26 -0
  1104. package/node_modules/lodash/_baseWrapperValue.js +25 -0
  1105. package/node_modules/lodash/_baseXor.js +36 -0
  1106. package/node_modules/lodash/_baseZipObject.js +23 -0
  1107. package/node_modules/lodash/_cacheHas.js +13 -0
  1108. package/node_modules/lodash/_castArrayLikeObject.js +14 -0
  1109. package/node_modules/lodash/_castFunction.js +14 -0
  1110. package/node_modules/lodash/_castPath.js +21 -0
  1111. package/node_modules/lodash/_castRest.js +14 -0
  1112. package/node_modules/lodash/_castSlice.js +18 -0
  1113. package/node_modules/lodash/_charsEndIndex.js +19 -0
  1114. package/node_modules/lodash/_charsStartIndex.js +20 -0
  1115. package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  1116. package/node_modules/lodash/_cloneBuffer.js +35 -0
  1117. package/node_modules/lodash/_cloneDataView.js +16 -0
  1118. package/node_modules/lodash/_cloneRegExp.js +17 -0
  1119. package/node_modules/lodash/_cloneSymbol.js +18 -0
  1120. package/node_modules/lodash/_cloneTypedArray.js +16 -0
  1121. package/node_modules/lodash/_compareAscending.js +41 -0
  1122. package/node_modules/lodash/_compareMultiple.js +44 -0
  1123. package/node_modules/lodash/_composeArgs.js +39 -0
  1124. package/node_modules/lodash/_composeArgsRight.js +41 -0
  1125. package/node_modules/lodash/_copyArray.js +20 -0
  1126. package/node_modules/lodash/_copyObject.js +40 -0
  1127. package/node_modules/lodash/_copySymbols.js +16 -0
  1128. package/node_modules/lodash/_copySymbolsIn.js +16 -0
  1129. package/node_modules/lodash/_coreJsData.js +6 -0
  1130. package/node_modules/lodash/_countHolders.js +21 -0
  1131. package/node_modules/lodash/_createAggregator.js +23 -0
  1132. package/node_modules/lodash/_createAssigner.js +37 -0
  1133. package/node_modules/lodash/_createBaseEach.js +32 -0
  1134. package/node_modules/lodash/_createBaseFor.js +25 -0
  1135. package/node_modules/lodash/_createBind.js +28 -0
  1136. package/node_modules/lodash/_createCaseFirst.js +33 -0
  1137. package/node_modules/lodash/_createCompounder.js +24 -0
  1138. package/node_modules/lodash/_createCtor.js +37 -0
  1139. package/node_modules/lodash/_createCurry.js +46 -0
  1140. package/node_modules/lodash/_createFind.js +25 -0
  1141. package/node_modules/lodash/_createFlow.js +78 -0
  1142. package/node_modules/lodash/_createHybrid.js +92 -0
  1143. package/node_modules/lodash/_createInverter.js +17 -0
  1144. package/node_modules/lodash/_createMathOperation.js +38 -0
  1145. package/node_modules/lodash/_createOver.js +27 -0
  1146. package/node_modules/lodash/_createPadding.js +33 -0
  1147. package/node_modules/lodash/_createPartial.js +43 -0
  1148. package/node_modules/lodash/_createRange.js +30 -0
  1149. package/node_modules/lodash/_createRecurry.js +56 -0
  1150. package/node_modules/lodash/_createRelationalOperation.js +20 -0
  1151. package/node_modules/lodash/_createRound.js +35 -0
  1152. package/node_modules/lodash/_createSet.js +19 -0
  1153. package/node_modules/lodash/_createToPairs.js +30 -0
  1154. package/node_modules/lodash/_createWrap.js +106 -0
  1155. package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  1156. package/node_modules/lodash/_customDefaultsMerge.js +28 -0
  1157. package/node_modules/lodash/_customOmitClone.js +16 -0
  1158. package/node_modules/lodash/_deburrLetter.js +71 -0
  1159. package/node_modules/lodash/_defineProperty.js +11 -0
  1160. package/node_modules/lodash/_equalArrays.js +84 -0
  1161. package/node_modules/lodash/_equalByTag.js +112 -0
  1162. package/node_modules/lodash/_equalObjects.js +90 -0
  1163. package/node_modules/lodash/_escapeHtmlChar.js +21 -0
  1164. package/node_modules/lodash/_escapeStringChar.js +22 -0
  1165. package/node_modules/lodash/_flatRest.js +16 -0
  1166. package/node_modules/lodash/_freeGlobal.js +4 -0
  1167. package/node_modules/lodash/_getAllKeys.js +16 -0
  1168. package/node_modules/lodash/_getAllKeysIn.js +17 -0
  1169. package/node_modules/lodash/_getData.js +15 -0
  1170. package/node_modules/lodash/_getFuncName.js +31 -0
  1171. package/node_modules/lodash/_getHolder.js +13 -0
  1172. package/node_modules/lodash/_getMapData.js +18 -0
  1173. package/node_modules/lodash/_getMatchData.js +24 -0
  1174. package/node_modules/lodash/_getNative.js +17 -0
  1175. package/node_modules/lodash/_getPrototype.js +6 -0
  1176. package/node_modules/lodash/_getRawTag.js +46 -0
  1177. package/node_modules/lodash/_getSymbols.js +30 -0
  1178. package/node_modules/lodash/_getSymbolsIn.js +25 -0
  1179. package/node_modules/lodash/_getTag.js +58 -0
  1180. package/node_modules/lodash/_getValue.js +13 -0
  1181. package/node_modules/lodash/_getView.js +33 -0
  1182. package/node_modules/lodash/_getWrapDetails.js +17 -0
  1183. package/node_modules/lodash/_hasPath.js +39 -0
  1184. package/node_modules/lodash/_hasUnicode.js +26 -0
  1185. package/node_modules/lodash/_hasUnicodeWord.js +15 -0
  1186. package/node_modules/lodash/_hashClear.js +15 -0
  1187. package/node_modules/lodash/_hashDelete.js +17 -0
  1188. package/node_modules/lodash/_hashGet.js +30 -0
  1189. package/node_modules/lodash/_hashHas.js +23 -0
  1190. package/node_modules/lodash/_hashSet.js +23 -0
  1191. package/node_modules/lodash/_initCloneArray.js +26 -0
  1192. package/node_modules/lodash/_initCloneByTag.js +77 -0
  1193. package/node_modules/lodash/_initCloneObject.js +18 -0
  1194. package/node_modules/lodash/_insertWrapDetails.js +23 -0
  1195. package/node_modules/lodash/_isFlattenable.js +20 -0
  1196. package/node_modules/lodash/_isIndex.js +25 -0
  1197. package/node_modules/lodash/_isIterateeCall.js +30 -0
  1198. package/node_modules/lodash/_isKey.js +29 -0
  1199. package/node_modules/lodash/_isKeyable.js +15 -0
  1200. package/node_modules/lodash/_isLaziable.js +28 -0
  1201. package/node_modules/lodash/_isMaskable.js +14 -0
  1202. package/node_modules/lodash/_isMasked.js +20 -0
  1203. package/node_modules/lodash/_isPrototype.js +18 -0
  1204. package/node_modules/lodash/_isStrictComparable.js +15 -0
  1205. package/node_modules/lodash/_iteratorToArray.js +18 -0
  1206. package/node_modules/lodash/_lazyClone.js +23 -0
  1207. package/node_modules/lodash/_lazyReverse.js +23 -0
  1208. package/node_modules/lodash/_lazyValue.js +69 -0
  1209. package/node_modules/lodash/_listCacheClear.js +13 -0
  1210. package/node_modules/lodash/_listCacheDelete.js +35 -0
  1211. package/node_modules/lodash/_listCacheGet.js +19 -0
  1212. package/node_modules/lodash/_listCacheHas.js +16 -0
  1213. package/node_modules/lodash/_listCacheSet.js +26 -0
  1214. package/node_modules/lodash/_mapCacheClear.js +21 -0
  1215. package/node_modules/lodash/_mapCacheDelete.js +18 -0
  1216. package/node_modules/lodash/_mapCacheGet.js +16 -0
  1217. package/node_modules/lodash/_mapCacheHas.js +16 -0
  1218. package/node_modules/lodash/_mapCacheSet.js +22 -0
  1219. package/node_modules/lodash/_mapToArray.js +18 -0
  1220. package/node_modules/lodash/_matchesStrictComparable.js +20 -0
  1221. package/node_modules/lodash/_memoizeCapped.js +26 -0
  1222. package/node_modules/lodash/_mergeData.js +90 -0
  1223. package/node_modules/lodash/_metaMap.js +6 -0
  1224. package/node_modules/lodash/_nativeCreate.js +6 -0
  1225. package/node_modules/lodash/_nativeKeys.js +6 -0
  1226. package/node_modules/lodash/_nativeKeysIn.js +20 -0
  1227. package/node_modules/lodash/_nodeUtil.js +30 -0
  1228. package/node_modules/lodash/_objectToString.js +22 -0
  1229. package/node_modules/lodash/_overArg.js +15 -0
  1230. package/node_modules/lodash/_overRest.js +36 -0
  1231. package/node_modules/lodash/_parent.js +16 -0
  1232. package/node_modules/lodash/_reEscape.js +4 -0
  1233. package/node_modules/lodash/_reEvaluate.js +4 -0
  1234. package/node_modules/lodash/_reInterpolate.js +4 -0
  1235. package/node_modules/lodash/_realNames.js +4 -0
  1236. package/node_modules/lodash/_reorder.js +29 -0
  1237. package/node_modules/lodash/_replaceHolders.js +29 -0
  1238. package/node_modules/lodash/_root.js +9 -0
  1239. package/node_modules/lodash/_safeGet.js +21 -0
  1240. package/node_modules/lodash/_setCacheAdd.js +19 -0
  1241. package/node_modules/lodash/_setCacheHas.js +14 -0
  1242. package/node_modules/lodash/_setData.js +20 -0
  1243. package/node_modules/lodash/_setToArray.js +18 -0
  1244. package/node_modules/lodash/_setToPairs.js +18 -0
  1245. package/node_modules/lodash/_setToString.js +14 -0
  1246. package/node_modules/lodash/_setWrapToString.js +21 -0
  1247. package/node_modules/lodash/_shortOut.js +37 -0
  1248. package/node_modules/lodash/_shuffleSelf.js +28 -0
  1249. package/node_modules/lodash/_stackClear.js +15 -0
  1250. package/node_modules/lodash/_stackDelete.js +18 -0
  1251. package/node_modules/lodash/_stackGet.js +14 -0
  1252. package/node_modules/lodash/_stackHas.js +14 -0
  1253. package/node_modules/lodash/_stackSet.js +34 -0
  1254. package/node_modules/lodash/_strictIndexOf.js +23 -0
  1255. package/node_modules/lodash/_strictLastIndexOf.js +21 -0
  1256. package/node_modules/lodash/_stringSize.js +18 -0
  1257. package/node_modules/lodash/_stringToArray.js +18 -0
  1258. package/node_modules/lodash/_stringToPath.js +27 -0
  1259. package/node_modules/lodash/_toKey.js +21 -0
  1260. package/node_modules/lodash/_toSource.js +26 -0
  1261. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  1262. package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  1263. package/node_modules/lodash/_unicodeSize.js +44 -0
  1264. package/node_modules/lodash/_unicodeToArray.js +40 -0
  1265. package/node_modules/lodash/_unicodeWords.js +69 -0
  1266. package/node_modules/lodash/_updateWrapDetails.js +46 -0
  1267. package/node_modules/lodash/_wrapperClone.js +23 -0
  1268. package/node_modules/lodash/add.js +22 -0
  1269. package/node_modules/lodash/after.js +42 -0
  1270. package/node_modules/lodash/array.js +67 -0
  1271. package/node_modules/lodash/ary.js +29 -0
  1272. package/node_modules/lodash/assign.js +58 -0
  1273. package/node_modules/lodash/assignIn.js +40 -0
  1274. package/node_modules/lodash/assignInWith.js +38 -0
  1275. package/node_modules/lodash/assignWith.js +37 -0
  1276. package/node_modules/lodash/at.js +23 -0
  1277. package/node_modules/lodash/attempt.js +35 -0
  1278. package/node_modules/lodash/before.js +40 -0
  1279. package/node_modules/lodash/bind.js +57 -0
  1280. package/node_modules/lodash/bindAll.js +41 -0
  1281. package/node_modules/lodash/bindKey.js +68 -0
  1282. package/node_modules/lodash/camelCase.js +29 -0
  1283. package/node_modules/lodash/capitalize.js +23 -0
  1284. package/node_modules/lodash/castArray.js +44 -0
  1285. package/node_modules/lodash/ceil.js +26 -0
  1286. package/node_modules/lodash/chain.js +38 -0
  1287. package/node_modules/lodash/chunk.js +50 -0
  1288. package/node_modules/lodash/clamp.js +39 -0
  1289. package/node_modules/lodash/clone.js +36 -0
  1290. package/node_modules/lodash/cloneDeep.js +29 -0
  1291. package/node_modules/lodash/cloneDeepWith.js +40 -0
  1292. package/node_modules/lodash/cloneWith.js +42 -0
  1293. package/node_modules/lodash/collection.js +30 -0
  1294. package/node_modules/lodash/commit.js +33 -0
  1295. package/node_modules/lodash/compact.js +31 -0
  1296. package/node_modules/lodash/concat.js +43 -0
  1297. package/node_modules/lodash/cond.js +60 -0
  1298. package/node_modules/lodash/conforms.js +35 -0
  1299. package/node_modules/lodash/conformsTo.js +32 -0
  1300. package/node_modules/lodash/constant.js +26 -0
  1301. package/node_modules/lodash/core.js +3877 -0
  1302. package/node_modules/lodash/core.min.js +30 -0
  1303. package/node_modules/lodash/countBy.js +40 -0
  1304. package/node_modules/lodash/create.js +43 -0
  1305. package/node_modules/lodash/curry.js +57 -0
  1306. package/node_modules/lodash/curryRight.js +54 -0
  1307. package/node_modules/lodash/date.js +3 -0
  1308. package/node_modules/lodash/debounce.js +191 -0
  1309. package/node_modules/lodash/deburr.js +45 -0
  1310. package/node_modules/lodash/defaultTo.js +25 -0
  1311. package/node_modules/lodash/defaults.js +64 -0
  1312. package/node_modules/lodash/defaultsDeep.js +30 -0
  1313. package/node_modules/lodash/defer.js +26 -0
  1314. package/node_modules/lodash/delay.js +28 -0
  1315. package/node_modules/lodash/difference.js +33 -0
  1316. package/node_modules/lodash/differenceBy.js +44 -0
  1317. package/node_modules/lodash/differenceWith.js +40 -0
  1318. package/node_modules/lodash/divide.js +22 -0
  1319. package/node_modules/lodash/drop.js +38 -0
  1320. package/node_modules/lodash/dropRight.js +39 -0
  1321. package/node_modules/lodash/dropRightWhile.js +45 -0
  1322. package/node_modules/lodash/dropWhile.js +45 -0
  1323. package/node_modules/lodash/each.js +1 -0
  1324. package/node_modules/lodash/eachRight.js +1 -0
  1325. package/node_modules/lodash/endsWith.js +43 -0
  1326. package/node_modules/lodash/entries.js +1 -0
  1327. package/node_modules/lodash/entriesIn.js +1 -0
  1328. package/node_modules/lodash/eq.js +37 -0
  1329. package/node_modules/lodash/escape.js +43 -0
  1330. package/node_modules/lodash/escapeRegExp.js +32 -0
  1331. package/node_modules/lodash/every.js +56 -0
  1332. package/node_modules/lodash/extend.js +1 -0
  1333. package/node_modules/lodash/extendWith.js +1 -0
  1334. package/node_modules/lodash/fill.js +45 -0
  1335. package/node_modules/lodash/filter.js +52 -0
  1336. package/node_modules/lodash/find.js +42 -0
  1337. package/node_modules/lodash/findIndex.js +55 -0
  1338. package/node_modules/lodash/findKey.js +44 -0
  1339. package/node_modules/lodash/findLast.js +25 -0
  1340. package/node_modules/lodash/findLastIndex.js +59 -0
  1341. package/node_modules/lodash/findLastKey.js +44 -0
  1342. package/node_modules/lodash/first.js +1 -0
  1343. package/node_modules/lodash/flatMap.js +29 -0
  1344. package/node_modules/lodash/flatMapDeep.js +31 -0
  1345. package/node_modules/lodash/flatMapDepth.js +31 -0
  1346. package/node_modules/lodash/flatten.js +22 -0
  1347. package/node_modules/lodash/flattenDeep.js +25 -0
  1348. package/node_modules/lodash/flattenDepth.js +33 -0
  1349. package/node_modules/lodash/flip.js +28 -0
  1350. package/node_modules/lodash/floor.js +26 -0
  1351. package/node_modules/lodash/flow.js +27 -0
  1352. package/node_modules/lodash/flowRight.js +26 -0
  1353. package/node_modules/lodash/forEach.js +41 -0
  1354. package/node_modules/lodash/forEachRight.js +31 -0
  1355. package/node_modules/lodash/forIn.js +39 -0
  1356. package/node_modules/lodash/forInRight.js +37 -0
  1357. package/node_modules/lodash/forOwn.js +36 -0
  1358. package/node_modules/lodash/forOwnRight.js +34 -0
  1359. package/node_modules/lodash/fp/F.js +1 -0
  1360. package/node_modules/lodash/fp/T.js +1 -0
  1361. package/node_modules/lodash/fp/__.js +1 -0
  1362. package/node_modules/lodash/fp/_baseConvert.js +569 -0
  1363. package/node_modules/lodash/fp/_convertBrowser.js +18 -0
  1364. package/node_modules/lodash/fp/_falseOptions.js +7 -0
  1365. package/node_modules/lodash/fp/_mapping.js +358 -0
  1366. package/node_modules/lodash/fp/_util.js +16 -0
  1367. package/node_modules/lodash/fp/add.js +5 -0
  1368. package/node_modules/lodash/fp/after.js +5 -0
  1369. package/node_modules/lodash/fp/all.js +1 -0
  1370. package/node_modules/lodash/fp/allPass.js +1 -0
  1371. package/node_modules/lodash/fp/always.js +1 -0
  1372. package/node_modules/lodash/fp/any.js +1 -0
  1373. package/node_modules/lodash/fp/anyPass.js +1 -0
  1374. package/node_modules/lodash/fp/apply.js +1 -0
  1375. package/node_modules/lodash/fp/array.js +2 -0
  1376. package/node_modules/lodash/fp/ary.js +5 -0
  1377. package/node_modules/lodash/fp/assign.js +5 -0
  1378. package/node_modules/lodash/fp/assignAll.js +5 -0
  1379. package/node_modules/lodash/fp/assignAllWith.js +5 -0
  1380. package/node_modules/lodash/fp/assignIn.js +5 -0
  1381. package/node_modules/lodash/fp/assignInAll.js +5 -0
  1382. package/node_modules/lodash/fp/assignInAllWith.js +5 -0
  1383. package/node_modules/lodash/fp/assignInWith.js +5 -0
  1384. package/node_modules/lodash/fp/assignWith.js +5 -0
  1385. package/node_modules/lodash/fp/assoc.js +1 -0
  1386. package/node_modules/lodash/fp/assocPath.js +1 -0
  1387. package/node_modules/lodash/fp/at.js +5 -0
  1388. package/node_modules/lodash/fp/attempt.js +5 -0
  1389. package/node_modules/lodash/fp/before.js +5 -0
  1390. package/node_modules/lodash/fp/bind.js +5 -0
  1391. package/node_modules/lodash/fp/bindAll.js +5 -0
  1392. package/node_modules/lodash/fp/bindKey.js +5 -0
  1393. package/node_modules/lodash/fp/camelCase.js +5 -0
  1394. package/node_modules/lodash/fp/capitalize.js +5 -0
  1395. package/node_modules/lodash/fp/castArray.js +5 -0
  1396. package/node_modules/lodash/fp/ceil.js +5 -0
  1397. package/node_modules/lodash/fp/chain.js +5 -0
  1398. package/node_modules/lodash/fp/chunk.js +5 -0
  1399. package/node_modules/lodash/fp/clamp.js +5 -0
  1400. package/node_modules/lodash/fp/clone.js +5 -0
  1401. package/node_modules/lodash/fp/cloneDeep.js +5 -0
  1402. package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  1403. package/node_modules/lodash/fp/cloneWith.js +5 -0
  1404. package/node_modules/lodash/fp/collection.js +2 -0
  1405. package/node_modules/lodash/fp/commit.js +5 -0
  1406. package/node_modules/lodash/fp/compact.js +5 -0
  1407. package/node_modules/lodash/fp/complement.js +1 -0
  1408. package/node_modules/lodash/fp/compose.js +1 -0
  1409. package/node_modules/lodash/fp/concat.js +5 -0
  1410. package/node_modules/lodash/fp/cond.js +5 -0
  1411. package/node_modules/lodash/fp/conforms.js +1 -0
  1412. package/node_modules/lodash/fp/conformsTo.js +5 -0
  1413. package/node_modules/lodash/fp/constant.js +5 -0
  1414. package/node_modules/lodash/fp/contains.js +1 -0
  1415. package/node_modules/lodash/fp/convert.js +18 -0
  1416. package/node_modules/lodash/fp/countBy.js +5 -0
  1417. package/node_modules/lodash/fp/create.js +5 -0
  1418. package/node_modules/lodash/fp/curry.js +5 -0
  1419. package/node_modules/lodash/fp/curryN.js +5 -0
  1420. package/node_modules/lodash/fp/curryRight.js +5 -0
  1421. package/node_modules/lodash/fp/curryRightN.js +5 -0
  1422. package/node_modules/lodash/fp/date.js +2 -0
  1423. package/node_modules/lodash/fp/debounce.js +5 -0
  1424. package/node_modules/lodash/fp/deburr.js +5 -0
  1425. package/node_modules/lodash/fp/defaultTo.js +5 -0
  1426. package/node_modules/lodash/fp/defaults.js +5 -0
  1427. package/node_modules/lodash/fp/defaultsAll.js +5 -0
  1428. package/node_modules/lodash/fp/defaultsDeep.js +5 -0
  1429. package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  1430. package/node_modules/lodash/fp/defer.js +5 -0
  1431. package/node_modules/lodash/fp/delay.js +5 -0
  1432. package/node_modules/lodash/fp/difference.js +5 -0
  1433. package/node_modules/lodash/fp/differenceBy.js +5 -0
  1434. package/node_modules/lodash/fp/differenceWith.js +5 -0
  1435. package/node_modules/lodash/fp/dissoc.js +1 -0
  1436. package/node_modules/lodash/fp/dissocPath.js +1 -0
  1437. package/node_modules/lodash/fp/divide.js +5 -0
  1438. package/node_modules/lodash/fp/drop.js +5 -0
  1439. package/node_modules/lodash/fp/dropLast.js +1 -0
  1440. package/node_modules/lodash/fp/dropLastWhile.js +1 -0
  1441. package/node_modules/lodash/fp/dropRight.js +5 -0
  1442. package/node_modules/lodash/fp/dropRightWhile.js +5 -0
  1443. package/node_modules/lodash/fp/dropWhile.js +5 -0
  1444. package/node_modules/lodash/fp/each.js +1 -0
  1445. package/node_modules/lodash/fp/eachRight.js +1 -0
  1446. package/node_modules/lodash/fp/endsWith.js +5 -0
  1447. package/node_modules/lodash/fp/entries.js +1 -0
  1448. package/node_modules/lodash/fp/entriesIn.js +1 -0
  1449. package/node_modules/lodash/fp/eq.js +5 -0
  1450. package/node_modules/lodash/fp/equals.js +1 -0
  1451. package/node_modules/lodash/fp/escape.js +5 -0
  1452. package/node_modules/lodash/fp/escapeRegExp.js +5 -0
  1453. package/node_modules/lodash/fp/every.js +5 -0
  1454. package/node_modules/lodash/fp/extend.js +1 -0
  1455. package/node_modules/lodash/fp/extendAll.js +1 -0
  1456. package/node_modules/lodash/fp/extendAllWith.js +1 -0
  1457. package/node_modules/lodash/fp/extendWith.js +1 -0
  1458. package/node_modules/lodash/fp/fill.js +5 -0
  1459. package/node_modules/lodash/fp/filter.js +5 -0
  1460. package/node_modules/lodash/fp/find.js +5 -0
  1461. package/node_modules/lodash/fp/findFrom.js +5 -0
  1462. package/node_modules/lodash/fp/findIndex.js +5 -0
  1463. package/node_modules/lodash/fp/findIndexFrom.js +5 -0
  1464. package/node_modules/lodash/fp/findKey.js +5 -0
  1465. package/node_modules/lodash/fp/findLast.js +5 -0
  1466. package/node_modules/lodash/fp/findLastFrom.js +5 -0
  1467. package/node_modules/lodash/fp/findLastIndex.js +5 -0
  1468. package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  1469. package/node_modules/lodash/fp/findLastKey.js +5 -0
  1470. package/node_modules/lodash/fp/first.js +1 -0
  1471. package/node_modules/lodash/fp/flatMap.js +5 -0
  1472. package/node_modules/lodash/fp/flatMapDeep.js +5 -0
  1473. package/node_modules/lodash/fp/flatMapDepth.js +5 -0
  1474. package/node_modules/lodash/fp/flatten.js +5 -0
  1475. package/node_modules/lodash/fp/flattenDeep.js +5 -0
  1476. package/node_modules/lodash/fp/flattenDepth.js +5 -0
  1477. package/node_modules/lodash/fp/flip.js +5 -0
  1478. package/node_modules/lodash/fp/floor.js +5 -0
  1479. package/node_modules/lodash/fp/flow.js +5 -0
  1480. package/node_modules/lodash/fp/flowRight.js +5 -0
  1481. package/node_modules/lodash/fp/forEach.js +5 -0
  1482. package/node_modules/lodash/fp/forEachRight.js +5 -0
  1483. package/node_modules/lodash/fp/forIn.js +5 -0
  1484. package/node_modules/lodash/fp/forInRight.js +5 -0
  1485. package/node_modules/lodash/fp/forOwn.js +5 -0
  1486. package/node_modules/lodash/fp/forOwnRight.js +5 -0
  1487. package/node_modules/lodash/fp/fromPairs.js +5 -0
  1488. package/node_modules/lodash/fp/function.js +2 -0
  1489. package/node_modules/lodash/fp/functions.js +5 -0
  1490. package/node_modules/lodash/fp/functionsIn.js +5 -0
  1491. package/node_modules/lodash/fp/get.js +5 -0
  1492. package/node_modules/lodash/fp/getOr.js +5 -0
  1493. package/node_modules/lodash/fp/groupBy.js +5 -0
  1494. package/node_modules/lodash/fp/gt.js +5 -0
  1495. package/node_modules/lodash/fp/gte.js +5 -0
  1496. package/node_modules/lodash/fp/has.js +5 -0
  1497. package/node_modules/lodash/fp/hasIn.js +5 -0
  1498. package/node_modules/lodash/fp/head.js +5 -0
  1499. package/node_modules/lodash/fp/identical.js +1 -0
  1500. package/node_modules/lodash/fp/identity.js +5 -0
  1501. package/node_modules/lodash/fp/inRange.js +5 -0
  1502. package/node_modules/lodash/fp/includes.js +5 -0
  1503. package/node_modules/lodash/fp/includesFrom.js +5 -0
  1504. package/node_modules/lodash/fp/indexBy.js +1 -0
  1505. package/node_modules/lodash/fp/indexOf.js +5 -0
  1506. package/node_modules/lodash/fp/indexOfFrom.js +5 -0
  1507. package/node_modules/lodash/fp/init.js +1 -0
  1508. package/node_modules/lodash/fp/initial.js +5 -0
  1509. package/node_modules/lodash/fp/intersection.js +5 -0
  1510. package/node_modules/lodash/fp/intersectionBy.js +5 -0
  1511. package/node_modules/lodash/fp/intersectionWith.js +5 -0
  1512. package/node_modules/lodash/fp/invert.js +5 -0
  1513. package/node_modules/lodash/fp/invertBy.js +5 -0
  1514. package/node_modules/lodash/fp/invertObj.js +1 -0
  1515. package/node_modules/lodash/fp/invoke.js +5 -0
  1516. package/node_modules/lodash/fp/invokeArgs.js +5 -0
  1517. package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  1518. package/node_modules/lodash/fp/invokeMap.js +5 -0
  1519. package/node_modules/lodash/fp/isArguments.js +5 -0
  1520. package/node_modules/lodash/fp/isArray.js +5 -0
  1521. package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  1522. package/node_modules/lodash/fp/isArrayLike.js +5 -0
  1523. package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  1524. package/node_modules/lodash/fp/isBoolean.js +5 -0
  1525. package/node_modules/lodash/fp/isBuffer.js +5 -0
  1526. package/node_modules/lodash/fp/isDate.js +5 -0
  1527. package/node_modules/lodash/fp/isElement.js +5 -0
  1528. package/node_modules/lodash/fp/isEmpty.js +5 -0
  1529. package/node_modules/lodash/fp/isEqual.js +5 -0
  1530. package/node_modules/lodash/fp/isEqualWith.js +5 -0
  1531. package/node_modules/lodash/fp/isError.js +5 -0
  1532. package/node_modules/lodash/fp/isFinite.js +5 -0
  1533. package/node_modules/lodash/fp/isFunction.js +5 -0
  1534. package/node_modules/lodash/fp/isInteger.js +5 -0
  1535. package/node_modules/lodash/fp/isLength.js +5 -0
  1536. package/node_modules/lodash/fp/isMap.js +5 -0
  1537. package/node_modules/lodash/fp/isMatch.js +5 -0
  1538. package/node_modules/lodash/fp/isMatchWith.js +5 -0
  1539. package/node_modules/lodash/fp/isNaN.js +5 -0
  1540. package/node_modules/lodash/fp/isNative.js +5 -0
  1541. package/node_modules/lodash/fp/isNil.js +5 -0
  1542. package/node_modules/lodash/fp/isNull.js +5 -0
  1543. package/node_modules/lodash/fp/isNumber.js +5 -0
  1544. package/node_modules/lodash/fp/isObject.js +5 -0
  1545. package/node_modules/lodash/fp/isObjectLike.js +5 -0
  1546. package/node_modules/lodash/fp/isPlainObject.js +5 -0
  1547. package/node_modules/lodash/fp/isRegExp.js +5 -0
  1548. package/node_modules/lodash/fp/isSafeInteger.js +5 -0
  1549. package/node_modules/lodash/fp/isSet.js +5 -0
  1550. package/node_modules/lodash/fp/isString.js +5 -0
  1551. package/node_modules/lodash/fp/isSymbol.js +5 -0
  1552. package/node_modules/lodash/fp/isTypedArray.js +5 -0
  1553. package/node_modules/lodash/fp/isUndefined.js +5 -0
  1554. package/node_modules/lodash/fp/isWeakMap.js +5 -0
  1555. package/node_modules/lodash/fp/isWeakSet.js +5 -0
  1556. package/node_modules/lodash/fp/iteratee.js +5 -0
  1557. package/node_modules/lodash/fp/join.js +5 -0
  1558. package/node_modules/lodash/fp/juxt.js +1 -0
  1559. package/node_modules/lodash/fp/kebabCase.js +5 -0
  1560. package/node_modules/lodash/fp/keyBy.js +5 -0
  1561. package/node_modules/lodash/fp/keys.js +5 -0
  1562. package/node_modules/lodash/fp/keysIn.js +5 -0
  1563. package/node_modules/lodash/fp/lang.js +2 -0
  1564. package/node_modules/lodash/fp/last.js +5 -0
  1565. package/node_modules/lodash/fp/lastIndexOf.js +5 -0
  1566. package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  1567. package/node_modules/lodash/fp/lowerCase.js +5 -0
  1568. package/node_modules/lodash/fp/lowerFirst.js +5 -0
  1569. package/node_modules/lodash/fp/lt.js +5 -0
  1570. package/node_modules/lodash/fp/lte.js +5 -0
  1571. package/node_modules/lodash/fp/map.js +5 -0
  1572. package/node_modules/lodash/fp/mapKeys.js +5 -0
  1573. package/node_modules/lodash/fp/mapValues.js +5 -0
  1574. package/node_modules/lodash/fp/matches.js +1 -0
  1575. package/node_modules/lodash/fp/matchesProperty.js +5 -0
  1576. package/node_modules/lodash/fp/math.js +2 -0
  1577. package/node_modules/lodash/fp/max.js +5 -0
  1578. package/node_modules/lodash/fp/maxBy.js +5 -0
  1579. package/node_modules/lodash/fp/mean.js +5 -0
  1580. package/node_modules/lodash/fp/meanBy.js +5 -0
  1581. package/node_modules/lodash/fp/memoize.js +5 -0
  1582. package/node_modules/lodash/fp/merge.js +5 -0
  1583. package/node_modules/lodash/fp/mergeAll.js +5 -0
  1584. package/node_modules/lodash/fp/mergeAllWith.js +5 -0
  1585. package/node_modules/lodash/fp/mergeWith.js +5 -0
  1586. package/node_modules/lodash/fp/method.js +5 -0
  1587. package/node_modules/lodash/fp/methodOf.js +5 -0
  1588. package/node_modules/lodash/fp/min.js +5 -0
  1589. package/node_modules/lodash/fp/minBy.js +5 -0
  1590. package/node_modules/lodash/fp/mixin.js +5 -0
  1591. package/node_modules/lodash/fp/multiply.js +5 -0
  1592. package/node_modules/lodash/fp/nAry.js +1 -0
  1593. package/node_modules/lodash/fp/negate.js +5 -0
  1594. package/node_modules/lodash/fp/next.js +5 -0
  1595. package/node_modules/lodash/fp/noop.js +5 -0
  1596. package/node_modules/lodash/fp/now.js +5 -0
  1597. package/node_modules/lodash/fp/nth.js +5 -0
  1598. package/node_modules/lodash/fp/nthArg.js +5 -0
  1599. package/node_modules/lodash/fp/number.js +2 -0
  1600. package/node_modules/lodash/fp/object.js +2 -0
  1601. package/node_modules/lodash/fp/omit.js +5 -0
  1602. package/node_modules/lodash/fp/omitAll.js +1 -0
  1603. package/node_modules/lodash/fp/omitBy.js +5 -0
  1604. package/node_modules/lodash/fp/once.js +5 -0
  1605. package/node_modules/lodash/fp/orderBy.js +5 -0
  1606. package/node_modules/lodash/fp/over.js +5 -0
  1607. package/node_modules/lodash/fp/overArgs.js +5 -0
  1608. package/node_modules/lodash/fp/overEvery.js +5 -0
  1609. package/node_modules/lodash/fp/overSome.js +5 -0
  1610. package/node_modules/lodash/fp/pad.js +5 -0
  1611. package/node_modules/lodash/fp/padChars.js +5 -0
  1612. package/node_modules/lodash/fp/padCharsEnd.js +5 -0
  1613. package/node_modules/lodash/fp/padCharsStart.js +5 -0
  1614. package/node_modules/lodash/fp/padEnd.js +5 -0
  1615. package/node_modules/lodash/fp/padStart.js +5 -0
  1616. package/node_modules/lodash/fp/parseInt.js +5 -0
  1617. package/node_modules/lodash/fp/partial.js +5 -0
  1618. package/node_modules/lodash/fp/partialRight.js +5 -0
  1619. package/node_modules/lodash/fp/partition.js +5 -0
  1620. package/node_modules/lodash/fp/path.js +1 -0
  1621. package/node_modules/lodash/fp/pathEq.js +1 -0
  1622. package/node_modules/lodash/fp/pathOr.js +1 -0
  1623. package/node_modules/lodash/fp/paths.js +1 -0
  1624. package/node_modules/lodash/fp/pick.js +5 -0
  1625. package/node_modules/lodash/fp/pickAll.js +1 -0
  1626. package/node_modules/lodash/fp/pickBy.js +5 -0
  1627. package/node_modules/lodash/fp/pipe.js +1 -0
  1628. package/node_modules/lodash/fp/placeholder.js +6 -0
  1629. package/node_modules/lodash/fp/plant.js +5 -0
  1630. package/node_modules/lodash/fp/pluck.js +1 -0
  1631. package/node_modules/lodash/fp/prop.js +1 -0
  1632. package/node_modules/lodash/fp/propEq.js +1 -0
  1633. package/node_modules/lodash/fp/propOr.js +1 -0
  1634. package/node_modules/lodash/fp/property.js +1 -0
  1635. package/node_modules/lodash/fp/propertyOf.js +5 -0
  1636. package/node_modules/lodash/fp/props.js +1 -0
  1637. package/node_modules/lodash/fp/pull.js +5 -0
  1638. package/node_modules/lodash/fp/pullAll.js +5 -0
  1639. package/node_modules/lodash/fp/pullAllBy.js +5 -0
  1640. package/node_modules/lodash/fp/pullAllWith.js +5 -0
  1641. package/node_modules/lodash/fp/pullAt.js +5 -0
  1642. package/node_modules/lodash/fp/random.js +5 -0
  1643. package/node_modules/lodash/fp/range.js +5 -0
  1644. package/node_modules/lodash/fp/rangeRight.js +5 -0
  1645. package/node_modules/lodash/fp/rangeStep.js +5 -0
  1646. package/node_modules/lodash/fp/rangeStepRight.js +5 -0
  1647. package/node_modules/lodash/fp/rearg.js +5 -0
  1648. package/node_modules/lodash/fp/reduce.js +5 -0
  1649. package/node_modules/lodash/fp/reduceRight.js +5 -0
  1650. package/node_modules/lodash/fp/reject.js +5 -0
  1651. package/node_modules/lodash/fp/remove.js +5 -0
  1652. package/node_modules/lodash/fp/repeat.js +5 -0
  1653. package/node_modules/lodash/fp/replace.js +5 -0
  1654. package/node_modules/lodash/fp/rest.js +5 -0
  1655. package/node_modules/lodash/fp/restFrom.js +5 -0
  1656. package/node_modules/lodash/fp/result.js +5 -0
  1657. package/node_modules/lodash/fp/reverse.js +5 -0
  1658. package/node_modules/lodash/fp/round.js +5 -0
  1659. package/node_modules/lodash/fp/sample.js +5 -0
  1660. package/node_modules/lodash/fp/sampleSize.js +5 -0
  1661. package/node_modules/lodash/fp/seq.js +2 -0
  1662. package/node_modules/lodash/fp/set.js +5 -0
  1663. package/node_modules/lodash/fp/setWith.js +5 -0
  1664. package/node_modules/lodash/fp/shuffle.js +5 -0
  1665. package/node_modules/lodash/fp/size.js +5 -0
  1666. package/node_modules/lodash/fp/slice.js +5 -0
  1667. package/node_modules/lodash/fp/snakeCase.js +5 -0
  1668. package/node_modules/lodash/fp/some.js +5 -0
  1669. package/node_modules/lodash/fp/sortBy.js +5 -0
  1670. package/node_modules/lodash/fp/sortedIndex.js +5 -0
  1671. package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  1672. package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  1673. package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  1674. package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  1675. package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  1676. package/node_modules/lodash/fp/sortedUniq.js +5 -0
  1677. package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  1678. package/node_modules/lodash/fp/split.js +5 -0
  1679. package/node_modules/lodash/fp/spread.js +5 -0
  1680. package/node_modules/lodash/fp/spreadFrom.js +5 -0
  1681. package/node_modules/lodash/fp/startCase.js +5 -0
  1682. package/node_modules/lodash/fp/startsWith.js +5 -0
  1683. package/node_modules/lodash/fp/string.js +2 -0
  1684. package/node_modules/lodash/fp/stubArray.js +5 -0
  1685. package/node_modules/lodash/fp/stubFalse.js +5 -0
  1686. package/node_modules/lodash/fp/stubObject.js +5 -0
  1687. package/node_modules/lodash/fp/stubString.js +5 -0
  1688. package/node_modules/lodash/fp/stubTrue.js +5 -0
  1689. package/node_modules/lodash/fp/subtract.js +5 -0
  1690. package/node_modules/lodash/fp/sum.js +5 -0
  1691. package/node_modules/lodash/fp/sumBy.js +5 -0
  1692. package/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1693. package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1694. package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1695. package/node_modules/lodash/fp/tail.js +5 -0
  1696. package/node_modules/lodash/fp/take.js +5 -0
  1697. package/node_modules/lodash/fp/takeLast.js +1 -0
  1698. package/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1699. package/node_modules/lodash/fp/takeRight.js +5 -0
  1700. package/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1701. package/node_modules/lodash/fp/takeWhile.js +5 -0
  1702. package/node_modules/lodash/fp/tap.js +5 -0
  1703. package/node_modules/lodash/fp/template.js +5 -0
  1704. package/node_modules/lodash/fp/templateSettings.js +5 -0
  1705. package/node_modules/lodash/fp/throttle.js +5 -0
  1706. package/node_modules/lodash/fp/thru.js +5 -0
  1707. package/node_modules/lodash/fp/times.js +5 -0
  1708. package/node_modules/lodash/fp/toArray.js +5 -0
  1709. package/node_modules/lodash/fp/toFinite.js +5 -0
  1710. package/node_modules/lodash/fp/toInteger.js +5 -0
  1711. package/node_modules/lodash/fp/toIterator.js +5 -0
  1712. package/node_modules/lodash/fp/toJSON.js +5 -0
  1713. package/node_modules/lodash/fp/toLength.js +5 -0
  1714. package/node_modules/lodash/fp/toLower.js +5 -0
  1715. package/node_modules/lodash/fp/toNumber.js +5 -0
  1716. package/node_modules/lodash/fp/toPairs.js +5 -0
  1717. package/node_modules/lodash/fp/toPairsIn.js +5 -0
  1718. package/node_modules/lodash/fp/toPath.js +5 -0
  1719. package/node_modules/lodash/fp/toPlainObject.js +5 -0
  1720. package/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1721. package/node_modules/lodash/fp/toString.js +5 -0
  1722. package/node_modules/lodash/fp/toUpper.js +5 -0
  1723. package/node_modules/lodash/fp/transform.js +5 -0
  1724. package/node_modules/lodash/fp/trim.js +5 -0
  1725. package/node_modules/lodash/fp/trimChars.js +5 -0
  1726. package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1727. package/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1728. package/node_modules/lodash/fp/trimEnd.js +5 -0
  1729. package/node_modules/lodash/fp/trimStart.js +5 -0
  1730. package/node_modules/lodash/fp/truncate.js +5 -0
  1731. package/node_modules/lodash/fp/unapply.js +1 -0
  1732. package/node_modules/lodash/fp/unary.js +5 -0
  1733. package/node_modules/lodash/fp/unescape.js +5 -0
  1734. package/node_modules/lodash/fp/union.js +5 -0
  1735. package/node_modules/lodash/fp/unionBy.js +5 -0
  1736. package/node_modules/lodash/fp/unionWith.js +5 -0
  1737. package/node_modules/lodash/fp/uniq.js +5 -0
  1738. package/node_modules/lodash/fp/uniqBy.js +5 -0
  1739. package/node_modules/lodash/fp/uniqWith.js +5 -0
  1740. package/node_modules/lodash/fp/uniqueId.js +5 -0
  1741. package/node_modules/lodash/fp/unnest.js +1 -0
  1742. package/node_modules/lodash/fp/unset.js +5 -0
  1743. package/node_modules/lodash/fp/unzip.js +5 -0
  1744. package/node_modules/lodash/fp/unzipWith.js +5 -0
  1745. package/node_modules/lodash/fp/update.js +5 -0
  1746. package/node_modules/lodash/fp/updateWith.js +5 -0
  1747. package/node_modules/lodash/fp/upperCase.js +5 -0
  1748. package/node_modules/lodash/fp/upperFirst.js +5 -0
  1749. package/node_modules/lodash/fp/useWith.js +1 -0
  1750. package/node_modules/lodash/fp/util.js +2 -0
  1751. package/node_modules/lodash/fp/value.js +5 -0
  1752. package/node_modules/lodash/fp/valueOf.js +5 -0
  1753. package/node_modules/lodash/fp/values.js +5 -0
  1754. package/node_modules/lodash/fp/valuesIn.js +5 -0
  1755. package/node_modules/lodash/fp/where.js +1 -0
  1756. package/node_modules/lodash/fp/whereEq.js +1 -0
  1757. package/node_modules/lodash/fp/without.js +5 -0
  1758. package/node_modules/lodash/fp/words.js +5 -0
  1759. package/node_modules/lodash/fp/wrap.js +5 -0
  1760. package/node_modules/lodash/fp/wrapperAt.js +5 -0
  1761. package/node_modules/lodash/fp/wrapperChain.js +5 -0
  1762. package/node_modules/lodash/fp/wrapperLodash.js +5 -0
  1763. package/node_modules/lodash/fp/wrapperReverse.js +5 -0
  1764. package/node_modules/lodash/fp/wrapperValue.js +5 -0
  1765. package/node_modules/lodash/fp/xor.js +5 -0
  1766. package/node_modules/lodash/fp/xorBy.js +5 -0
  1767. package/node_modules/lodash/fp/xorWith.js +5 -0
  1768. package/node_modules/lodash/fp/zip.js +5 -0
  1769. package/node_modules/lodash/fp/zipAll.js +5 -0
  1770. package/node_modules/lodash/fp/zipObj.js +1 -0
  1771. package/node_modules/lodash/fp/zipObject.js +5 -0
  1772. package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  1773. package/node_modules/lodash/fp/zipWith.js +5 -0
  1774. package/node_modules/lodash/fp.js +2 -0
  1775. package/node_modules/lodash/fromPairs.js +30 -0
  1776. package/node_modules/lodash/function.js +25 -0
  1777. package/node_modules/lodash/functions.js +31 -0
  1778. package/node_modules/lodash/functionsIn.js +31 -0
  1779. package/node_modules/lodash/get.js +33 -0
  1780. package/node_modules/lodash/groupBy.js +41 -0
  1781. package/node_modules/lodash/gt.js +29 -0
  1782. package/node_modules/lodash/gte.js +30 -0
  1783. package/node_modules/lodash/has.js +35 -0
  1784. package/node_modules/lodash/hasIn.js +34 -0
  1785. package/node_modules/lodash/head.js +23 -0
  1786. package/node_modules/lodash/identity.js +21 -0
  1787. package/node_modules/lodash/inRange.js +55 -0
  1788. package/node_modules/lodash/includes.js +53 -0
  1789. package/node_modules/lodash/index.js +1 -0
  1790. package/node_modules/lodash/indexOf.js +42 -0
  1791. package/node_modules/lodash/initial.js +22 -0
  1792. package/node_modules/lodash/intersection.js +30 -0
  1793. package/node_modules/lodash/intersectionBy.js +45 -0
  1794. package/node_modules/lodash/intersectionWith.js +41 -0
  1795. package/node_modules/lodash/invert.js +42 -0
  1796. package/node_modules/lodash/invertBy.js +56 -0
  1797. package/node_modules/lodash/invoke.js +24 -0
  1798. package/node_modules/lodash/invokeMap.js +41 -0
  1799. package/node_modules/lodash/isArguments.js +36 -0
  1800. package/node_modules/lodash/isArray.js +26 -0
  1801. package/node_modules/lodash/isArrayBuffer.js +27 -0
  1802. package/node_modules/lodash/isArrayLike.js +33 -0
  1803. package/node_modules/lodash/isArrayLikeObject.js +33 -0
  1804. package/node_modules/lodash/isBoolean.js +29 -0
  1805. package/node_modules/lodash/isBuffer.js +38 -0
  1806. package/node_modules/lodash/isDate.js +27 -0
  1807. package/node_modules/lodash/isElement.js +25 -0
  1808. package/node_modules/lodash/isEmpty.js +77 -0
  1809. package/node_modules/lodash/isEqual.js +35 -0
  1810. package/node_modules/lodash/isEqualWith.js +41 -0
  1811. package/node_modules/lodash/isError.js +36 -0
  1812. package/node_modules/lodash/isFinite.js +36 -0
  1813. package/node_modules/lodash/isFunction.js +37 -0
  1814. package/node_modules/lodash/isInteger.js +33 -0
  1815. package/node_modules/lodash/isLength.js +35 -0
  1816. package/node_modules/lodash/isMap.js +27 -0
  1817. package/node_modules/lodash/isMatch.js +36 -0
  1818. package/node_modules/lodash/isMatchWith.js +41 -0
  1819. package/node_modules/lodash/isNaN.js +38 -0
  1820. package/node_modules/lodash/isNative.js +40 -0
  1821. package/node_modules/lodash/isNil.js +25 -0
  1822. package/node_modules/lodash/isNull.js +22 -0
  1823. package/node_modules/lodash/isNumber.js +38 -0
  1824. package/node_modules/lodash/isObject.js +31 -0
  1825. package/node_modules/lodash/isObjectLike.js +29 -0
  1826. package/node_modules/lodash/isPlainObject.js +62 -0
  1827. package/node_modules/lodash/isRegExp.js +27 -0
  1828. package/node_modules/lodash/isSafeInteger.js +37 -0
  1829. package/node_modules/lodash/isSet.js +27 -0
  1830. package/node_modules/lodash/isString.js +30 -0
  1831. package/node_modules/lodash/isSymbol.js +29 -0
  1832. package/node_modules/lodash/isTypedArray.js +27 -0
  1833. package/node_modules/lodash/isUndefined.js +22 -0
  1834. package/node_modules/lodash/isWeakMap.js +28 -0
  1835. package/node_modules/lodash/isWeakSet.js +28 -0
  1836. package/node_modules/lodash/iteratee.js +53 -0
  1837. package/node_modules/lodash/join.js +26 -0
  1838. package/node_modules/lodash/kebabCase.js +28 -0
  1839. package/node_modules/lodash/keyBy.js +36 -0
  1840. package/node_modules/lodash/keys.js +37 -0
  1841. package/node_modules/lodash/keysIn.js +32 -0
  1842. package/node_modules/lodash/lang.js +58 -0
  1843. package/node_modules/lodash/last.js +20 -0
  1844. package/node_modules/lodash/lastIndexOf.js +46 -0
  1845. package/node_modules/lodash/lodash.js +17259 -0
  1846. package/node_modules/lodash/lodash.min.js +136 -0
  1847. package/node_modules/lodash/lowerCase.js +27 -0
  1848. package/node_modules/lodash/lowerFirst.js +22 -0
  1849. package/node_modules/lodash/lt.js +29 -0
  1850. package/node_modules/lodash/lte.js +30 -0
  1851. package/node_modules/lodash/map.js +53 -0
  1852. package/node_modules/lodash/mapKeys.js +36 -0
  1853. package/node_modules/lodash/mapValues.js +43 -0
  1854. package/node_modules/lodash/matches.js +46 -0
  1855. package/node_modules/lodash/matchesProperty.js +44 -0
  1856. package/node_modules/lodash/math.js +17 -0
  1857. package/node_modules/lodash/max.js +29 -0
  1858. package/node_modules/lodash/maxBy.js +34 -0
  1859. package/node_modules/lodash/mean.js +22 -0
  1860. package/node_modules/lodash/meanBy.js +31 -0
  1861. package/node_modules/lodash/memoize.js +73 -0
  1862. package/node_modules/lodash/merge.js +39 -0
  1863. package/node_modules/lodash/mergeWith.js +39 -0
  1864. package/node_modules/lodash/method.js +34 -0
  1865. package/node_modules/lodash/methodOf.js +33 -0
  1866. package/node_modules/lodash/min.js +29 -0
  1867. package/node_modules/lodash/minBy.js +34 -0
  1868. package/node_modules/lodash/mixin.js +74 -0
  1869. package/node_modules/lodash/multiply.js +22 -0
  1870. package/node_modules/lodash/negate.js +40 -0
  1871. package/node_modules/lodash/next.js +35 -0
  1872. package/node_modules/lodash/noop.js +17 -0
  1873. package/node_modules/lodash/now.js +23 -0
  1874. package/node_modules/lodash/nth.js +29 -0
  1875. package/node_modules/lodash/nthArg.js +32 -0
  1876. package/node_modules/lodash/number.js +5 -0
  1877. package/node_modules/lodash/object.js +49 -0
  1878. package/node_modules/lodash/omit.js +57 -0
  1879. package/node_modules/lodash/omitBy.js +29 -0
  1880. package/node_modules/lodash/once.js +25 -0
  1881. package/node_modules/lodash/orderBy.js +47 -0
  1882. package/node_modules/lodash/over.js +24 -0
  1883. package/node_modules/lodash/overArgs.js +61 -0
  1884. package/node_modules/lodash/overEvery.js +34 -0
  1885. package/node_modules/lodash/overSome.js +37 -0
  1886. package/node_modules/lodash/package.json +19 -0
  1887. package/node_modules/lodash/pad.js +49 -0
  1888. package/node_modules/lodash/padEnd.js +39 -0
  1889. package/node_modules/lodash/padStart.js +39 -0
  1890. package/node_modules/lodash/parseInt.js +43 -0
  1891. package/node_modules/lodash/partial.js +50 -0
  1892. package/node_modules/lodash/partialRight.js +49 -0
  1893. package/node_modules/lodash/partition.js +43 -0
  1894. package/node_modules/lodash/pick.js +25 -0
  1895. package/node_modules/lodash/pickBy.js +37 -0
  1896. package/node_modules/lodash/plant.js +48 -0
  1897. package/node_modules/lodash/property.js +32 -0
  1898. package/node_modules/lodash/propertyOf.js +30 -0
  1899. package/node_modules/lodash/pull.js +29 -0
  1900. package/node_modules/lodash/pullAll.js +29 -0
  1901. package/node_modules/lodash/pullAllBy.js +33 -0
  1902. package/node_modules/lodash/pullAllWith.js +32 -0
  1903. package/node_modules/lodash/pullAt.js +43 -0
  1904. package/node_modules/lodash/random.js +91 -0
  1905. package/node_modules/lodash/range.js +46 -0
  1906. package/node_modules/lodash/rangeRight.js +41 -0
  1907. package/node_modules/lodash/rearg.js +33 -0
  1908. package/node_modules/lodash/reduce.js +51 -0
  1909. package/node_modules/lodash/reduceRight.js +36 -0
  1910. package/node_modules/lodash/reject.js +46 -0
  1911. package/node_modules/lodash/remove.js +53 -0
  1912. package/node_modules/lodash/repeat.js +37 -0
  1913. package/node_modules/lodash/replace.js +29 -0
  1914. package/node_modules/lodash/rest.js +40 -0
  1915. package/node_modules/lodash/result.js +56 -0
  1916. package/node_modules/lodash/reverse.js +34 -0
  1917. package/node_modules/lodash/round.js +26 -0
  1918. package/node_modules/lodash/sample.js +24 -0
  1919. package/node_modules/lodash/sampleSize.js +37 -0
  1920. package/node_modules/lodash/seq.js +16 -0
  1921. package/node_modules/lodash/set.js +35 -0
  1922. package/node_modules/lodash/setWith.js +32 -0
  1923. package/node_modules/lodash/shuffle.js +25 -0
  1924. package/node_modules/lodash/size.js +46 -0
  1925. package/node_modules/lodash/slice.js +37 -0
  1926. package/node_modules/lodash/snakeCase.js +28 -0
  1927. package/node_modules/lodash/some.js +51 -0
  1928. package/node_modules/lodash/sortBy.js +48 -0
  1929. package/node_modules/lodash/sortedIndex.js +24 -0
  1930. package/node_modules/lodash/sortedIndexBy.js +33 -0
  1931. package/node_modules/lodash/sortedIndexOf.js +31 -0
  1932. package/node_modules/lodash/sortedLastIndex.js +25 -0
  1933. package/node_modules/lodash/sortedLastIndexBy.js +33 -0
  1934. package/node_modules/lodash/sortedLastIndexOf.js +31 -0
  1935. package/node_modules/lodash/sortedUniq.js +24 -0
  1936. package/node_modules/lodash/sortedUniqBy.js +26 -0
  1937. package/node_modules/lodash/split.js +52 -0
  1938. package/node_modules/lodash/spread.js +63 -0
  1939. package/node_modules/lodash/startCase.js +29 -0
  1940. package/node_modules/lodash/startsWith.js +39 -0
  1941. package/node_modules/lodash/string.js +33 -0
  1942. package/node_modules/lodash/stubArray.js +23 -0
  1943. package/node_modules/lodash/stubFalse.js +18 -0
  1944. package/node_modules/lodash/stubObject.js +23 -0
  1945. package/node_modules/lodash/stubString.js +18 -0
  1946. package/node_modules/lodash/stubTrue.js +18 -0
  1947. package/node_modules/lodash/subtract.js +22 -0
  1948. package/node_modules/lodash/sum.js +24 -0
  1949. package/node_modules/lodash/sumBy.js +33 -0
  1950. package/node_modules/lodash/tail.js +22 -0
  1951. package/node_modules/lodash/take.js +37 -0
  1952. package/node_modules/lodash/takeRight.js +39 -0
  1953. package/node_modules/lodash/takeRightWhile.js +45 -0
  1954. package/node_modules/lodash/takeWhile.js +45 -0
  1955. package/node_modules/lodash/tap.js +29 -0
  1956. package/node_modules/lodash/template.js +284 -0
  1957. package/node_modules/lodash/templateSettings.js +71 -0
  1958. package/node_modules/lodash/throttle.js +69 -0
  1959. package/node_modules/lodash/thru.js +28 -0
  1960. package/node_modules/lodash/times.js +51 -0
  1961. package/node_modules/lodash/toArray.js +58 -0
  1962. package/node_modules/lodash/toFinite.js +42 -0
  1963. package/node_modules/lodash/toInteger.js +36 -0
  1964. package/node_modules/lodash/toIterator.js +23 -0
  1965. package/node_modules/lodash/toJSON.js +1 -0
  1966. package/node_modules/lodash/toLength.js +38 -0
  1967. package/node_modules/lodash/toLower.js +28 -0
  1968. package/node_modules/lodash/toNumber.js +64 -0
  1969. package/node_modules/lodash/toPairs.js +30 -0
  1970. package/node_modules/lodash/toPairsIn.js +30 -0
  1971. package/node_modules/lodash/toPath.js +33 -0
  1972. package/node_modules/lodash/toPlainObject.js +32 -0
  1973. package/node_modules/lodash/toSafeInteger.js +37 -0
  1974. package/node_modules/lodash/toString.js +28 -0
  1975. package/node_modules/lodash/toUpper.js +28 -0
  1976. package/node_modules/lodash/transform.js +65 -0
  1977. package/node_modules/lodash/trim.js +47 -0
  1978. package/node_modules/lodash/trimEnd.js +41 -0
  1979. package/node_modules/lodash/trimStart.js +43 -0
  1980. package/node_modules/lodash/truncate.js +111 -0
  1981. package/node_modules/lodash/unary.js +22 -0
  1982. package/node_modules/lodash/unescape.js +34 -0
  1983. package/node_modules/lodash/union.js +26 -0
  1984. package/node_modules/lodash/unionBy.js +39 -0
  1985. package/node_modules/lodash/unionWith.js +34 -0
  1986. package/node_modules/lodash/uniq.js +25 -0
  1987. package/node_modules/lodash/uniqBy.js +31 -0
  1988. package/node_modules/lodash/uniqWith.js +28 -0
  1989. package/node_modules/lodash/uniqueId.js +28 -0
  1990. package/node_modules/lodash/unset.js +34 -0
  1991. package/node_modules/lodash/unzip.js +45 -0
  1992. package/node_modules/lodash/unzipWith.js +39 -0
  1993. package/node_modules/lodash/update.js +35 -0
  1994. package/node_modules/lodash/updateWith.js +33 -0
  1995. package/node_modules/lodash/upperCase.js +27 -0
  1996. package/node_modules/lodash/upperFirst.js +22 -0
  1997. package/node_modules/lodash/util.js +34 -0
  1998. package/node_modules/lodash/value.js +1 -0
  1999. package/node_modules/lodash/valueOf.js +1 -0
  2000. package/node_modules/lodash/values.js +34 -0
  2001. package/node_modules/lodash/valuesIn.js +32 -0
  2002. package/node_modules/lodash/without.js +31 -0
  2003. package/node_modules/lodash/words.js +35 -0
  2004. package/node_modules/lodash/wrap.js +30 -0
  2005. package/node_modules/lodash/wrapperAt.js +48 -0
  2006. package/node_modules/lodash/wrapperChain.js +34 -0
  2007. package/node_modules/lodash/wrapperLodash.js +147 -0
  2008. package/node_modules/lodash/wrapperReverse.js +44 -0
  2009. package/node_modules/lodash/wrapperValue.js +21 -0
  2010. package/node_modules/lodash/xor.js +28 -0
  2011. package/node_modules/lodash/xorBy.js +39 -0
  2012. package/node_modules/lodash/xorWith.js +34 -0
  2013. package/node_modules/lodash/zip.js +22 -0
  2014. package/node_modules/lodash/zipObject.js +24 -0
  2015. package/node_modules/lodash/zipObjectDeep.js +23 -0
  2016. package/node_modules/lodash/zipWith.js +32 -0
  2017. package/node_modules/mute-stream/LICENSE +15 -0
  2018. package/node_modules/mute-stream/README.md +68 -0
  2019. package/node_modules/mute-stream/lib/index.js +142 -0
  2020. package/node_modules/mute-stream/package.json +54 -0
  2021. package/node_modules/safer-buffer/LICENSE +21 -0
  2022. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2023. package/node_modules/safer-buffer/Readme.md +156 -0
  2024. package/node_modules/safer-buffer/dangerous.js +58 -0
  2025. package/node_modules/safer-buffer/package.json +34 -0
  2026. package/node_modules/safer-buffer/safer.js +77 -0
  2027. package/node_modules/safer-buffer/tests.js +406 -0
  2028. package/node_modules/signal-exit/LICENSE.txt +16 -0
  2029. package/node_modules/signal-exit/README.md +74 -0
  2030. package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  2031. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  2032. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  2033. package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  2034. package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  2035. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  2036. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  2037. package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  2038. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  2039. package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  2040. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  2041. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  2042. package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  2043. package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  2044. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  2045. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  2046. package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  2047. package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  2048. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  2049. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  2050. package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  2051. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  2052. package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  2053. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  2054. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  2055. package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  2056. package/node_modules/signal-exit/package.json +106 -0
  2057. package/node_modules/string-width/index.d.ts +29 -0
  2058. package/node_modules/string-width/index.js +47 -0
  2059. package/node_modules/string-width/license +9 -0
  2060. package/node_modules/string-width/package.json +56 -0
  2061. package/node_modules/string-width/readme.md +50 -0
  2062. package/node_modules/strip-ansi/index.d.ts +17 -0
  2063. package/node_modules/strip-ansi/index.js +4 -0
  2064. package/node_modules/strip-ansi/license +9 -0
  2065. package/node_modules/strip-ansi/package.json +54 -0
  2066. package/node_modules/strip-ansi/readme.md +46 -0
  2067. package/node_modules/wrap-ansi/index.js +186 -0
  2068. package/node_modules/wrap-ansi/license +9 -0
  2069. package/node_modules/wrap-ansi/package.json +61 -0
  2070. package/node_modules/wrap-ansi/readme.md +97 -0
  2071. package/node_modules/yoctocolors-cjs/index.d.ts +94 -0
  2072. package/node_modules/yoctocolors-cjs/index.js +98 -0
  2073. package/node_modules/yoctocolors-cjs/license +9 -0
  2074. package/node_modules/yoctocolors-cjs/package.json +67 -0
  2075. package/node_modules/yoctocolors-cjs/readme.md +130 -0
  2076. package/node_modules/zod/LICENSE +21 -0
  2077. package/node_modules/zod/README.md +218 -0
  2078. package/node_modules/zod/compile.cjs +96 -0
  2079. package/node_modules/zod/compile.d.cts +1 -0
  2080. package/node_modules/zod/compile.d.ts +1 -0
  2081. package/node_modules/zod/compile.js +52 -0
  2082. package/node_modules/zod/index.cjs +52 -0
  2083. package/node_modules/zod/index.d.cts +3 -0
  2084. package/node_modules/zod/index.d.ts +3 -0
  2085. package/node_modules/zod/index.js +7 -0
  2086. package/node_modules/zod/locales/index.cjs +36 -0
  2087. package/node_modules/zod/locales/index.d.cts +1 -0
  2088. package/node_modules/zod/locales/index.d.ts +1 -0
  2089. package/node_modules/zod/locales/index.js +1 -0
  2090. package/node_modules/zod/locales/package.json +7 -0
  2091. package/node_modules/zod/mini/index.cjs +51 -0
  2092. package/node_modules/zod/mini/index.d.cts +3 -0
  2093. package/node_modules/zod/mini/index.d.ts +3 -0
  2094. package/node_modules/zod/mini/index.js +3 -0
  2095. package/node_modules/zod/mini/package.json +7 -0
  2096. package/node_modules/zod/package.json +147 -0
  2097. package/node_modules/zod/src/compile.ts +56 -0
  2098. package/node_modules/zod/src/index.ts +7 -0
  2099. package/node_modules/zod/src/locales/index.ts +1 -0
  2100. package/node_modules/zod/src/mini/index.ts +3 -0
  2101. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  2102. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  2103. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  2104. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  2105. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  2106. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  2107. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  2108. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  2109. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  2110. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  2111. package/node_modules/zod/src/v3/errors.ts +13 -0
  2112. package/node_modules/zod/src/v3/external.ts +6 -0
  2113. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  2114. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  2115. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  2116. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  2117. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  2118. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  2119. package/node_modules/zod/src/v3/index.ts +4 -0
  2120. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  2121. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  2122. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  2123. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  2124. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  2125. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  2126. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  2127. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  2128. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  2129. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  2130. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  2131. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  2132. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  2133. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  2134. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  2135. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  2136. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  2137. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  2138. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  2139. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  2140. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  2141. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  2142. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  2143. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  2144. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  2145. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  2146. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  2147. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  2148. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  2149. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  2150. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  2151. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  2152. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  2153. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  2154. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  2155. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  2156. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  2157. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  2158. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  2159. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  2160. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  2161. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  2162. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  2163. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  2164. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  2165. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  2166. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  2167. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  2168. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  2169. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  2170. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  2171. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  2172. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  2173. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  2174. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  2175. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  2176. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  2177. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  2178. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  2179. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  2180. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  2181. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  2182. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  2183. package/node_modules/zod/src/v3/types.ts +5138 -0
  2184. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  2185. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  2186. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  2187. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  2188. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  2189. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  2190. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  2191. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  2192. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  2193. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  2194. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  2195. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  2196. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  2197. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  2198. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  2199. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  2200. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  2201. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  2202. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  2203. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  2204. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  2205. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  2206. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  2207. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  2208. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  2209. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  2210. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  2211. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  2212. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  2213. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  2214. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  2215. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  2216. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  2217. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  2218. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  2219. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  2220. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  2221. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  2222. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  2223. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  2224. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  2225. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  2226. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  2227. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  2228. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  2229. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  2230. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  2231. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  2232. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  2233. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  2234. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  2235. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  2236. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  2237. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  2238. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  2239. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  2240. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  2241. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  2242. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  2243. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  2244. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  2245. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  2246. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  2247. package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
  2248. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  2249. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  2250. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  2251. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  2252. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  2253. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  2254. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  2255. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  2256. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  2257. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  2258. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  2259. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  2260. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  2261. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  2262. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  2263. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  2264. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  2265. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  2266. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  2267. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  2268. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  2269. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  2270. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  2271. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  2272. package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
  2273. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  2274. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  2275. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  2276. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  2277. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  2278. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  2279. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  2280. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  2281. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  2282. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  2283. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  2284. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  2285. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  2286. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  2287. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  2288. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  2289. package/node_modules/zod/src/v4/core/compile.ts +2313 -0
  2290. package/node_modules/zod/src/v4/core/core.ts +230 -0
  2291. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  2292. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  2293. package/node_modules/zod/src/v4/core/index.ts +19 -0
  2294. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  2295. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  2296. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  2297. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  2298. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  2299. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  2300. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  2301. package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
  2302. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  2303. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  2304. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  2305. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  2306. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  2307. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  2308. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  2309. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  2310. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  2311. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  2312. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  2313. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  2314. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  2315. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  2316. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  2317. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  2318. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  2319. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  2320. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  2321. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  2322. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  2323. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  2324. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  2325. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  2326. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  2327. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  2328. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  2329. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  2330. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  2331. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  2332. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  2333. package/node_modules/zod/src/v4/core/util.ts +1280 -0
  2334. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  2335. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  2336. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  2337. package/node_modules/zod/src/v4/index.ts +4 -0
  2338. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  2339. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  2340. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  2341. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  2342. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  2343. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  2344. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  2345. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  2346. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  2347. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  2348. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  2349. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  2350. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  2351. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  2352. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  2353. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  2354. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  2355. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  2356. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  2357. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  2358. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  2359. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  2360. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  2361. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  2362. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  2363. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  2364. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  2365. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  2366. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  2367. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  2368. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  2369. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  2370. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  2371. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  2372. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  2373. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  2374. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  2375. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  2376. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  2377. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  2378. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  2379. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  2380. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  2381. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  2382. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  2383. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  2384. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  2385. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  2386. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  2387. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  2388. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  2389. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  2390. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  2391. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  2392. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  2393. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  2394. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  2395. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  2396. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  2397. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  2398. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  2399. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  2400. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  2401. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  2402. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  2403. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  2404. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  2405. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  2406. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  2407. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  2408. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  2409. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  2410. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  2411. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  2412. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  2413. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  2414. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  2415. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  2416. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  2417. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  2418. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  2419. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  2420. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  2421. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  2422. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  2423. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  2424. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  2425. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  2426. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  2427. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  2428. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  2429. package/node_modules/zod/v3/ZodError.cjs +167 -0
  2430. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  2431. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  2432. package/node_modules/zod/v3/ZodError.js +143 -0
  2433. package/node_modules/zod/v3/errors.cjs +36 -0
  2434. package/node_modules/zod/v3/errors.d.cts +5 -0
  2435. package/node_modules/zod/v3/errors.d.ts +5 -0
  2436. package/node_modules/zod/v3/errors.js +9 -0
  2437. package/node_modules/zod/v3/external.cjs +41 -0
  2438. package/node_modules/zod/v3/external.d.cts +6 -0
  2439. package/node_modules/zod/v3/external.d.ts +6 -0
  2440. package/node_modules/zod/v3/external.js +6 -0
  2441. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  2442. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  2443. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  2444. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  2445. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  2446. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  2447. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  2448. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  2449. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  2450. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  2451. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  2452. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  2453. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  2454. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  2455. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  2456. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  2457. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  2458. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  2459. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  2460. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  2461. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  2462. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2463. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2464. package/node_modules/zod/v3/helpers/util.js +133 -0
  2465. package/node_modules/zod/v3/index.cjs +52 -0
  2466. package/node_modules/zod/v3/index.d.cts +4 -0
  2467. package/node_modules/zod/v3/index.d.ts +4 -0
  2468. package/node_modules/zod/v3/index.js +4 -0
  2469. package/node_modules/zod/v3/locales/en.cjs +112 -0
  2470. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  2471. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  2472. package/node_modules/zod/v3/locales/en.js +109 -0
  2473. package/node_modules/zod/v3/package.json +7 -0
  2474. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  2475. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2476. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2477. package/node_modules/zod/v3/standard-schema.js +1 -0
  2478. package/node_modules/zod/v3/types.cjs +3798 -0
  2479. package/node_modules/zod/v3/types.d.cts +1034 -0
  2480. package/node_modules/zod/v3/types.d.ts +1034 -0
  2481. package/node_modules/zod/v3/types.js +3697 -0
  2482. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  2483. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2484. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2485. package/node_modules/zod/v4/classic/checks.js +1 -0
  2486. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  2487. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2488. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2489. package/node_modules/zod/v4/classic/coerce.js +17 -0
  2490. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  2491. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  2492. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  2493. package/node_modules/zod/v4/classic/compat.js +31 -0
  2494. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  2495. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  2496. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  2497. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  2498. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  2499. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  2500. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  2501. package/node_modules/zod/v4/classic/errors.js +57 -0
  2502. package/node_modules/zod/v4/classic/external.cjs +97 -0
  2503. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  2504. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  2505. package/node_modules/zod/v4/classic/external.js +17 -0
  2506. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  2507. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2508. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2509. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  2510. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  2511. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  2512. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  2513. package/node_modules/zod/v4/classic/in-out.js +36 -0
  2514. package/node_modules/zod/v4/classic/index.cjs +52 -0
  2515. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  2516. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  2517. package/node_modules/zod/v4/classic/index.js +4 -0
  2518. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  2519. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  2520. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  2521. package/node_modules/zod/v4/classic/iso.js +15 -0
  2522. package/node_modules/zod/v4/classic/package.json +7 -0
  2523. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  2524. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  2525. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  2526. package/node_modules/zod/v4/classic/parse.js +16 -0
  2527. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  2528. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  2529. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  2530. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  2531. package/node_modules/zod/v4/core/api.cjs +1269 -0
  2532. package/node_modules/zod/v4/core/api.d.cts +335 -0
  2533. package/node_modules/zod/v4/core/api.d.ts +335 -0
  2534. package/node_modules/zod/v4/core/api.js +1107 -0
  2535. package/node_modules/zod/v4/core/checks.cjs +561 -0
  2536. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  2537. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  2538. package/node_modules/zod/v4/core/checks.js +516 -0
  2539. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  2540. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  2541. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  2542. package/node_modules/zod/v4/core/compile.js +1858 -0
  2543. package/node_modules/zod/v4/core/core.cjs +167 -0
  2544. package/node_modules/zod/v4/core/core.d.cts +82 -0
  2545. package/node_modules/zod/v4/core/core.d.ts +82 -0
  2546. package/node_modules/zod/v4/core/core.js +141 -0
  2547. package/node_modules/zod/v4/core/doc.cjs +61 -0
  2548. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  2549. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  2550. package/node_modules/zod/v4/core/doc.js +38 -0
  2551. package/node_modules/zod/v4/core/errors.cjs +317 -0
  2552. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  2553. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  2554. package/node_modules/zod/v4/core/errors.js +267 -0
  2555. package/node_modules/zod/v4/core/index.cjs +70 -0
  2556. package/node_modules/zod/v4/core/index.d.cts +19 -0
  2557. package/node_modules/zod/v4/core/index.d.ts +19 -0
  2558. package/node_modules/zod/v4/core/index.js +19 -0
  2559. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  2560. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2561. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2562. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  2563. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  2564. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  2565. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  2566. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  2567. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  2568. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  2569. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  2570. package/node_modules/zod/v4/core/json-schema.js +1 -0
  2571. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  2572. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  2573. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  2574. package/node_modules/zod/v4/core/memoizer.js +311 -0
  2575. package/node_modules/zod/v4/core/package.json +7 -0
  2576. package/node_modules/zod/v4/core/parse.cjs +233 -0
  2577. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  2578. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  2579. package/node_modules/zod/v4/core/parse.js +175 -0
  2580. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  2581. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  2582. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  2583. package/node_modules/zod/v4/core/regexes.js +156 -0
  2584. package/node_modules/zod/v4/core/registries.cjs +75 -0
  2585. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  2586. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  2587. package/node_modules/zod/v4/core/registries.js +51 -0
  2588. package/node_modules/zod/v4/core/schemas.cjs +2669 -0
  2589. package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
  2590. package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
  2591. package/node_modules/zod/v4/core/schemas.js +2606 -0
  2592. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  2593. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  2594. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  2595. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  2596. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  2597. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  2598. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  2599. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  2600. package/node_modules/zod/v4/core/util.cjs +949 -0
  2601. package/node_modules/zod/v4/core/util.d.cts +278 -0
  2602. package/node_modules/zod/v4/core/util.d.ts +278 -0
  2603. package/node_modules/zod/v4/core/util.js +859 -0
  2604. package/node_modules/zod/v4/core/versions.cjs +27 -0
  2605. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  2606. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  2607. package/node_modules/zod/v4/core/versions.js +5 -0
  2608. package/node_modules/zod/v4/core/visit.cjs +214 -0
  2609. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  2610. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  2611. package/node_modules/zod/v4/core/visit.js +169 -0
  2612. package/node_modules/zod/v4/index.cjs +51 -0
  2613. package/node_modules/zod/v4/index.d.cts +3 -0
  2614. package/node_modules/zod/v4/index.d.ts +3 -0
  2615. package/node_modules/zod/v4/index.js +4 -0
  2616. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  2617. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  2618. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  2619. package/node_modules/zod/v4/locales/ar.js +111 -0
  2620. package/node_modules/zod/v4/locales/az.cjs +137 -0
  2621. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  2622. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  2623. package/node_modules/zod/v4/locales/az.js +110 -0
  2624. package/node_modules/zod/v4/locales/be.cjs +195 -0
  2625. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  2626. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  2627. package/node_modules/zod/v4/locales/be.js +168 -0
  2628. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  2629. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  2630. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  2631. package/node_modules/zod/v4/locales/bg.js +125 -0
  2632. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  2633. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  2634. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  2635. package/node_modules/zod/v4/locales/bn.js +113 -0
  2636. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  2637. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  2638. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  2639. package/node_modules/zod/v4/locales/ca.js +112 -0
  2640. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  2641. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  2642. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  2643. package/node_modules/zod/v4/locales/ckb.js +133 -0
  2644. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  2645. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  2646. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  2647. package/node_modules/zod/v4/locales/cs.js +116 -0
  2648. package/node_modules/zod/v4/locales/da.cjs +147 -0
  2649. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  2650. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  2651. package/node_modules/zod/v4/locales/da.js +120 -0
  2652. package/node_modules/zod/v4/locales/de.cjs +140 -0
  2653. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  2654. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  2655. package/node_modules/zod/v4/locales/de.js +113 -0
  2656. package/node_modules/zod/v4/locales/el.cjs +139 -0
  2657. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  2658. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  2659. package/node_modules/zod/v4/locales/el.js +112 -0
  2660. package/node_modules/zod/v4/locales/en.cjs +152 -0
  2661. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  2662. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  2663. package/node_modules/zod/v4/locales/en.js +125 -0
  2664. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  2665. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  2666. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  2667. package/node_modules/zod/v4/locales/eo.js +114 -0
  2668. package/node_modules/zod/v4/locales/es.cjs +163 -0
  2669. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  2670. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  2671. package/node_modules/zod/v4/locales/es.js +136 -0
  2672. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  2673. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  2674. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  2675. package/node_modules/zod/v4/locales/fa.js +119 -0
  2676. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  2677. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  2678. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  2679. package/node_modules/zod/v4/locales/fi.js +117 -0
  2680. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  2681. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  2682. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  2683. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  2684. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  2685. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  2686. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  2687. package/node_modules/zod/v4/locales/fr.js +129 -0
  2688. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  2689. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  2690. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  2691. package/node_modules/zod/v4/locales/gu.js +113 -0
  2692. package/node_modules/zod/v4/locales/he.cjs +248 -0
  2693. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  2694. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  2695. package/node_modules/zod/v4/locales/he.js +221 -0
  2696. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  2697. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  2698. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  2699. package/node_modules/zod/v4/locales/hi.js +111 -0
  2700. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  2701. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  2702. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  2703. package/node_modules/zod/v4/locales/hr.js +126 -0
  2704. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  2705. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  2706. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  2707. package/node_modules/zod/v4/locales/hu.js +113 -0
  2708. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  2709. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  2710. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  2711. package/node_modules/zod/v4/locales/hy.js +158 -0
  2712. package/node_modules/zod/v4/locales/id.cjs +138 -0
  2713. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  2714. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  2715. package/node_modules/zod/v4/locales/id.js +111 -0
  2716. package/node_modules/zod/v4/locales/index.cjs +152 -0
  2717. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  2718. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  2719. package/node_modules/zod/v4/locales/index.js +63 -0
  2720. package/node_modules/zod/v4/locales/is.cjs +141 -0
  2721. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  2722. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  2723. package/node_modules/zod/v4/locales/is.js +114 -0
  2724. package/node_modules/zod/v4/locales/it.cjs +140 -0
  2725. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  2726. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  2727. package/node_modules/zod/v4/locales/it.js +113 -0
  2728. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  2729. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  2730. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  2731. package/node_modules/zod/v4/locales/ja.js +112 -0
  2732. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  2733. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  2734. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  2735. package/node_modules/zod/v4/locales/ka.js +117 -0
  2736. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  2737. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  2738. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  2739. package/node_modules/zod/v4/locales/kh.js +5 -0
  2740. package/node_modules/zod/v4/locales/km.cjs +142 -0
  2741. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  2742. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  2743. package/node_modules/zod/v4/locales/km.js +115 -0
  2744. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  2745. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  2746. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  2747. package/node_modules/zod/v4/locales/kn.js +116 -0
  2748. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  2749. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  2750. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  2751. package/node_modules/zod/v4/locales/ko.js +116 -0
  2752. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  2753. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  2754. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  2755. package/node_modules/zod/v4/locales/lt.js +207 -0
  2756. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  2757. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  2758. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  2759. package/node_modules/zod/v4/locales/mk.js +114 -0
  2760. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  2761. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  2762. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  2763. package/node_modules/zod/v4/locales/ms.js +112 -0
  2764. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  2765. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  2766. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  2767. package/node_modules/zod/v4/locales/ne.js +111 -0
  2768. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  2769. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  2770. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  2771. package/node_modules/zod/v4/locales/nl.js +115 -0
  2772. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  2773. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  2774. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  2775. package/node_modules/zod/v4/locales/nn.js +113 -0
  2776. package/node_modules/zod/v4/locales/no.cjs +140 -0
  2777. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  2778. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  2779. package/node_modules/zod/v4/locales/no.js +113 -0
  2780. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  2781. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  2782. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  2783. package/node_modules/zod/v4/locales/ota.js +114 -0
  2784. package/node_modules/zod/v4/locales/package.json +7 -0
  2785. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  2786. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  2787. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  2788. package/node_modules/zod/v4/locales/pl.js +114 -0
  2789. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  2790. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  2791. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  2792. package/node_modules/zod/v4/locales/ps.js +119 -0
  2793. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  2794. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  2795. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  2796. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  2797. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  2798. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  2799. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  2800. package/node_modules/zod/v4/locales/pt.js +142 -0
  2801. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  2802. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  2803. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  2804. package/node_modules/zod/v4/locales/ro.js +122 -0
  2805. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  2806. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  2807. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  2808. package/node_modules/zod/v4/locales/ru.js +168 -0
  2809. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  2810. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  2811. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  2812. package/node_modules/zod/v4/locales/sk.js +116 -0
  2813. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  2814. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  2815. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  2816. package/node_modules/zod/v4/locales/sl.js +114 -0
  2817. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  2818. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  2819. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  2820. package/node_modules/zod/v4/locales/sv.js +115 -0
  2821. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  2822. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  2823. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  2824. package/node_modules/zod/v4/locales/ta.js +115 -0
  2825. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  2826. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  2827. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  2828. package/node_modules/zod/v4/locales/tg.js +117 -0
  2829. package/node_modules/zod/v4/locales/th.cjs +142 -0
  2830. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  2831. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  2832. package/node_modules/zod/v4/locales/th.js +115 -0
  2833. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  2834. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  2835. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  2836. package/node_modules/zod/v4/locales/tk.js +107 -0
  2837. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  2838. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  2839. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  2840. package/node_modules/zod/v4/locales/tr.js +110 -0
  2841. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  2842. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  2843. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  2844. package/node_modules/zod/v4/locales/ua.js +5 -0
  2845. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  2846. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  2847. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  2848. package/node_modules/zod/v4/locales/uk.js +113 -0
  2849. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  2850. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  2851. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  2852. package/node_modules/zod/v4/locales/ur.js +115 -0
  2853. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  2854. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  2855. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  2856. package/node_modules/zod/v4/locales/uz.js +113 -0
  2857. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  2858. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  2859. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  2860. package/node_modules/zod/v4/locales/vi.js +113 -0
  2861. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  2862. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  2863. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  2864. package/node_modules/zod/v4/locales/yo.js +112 -0
  2865. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  2866. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  2867. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  2868. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  2869. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  2870. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  2871. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  2872. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  2873. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  2874. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  2875. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  2876. package/node_modules/zod/v4/mini/checks.js +1 -0
  2877. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  2878. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  2879. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  2880. package/node_modules/zod/v4/mini/coerce.js +22 -0
  2881. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  2882. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  2883. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  2884. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  2885. package/node_modules/zod/v4/mini/external.cjs +95 -0
  2886. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  2887. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  2888. package/node_modules/zod/v4/mini/external.js +16 -0
  2889. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  2890. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  2891. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  2892. package/node_modules/zod/v4/mini/in-out.js +36 -0
  2893. package/node_modules/zod/v4/mini/index.cjs +51 -0
  2894. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  2895. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  2896. package/node_modules/zod/v4/mini/index.js +3 -0
  2897. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  2898. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  2899. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  2900. package/node_modules/zod/v4/mini/iso.js +34 -0
  2901. package/node_modules/zod/v4/mini/package.json +7 -0
  2902. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  2903. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  2904. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  2905. package/node_modules/zod/v4/mini/parse.js +1 -0
  2906. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  2907. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  2908. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  2909. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  2910. package/node_modules/zod/v4/package.json +7 -0
  2911. package/node_modules/zod/v4-mini/index.cjs +51 -0
  2912. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  2913. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  2914. package/node_modules/zod/v4-mini/index.js +3 -0
  2915. package/node_modules/zod/v4-mini/package.json +7 -0
  2916. package/package.json +9 -1
  2917. package/sandbox/boot/bootstrap/drives.ps1 +29 -0
  2918. package/sandbox/boot/bootstrap/files.ps1 +49 -0
  2919. package/sandbox/boot/bootstrap/runner.ps1 +87 -0
  2920. package/sandbox/boot/bootstrap/status.ps1 +8 -0
  2921. package/sandbox/boot/bootstrap.ps1 +91 -0
  2922. package/sandbox/{logon.cmd → boot/logon.cmd} +11 -5
  2923. package/sandbox/{cargoshim.cs → csharp/CargoShim.cs} +28 -7
  2924. package/sandbox/csharp/Desktop.cs +33 -0
  2925. package/sandbox/{gitshim.cs → csharp/GitShim.cs} +15 -3
  2926. package/sandbox/{linkgate.cs → csharp/LinkGate.cs} +15 -5
  2927. package/sandbox/{openssl.cs → csharp/OpenSsl.cs} +18 -4
  2928. package/sandbox/csharp/PtyHost.cs +1327 -0
  2929. package/sandbox/csharp/SandboxTools/CpuCap.cs +134 -0
  2930. package/sandbox/csharp/SandboxTools/MemoryLog.cs +157 -0
  2931. package/sandbox/csharp/SandboxTools/PageFile.cs +72 -0
  2932. package/sandbox/csharp/SandboxTools/Program.cs +153 -0
  2933. package/sandbox/csharp/VsWhere.cs +145 -0
  2934. package/sandbox/csharp/VtInput.cs +63 -0
  2935. package/sandbox/scripts/enable-vt-input.ps1 +9 -0
  2936. package/sandbox/scripts/expand-archive.ps1 +9 -0
  2937. package/sandbox/scripts/get-gpu-names.ps1 +5 -0
  2938. package/sandbox/scripts/get-signer.ps1 +8 -0
  2939. package/sandbox/scripts/link-profile-dirs.ps1 +35 -0
  2940. package/sandbox/scripts/new-shortcuts.ps1 +15 -0
  2941. package/sandbox/scripts/set-desktop.ps1 +16 -0
  2942. package/sandbox/scripts/set-dns-servers.ps1 +8 -0
  2943. package/sandbox/scripts/set-machine-environment.ps1 +29 -0
  2944. package/schemas/config.schema.json +108 -6
  2945. package/schemas/sandbox-config.schema.json +30 -6
  2946. package/dist/cli/menu/home.d.ts +0 -22
  2947. package/dist/cli/menu/home.js +0 -72
  2948. package/dist/cli/menu/settings/settings-editor.d.ts +0 -30
  2949. package/dist/cli/menu/settings/settings-editor.js +0 -176
  2950. package/sandbox/bootstrap.ps1 +0 -258
  2951. package/sandbox/cpucap.cs +0 -33
  2952. package/sandbox/cpucap.ps1 +0 -20
  2953. package/sandbox/memlog.ps1 +0 -43
  2954. package/sandbox/pagefile.cs +0 -31
  2955. package/sandbox/pagefile.ps1 +0 -21
  2956. package/sandbox/ptyhost.cs +0 -769
  2957. package/sandbox/vswhere.cs +0 -83
  2958. /package/sandbox/{trust.cmd → boot/trust.cmd} +0 -0
@@ -0,0 +1,2606 @@
1
+ import * as checks from "./checks.js";
2
+ import * as core from "./core.js";
3
+ import { Doc } from "./doc.js";
4
+ import { parse, parseAsync } from "./parse.js";
5
+ import * as regexes from "./regexes.js";
6
+ import * as util from "./util.js";
7
+ import { version } from "./versions.js";
8
+ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def) => {
9
+ var _a;
10
+ inst ?? (inst = {});
11
+ inst._zod.def = def; // set _def property
12
+ inst._zod.bag = inst._zod.bag || {}; // initialize _bag object
13
+ inst._zod.version = version;
14
+ const defChecks = inst._zod.def.checks;
15
+ // if inst is itself a checks.$ZodCheck, run it as a check
16
+ const checks = inst._zod.traits.has("$ZodCheck")
17
+ ? [inst, ...(defChecks ?? [])]
18
+ : defChecks?.length
19
+ ? [...defChecks]
20
+ : [];
21
+ for (const ch of checks) {
22
+ for (const fn of ch._zod.onattach) {
23
+ fn(inst);
24
+ }
25
+ }
26
+ if (checks.length === 0) {
27
+ // deferred initializer inst._zod.parse is not yet defined
28
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
29
+ inst._zod.deferred?.push(() => {
30
+ inst._zod.run = inst._zod.parse;
31
+ });
32
+ }
33
+ else {
34
+ const runChecks = (payload, checks, ctx) => {
35
+ if (payload.memo)
36
+ return payload;
37
+ let isAborted = util.aborted(payload);
38
+ let asyncResult;
39
+ for (const ch of checks) {
40
+ if (ch._zod.def.when) {
41
+ if (util.explicitlyAborted(payload))
42
+ continue;
43
+ const shouldRun = ch._zod.def.when(payload);
44
+ if (!shouldRun)
45
+ continue;
46
+ }
47
+ else if (isAborted) {
48
+ continue;
49
+ }
50
+ const currLen = payload.issues.length;
51
+ const _ = ch._zod.check(payload);
52
+ if (_ instanceof Promise && ctx?.async === false) {
53
+ throw new core.$ZodAsyncError();
54
+ }
55
+ if (asyncResult || _ instanceof Promise) {
56
+ asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
57
+ await _;
58
+ const nextLen = payload.issues.length;
59
+ if (nextLen === currLen)
60
+ return;
61
+ util.attachSchema(payload.issues, currLen, inst);
62
+ if (!isAborted)
63
+ isAborted = util.aborted(payload, currLen);
64
+ });
65
+ }
66
+ else {
67
+ const nextLen = payload.issues.length;
68
+ if (nextLen === currLen)
69
+ continue;
70
+ util.attachSchema(payload.issues, currLen, inst);
71
+ if (!isAborted)
72
+ isAborted = util.aborted(payload, currLen);
73
+ }
74
+ }
75
+ if (asyncResult) {
76
+ return asyncResult.then(() => {
77
+ return payload;
78
+ });
79
+ }
80
+ return payload;
81
+ };
82
+ const handleCanaryResult = (canary, payload, ctx) => {
83
+ // abort if the canary is aborted
84
+ if (util.aborted(canary)) {
85
+ canary.aborted = true;
86
+ return canary;
87
+ }
88
+ // run checks first, then
89
+ const checkResult = runChecks(payload, checks, ctx);
90
+ if (checkResult instanceof Promise) {
91
+ if (ctx.async === false)
92
+ throw new core.$ZodAsyncError();
93
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
94
+ }
95
+ return inst._zod.parse(checkResult, ctx);
96
+ };
97
+ inst._zod.run = (payload, ctx) => {
98
+ if (ctx.skipChecks) {
99
+ return inst._zod.parse(payload, ctx);
100
+ }
101
+ if (ctx.direction === "backward") {
102
+ // run canary initial pass (no checks)
103
+ const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
104
+ if (canary instanceof Promise) {
105
+ return canary.then((canary) => {
106
+ return handleCanaryResult(canary, payload, ctx);
107
+ });
108
+ }
109
+ return handleCanaryResult(canary, payload, ctx);
110
+ }
111
+ // forward
112
+ const result = inst._zod.parse(payload, ctx);
113
+ if (result instanceof Promise) {
114
+ if (ctx.async === false)
115
+ throw new core.$ZodAsyncError();
116
+ return result.then((result) => runChecks(result, checks, ctx));
117
+ }
118
+ return runChecks(result, checks, ctx);
119
+ };
120
+ }
121
+ }, {
122
+ // Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness.
123
+ get "~standard"() {
124
+ return util.hide(this, "~standard", standardProps(this));
125
+ },
126
+ set "~standard"(value) {
127
+ util.own(this, "~standard", value);
128
+ },
129
+ });
130
+ /** The Standard Schema surface for `inst`. Shared so wrappers can extend it without forcing it. */
131
+ // a Standard Schema result only reports issues, so a failure finalizes them straight off the raw payload: no ZodError, and no lazy result to read through
132
+ const toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())) } : { value: r.value };
133
+ async function validateAsync(inst, value) {
134
+ const ctx = { async: true };
135
+ return toStandardResult((await inst._zod.run({ value, issues: [] }, ctx)), ctx);
136
+ }
137
+ export function standardProps(inst) {
138
+ return {
139
+ validate: (value) => {
140
+ const ctx = { async: false };
141
+ try {
142
+ const r = inst._zod.run({ value, issues: [] }, ctx);
143
+ if (!(r instanceof Promise))
144
+ return toStandardResult(r, ctx);
145
+ }
146
+ catch (_) { }
147
+ // async function so a synchronously throwing check rejects instead of escaping validate
148
+ return validateAsync(inst, value);
149
+ },
150
+ vendor: "zod",
151
+ version: 1,
152
+ };
153
+ }
154
+ export { clone } from "./util.js";
155
+ export const $ZodString = /*@__PURE__*/ core.$constructor("$ZodString", (inst, def) => {
156
+ $ZodType.init(inst, def);
157
+ // a format's own pattern, else unbounded; a template literal derives the check-aware form itself
158
+ inst._zod.pattern = def.pattern ?? regexes.anyString;
159
+ inst._zod.parse = (payload, _) => {
160
+ if (def.coerce)
161
+ try {
162
+ payload.value = String(payload.value);
163
+ }
164
+ catch (_) { }
165
+ if (typeof payload.value === "string")
166
+ return payload;
167
+ payload.issues.push({
168
+ expected: "string",
169
+ code: "invalid_type",
170
+ input: payload.value,
171
+ inst,
172
+ });
173
+ return payload;
174
+ };
175
+ });
176
+ export const $ZodStringFormat = /*@__PURE__*/ core.$constructor("$ZodStringFormat", (inst, def) => {
177
+ // check initialization must come first
178
+ checks.$ZodCheckStringFormat.init(inst, def);
179
+ $ZodString.init(inst, def);
180
+ });
181
+ export const $ZodGUID = /*@__PURE__*/ core.$constructor("$ZodGUID", (inst, def) => {
182
+ def.pattern ?? (def.pattern = regexes.guid);
183
+ $ZodStringFormat.init(inst, def);
184
+ });
185
+ export const $ZodUUID = /*@__PURE__*/ core.$constructor("$ZodUUID", (inst, def) => {
186
+ if (def.version) {
187
+ const versionMap = {
188
+ v1: 1,
189
+ v2: 2,
190
+ v3: 3,
191
+ v4: 4,
192
+ v5: 5,
193
+ v6: 6,
194
+ v7: 7,
195
+ v8: 8,
196
+ };
197
+ const v = versionMap[def.version];
198
+ if (v === undefined)
199
+ throw new Error(`Invalid UUID version: "${def.version}"`);
200
+ def.pattern ?? (def.pattern = regexes.uuid(v));
201
+ }
202
+ else
203
+ def.pattern ?? (def.pattern = regexes.uuid());
204
+ $ZodStringFormat.init(inst, def);
205
+ });
206
+ export const $ZodEmail = /*@__PURE__*/ core.$constructor("$ZodEmail", (inst, def) => {
207
+ def.pattern ?? (def.pattern = regexes.email);
208
+ $ZodStringFormat.init(inst, def);
209
+ });
210
+ /** The `://` guard rejected the input before the URL constructor saw it. */
211
+ export const URL_BAD_FORMAT = 1;
212
+ /** The URL parser rejected the input. */
213
+ export const URL_UNPARSEABLE = 2;
214
+ export function canParseURL(input) {
215
+ try {
216
+ if (typeof URL !== "undefined" && typeof URL.canParse === "function")
217
+ return URL.canParse(input);
218
+ new URL(input);
219
+ return true;
220
+ }
221
+ catch {
222
+ return false;
223
+ }
224
+ }
225
+ export function validateURL(trimmed, def) {
226
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) {
227
+ return canParseURL(trimmed) || URL_UNPARSEABLE;
228
+ }
229
+ return parseURLObject(trimmed, def);
230
+ }
231
+ /** Parses a URL while preserving the non-normalizing HTTP guard. */
232
+ export function parseURLObject(trimmed, def) {
233
+ // When normalize is off, require :// for http/https URLs. This prevents strings like "http:example.com" or "https:/path" from being silently accepted
234
+ if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source && !/^https?:\/\//i.test(trimmed)) {
235
+ return URL_BAD_FORMAT;
236
+ }
237
+ try {
238
+ if (typeof URL !== "undefined") {
239
+ const URLStatic = URL;
240
+ if (typeof URLStatic.parse === "function")
241
+ return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
242
+ }
243
+ // @ts-ignore
244
+ return new URL(trimmed);
245
+ }
246
+ catch {
247
+ return URL_UNPARSEABLE;
248
+ }
249
+ }
250
+ const asciiTabOrNewline = /[\t\n\r]/g;
251
+ /** The URL parser deletes every ASCII tab, LF and CR from its input before it parses, so `new URL("https://exa\nmple.com")` reports on `example.com`. Applying the same deletion to the returned value closes the half of that divergence which can move the host; the parser's other rewrite, stripping C0 controls at the edges, cannot. */
252
+ export function stripTabAndNewline(value) {
253
+ return value.replace(asciiTabOrNewline, "");
254
+ }
255
+ export function urlHostnameOk(url, hostname) {
256
+ hostname.lastIndex = 0;
257
+ return hostname.test(url.hostname);
258
+ }
259
+ export function urlProtocolOk(url, protocol) {
260
+ protocol.lastIndex = 0;
261
+ return protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol);
262
+ }
263
+ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) => {
264
+ $ZodStringFormat.init(inst, def);
265
+ inst._zod.check = (payload) => {
266
+ try {
267
+ // Trim whitespace from input
268
+ const trimmed = payload.value.trim();
269
+ const url = validateURL(trimmed, def);
270
+ if (url === URL_BAD_FORMAT) {
271
+ payload.issues.push({
272
+ code: "invalid_format",
273
+ format: "url",
274
+ note: "Invalid URL format",
275
+ input: payload.value,
276
+ inst,
277
+ continue: !def.abort,
278
+ });
279
+ return;
280
+ }
281
+ if (url === URL_UNPARSEABLE) {
282
+ payload.issues.push({
283
+ code: "invalid_format",
284
+ format: "url",
285
+ input: payload.value,
286
+ inst,
287
+ continue: !def.abort,
288
+ });
289
+ return;
290
+ }
291
+ if (url === true) {
292
+ payload.value = stripTabAndNewline(trimmed);
293
+ return;
294
+ }
295
+ if (def.hostname && !urlHostnameOk(url, def.hostname)) {
296
+ payload.issues.push({
297
+ code: "invalid_format",
298
+ format: "url",
299
+ note: "Invalid hostname",
300
+ pattern: def.hostname.source,
301
+ input: payload.value,
302
+ inst,
303
+ continue: !def.abort,
304
+ });
305
+ }
306
+ if (def.protocol && !urlProtocolOk(url, def.protocol)) {
307
+ payload.issues.push({
308
+ code: "invalid_format",
309
+ format: "url",
310
+ note: "Invalid protocol",
311
+ pattern: def.protocol.source,
312
+ input: payload.value,
313
+ inst,
314
+ continue: !def.abort,
315
+ });
316
+ }
317
+ // Set the output value based on normalize flag
318
+ payload.value = def.normalize ? url.href : stripTabAndNewline(trimmed);
319
+ return;
320
+ }
321
+ catch (_) {
322
+ payload.issues.push({
323
+ code: "invalid_format",
324
+ format: "url",
325
+ input: payload.value,
326
+ inst,
327
+ continue: !def.abort,
328
+ });
329
+ }
330
+ };
331
+ });
332
+ export const $ZodEmoji = /*@__PURE__*/ core.$constructor("$ZodEmoji", (inst, def) => {
333
+ def.pattern ?? (def.pattern = regexes.emoji());
334
+ $ZodStringFormat.init(inst, def);
335
+ });
336
+ export const $ZodNanoID = /*@__PURE__*/ core.$constructor("$ZodNanoID", (inst, def) => {
337
+ if (def.length !== undefined && (!Number.isInteger(def.length) || def.length < 1))
338
+ throw new Error(`Invalid nanoid length: ${def.length}`);
339
+ def.pattern ?? (def.pattern = def.length === undefined ? regexes.nanoid : regexes.nanoidOfLength(def.length));
340
+ $ZodStringFormat.init(inst, def);
341
+ });
342
+ /**
343
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
344
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
345
+ * See https://github.com/paralleldrive/cuid.
346
+ */
347
+ export const $ZodCUID = /*@__PURE__*/ core.$constructor("$ZodCUID", (inst, def) => {
348
+ def.pattern ?? (def.pattern = regexes.cuid);
349
+ $ZodStringFormat.init(inst, def);
350
+ });
351
+ export const $ZodCUID2 = /*@__PURE__*/ core.$constructor("$ZodCUID2", (inst, def) => {
352
+ def.pattern ?? (def.pattern = regexes.cuid2);
353
+ $ZodStringFormat.init(inst, def);
354
+ });
355
+ export const $ZodULID = /*@__PURE__*/ core.$constructor("$ZodULID", (inst, def) => {
356
+ def.pattern ?? (def.pattern = regexes.ulid);
357
+ $ZodStringFormat.init(inst, def);
358
+ });
359
+ export const $ZodXID = /*@__PURE__*/ core.$constructor("$ZodXID", (inst, def) => {
360
+ def.pattern ?? (def.pattern = regexes.xid);
361
+ $ZodStringFormat.init(inst, def);
362
+ });
363
+ export const $ZodKSUID = /*@__PURE__*/ core.$constructor("$ZodKSUID", (inst, def) => {
364
+ def.pattern ?? (def.pattern = regexes.ksuid);
365
+ $ZodStringFormat.init(inst, def);
366
+ });
367
+ export const $ZodISODateTime = /*@__PURE__*/ core.$constructor("$ZodISODateTime", (inst, def) => {
368
+ def.pattern ?? (def.pattern = regexes.datetime(def));
369
+ $ZodStringFormat.init(inst, def);
370
+ });
371
+ export const $ZodISODate = /*@__PURE__*/ core.$constructor("$ZodISODate", (inst, def) => {
372
+ def.pattern ?? (def.pattern = regexes.date);
373
+ $ZodStringFormat.init(inst, def);
374
+ });
375
+ export const $ZodISOTime = /*@__PURE__*/ core.$constructor("$ZodISOTime", (inst, def) => {
376
+ def.pattern ?? (def.pattern = regexes.time(def));
377
+ $ZodStringFormat.init(inst, def);
378
+ });
379
+ export const $ZodISODuration = /*@__PURE__*/ core.$constructor("$ZodISODuration", (inst, def) => {
380
+ def.pattern ?? (def.pattern = regexes.duration);
381
+ $ZodStringFormat.init(inst, def);
382
+ });
383
+ export const $ZodIPv4 = /*@__PURE__*/ core.$constructor("$ZodIPv4", (inst, def) => {
384
+ def.pattern ?? (def.pattern = regexes.ipv4);
385
+ $ZodStringFormat.init(inst, def);
386
+ });
387
+ /** An IPv6 address is written with hex digits, colons and dots, and nothing else. The guard is what makes the check below an IPv6 check: `new URL("http://[...]")` parses an authority, not an address, so `@` and `\` re-delimit it and `"::@1\\"` validates against the host `0.0.0.1`. The URL parser also deletes ASCII tab, LF and CR rather than failing, which is how `"::1\n"` validated as `::1`. */
388
+ const ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
389
+ export function isValidIPv6(value) {
390
+ if (!ipv6Alphabet.test(value))
391
+ return false;
392
+ return canParseURL(`http://[${value}]`);
393
+ }
394
+ export const $ZodIPv6 = /*@__PURE__*/ core.$constructor("$ZodIPv6", (inst, def) => {
395
+ def.pattern ?? (def.pattern = regexes.ipv6);
396
+ $ZodStringFormat.init(inst, def);
397
+ inst._zod.check = (payload) => {
398
+ if (!isValidIPv6(payload.value)) {
399
+ payload.issues.push({
400
+ code: "invalid_format",
401
+ format: "ipv6",
402
+ input: payload.value,
403
+ inst,
404
+ continue: !def.abort,
405
+ });
406
+ }
407
+ };
408
+ });
409
+ export const $ZodMAC = /*@__PURE__*/ core.$constructor("$ZodMAC", (inst, def) => {
410
+ def.pattern ?? (def.pattern = regexes.mac(def.delimiter));
411
+ $ZodStringFormat.init(inst, def);
412
+ });
413
+ export const $ZodCIDRv4 = /*@__PURE__*/ core.$constructor("$ZodCIDRv4", (inst, def) => {
414
+ def.pattern ?? (def.pattern = regexes.cidrv4);
415
+ $ZodStringFormat.init(inst, def);
416
+ });
417
+ export function isValidCIDRv6(value) {
418
+ const parts = value.split("/");
419
+ if (parts.length !== 2)
420
+ return false;
421
+ const [address, prefix] = parts;
422
+ if (!prefix)
423
+ return false;
424
+ const prefixNum = Number(prefix);
425
+ if (`${prefixNum}` !== prefix)
426
+ return false;
427
+ if (prefixNum < 0 || prefixNum > 128)
428
+ return false;
429
+ return isValidIPv6(address);
430
+ }
431
+ export const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor("$ZodCIDRv6", (inst, def) => {
432
+ def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
433
+ $ZodStringFormat.init(inst, def);
434
+ inst._zod.check = (payload) => {
435
+ if (!isValidCIDRv6(payload.value)) {
436
+ payload.issues.push({
437
+ code: "invalid_format",
438
+ format: "cidrv6",
439
+ input: payload.value,
440
+ inst,
441
+ continue: !def.abort,
442
+ });
443
+ }
444
+ };
445
+ });
446
+ ////////////////////////////// ZodBase64 //////////////////////////////
447
+ export function isValidBase64(data) {
448
+ if (data === "")
449
+ return true;
450
+ // atob ignores whitespace, so reject it up front.
451
+ if (/\s/.test(data))
452
+ return false;
453
+ if (data.length % 4 !== 0)
454
+ return false;
455
+ try {
456
+ // @ts-ignore
457
+ atob(data);
458
+ return true;
459
+ }
460
+ catch {
461
+ return false;
462
+ }
463
+ }
464
+ // lax on purpose: the quantified regexes.base64 overflows the regex stack on multi-MB input and its leading ^$| alternation leaks through template-literal composition; isValidBase64 enforces length and padding
465
+ export const base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/;
466
+ export const $ZodBase64 = /*@__PURE__*/ core.$constructor("$ZodBase64", (inst, def) => {
467
+ def.pattern ?? (def.pattern = base64Charset);
468
+ $ZodStringFormat.init(inst, def);
469
+ inst._zod.check = (payload) => {
470
+ if (isValidBase64(payload.value))
471
+ return;
472
+ payload.issues.push({
473
+ code: "invalid_format",
474
+ format: "base64",
475
+ input: payload.value,
476
+ inst,
477
+ continue: !def.abort,
478
+ });
479
+ };
480
+ });
481
+ ////////////////////////////// ZodBase64URL //////////////////////////////
482
+ // lax on purpose: the quantified regexes.base64url overflows the regex stack on multi-MB input; isValidBase64 enforces length on the padded string
483
+ export const base64urlCharset = /^[A-Za-z0-9_-]*$/;
484
+ export function isValidBase64URL(data) {
485
+ if (!base64urlCharset.test(data))
486
+ return false;
487
+ const base64 = data.replace(/[-_]/g, (c) => (c === "-" ? "+" : "/"));
488
+ const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
489
+ return isValidBase64(padded);
490
+ }
491
+ export const $ZodBase64URL = /*@__PURE__*/ core.$constructor("$ZodBase64URL", (inst, def) => {
492
+ def.pattern ?? (def.pattern = base64urlCharset);
493
+ $ZodStringFormat.init(inst, def);
494
+ inst._zod.check = (payload) => {
495
+ if (isValidBase64URL(payload.value))
496
+ return;
497
+ payload.issues.push({
498
+ code: "invalid_format",
499
+ format: "base64url",
500
+ input: payload.value,
501
+ inst,
502
+ continue: !def.abort,
503
+ });
504
+ };
505
+ });
506
+ export const $ZodE164 = /*@__PURE__*/ core.$constructor("$ZodE164", (inst, def) => {
507
+ def.pattern ?? (def.pattern = regexes.e164);
508
+ $ZodStringFormat.init(inst, def);
509
+ });
510
+ ////////////////////////////// ZodCreditCard //////////////////////////////
511
+ const CC_SANITIZE = /[- ]/g;
512
+ /** Luhn checksum on a digit-only string. Adapted from valibot (MIT). */
513
+ function isLuhnAlgo(digits) {
514
+ let length = digits.length;
515
+ let bit = 1;
516
+ let sum = 0;
517
+ while (length) {
518
+ const value = digits.charCodeAt(--length) - 48;
519
+ bit ^= 1;
520
+ sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][value] : value;
521
+ }
522
+ return sum % 10 === 0;
523
+ }
524
+ export function isValidCreditCard(input) {
525
+ if (!regexes.creditCard.test(input))
526
+ return false;
527
+ return isLuhnAlgo(input.replace(CC_SANITIZE, ""));
528
+ }
529
+ export const $ZodCreditCard = /*@__PURE__*/ core.$constructor("$ZodCreditCard", (inst, def) => {
530
+ // Shape only — the Luhn check below is not expressible as a pattern, so consumers of `pattern` (JSON Schema, template literals) get the length and separator rules alone.
531
+ def.pattern ?? (def.pattern = regexes.creditCard);
532
+ $ZodStringFormat.init(inst, def);
533
+ inst._zod.check = (payload) => {
534
+ if (isValidCreditCard(payload.value))
535
+ return;
536
+ payload.issues.push({
537
+ code: "invalid_format",
538
+ format: "credit_card",
539
+ input: payload.value,
540
+ inst,
541
+ continue: !def.abort,
542
+ });
543
+ };
544
+ });
545
+ ////////////////////////////// ZodIBAN //////////////////////////////
546
+ // iso 7064 mod 97-10 checksum without BigInt
547
+ function isIso7064Mod97(iban) {
548
+ let remainder = 0;
549
+ const len = iban.length;
550
+ for (let i = 4; i < len; i++) {
551
+ const code = iban.charCodeAt(i);
552
+ remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;
553
+ }
554
+ for (let i = 0; i < 4; i++) {
555
+ const code = iban.charCodeAt(i);
556
+ remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;
557
+ }
558
+ return remainder === 1;
559
+ }
560
+ export function isValidIBAN(input) {
561
+ if (!regexes.iban.test(input))
562
+ return false;
563
+ return isIso7064Mod97(input);
564
+ }
565
+ export const $ZodIBAN = /*@__PURE__*/ core.$constructor("$ZodIBAN", (inst, def) => {
566
+ // shape only — checksum is not expressible as a pattern
567
+ def.pattern ?? (def.pattern = regexes.iban);
568
+ $ZodStringFormat.init(inst, def);
569
+ inst._zod.check = (payload) => {
570
+ if (isValidIBAN(payload.value))
571
+ return;
572
+ payload.issues.push({
573
+ code: "invalid_format",
574
+ format: "iban",
575
+ input: payload.value,
576
+ inst,
577
+ continue: !def.abort,
578
+ });
579
+ };
580
+ });
581
+ ////////////////////////////// ZodJWT //////////////////////////////
582
+ export function isValidJWT(token, algorithm = null) {
583
+ try {
584
+ const tokensParts = token.split(".");
585
+ if (tokensParts.length !== 3)
586
+ return false;
587
+ const [header] = tokensParts;
588
+ if (!header)
589
+ return false;
590
+ // @ts-ignore
591
+ const parsedHeader = JSON.parse(atob(header));
592
+ if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
593
+ return false;
594
+ if (!parsedHeader.alg)
595
+ return false;
596
+ if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
597
+ return false;
598
+ return true;
599
+ }
600
+ catch {
601
+ return false;
602
+ }
603
+ }
604
+ export const $ZodJWT = /*@__PURE__*/ core.$constructor("$ZodJWT", (inst, def) => {
605
+ $ZodStringFormat.init(inst, def);
606
+ inst._zod.check = (payload) => {
607
+ if (isValidJWT(payload.value, def.alg))
608
+ return;
609
+ payload.issues.push({
610
+ code: "invalid_format",
611
+ format: "jwt",
612
+ input: payload.value,
613
+ inst,
614
+ continue: !def.abort,
615
+ });
616
+ };
617
+ });
618
+ export const $ZodCustomStringFormat = /*@__PURE__*/ core.$constructor("$ZodCustomStringFormat", (inst, def) => {
619
+ $ZodStringFormat.init(inst, def);
620
+ inst._zod.check = (payload) => {
621
+ if (def.fn(payload.value))
622
+ return;
623
+ payload.issues.push({
624
+ code: "invalid_format",
625
+ format: def.format,
626
+ input: payload.value,
627
+ inst,
628
+ continue: !def.abort,
629
+ });
630
+ };
631
+ });
632
+ export const $ZodNumber = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, def) => {
633
+ $ZodType.init(inst, def);
634
+ inst._zod.pattern = regexes.number;
635
+ inst._zod.parse = (payload, _ctx) => {
636
+ if (def.coerce)
637
+ try {
638
+ payload.value = Number(payload.value);
639
+ }
640
+ catch (_) { }
641
+ const input = payload.value;
642
+ if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
643
+ return payload;
644
+ }
645
+ const received = typeof input === "number"
646
+ ? Number.isNaN(input)
647
+ ? "NaN"
648
+ : !Number.isFinite(input)
649
+ ? String(input)
650
+ : undefined
651
+ : undefined;
652
+ payload.issues.push({
653
+ expected: "number",
654
+ code: "invalid_type",
655
+ input,
656
+ inst,
657
+ ...(received ? { received } : {}),
658
+ });
659
+ return payload;
660
+ };
661
+ });
662
+ export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$ZodNumberFormat", (inst, def) => {
663
+ checks.$ZodCheckNumberFormat.init(inst, def);
664
+ $ZodNumber.init(inst, def); // no format checks
665
+ });
666
+ export const $ZodBoolean = /*@__PURE__*/ core.$constructor("$ZodBoolean", (inst, def) => {
667
+ $ZodType.init(inst, def);
668
+ inst._zod.pattern = regexes.boolean;
669
+ inst._zod.parse = (payload, _ctx) => {
670
+ if (def.coerce)
671
+ try {
672
+ payload.value = Boolean(payload.value);
673
+ }
674
+ catch (_) { }
675
+ const input = payload.value;
676
+ if (typeof input === "boolean")
677
+ return payload;
678
+ payload.issues.push({
679
+ expected: "boolean",
680
+ code: "invalid_type",
681
+ input,
682
+ inst,
683
+ });
684
+ return payload;
685
+ };
686
+ });
687
+ export const $ZodBigInt = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, def) => {
688
+ $ZodType.init(inst, def);
689
+ inst._zod.pattern = regexes.bigint;
690
+ inst._zod.parse = (payload, _ctx) => {
691
+ if (def.coerce)
692
+ try {
693
+ payload.value = BigInt(payload.value);
694
+ }
695
+ catch (_) { }
696
+ if (typeof payload.value === "bigint")
697
+ return payload;
698
+ payload.issues.push({
699
+ expected: "bigint",
700
+ code: "invalid_type",
701
+ input: payload.value,
702
+ inst,
703
+ });
704
+ return payload;
705
+ };
706
+ });
707
+ export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodBigIntFormat", (inst, def) => {
708
+ checks.$ZodCheckBigIntFormat.init(inst, def);
709
+ $ZodBigInt.init(inst, def); // no format checks
710
+ });
711
+ export const $ZodSymbol = /*@__PURE__*/ core.$constructor("$ZodSymbol", (inst, def) => {
712
+ $ZodType.init(inst, def);
713
+ inst._zod.parse = (payload, _ctx) => {
714
+ const input = payload.value;
715
+ if (typeof input === "symbol")
716
+ return payload;
717
+ payload.issues.push({
718
+ expected: "symbol",
719
+ code: "invalid_type",
720
+ input,
721
+ inst,
722
+ });
723
+ return payload;
724
+ };
725
+ });
726
+ export const $ZodUndefined = /*@__PURE__*/ core.$constructor("$ZodUndefined", (inst, def) => {
727
+ $ZodType.init(inst, def);
728
+ inst._zod.pattern = regexes.undefined;
729
+ inst._zod.values = new Set([undefined]);
730
+ inst._zod.parse = (payload, _ctx) => {
731
+ const input = payload.value;
732
+ if (typeof input === "undefined")
733
+ return payload;
734
+ payload.issues.push({
735
+ expected: "undefined",
736
+ code: "invalid_type",
737
+ input,
738
+ inst,
739
+ });
740
+ return payload;
741
+ };
742
+ });
743
+ export const $ZodNull = /*@__PURE__*/ core.$constructor("$ZodNull", (inst, def) => {
744
+ $ZodType.init(inst, def);
745
+ inst._zod.pattern = regexes.null;
746
+ inst._zod.values = new Set([null]);
747
+ inst._zod.parse = (payload, _ctx) => {
748
+ const input = payload.value;
749
+ if (input === null)
750
+ return payload;
751
+ payload.issues.push({
752
+ expected: "null",
753
+ code: "invalid_type",
754
+ input,
755
+ inst,
756
+ });
757
+ return payload;
758
+ };
759
+ });
760
+ export const $ZodAny = /*@__PURE__*/ core.$constructor("$ZodAny", (inst, def) => {
761
+ $ZodType.init(inst, def);
762
+ inst._zod.parse = (payload) => payload;
763
+ });
764
+ export const $ZodUnknown = /*@__PURE__*/ core.$constructor("$ZodUnknown", (inst, def) => {
765
+ $ZodType.init(inst, def);
766
+ inst._zod.parse = (payload) => payload;
767
+ });
768
+ export const $ZodNever = /*@__PURE__*/ core.$constructor("$ZodNever", (inst, def) => {
769
+ $ZodType.init(inst, def);
770
+ inst._zod.parse = (payload, _ctx) => {
771
+ payload.issues.push({
772
+ expected: "never",
773
+ code: "invalid_type",
774
+ input: payload.value,
775
+ inst,
776
+ });
777
+ return payload;
778
+ };
779
+ });
780
+ export const $ZodVoid = /*@__PURE__*/ core.$constructor("$ZodVoid", (inst, def) => {
781
+ $ZodType.init(inst, def);
782
+ inst._zod.parse = (payload, _ctx) => {
783
+ const input = payload.value;
784
+ if (typeof input === "undefined")
785
+ return payload;
786
+ payload.issues.push({
787
+ expected: "void",
788
+ code: "invalid_type",
789
+ input,
790
+ inst,
791
+ });
792
+ return payload;
793
+ };
794
+ });
795
+ export const $ZodDate = /*@__PURE__*/ core.$constructor("$ZodDate", (inst, def) => {
796
+ $ZodType.init(inst, def);
797
+ inst._zod.parse = (payload, _ctx) => {
798
+ if (def.coerce) {
799
+ try {
800
+ payload.value = new Date(payload.value);
801
+ }
802
+ catch (_err) { }
803
+ }
804
+ const input = payload.value;
805
+ const isDate = input instanceof Date;
806
+ const isValidDate = isDate && !Number.isNaN(input.getTime());
807
+ if (isValidDate)
808
+ return payload;
809
+ payload.issues.push({
810
+ expected: "date",
811
+ code: "invalid_type",
812
+ input,
813
+ ...(isDate ? { received: "Invalid Date" } : {}),
814
+ inst,
815
+ });
816
+ return payload;
817
+ };
818
+ });
819
+ function handleArrayResult(result, final, index) {
820
+ if (result.issues.length) {
821
+ final.issues.push(...util.prefixIssues(index, result.issues));
822
+ }
823
+ final.value[index] = result.value;
824
+ }
825
+ export const $ZodArray = /*@__PURE__*/ core.$constructor("$ZodArray", (inst, def) => {
826
+ $ZodType.init(inst, def);
827
+ const memo = core.globalConfig.memoizer;
828
+ memo?.attach(inst);
829
+ inst._zod.parse = (payload, ctx) => {
830
+ const input = payload.value;
831
+ if (!Array.isArray(input)) {
832
+ payload.issues.push({
833
+ expected: "array",
834
+ code: "invalid_type",
835
+ input,
836
+ inst,
837
+ });
838
+ return payload;
839
+ }
840
+ payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
841
+ const proms = [];
842
+ const abortEarly = ctx?.abortEarly;
843
+ for (let i = 0; i < input.length; i++) {
844
+ const item = input[i];
845
+ const result = def.element._zod.run({
846
+ value: item,
847
+ issues: [],
848
+ }, ctx);
849
+ if (result instanceof Promise) {
850
+ proms.push(result.then((result) => handleArrayResult(result, payload, i)));
851
+ }
852
+ else {
853
+ handleArrayResult(result, payload, i);
854
+ // the element's payload is authoritative here, since handleArrayResult forwards every issue; an object's is not, because it drops a failed absent optional
855
+ if (abortEarly && result.issues.length !== 0 && util.aborted(result))
856
+ break;
857
+ }
858
+ }
859
+ if (proms.length) {
860
+ return Promise.all(proms).then(() => payload);
861
+ }
862
+ return payload; //handleArrayResultsAsync(parseResults, final);
863
+ };
864
+ });
865
+ function handlePropertyResult(result, final, key, input, optin, optout) {
866
+ const isPresent = key in input;
867
+ const isOptionalOut = optout === "optional";
868
+ // The middle rung means "absence permitted, nothing supplied in its place", so an absent key contributes nothing — whatever the schema made of `undefined` is invented, not substituted. Only `optional` reaches this with a value: `defaulted` substitutes, and a schema that isn't optional-out has to keep the key.
869
+ if (!isPresent && isOptionalOut && optin === "optional") {
870
+ return;
871
+ }
872
+ if (result.issues.length) {
873
+ // For optional-in/out schemas, ignore errors on absent keys.
874
+ if (optin !== undefined && isOptionalOut && !isPresent) {
875
+ return;
876
+ }
877
+ final.issues.push(...util.prefixIssues(key, result.issues));
878
+ }
879
+ if (!isPresent && optin === undefined) {
880
+ if (!result.issues.length) {
881
+ final.issues.push({
882
+ code: "invalid_type",
883
+ expected: "nonoptional",
884
+ input: undefined,
885
+ path: [key],
886
+ });
887
+ }
888
+ return;
889
+ }
890
+ if (result.value === undefined) {
891
+ if (isPresent || (optin === "defaulted" && !isOptionalOut)) {
892
+ final.value[key] = undefined;
893
+ }
894
+ }
895
+ else {
896
+ final.value[key] = result.value;
897
+ }
898
+ }
899
+ // one shared instance; a fresh [] per schema cost 56 bytes retained
900
+ const NO_SYMBOL_KEYS = [];
901
+ function normalizeDef(def) {
902
+ const keys = Object.keys(def.shape);
903
+ const ownSymbols = Object.getOwnPropertySymbols(def.shape);
904
+ const symbolKeys = ownSymbols.length ? ownSymbols : NO_SYMBOL_KEYS;
905
+ // aliases `keys` when there are no symbols, so a string-only shape keeps one array
906
+ const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys;
907
+ for (const k of allKeys) {
908
+ if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
909
+ throw new Error(`Invalid element at key "${String(k)}": expected a Zod schema`);
910
+ }
911
+ }
912
+ const okeys = util.optionalKeys(def.shape);
913
+ return {
914
+ ...def,
915
+ allKeys,
916
+ symbolKeys,
917
+ // string-only: handleCatchall matches it against `for...in`, which never yields a symbol
918
+ keySet: new Set(keys),
919
+ numKeys: keys.length,
920
+ optionalKeys: new Set(okeys),
921
+ };
922
+ }
923
+ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
924
+ const unrecognized = [];
925
+ const keySet = def.keySet;
926
+ const _catchall = def.catchall._zod;
927
+ const t = _catchall.def.type;
928
+ const optin = _catchall.optin;
929
+ const optout = _catchall.optout;
930
+ // starts at 0, not the current length: the shape phase already ran and may have aborted
931
+ let seen = 0;
932
+ for (const key in input) {
933
+ if (abortEarly && payload.issues.length !== seen) {
934
+ if (util.aborted(payload, seen))
935
+ break;
936
+ seen = payload.issues.length;
937
+ }
938
+ // Must precede the __proto__ branch: a declared key is not unrecognized, even though the shape loop deliberately strips __proto__ from the parsed output.
939
+ if (keySet.has(key))
940
+ continue;
941
+ // Don't copy an undeclared __proto__ into the result; assignment to a plain {} would replace the result prototype. But in strict mode it is still an unknown key, so report it before skipping.
942
+ if (key === "__proto__") {
943
+ if (t === "never")
944
+ unrecognized.push(key);
945
+ continue;
946
+ }
947
+ if (t === "never") {
948
+ unrecognized.push(key);
949
+ continue;
950
+ }
951
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
952
+ if (r instanceof Promise) {
953
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
954
+ }
955
+ else {
956
+ handlePropertyResult(r, payload, key, input, optin, optout);
957
+ }
958
+ }
959
+ if (unrecognized.length) {
960
+ payload.issues.push({
961
+ code: "unrecognized_keys",
962
+ keys: unrecognized,
963
+ input,
964
+ inst,
965
+ // Describes the shape of the input, not the validity of the parsed value, so it never aborts. The parse still fails; the schema's own checks just get to run first, and an enclosing intersection can reconcile the key against a sibling operand.
966
+ continue: true,
967
+ });
968
+ }
969
+ if (!proms.length)
970
+ return payload;
971
+ return Promise.all(proms).then(() => {
972
+ return payload;
973
+ });
974
+ }
975
+ export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, def) => {
976
+ // requires cast because technically $ZodObject doesn't extend
977
+ $ZodType.init(inst, def);
978
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
979
+ // a cloned def carries its source's accessor, which knows the shape it answers from; adopting that keeps the clone's keys readable without running it
980
+ const sh = desc?.get ? desc.get.raw : (def.shape ?? {});
981
+ if (sh) {
982
+ // Freezes the shape on first read, so its getters resolve once and every later read sees the same schemas.
983
+ const get = () => {
984
+ const newSh = { ...sh };
985
+ Object.defineProperty(def, "shape", { value: newSh });
986
+ get.raw = newSh;
987
+ return newSh;
988
+ };
989
+ get.raw = sh;
990
+ Object.defineProperty(def, "shape", { get });
991
+ }
992
+ const _normalized = util.cached(() => normalizeDef(def));
993
+ util.defineLazyInternal(inst, "propValues", (zod) => {
994
+ const shape = zod.def.shape;
995
+ const propValues = {};
996
+ for (const key in shape) {
997
+ const field = shape[key]._zod;
998
+ if (field.values) {
999
+ if (!Object.prototype.hasOwnProperty.call(propValues, key)) {
1000
+ util.assignProp(propValues, key, new Set());
1001
+ }
1002
+ for (const v of field.values)
1003
+ propValues[key].add(v);
1004
+ // An omittable slot reads back as undefined at a discriminator lookup, so it has to claim undefined: two options that can both omit the key are not discriminable on it.
1005
+ if (field.optin !== undefined)
1006
+ propValues[key].add(undefined);
1007
+ }
1008
+ }
1009
+ return propValues;
1010
+ });
1011
+ const isObject = util.isObject;
1012
+ const catchall = def.catchall;
1013
+ let value;
1014
+ const memo = core.globalConfig.memoizer;
1015
+ memo?.attach(inst);
1016
+ inst._zod.parse = (payload, ctx) => {
1017
+ value ?? (value = _normalized.value);
1018
+ const input = payload.value;
1019
+ if (!isObject(input)) {
1020
+ payload.issues.push({
1021
+ expected: "object",
1022
+ code: "invalid_type",
1023
+ input,
1024
+ inst,
1025
+ });
1026
+ return payload;
1027
+ }
1028
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
1029
+ const proms = [];
1030
+ const shape = value.shape;
1031
+ const abortEarly = ctx?.abortEarly;
1032
+ let seen = payload.issues.length;
1033
+ for (const key of value.allKeys) {
1034
+ if (abortEarly && payload.issues.length !== seen) {
1035
+ if (util.aborted(payload, seen))
1036
+ break;
1037
+ seen = payload.issues.length;
1038
+ }
1039
+ if (key === "__proto__")
1040
+ continue;
1041
+ const el = shape[key];
1042
+ const optin = el._zod.optin;
1043
+ const optout = el._zod.optout;
1044
+ const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1045
+ if (r instanceof Promise) {
1046
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
1047
+ }
1048
+ else {
1049
+ handlePropertyResult(r, payload, key, input, optin, optout);
1050
+ }
1051
+ }
1052
+ if (!catchall) {
1053
+ return proms.length ? Promise.all(proms).then(() => payload) : payload;
1054
+ }
1055
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);
1056
+ };
1057
+ });
1058
+ export const $ZodObjectJIT = /*@__PURE__*/ core.$constructor("$ZodObjectJIT", (inst, def) => {
1059
+ // requires cast because technically $ZodObject doesn't extend
1060
+ $ZodObject.init(inst, def);
1061
+ const superParse = inst._zod.parse;
1062
+ const _normalized = util.cached(() => normalizeDef(def));
1063
+ const memo = core.globalConfig.memoizer;
1064
+ const generateFastpass = (shape) => {
1065
+ const normalized = _normalized.value;
1066
+ const syms = normalized.symbolKeys;
1067
+ // a symbol has no source literal, so it is read as `syms[i]` off the closed-over scope
1068
+ const doc = new Doc(["payload", "ctx"], { shape, inst, memo, syms });
1069
+ const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1070
+ // prefixes in place, like util.prefixIssues. newResult must land before the early return: a catchall runs after this and would otherwise write onto the caller's input
1071
+ const prefixStr = (id, k) => `
1072
+ let ${id}_ab = false;
1073
+ for (let i = 0; i < ${id}.issues.length; i++) {
1074
+ const iss = ${id}.issues[i];
1075
+ iss.path = iss.path ? [${k}, ...iss.path] : [${k}];
1076
+ payload.issues.push(iss);
1077
+ if (iss.continue !== true) ${id}_ab = true;
1078
+ }
1079
+ if (${id}_ab && ctx && ctx.abortEarly) {
1080
+ payload.value = newResult;
1081
+ return payload;
1082
+ }`;
1083
+ doc.write(`const input = payload.value;`);
1084
+ const ids = Object.create(null);
1085
+ let counter = 0;
1086
+ for (const key of normalized.allKeys) {
1087
+ ids[key] = `key_${counter++}`;
1088
+ }
1089
+ // A: preserve key order {
1090
+ doc.write(memo ? `const newResult = memo.alloc(inst, payload, {}, ctx);` : `const newResult = {};`);
1091
+ for (const key of normalized.allKeys) {
1092
+ if (key === "__proto__")
1093
+ continue;
1094
+ const id = ids[key];
1095
+ const k = typeof key === "symbol" ? `syms[${syms.indexOf(key)}]` : util.esc(key);
1096
+ const isPresent = `${k} in input`;
1097
+ const schema = shape[key];
1098
+ const optin = schema?._zod?.optin;
1099
+ const isOptionalIn = optin !== undefined;
1100
+ const isOptionalOut = schema?._zod?.optout === "optional";
1101
+ doc.write(`const ${id} = ${parseStr(k)};`);
1102
+ if (isOptionalIn && isOptionalOut) {
1103
+ // For optional-in/out schemas, ignore errors on absent keys — and, like the interpreted path, drop the value produced alongside them. The middle rung goes further: it permits absence without supplying anything in its place, so an absent key contributes nothing at all.
1104
+ const assign = optin === "optional" ? `${id}_present` : `${id}.value !== undefined || ${id}_present`;
1105
+ doc.write(`
1106
+ const ${id}_present = ${isPresent};
1107
+ if (!${id}.issues.length || ${id}_present) {
1108
+ if (${id}.issues.length) {${prefixStr(id, k)}
1109
+ }
1110
+
1111
+ if (${assign}) {
1112
+ newResult[${k}] = ${id}.value;
1113
+ }
1114
+ }
1115
+
1116
+ `);
1117
+ }
1118
+ else if (!isOptionalIn) {
1119
+ doc.write(`
1120
+ const ${id}_present = ${isPresent};
1121
+ if (${id}.issues.length) {${prefixStr(id, k)}
1122
+ }
1123
+ if (!${id}_present && !${id}.issues.length) {
1124
+ payload.issues.push({
1125
+ code: "invalid_type",
1126
+ expected: "nonoptional",
1127
+ input: undefined,
1128
+ path: [${k}]
1129
+ });
1130
+ if (ctx && ctx.abortEarly) {
1131
+ payload.value = newResult;
1132
+ return payload;
1133
+ }
1134
+ }
1135
+
1136
+ if (${id}_present) {
1137
+ newResult[${k}] = ${id}.value;
1138
+ }
1139
+
1140
+ `);
1141
+ }
1142
+ else {
1143
+ doc.write(`
1144
+ if (${id}.issues.length) {${prefixStr(id, k)}
1145
+ }
1146
+ `);
1147
+ if (optin === "defaulted") {
1148
+ doc.write(`newResult[${k}] = ${id}.value;`);
1149
+ }
1150
+ else {
1151
+ doc.write(`
1152
+ if (${id}.value !== undefined || ${isPresent}) {
1153
+ newResult[${k}] = ${id}.value;
1154
+ }
1155
+ `);
1156
+ }
1157
+ }
1158
+ }
1159
+ doc.write(`payload.value = newResult;`);
1160
+ doc.write(`return payload;`);
1161
+ // closing `shape` in is what pays: turbofan specializes the parser against that one shape object, so every `shape[k]._zod.run` folds to a known callee. as a parameter it stays a generic load and measures 13% slower even with the forwarding frame gone
1162
+ return doc.compile();
1163
+ };
1164
+ let fastpass;
1165
+ const isObject = util.isObject;
1166
+ const jit = !core.globalConfig.jitless;
1167
+ const allowsEval = util.allowsEval;
1168
+ const fastEnabled = jit && allowsEval.value; // && !def.catchall;
1169
+ const catchall = def.catchall;
1170
+ let value;
1171
+ inst._zod.parse = (payload, ctx) => {
1172
+ value ?? (value = _normalized.value);
1173
+ const input = payload.value;
1174
+ if (!isObject(input)) {
1175
+ payload.issues.push({
1176
+ expected: "object",
1177
+ code: "invalid_type",
1178
+ input,
1179
+ inst,
1180
+ });
1181
+ return payload;
1182
+ }
1183
+ if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
1184
+ // always synchronous
1185
+ if (!fastpass)
1186
+ fastpass = generateFastpass(def.shape);
1187
+ payload = fastpass(payload, ctx);
1188
+ if (!catchall)
1189
+ return payload;
1190
+ return handleCatchall([], input, payload, ctx, value, inst, ctx?.abortEarly === true);
1191
+ }
1192
+ return superParse(payload, ctx);
1193
+ };
1194
+ });
1195
+ function handleUnionResults(results, final, inst, ctx) {
1196
+ for (const result of results) {
1197
+ if (result.issues.length === 0) {
1198
+ final.value = result.value;
1199
+ return final;
1200
+ }
1201
+ }
1202
+ const nonaborted = results.filter((r) => !util.aborted(r));
1203
+ if (nonaborted.length === 1) {
1204
+ final.value = nonaborted[0].value;
1205
+ return nonaborted[0];
1206
+ }
1207
+ final.issues.push({
1208
+ code: "invalid_union",
1209
+ input: final.value,
1210
+ inst,
1211
+ errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
1212
+ });
1213
+ return final;
1214
+ }
1215
+ export const $ZodUnion = /*@__PURE__*/ core.$constructor("$ZodUnion", (inst, def) => {
1216
+ $ZodType.init(inst, def);
1217
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.options.some((o) => o._zod.optin === "defaulted")
1218
+ ? "defaulted"
1219
+ : zod.def.options.some((o) => o._zod.optin !== undefined)
1220
+ ? "optional"
1221
+ : undefined);
1222
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
1223
+ util.defineLazyInternal(inst, "values", (zod) => {
1224
+ if (zod.def.options.every((o) => o._zod.values)) {
1225
+ return new Set(zod.def.options.flatMap((option) => Array.from(option._zod.values)));
1226
+ }
1227
+ return undefined;
1228
+ });
1229
+ util.defineLazyInternal(inst, "pattern", (zod) => {
1230
+ if (zod.def.options.every((o) => o._zod.pattern)) {
1231
+ const patterns = zod.def.options.map((o) => o._zod.pattern);
1232
+ return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join("|")})$`);
1233
+ }
1234
+ return undefined;
1235
+ });
1236
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1237
+ inst._zod.parse = (payload, ctx) => {
1238
+ if (first) {
1239
+ return first(payload, ctx);
1240
+ }
1241
+ let async = false;
1242
+ const results = [];
1243
+ for (const option of def.options) {
1244
+ const result = option._zod.run({
1245
+ value: payload.value,
1246
+ issues: [],
1247
+ }, ctx);
1248
+ if (result instanceof Promise) {
1249
+ results.push(result);
1250
+ async = true;
1251
+ }
1252
+ else {
1253
+ if (result.issues.length === 0)
1254
+ return result;
1255
+ results.push(result);
1256
+ }
1257
+ }
1258
+ if (!async)
1259
+ return handleUnionResults(results, payload, inst, ctx);
1260
+ return Promise.all(results).then((results) => {
1261
+ return handleUnionResults(results, payload, inst, ctx);
1262
+ });
1263
+ };
1264
+ });
1265
+ function handleExclusiveUnionResults(results, final, inst, ctx) {
1266
+ const matches = [];
1267
+ for (let i = 0; i < results.length; i++) {
1268
+ if (results[i].issues.length === 0)
1269
+ matches.push(i);
1270
+ }
1271
+ if (matches.length === 1) {
1272
+ final.value = results[matches[0]].value;
1273
+ return final;
1274
+ }
1275
+ if (matches.length === 0) {
1276
+ // No matches - same as regular union
1277
+ final.issues.push({
1278
+ code: "invalid_union",
1279
+ input: final.value,
1280
+ inst,
1281
+ errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
1282
+ });
1283
+ }
1284
+ else {
1285
+ // Multiple matches - exclusive union failure
1286
+ final.issues.push({
1287
+ code: "invalid_union",
1288
+ input: final.value,
1289
+ inst,
1290
+ errors: [],
1291
+ inclusive: false,
1292
+ matches,
1293
+ });
1294
+ }
1295
+ return final;
1296
+ }
1297
+ export const $ZodXor = /*@__PURE__*/ core.$constructor("$ZodXor", (inst, def) => {
1298
+ $ZodUnion.init(inst, def);
1299
+ def.inclusive = false;
1300
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1301
+ inst._zod.parse = (payload, ctx) => {
1302
+ if (first) {
1303
+ return first(payload, ctx);
1304
+ }
1305
+ let async = false;
1306
+ const results = [];
1307
+ for (const option of def.options) {
1308
+ const result = option._zod.run({
1309
+ value: payload.value,
1310
+ issues: [],
1311
+ }, ctx);
1312
+ if (result instanceof Promise) {
1313
+ results.push(result);
1314
+ async = true;
1315
+ }
1316
+ else {
1317
+ results.push(result);
1318
+ }
1319
+ }
1320
+ if (!async)
1321
+ return handleExclusiveUnionResults(results, payload, inst, ctx);
1322
+ return Promise.all(results).then((results) => {
1323
+ return handleExclusiveUnionResults(results, payload, inst, ctx);
1324
+ });
1325
+ };
1326
+ });
1327
+ /** Returns the option whose discriminator claims `value`, or throws if ambiguous. */
1328
+ export function getDiscriminatedOption(union, value) {
1329
+ const internals = union._zod;
1330
+ let map = internals.bag.optionsMap;
1331
+ if (!map) {
1332
+ map = discriminatorMap(internals.def);
1333
+ internals.bag.optionsMap = map;
1334
+ }
1335
+ const option = map.get(value);
1336
+ if (option === null)
1337
+ throw new Error(`Ambiguous discriminator value "${String(value)}"`);
1338
+ return option;
1339
+ }
1340
+ function discriminatorMap(def) {
1341
+ const map = new Map();
1342
+ for (const option of def.options) {
1343
+ const values = option._zod.propValues?.[def.discriminator];
1344
+ if (!values || values.size === 0)
1345
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
1346
+ for (const value of values) {
1347
+ if (map.has(value)) {
1348
+ if (value !== undefined)
1349
+ throw new Error(`Duplicate discriminator value "${String(value)}"`);
1350
+ // keep the collision marked so a later member cannot reclaim it
1351
+ map.set(value, null);
1352
+ }
1353
+ else {
1354
+ map.set(value, option);
1355
+ }
1356
+ }
1357
+ }
1358
+ return map;
1359
+ }
1360
+ export const $ZodDiscriminatedUnion =
1361
+ /*@__PURE__*/
1362
+ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
1363
+ def.inclusive = false;
1364
+ $ZodUnion.init(inst, def);
1365
+ const _super = inst._zod.parse;
1366
+ util.defineLazyInternal(inst, "propValues", (zod) => {
1367
+ const propValues = {};
1368
+ let undefinedCount = 0;
1369
+ for (const option of zod.def.options) {
1370
+ const pv = option._zod.propValues;
1371
+ if (!pv || Object.keys(pv).length === 0)
1372
+ throw new Error(`Invalid discriminated union option at index "${zod.def.options.indexOf(option)}"`);
1373
+ if (pv[zod.def.discriminator]?.has(undefined))
1374
+ undefinedCount++;
1375
+ for (const [k, v] of Object.entries(pv)) {
1376
+ if (!Object.prototype.hasOwnProperty.call(propValues, k)) {
1377
+ util.assignProp(propValues, k, new Set());
1378
+ }
1379
+ for (const val of v) {
1380
+ propValues[k].add(val);
1381
+ }
1382
+ }
1383
+ }
1384
+ if (!zod.def.unionFallback && undefinedCount > 1)
1385
+ propValues[zod.def.discriminator]?.delete(undefined);
1386
+ return propValues;
1387
+ });
1388
+ // Checked now rather than in the lookup map below, so an option that lacks the discriminator fails at the `discriminatedUnion` call instead of on the first object parsed. Options whose shape cannot be enumerated without resolving it — pipes and lazies — are left to the map.
1389
+ def.options.forEach((option, i) => {
1390
+ const propShape = util.rawShape(option._zod.def);
1391
+ if (propShape && !Object.prototype.hasOwnProperty.call(propShape, def.discriminator)) {
1392
+ throw new Error(`Invalid discriminated union option at index "${i}"`);
1393
+ }
1394
+ });
1395
+ const disc = util.cached(() => discriminatorMap(def));
1396
+ inst._zod.parse = (payload, ctx) => {
1397
+ const input = payload.value;
1398
+ if (!util.isObject(input)) {
1399
+ payload.issues.push({
1400
+ code: "invalid_type",
1401
+ expected: "object",
1402
+ input,
1403
+ inst,
1404
+ });
1405
+ return payload;
1406
+ }
1407
+ const value = input?.[def.discriminator];
1408
+ const opt = disc.value.get(value);
1409
+ // forward metadata cannot choose an encoder for an absent tag
1410
+ if (opt && (value !== undefined || ctx.direction !== "backward")) {
1411
+ return opt._zod.run(payload, ctx);
1412
+ }
1413
+ // Fall back to union matching when the fast discriminator path fails:
1414
+ // - explicitly enabled via unionFallback, or
1415
+ // - during backward direction (encode), since codec-based discriminators have different values in forward vs backward directions
1416
+ if (def.unionFallback || ctx.direction === "backward") {
1417
+ return _super(payload, ctx);
1418
+ }
1419
+ // no matching discriminator
1420
+ payload.issues.push({
1421
+ code: "invalid_union",
1422
+ errors: [],
1423
+ note: "No matching discriminator",
1424
+ discriminator: def.discriminator,
1425
+ options: Array.from(disc.value.keys()).filter((value) => disc.value.get(value) !== null),
1426
+ input,
1427
+ path: [def.discriminator],
1428
+ inst,
1429
+ });
1430
+ return payload;
1431
+ };
1432
+ });
1433
+ export const $ZodIntersection = /*@__PURE__*/ core.$constructor("$ZodIntersection", (inst, def) => {
1434
+ $ZodType.init(inst, def);
1435
+ inst._zod.parse = (payload, ctx) => {
1436
+ const input = payload.value;
1437
+ const left = def.left._zod.run({ value: input, issues: [] }, ctx);
1438
+ const right = def.right._zod.run({ value: input, issues: [] }, ctx);
1439
+ const async = left instanceof Promise || right instanceof Promise;
1440
+ if (async) {
1441
+ return Promise.all([left, right]).then(([left, right]) => {
1442
+ return handleIntersectionResults(payload, left, right);
1443
+ });
1444
+ }
1445
+ return handleIntersectionResults(payload, left, right);
1446
+ };
1447
+ });
1448
+ export function mergeValues(a, b) {
1449
+ // const aType = parse.t(a);
1450
+ // const bType = parse.t(b);
1451
+ if (a === b) {
1452
+ return { valid: true, data: a };
1453
+ }
1454
+ if (a instanceof Date && b instanceof Date && +a === +b) {
1455
+ return { valid: true, data: a };
1456
+ }
1457
+ if (util.isPlainObject(a) && util.isPlainObject(b)) {
1458
+ const bKeys = Object.keys(b);
1459
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1460
+ const newObj = { ...a, ...b };
1461
+ if (Object.prototype.hasOwnProperty.call(newObj, "__proto__"))
1462
+ delete newObj.__proto__;
1463
+ for (const key of sharedKeys) {
1464
+ if (key === "__proto__")
1465
+ continue;
1466
+ const sharedValue = mergeValues(a[key], b[key]);
1467
+ if (!sharedValue.valid) {
1468
+ return {
1469
+ valid: false,
1470
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath],
1471
+ };
1472
+ }
1473
+ newObj[key] = sharedValue.data;
1474
+ }
1475
+ return { valid: true, data: newObj };
1476
+ }
1477
+ if (Array.isArray(a) && Array.isArray(b)) {
1478
+ if (a.length !== b.length) {
1479
+ return { valid: false, mergeErrorPath: [] };
1480
+ }
1481
+ const newArray = [];
1482
+ for (let index = 0; index < a.length; index++) {
1483
+ const itemA = a[index];
1484
+ const itemB = b[index];
1485
+ const sharedValue = mergeValues(itemA, itemB);
1486
+ if (!sharedValue.valid) {
1487
+ return {
1488
+ valid: false,
1489
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath],
1490
+ };
1491
+ }
1492
+ newArray.push(sharedValue.data);
1493
+ }
1494
+ return { valid: true, data: newArray };
1495
+ }
1496
+ return { valid: false, mergeErrorPath: [] };
1497
+ }
1498
+ function handleIntersectionResults(result, left, right) {
1499
+ // Track which side(s) reject each key. A key rejection is reported only when BOTH sides reject it, so a key owned by one branch survives the other's key schema. strictObject reports these as unrecognized_keys; a record with an open key schema reports one invalid_key per key.
1500
+ const unrecKeys = new Map();
1501
+ let unrecIssue;
1502
+ const keyIssues = new Map();
1503
+ const collect = (iss, side) => {
1504
+ let keys;
1505
+ if (iss.code === "unrecognized_keys" && !iss.path?.length) {
1506
+ unrecIssue ?? (unrecIssue = iss);
1507
+ keys = iss.keys;
1508
+ }
1509
+ else if (iss.code === "invalid_key" && iss.origin === "record" && iss.path?.length === 1) {
1510
+ const k = String(iss.path[0]);
1511
+ if (!keyIssues.has(k))
1512
+ keyIssues.set(k, iss);
1513
+ keys = [k];
1514
+ }
1515
+ else {
1516
+ return false;
1517
+ }
1518
+ for (const k of keys) {
1519
+ if (!unrecKeys.has(k))
1520
+ unrecKeys.set(k, {});
1521
+ unrecKeys.get(k)[side] = true;
1522
+ }
1523
+ return true;
1524
+ };
1525
+ for (const iss of left.issues) {
1526
+ if (!collect(iss, "l"))
1527
+ result.issues.push(iss);
1528
+ }
1529
+ for (const iss of right.issues) {
1530
+ if (!collect(iss, "r"))
1531
+ result.issues.push(iss);
1532
+ }
1533
+ // Report only keys rejected by BOTH sides
1534
+ const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
1535
+ if (bothKeys.length) {
1536
+ const aggregated = unrecIssue ? bothKeys.filter((k) => unrecIssue.keys.includes(k)) : [];
1537
+ if (aggregated.length)
1538
+ result.issues.push({ ...unrecIssue, keys: aggregated });
1539
+ for (const k of bothKeys) {
1540
+ if (!aggregated.includes(k) && keyIssues.has(k))
1541
+ result.issues.push(keyIssues.get(k));
1542
+ }
1543
+ }
1544
+ const merged = mergeValues(left.value, right.value);
1545
+ if (!merged.valid) {
1546
+ if (util.aborted(result))
1547
+ return result;
1548
+ throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);
1549
+ }
1550
+ result.value = merged.data;
1551
+ return result;
1552
+ }
1553
+ export const $ZodTuple = /*@__PURE__*/ core.$constructor("$ZodTuple", (inst, def) => {
1554
+ $ZodType.init(inst, def);
1555
+ const items = def.items;
1556
+ const memo = core.globalConfig.memoizer;
1557
+ memo?.attach(inst);
1558
+ inst._zod.parse = (payload, ctx) => {
1559
+ const input = payload.value;
1560
+ if (!Array.isArray(input)) {
1561
+ payload.issues.push({
1562
+ input,
1563
+ inst,
1564
+ expected: "tuple",
1565
+ code: "invalid_type",
1566
+ });
1567
+ return payload;
1568
+ }
1569
+ payload.value = memo ? memo.alloc(inst, payload, [], ctx) : [];
1570
+ const proms = [];
1571
+ const optinStart = getTupleOptStart(items, "optin");
1572
+ const optoutStart = getTupleOptStart(items, "optout");
1573
+ if (!def.rest) {
1574
+ if (input.length < optinStart) {
1575
+ payload.issues.push({
1576
+ code: "too_small",
1577
+ minimum: optinStart,
1578
+ inclusive: true,
1579
+ input,
1580
+ inst,
1581
+ origin: "array",
1582
+ });
1583
+ return payload;
1584
+ }
1585
+ if (input.length > items.length) {
1586
+ payload.issues.push({
1587
+ code: "too_big",
1588
+ maximum: items.length,
1589
+ inclusive: true,
1590
+ input,
1591
+ inst,
1592
+ origin: "array",
1593
+ });
1594
+ }
1595
+ }
1596
+ // Run every item in parallel, collecting results into an indexed array. The post-processing in `handleTupleResults` walks them in order so it can decide whether an absent optional-output error can truncate the tail or must be reported to preserve required output.
1597
+ const itemResults = new Array(items.length);
1598
+ // only tracked when there is a rest loop to skip
1599
+ const abortEarly = def.rest ? ctx?.abortEarly : undefined;
1600
+ let itemAborted = false;
1601
+ for (let i = 0; i < items.length; i++) {
1602
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
1603
+ if (r instanceof Promise) {
1604
+ proms.push(r.then((rr) => {
1605
+ itemResults[i] = rr;
1606
+ }));
1607
+ }
1608
+ else {
1609
+ itemResults[i] = r;
1610
+ if (abortEarly && !itemAborted && r.issues.length)
1611
+ itemAborted = util.aborted(r);
1612
+ }
1613
+ }
1614
+ // sound because rest is non-empty exactly when every fixed index is present, the one case handleTupleResults cannot discard an item's issues
1615
+ if (def.rest && !itemAborted) {
1616
+ let i = items.length - 1;
1617
+ const rest = input.slice(items.length);
1618
+ let seen = payload.issues.length;
1619
+ for (const el of rest) {
1620
+ if (abortEarly && payload.issues.length !== seen) {
1621
+ if (util.aborted(payload, seen))
1622
+ break;
1623
+ seen = payload.issues.length;
1624
+ }
1625
+ i++;
1626
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
1627
+ if (result instanceof Promise) {
1628
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
1629
+ }
1630
+ else {
1631
+ handleTupleResult(result, payload, i);
1632
+ }
1633
+ }
1634
+ }
1635
+ if (proms.length) {
1636
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
1637
+ }
1638
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
1639
+ };
1640
+ });
1641
+ function getTupleOptStart(items, key) {
1642
+ for (let i = items.length - 1; i >= 0; i--) {
1643
+ // optin is a three-rung ladder so any rung above `undefined` permits an absent slot; optout stays two-valued.
1644
+ const omittable = key === "optin" ? items[i]._zod.optin !== undefined : items[i]._zod.optout === "optional";
1645
+ if (!omittable)
1646
+ return i + 1;
1647
+ }
1648
+ return 0;
1649
+ }
1650
+ function handleTupleResult(result, final, index) {
1651
+ if (result.issues.length) {
1652
+ final.issues.push(...util.prefixIssues(index, result.issues));
1653
+ }
1654
+ final.value[index] = result.value;
1655
+ }
1656
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
1657
+ // Walk results in order. Mirror $ZodObject's swallow-on-absent-optional rule, but only after `optoutStart`: the first index where the output tuple tail can be absent.
1658
+ for (let i = 0; i < items.length; i++) {
1659
+ const r = itemResults[i];
1660
+ const isPresent = i < input.length;
1661
+ // The array analog of `handlePropertyResult`'s absent-key early return: the middle rung permits absence without supplying anything in its place, so the tail truncates here instead of materializing whatever the item made of `undefined`.
1662
+ if (!isPresent && i >= optoutStart && items[i]._zod.optin === "optional") {
1663
+ final.value.length = i;
1664
+ break;
1665
+ }
1666
+ if (r.issues.length) {
1667
+ if (!isPresent && i >= optoutStart) {
1668
+ final.value.length = i;
1669
+ break;
1670
+ }
1671
+ final.issues.push(...util.prefixIssues(i, r.issues));
1672
+ }
1673
+ final.value[i] = r.value;
1674
+ }
1675
+ // Drop trailing slots that produced `undefined` for absent input
1676
+ // (the array analog of an absent optional key on an object). The
1677
+ // `i >= input.length` floor is critical: an explicit `undefined`
1678
+ // *inside* the input must be preserved even when the schema is
1679
+ // optional-out (e.g. `z.string().or(z.undefined())` accepting an
1680
+ // explicit undefined value).
1681
+ for (let i = final.value.length - 1; i >= input.length; i--) {
1682
+ if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
1683
+ final.value.length = i;
1684
+ }
1685
+ else {
1686
+ break;
1687
+ }
1688
+ }
1689
+ return final;
1690
+ }
1691
+ export const $ZodRecord = /*@__PURE__*/ core.$constructor("$ZodRecord", (inst, def) => {
1692
+ $ZodType.init(inst, def);
1693
+ const memo = core.globalConfig.memoizer;
1694
+ memo?.attach(inst);
1695
+ inst._zod.parse = (payload, ctx) => {
1696
+ const input = payload.value;
1697
+ if (!util.isPlainObject(input)) {
1698
+ payload.issues.push({
1699
+ expected: "record",
1700
+ code: "invalid_type",
1701
+ input,
1702
+ inst,
1703
+ });
1704
+ return payload;
1705
+ }
1706
+ // no guard in either loop below: a record's invalid_key aborts but an enclosing intersection can reconcile it, so a stopped loop hides keys the sibling does not own and the intersection then rejects nothing
1707
+ const proms = [];
1708
+ const values = def.keyType._zod.values;
1709
+ if (values && !def.partial) {
1710
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
1711
+ const recordKeys = new Set();
1712
+ for (const key of values) {
1713
+ if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1714
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
1715
+ // A declared __proto__ is stripped but is not an unrecognized key.
1716
+ if (key === "__proto__")
1717
+ continue;
1718
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1719
+ if (keyResult instanceof Promise) {
1720
+ throw new Error("Async schemas not supported in object keys currently");
1721
+ }
1722
+ if (keyResult.issues.length) {
1723
+ payload.issues.push({
1724
+ code: "invalid_key",
1725
+ origin: "record",
1726
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1727
+ input: key,
1728
+ path: [key],
1729
+ inst,
1730
+ });
1731
+ continue;
1732
+ }
1733
+ const outKey = keyResult.value;
1734
+ if (outKey === "__proto__")
1735
+ continue;
1736
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1737
+ if (result instanceof Promise) {
1738
+ proms.push(result.then((result) => {
1739
+ if (result.issues.length) {
1740
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1741
+ }
1742
+ payload.value[outKey] = result.value;
1743
+ }));
1744
+ }
1745
+ else {
1746
+ if (result.issues.length) {
1747
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1748
+ }
1749
+ payload.value[outKey] = result.value;
1750
+ }
1751
+ }
1752
+ }
1753
+ let unrecognized;
1754
+ for (const key in input) {
1755
+ if (!recordKeys.has(key)) {
1756
+ if (def.mode === "loose") {
1757
+ // skip __proto__ so it can't replace the result prototype via the assignment setter on the plain {} we build into
1758
+ if (key === "__proto__")
1759
+ continue;
1760
+ payload.value[key] = input[key];
1761
+ }
1762
+ else {
1763
+ unrecognized = unrecognized ?? [];
1764
+ unrecognized.push(key);
1765
+ }
1766
+ }
1767
+ }
1768
+ if (unrecognized && unrecognized.length > 0) {
1769
+ payload.issues.push({
1770
+ code: "unrecognized_keys",
1771
+ input,
1772
+ inst,
1773
+ keys: unrecognized,
1774
+ continue: true,
1775
+ });
1776
+ }
1777
+ }
1778
+ else {
1779
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
1780
+ // An enumerable key schema declares which keys the record owns, so a key outside the set is unrecognized. A non-enumerable one (regex, refine) is a constraint every key must satisfy, so a failing key is invalid. Only the former is reconcilable against the other side of an intersection.
1781
+ let unrecognized;
1782
+ // Reflect.ownKeys for Symbol-key support; filter non-enumerable to match z.object()
1783
+ for (const key of Reflect.ownKeys(input)) {
1784
+ if (key === "__proto__")
1785
+ continue;
1786
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
1787
+ continue;
1788
+ let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1789
+ if (keyResult instanceof Promise) {
1790
+ throw new Error("Async schemas not supported in object keys currently");
1791
+ }
1792
+ // Numeric string fallback: if key is a numeric string and failed, retry with Number(key). This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals
1793
+ const checkNumericKey = typeof key === "string" && regexes.number.test(key) && keyResult.issues.length;
1794
+ if (checkNumericKey) {
1795
+ const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
1796
+ if (retryResult instanceof Promise) {
1797
+ throw new Error("Async schemas not supported in object keys currently");
1798
+ }
1799
+ if (retryResult.issues.length === 0) {
1800
+ keyResult = retryResult;
1801
+ }
1802
+ }
1803
+ if (keyResult.issues.length) {
1804
+ if (def.mode === "loose") {
1805
+ // Pass through unchanged
1806
+ payload.value[key] = input[key];
1807
+ }
1808
+ else if (values) {
1809
+ unrecognized = unrecognized ?? [];
1810
+ unrecognized.push(key);
1811
+ }
1812
+ else {
1813
+ // Default "strict" behavior: error on invalid key
1814
+ payload.issues.push({
1815
+ code: "invalid_key",
1816
+ origin: "record",
1817
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1818
+ input: key,
1819
+ path: [key],
1820
+ inst,
1821
+ });
1822
+ }
1823
+ continue;
1824
+ }
1825
+ // the guard above tests the raw input key, but the key schema can normalize an ordinary key into __proto__; re-check the key we actually write under
1826
+ const outKey = keyResult.value;
1827
+ if (outKey === "__proto__")
1828
+ continue;
1829
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1830
+ if (result instanceof Promise) {
1831
+ proms.push(result.then((result) => {
1832
+ if (result.issues.length) {
1833
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1834
+ }
1835
+ payload.value[outKey] = result.value;
1836
+ }));
1837
+ }
1838
+ else {
1839
+ if (result.issues.length) {
1840
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1841
+ }
1842
+ payload.value[outKey] = result.value;
1843
+ }
1844
+ }
1845
+ if (unrecognized && unrecognized.length > 0) {
1846
+ payload.issues.push({
1847
+ code: "unrecognized_keys",
1848
+ input,
1849
+ inst,
1850
+ keys: unrecognized,
1851
+ continue: true,
1852
+ });
1853
+ }
1854
+ }
1855
+ if (proms.length) {
1856
+ return Promise.all(proms).then(() => payload);
1857
+ }
1858
+ return payload;
1859
+ };
1860
+ });
1861
+ export const $ZodMap = /*@__PURE__*/ core.$constructor("$ZodMap", (inst, def) => {
1862
+ $ZodType.init(inst, def);
1863
+ const memo = core.globalConfig.memoizer;
1864
+ memo?.attach(inst);
1865
+ inst._zod.parse = (payload, ctx) => {
1866
+ const input = payload.value;
1867
+ if (!(input instanceof Map)) {
1868
+ payload.issues.push({
1869
+ expected: "map",
1870
+ code: "invalid_type",
1871
+ input,
1872
+ inst,
1873
+ });
1874
+ return payload;
1875
+ }
1876
+ const proms = [];
1877
+ payload.value = memo ? memo.alloc(inst, payload, new Map(), ctx) : new Map();
1878
+ const abortEarly = ctx?.abortEarly;
1879
+ let seen = payload.issues.length;
1880
+ for (const [key, value] of input) {
1881
+ if (abortEarly && payload.issues.length !== seen) {
1882
+ if (util.aborted(payload, seen))
1883
+ break;
1884
+ seen = payload.issues.length;
1885
+ }
1886
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1887
+ const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);
1888
+ if (keyResult instanceof Promise || valueResult instanceof Promise) {
1889
+ proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {
1890
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1891
+ }));
1892
+ }
1893
+ else {
1894
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1895
+ }
1896
+ }
1897
+ if (proms.length)
1898
+ return Promise.all(proms).then(() => payload);
1899
+ return payload;
1900
+ };
1901
+ });
1902
+ function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
1903
+ if (keyResult.issues.length) {
1904
+ if (util.propertyKeyTypes.has(typeof key)) {
1905
+ final.issues.push(...util.prefixIssues(key, keyResult.issues));
1906
+ }
1907
+ else {
1908
+ final.issues.push({
1909
+ code: "invalid_key",
1910
+ origin: "map",
1911
+ input,
1912
+ inst,
1913
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1914
+ });
1915
+ }
1916
+ }
1917
+ if (valueResult.issues.length) {
1918
+ if (util.propertyKeyTypes.has(typeof key)) {
1919
+ final.issues.push(...util.prefixIssues(key, valueResult.issues));
1920
+ }
1921
+ else {
1922
+ final.issues.push({
1923
+ origin: "map",
1924
+ code: "invalid_element",
1925
+ input,
1926
+ inst,
1927
+ key: key,
1928
+ issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1929
+ });
1930
+ }
1931
+ }
1932
+ final.value.set(keyResult.value, valueResult.value);
1933
+ }
1934
+ export const $ZodSet = /*@__PURE__*/ core.$constructor("$ZodSet", (inst, def) => {
1935
+ $ZodType.init(inst, def);
1936
+ const memo = core.globalConfig.memoizer;
1937
+ memo?.attach(inst);
1938
+ inst._zod.parse = (payload, ctx) => {
1939
+ const input = payload.value;
1940
+ if (!(input instanceof Set)) {
1941
+ payload.issues.push({
1942
+ input,
1943
+ inst,
1944
+ expected: "set",
1945
+ code: "invalid_type",
1946
+ });
1947
+ return payload;
1948
+ }
1949
+ const proms = [];
1950
+ payload.value = memo ? memo.alloc(inst, payload, new Set(), ctx) : new Set();
1951
+ const abortEarly = ctx?.abortEarly;
1952
+ let seen = payload.issues.length;
1953
+ for (const item of input) {
1954
+ if (abortEarly && payload.issues.length !== seen) {
1955
+ if (util.aborted(payload, seen))
1956
+ break;
1957
+ seen = payload.issues.length;
1958
+ }
1959
+ const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
1960
+ if (result instanceof Promise) {
1961
+ proms.push(result.then((result) => handleSetResult(result, payload)));
1962
+ }
1963
+ else
1964
+ handleSetResult(result, payload);
1965
+ }
1966
+ if (proms.length)
1967
+ return Promise.all(proms).then(() => payload);
1968
+ return payload;
1969
+ };
1970
+ });
1971
+ function handleSetResult(result, final) {
1972
+ if (result.issues.length) {
1973
+ final.issues.push(...result.issues);
1974
+ }
1975
+ final.value.add(result.value);
1976
+ }
1977
+ export const $ZodEnum = /*@__PURE__*/ core.$constructor("$ZodEnum", (inst, def) => {
1978
+ $ZodType.init(inst, def);
1979
+ const values = util.getEnumValues(def.entries);
1980
+ const valuesSet = new Set(values);
1981
+ inst._zod.values = valuesSet;
1982
+ util.defineLazyInternal(inst, "pattern", (zod) => {
1983
+ const patternValues = util.getEnumValues(zod.def.entries).filter((k) => util.propertyKeyTypes.has(typeof k));
1984
+ // unmatchable fallback, RE2-safe: an empty alternation would compile to /^()$/, which matches ""
1985
+ return new RegExp(patternValues.length ? `^(${patternValues.map((o) => util.escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
1986
+ });
1987
+ inst._zod.parse = (payload, _ctx) => {
1988
+ const input = payload.value;
1989
+ if (valuesSet.has(input)) {
1990
+ return payload;
1991
+ }
1992
+ payload.issues.push({
1993
+ code: "invalid_value",
1994
+ values,
1995
+ input,
1996
+ inst,
1997
+ });
1998
+ return payload;
1999
+ };
2000
+ });
2001
+ export const $ZodLiteral = /*@__PURE__*/ core.$constructor("$ZodLiteral", (inst, def) => {
2002
+ $ZodType.init(inst, def);
2003
+ const values = new Set(def.values);
2004
+ inst._zod.values = values;
2005
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2006
+ const vals = zod.def.values;
2007
+ // unmatchable fallback, RE2-safe: an empty alternation would compile to /^()$/, which matches ""
2008
+ return new RegExp(vals.length
2009
+ ? `^(${vals
2010
+ .map((o) => typeof o === "string" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o))
2011
+ .join("|")})$`
2012
+ : "^[^\\s\\S]$");
2013
+ });
2014
+ inst._zod.parse = (payload, _ctx) => {
2015
+ const input = payload.value;
2016
+ if (values.has(input)) {
2017
+ return payload;
2018
+ }
2019
+ payload.issues.push({
2020
+ code: "invalid_value",
2021
+ values: def.values,
2022
+ input,
2023
+ inst,
2024
+ });
2025
+ return payload;
2026
+ };
2027
+ });
2028
+ export const $ZodFile = /*@__PURE__*/ core.$constructor("$ZodFile", (inst, def) => {
2029
+ $ZodType.init(inst, def);
2030
+ inst._zod.parse = (payload, _ctx) => {
2031
+ const input = payload.value;
2032
+ // @ts-ignore
2033
+ if (input instanceof File)
2034
+ return payload;
2035
+ payload.issues.push({
2036
+ expected: "file",
2037
+ code: "invalid_type",
2038
+ input,
2039
+ inst,
2040
+ });
2041
+ return payload;
2042
+ };
2043
+ });
2044
+ export const $ZodTransform = /*@__PURE__*/ core.$constructor("$ZodTransform", (inst, def) => {
2045
+ $ZodType.init(inst, def);
2046
+ inst._zod.optin = "optional";
2047
+ core.globalConfig.memoizer?.guard(inst);
2048
+ inst._zod.parse = (payload, ctx) => {
2049
+ if (ctx.direction === "backward") {
2050
+ throw new core.$ZodEncodeError(inst.constructor.name);
2051
+ }
2052
+ const _out = def.transform(payload.value, payload);
2053
+ if (ctx.async) {
2054
+ const output = _out instanceof Promise ? _out : Promise.resolve(_out);
2055
+ return output.then((output) => {
2056
+ payload.value = output;
2057
+ return payload;
2058
+ });
2059
+ }
2060
+ if (_out instanceof Promise) {
2061
+ throw new core.$ZodAsyncError();
2062
+ }
2063
+ payload.value = _out;
2064
+ return payload;
2065
+ };
2066
+ });
2067
+ function handleOptionalResult(payload, result) {
2068
+ // A substituting schema that still failed has no usable answer; yield undefined. Its issues are simply dropped: it ran on a payload of its own, so there is no shared array to truncate and nothing of the caller's to lose with it.
2069
+ payload.value = result.issues.length ? undefined : result.value;
2070
+ return payload;
2071
+ }
2072
+ export const $ZodOptional = /*@__PURE__*/ core.$constructor("$ZodOptional", (inst, def) => {
2073
+ $ZodType.init(inst, def);
2074
+ // .optional() propagates absence rather than substituting for it, so a defaulted inner keeps its rung.
2075
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
2076
+ inst._zod.optout = "optional";
2077
+ util.defineLazyInternal(inst, "values", (zod) => {
2078
+ const values = zod.def.innerType._zod.values;
2079
+ return values ? new Set([...values, undefined]) : undefined;
2080
+ });
2081
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2082
+ const pattern = zod.def.innerType._zod.pattern;
2083
+ return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;
2084
+ });
2085
+ inst._zod.parse = (payload, ctx) => {
2086
+ if (payload.value === undefined) {
2087
+ // Only the top rung substitutes a value for absence; everything else leaves it intact, which is what .optional() means.
2088
+ if (def.innerType._zod.optin !== "defaulted")
2089
+ return payload;
2090
+ // Its own payload, for the same reason $ZodCatch gets one: a pipe forwards an unrecognized key through the caller's issues array, and this must not read that as the substituting schema failing and drop it.
2091
+ const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
2092
+ if (result instanceof Promise)
2093
+ return result.then((result) => handleOptionalResult(payload, result));
2094
+ return handleOptionalResult(payload, result);
2095
+ }
2096
+ return def.innerType._zod.run(payload, ctx);
2097
+ };
2098
+ });
2099
+ export const $ZodExactOptional = /*@__PURE__*/ core.$constructor("$ZodExactOptional", (inst, def) => {
2100
+ // Call parent init - inherits optin/optout = "optional"
2101
+ $ZodOptional.init(inst, def);
2102
+ // Override values/pattern to NOT add undefined
2103
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2104
+ util.defineLazyInternal(inst, "pattern", (zod) => zod.def.innerType._zod.pattern);
2105
+ // Override parse to just delegate (no undefined handling)
2106
+ inst._zod.parse = (payload, ctx) => {
2107
+ return def.innerType._zod.run(payload, ctx);
2108
+ };
2109
+ });
2110
+ export const $ZodNullable = /*@__PURE__*/ core.$constructor("$ZodNullable", (inst, def) => {
2111
+ $ZodType.init(inst, def);
2112
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin);
2113
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout);
2114
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2115
+ const pattern = zod.def.innerType._zod.pattern;
2116
+ return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;
2117
+ });
2118
+ util.defineLazyInternal(inst, "values", (zod) => {
2119
+ return zod.def.innerType._zod.values ? new Set([...zod.def.innerType._zod.values, null]) : undefined;
2120
+ });
2121
+ inst._zod.parse = (payload, ctx) => {
2122
+ // Forward direction (decode): allow null to pass through
2123
+ if (payload.value === null)
2124
+ return payload;
2125
+ return def.innerType._zod.run(payload, ctx);
2126
+ };
2127
+ });
2128
+ export const $ZodDefault = /*@__PURE__*/ core.$constructor("$ZodDefault", (inst, def) => {
2129
+ $ZodType.init(inst, def);
2130
+ // inst._zod.qin = "true";
2131
+ inst._zod.optin = "defaulted";
2132
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2133
+ inst._zod.parse = (payload, ctx) => {
2134
+ if (ctx.direction === "backward") {
2135
+ return def.innerType._zod.run(payload, ctx);
2136
+ }
2137
+ // Forward direction (decode): apply defaults for undefined input
2138
+ if (payload.value === undefined) {
2139
+ payload.value = def.defaultValue;
2140
+ /**
2141
+ * $ZodDefault returns the default value immediately in forward direction.
2142
+ * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
2143
+ return payload;
2144
+ }
2145
+ // Forward direction: continue with default handling
2146
+ const result = def.innerType._zod.run(payload, ctx);
2147
+ if (result instanceof Promise) {
2148
+ return result.then((result) => handleDefaultResult(result, def));
2149
+ }
2150
+ return handleDefaultResult(result, def);
2151
+ };
2152
+ });
2153
+ function handleDefaultResult(payload, def) {
2154
+ if (payload.value === undefined) {
2155
+ payload.value = def.defaultValue;
2156
+ }
2157
+ return payload;
2158
+ }
2159
+ export const $ZodPrefault = /*@__PURE__*/ core.$constructor("$ZodPrefault", (inst, def) => {
2160
+ $ZodType.init(inst, def);
2161
+ inst._zod.optin = "defaulted";
2162
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2163
+ inst._zod.parse = (payload, ctx) => {
2164
+ if (ctx.direction === "backward") {
2165
+ return def.innerType._zod.run(payload, ctx);
2166
+ }
2167
+ // Forward direction (decode): apply prefault for undefined input
2168
+ if (payload.value === undefined) {
2169
+ payload.value = def.defaultValue;
2170
+ }
2171
+ return def.innerType._zod.run(payload, ctx);
2172
+ };
2173
+ });
2174
+ export const $ZodNonOptional = /*@__PURE__*/ core.$constructor("$ZodNonOptional", (inst, def) => {
2175
+ $ZodType.init(inst, def);
2176
+ util.defineLazyInternal(inst, "values", (zod) => {
2177
+ const v = zod.def.innerType._zod.values;
2178
+ return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;
2179
+ });
2180
+ inst._zod.parse = (payload, ctx) => {
2181
+ const result = def.innerType._zod.run(payload, ctx);
2182
+ if (result instanceof Promise) {
2183
+ return result.then((result) => handleNonOptionalResult(result, inst));
2184
+ }
2185
+ return handleNonOptionalResult(result, inst);
2186
+ };
2187
+ });
2188
+ function handleNonOptionalResult(payload, inst) {
2189
+ if (!payload.issues.length && payload.value === undefined) {
2190
+ payload.issues.push({
2191
+ code: "invalid_type",
2192
+ expected: "nonoptional",
2193
+ input: payload.value,
2194
+ inst,
2195
+ });
2196
+ }
2197
+ return payload;
2198
+ }
2199
+ export const $ZodSuccess = /*@__PURE__*/ core.$constructor("$ZodSuccess", (inst, def) => {
2200
+ $ZodType.init(inst, def);
2201
+ inst._zod.parse = (payload, ctx) => {
2202
+ if (ctx.direction === "backward") {
2203
+ throw new core.$ZodEncodeError("ZodSuccess");
2204
+ }
2205
+ const result = def.innerType._zod.run(payload, ctx);
2206
+ if (result instanceof Promise) {
2207
+ return result.then((result) => {
2208
+ payload.value = result.issues.length === 0;
2209
+ return payload;
2210
+ });
2211
+ }
2212
+ payload.value = result.issues.length === 0;
2213
+ return payload;
2214
+ };
2215
+ });
2216
+ function handleCatchResult(payload, result, def, ctx) {
2217
+ if (!result.issues.length) {
2218
+ payload.value = result.value;
2219
+ // The value carries up, so the flag describing it has to carry with it: a back-edge into a node still being parsed must not be frozen by an enclosing readonly, and its checks belong to the node itself. Guarded so the ordinary case adds no own property.
2220
+ if (result.memo)
2221
+ payload.memo = true;
2222
+ return payload;
2223
+ }
2224
+ // Spread the inner's own payload, not ours: `value` has to stay the input the catch was handed, and the inner ran on a payload of its own so its issues are already private to this call.
2225
+ payload.value = def.catchValue({
2226
+ ...result,
2227
+ value: payload.value,
2228
+ error: {
2229
+ issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
2230
+ },
2231
+ input: payload.value,
2232
+ });
2233
+ return payload;
2234
+ }
2235
+ export const $ZodCatch = /*@__PURE__*/ core.$constructor("$ZodCatch", (inst, def) => {
2236
+ $ZodType.init(inst, def);
2237
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
2238
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout);
2239
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2240
+ inst._zod.parse = (payload, ctx) => {
2241
+ if (ctx.direction === "backward") {
2242
+ return def.innerType._zod.run(payload, ctx);
2243
+ }
2244
+ // Forward direction (decode): apply catch logic
2245
+ const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
2246
+ if (result instanceof Promise) {
2247
+ return result.then((result) => handleCatchResult(payload, result, def, ctx));
2248
+ }
2249
+ return handleCatchResult(payload, result, def, ctx);
2250
+ };
2251
+ });
2252
+ export const $ZodNaN = /*@__PURE__*/ core.$constructor("$ZodNaN", (inst, def) => {
2253
+ $ZodType.init(inst, def);
2254
+ inst._zod.parse = (payload, _ctx) => {
2255
+ if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {
2256
+ payload.issues.push({
2257
+ input: payload.value,
2258
+ inst,
2259
+ expected: "nan",
2260
+ code: "invalid_type",
2261
+ });
2262
+ return payload;
2263
+ }
2264
+ return payload;
2265
+ };
2266
+ });
2267
+ export const $ZodPipe = /*@__PURE__*/ core.$constructor("$ZodPipe", (inst, def) => {
2268
+ $ZodType.init(inst, def);
2269
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values);
2270
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin);
2271
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout);
2272
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues);
2273
+ inst._zod.parse = (payload, ctx) => {
2274
+ if (ctx.direction === "backward") {
2275
+ const right = def.out._zod.run(payload, ctx);
2276
+ if (right instanceof Promise) {
2277
+ return right.then((right) => handlePipeResult(right, def.in, ctx));
2278
+ }
2279
+ return handlePipeResult(right, def.in, ctx);
2280
+ }
2281
+ const left = def.in._zod.run(payload, ctx);
2282
+ if (left instanceof Promise) {
2283
+ return left.then((left) => handlePipeResult(left, def.out, ctx));
2284
+ }
2285
+ return handlePipeResult(left, def.out, ctx);
2286
+ };
2287
+ });
2288
+ function handlePipeResult(left, next, ctx) {
2289
+ // Any issue stops the pipe, so a failing refinement never feeds its transform. An unrecognized key is the exception: it describes the input's extra properties, not the value being piped, and an enclosing intersection may yet reconcile it.
2290
+ if (left.issues.some((iss) => iss.code !== "unrecognized_keys")) {
2291
+ // prevent further checks
2292
+ left.aborted = true;
2293
+ return left;
2294
+ }
2295
+ return next._zod.run({ value: left.value, issues: left.issues }, ctx);
2296
+ }
2297
+ export const $ZodCodec = /*@__PURE__*/ core.$constructor("$ZodCodec", (inst, def) => {
2298
+ $ZodType.init(inst, def);
2299
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values);
2300
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin);
2301
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout);
2302
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues);
2303
+ inst._zod.parse = (payload, ctx) => {
2304
+ const direction = ctx.direction || "forward";
2305
+ if (direction === "forward") {
2306
+ const left = def.in._zod.run(payload, ctx);
2307
+ if (left instanceof Promise) {
2308
+ return left.then((left) => handleCodecAResult(left, def, ctx));
2309
+ }
2310
+ return handleCodecAResult(left, def, ctx);
2311
+ }
2312
+ else {
2313
+ const right = def.out._zod.run(payload, ctx);
2314
+ if (right instanceof Promise) {
2315
+ return right.then((right) => handleCodecAResult(right, def, ctx));
2316
+ }
2317
+ return handleCodecAResult(right, def, ctx);
2318
+ }
2319
+ };
2320
+ });
2321
+ function handleCodecAResult(result, def, ctx) {
2322
+ if (result.issues.length) {
2323
+ // prevent further checks
2324
+ result.aborted = true;
2325
+ return result;
2326
+ }
2327
+ const direction = ctx.direction || "forward";
2328
+ if (direction === "forward") {
2329
+ const transformed = def.transform(result.value, result);
2330
+ if (transformed instanceof Promise) {
2331
+ return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
2332
+ }
2333
+ return handleCodecTxResult(result, transformed, def.out, ctx);
2334
+ }
2335
+ else {
2336
+ const transformed = def.reverseTransform(result.value, result);
2337
+ if (transformed instanceof Promise) {
2338
+ return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
2339
+ }
2340
+ return handleCodecTxResult(result, transformed, def.in, ctx);
2341
+ }
2342
+ }
2343
+ function handleCodecTxResult(left, value, nextSchema, ctx) {
2344
+ // Check if transform added any issues
2345
+ if (left.issues.length) {
2346
+ left.aborted = true;
2347
+ return left;
2348
+ }
2349
+ return nextSchema._zod.run({ value, issues: left.issues }, ctx);
2350
+ }
2351
+ export const $ZodPreprocess = /*@__PURE__*/ core.$constructor("$ZodPreprocess", (inst, def) => {
2352
+ $ZodPipe.init(inst, def);
2353
+ });
2354
+ export const $ZodReadonly = /*@__PURE__*/ core.$constructor("$ZodReadonly", (inst, def) => {
2355
+ $ZodType.init(inst, def);
2356
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.def.innerType._zod.propValues);
2357
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2358
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType?._zod?.optin);
2359
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.innerType?._zod?.optout);
2360
+ inst._zod.parse = (payload, ctx) => {
2361
+ if (ctx.direction === "backward") {
2362
+ return def.innerType._zod.run(payload, ctx);
2363
+ }
2364
+ const result = def.innerType._zod.run(payload, ctx);
2365
+ if (result instanceof Promise) {
2366
+ return result.then(handleReadonlyResult);
2367
+ }
2368
+ return handleReadonlyResult(result);
2369
+ };
2370
+ });
2371
+ function handleReadonlyResult(payload) {
2372
+ // A repeat visit hands back a node that is still being built; freezing it here would make the rest of its keys fail to assign.
2373
+ if (!payload.memo)
2374
+ payload.value = Object.freeze(payload.value);
2375
+ return payload;
2376
+ }
2377
+ // a leaf's pattern source with its own checks folded in: the last pattern-carrying check wins, else length bounds narrow the catch-all, else an integer format narrows the number form. the fold lives here instead of on `_zod.pattern` so a bundle without template literals never pays for it
2378
+ function leafPattern(schema) {
2379
+ const def = schema._zod.def;
2380
+ let pattern = def.pattern;
2381
+ let isInt = !!def.format?.includes("int");
2382
+ let minimum;
2383
+ let maximum;
2384
+ for (const ch of def.checks ?? []) {
2385
+ const d = ch._zod.def;
2386
+ if (d.pattern)
2387
+ pattern = d.pattern;
2388
+ isInt || (isInt = !!d.format?.includes("int"));
2389
+ const lo = d.minimum ?? d.length;
2390
+ const hi = d.maximum ?? d.length;
2391
+ if (lo !== undefined && (minimum === undefined || lo > minimum))
2392
+ minimum = lo;
2393
+ if (hi !== undefined && (maximum === undefined || hi < maximum))
2394
+ maximum = hi;
2395
+ }
2396
+ if (pattern)
2397
+ return pattern.source;
2398
+ // an empty range matches nothing at runtime, and `{8,5}` is not a legal quantifier
2399
+ if (minimum !== undefined && maximum !== undefined && minimum > maximum)
2400
+ return "(?!)";
2401
+ if (minimum !== undefined || maximum !== undefined)
2402
+ return regexes.string({ minimum, maximum }).source;
2403
+ const own = schema._zod.pattern;
2404
+ return (isInt && own === regexes.number ? regexes.integer : own)?.source;
2405
+ }
2406
+ // a part's pattern source. a wrapper's pattern embeds its inner pattern's source verbatim, so the folded form is substituted in place without knowing the wrapper's own composition; a union's options are joined the way the union builds its own pattern
2407
+ function partPattern(schema) {
2408
+ const def = schema._zod.def;
2409
+ const own = schema._zod.pattern?.source;
2410
+ // lazy resolves its inner on the internals, not the def
2411
+ const inner = def.innerType ?? schema._zod.innerType;
2412
+ if (inner) {
2413
+ const before = inner._zod.pattern?.source;
2414
+ const after = partPattern(inner);
2415
+ if (own && before && after && after !== before) {
2416
+ return own.replace(util.cleanRegex(before), () => util.cleanRegex(after));
2417
+ }
2418
+ return own;
2419
+ }
2420
+ if (def.options) {
2421
+ const sources = def.options.map(partPattern);
2422
+ if (sources.every(Boolean))
2423
+ return `^(${sources.map((s) => util.cleanRegex(s)).join("|")})$`;
2424
+ }
2425
+ return leafPattern(schema);
2426
+ }
2427
+ export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplateLiteral", (inst, def) => {
2428
+ $ZodType.init(inst, def);
2429
+ const regexParts = [];
2430
+ for (const part of def.parts) {
2431
+ if (typeof part === "object" && part !== null) {
2432
+ // is Zod schema
2433
+ const source = partPattern(part);
2434
+ if (!source) {
2435
+ throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
2436
+ }
2437
+ regexParts.push(util.cleanRegex(source));
2438
+ }
2439
+ else if (part === null || util.primitiveTypes.has(typeof part)) {
2440
+ regexParts.push(util.escapeRegex(`${part}`));
2441
+ }
2442
+ else {
2443
+ throw new Error(`Invalid template literal part: ${part}`);
2444
+ }
2445
+ }
2446
+ inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
2447
+ inst._zod.parse = (payload, _ctx) => {
2448
+ if (typeof payload.value !== "string") {
2449
+ payload.issues.push({
2450
+ input: payload.value,
2451
+ inst,
2452
+ expected: "string",
2453
+ code: "invalid_type",
2454
+ });
2455
+ return payload;
2456
+ }
2457
+ inst._zod.pattern.lastIndex = 0;
2458
+ if (!inst._zod.pattern.test(payload.value)) {
2459
+ payload.issues.push({
2460
+ input: payload.value,
2461
+ inst,
2462
+ code: "invalid_format",
2463
+ format: def.format ?? "template_literal",
2464
+ pattern: inst._zod.pattern.source,
2465
+ });
2466
+ return payload;
2467
+ }
2468
+ return payload;
2469
+ };
2470
+ });
2471
+ export const $ZodFunction = /*@__PURE__*/ core.$constructor("$ZodFunction", (inst, def) => {
2472
+ $ZodType.init(inst, def);
2473
+ // Defined, not assigned: the classic prototype exposes `_def` as a getter with no setter.
2474
+ Object.defineProperty(inst, "_def", { value: def });
2475
+ inst._zod.def = def;
2476
+ inst.implement = (func) => {
2477
+ if (typeof func !== "function") {
2478
+ throw new Error("implement() must be called with a function");
2479
+ }
2480
+ // Defined inline so the closure stays anonymous: binding it to a `const` first names it, which costs 256 bytes per implemented function.
2481
+ return Object.defineProperty(function (...args) {
2482
+ const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;
2483
+ const result = Reflect.apply(func, this, parsedArgs);
2484
+ if (inst._def.output) {
2485
+ return parse(inst._def.output, result);
2486
+ }
2487
+ return result;
2488
+ }, "_zod", { value: inst._zod, enumerable: false });
2489
+ };
2490
+ inst.implementAsync = (func) => {
2491
+ if (typeof func !== "function") {
2492
+ throw new Error("implementAsync() must be called with a function");
2493
+ }
2494
+ return Object.defineProperty(async function (...args) {
2495
+ const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args;
2496
+ const result = await Reflect.apply(func, this, parsedArgs);
2497
+ if (inst._def.output) {
2498
+ return await parseAsync(inst._def.output, result);
2499
+ }
2500
+ return result;
2501
+ }, "_zod", { value: inst._zod, enumerable: false });
2502
+ };
2503
+ inst._zod.parse = (payload, _ctx) => {
2504
+ if (typeof payload.value !== "function") {
2505
+ payload.issues.push({
2506
+ code: "invalid_type",
2507
+ expected: "function",
2508
+ input: payload.value,
2509
+ inst,
2510
+ });
2511
+ return payload;
2512
+ }
2513
+ // Check if output is a promise type to determine if we should use async implementation
2514
+ const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise";
2515
+ if (hasPromiseOutput) {
2516
+ payload.value = inst.implementAsync(payload.value);
2517
+ }
2518
+ else {
2519
+ payload.value = inst.implement(payload.value);
2520
+ }
2521
+ return payload;
2522
+ };
2523
+ inst.input = (...args) => {
2524
+ const F = inst.constructor;
2525
+ if (Array.isArray(args[0])) {
2526
+ return new F({
2527
+ type: "function",
2528
+ input: new $ZodTuple({
2529
+ type: "tuple",
2530
+ items: args[0],
2531
+ rest: args[1],
2532
+ }),
2533
+ output: inst._def.output,
2534
+ });
2535
+ }
2536
+ return new F({
2537
+ type: "function",
2538
+ input: args[0],
2539
+ output: inst._def.output,
2540
+ });
2541
+ };
2542
+ inst.output = (output) => {
2543
+ const F = inst.constructor;
2544
+ return new F({
2545
+ type: "function",
2546
+ input: inst._def.input,
2547
+ output,
2548
+ });
2549
+ };
2550
+ return inst;
2551
+ });
2552
+ export const $ZodPromise = /*@__PURE__*/ core.$constructor("$ZodPromise", (inst, def) => {
2553
+ $ZodType.init(inst, def);
2554
+ inst._zod.parse = (payload, ctx) => {
2555
+ return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));
2556
+ };
2557
+ });
2558
+ export const $ZodLazy = /*@__PURE__*/ core.$constructor("$ZodLazy", (inst, def) => {
2559
+ $ZodType.init(inst, def);
2560
+ // Cache the resolved inner type on the shared `def` so all clones of this lazy (e.g. via `.describe()`/`.meta()`) share the same inner instance, preserving identity for cycle detection on recursive schemas.
2561
+ util.defineLazy(inst._zod, "innerType", () => {
2562
+ const d = def;
2563
+ if (!d._cachedInner)
2564
+ d._cachedInner = def.getter();
2565
+ return d._cachedInner;
2566
+ });
2567
+ util.defineLazyInternal(inst, "pattern", (zod) => zod.innerType?._zod?.pattern);
2568
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.innerType?._zod?.propValues);
2569
+ util.defineLazyInternal(inst, "optin", (zod) => zod.innerType?._zod?.optin ?? undefined);
2570
+ util.defineLazyInternal(inst, "optout", (zod) => zod.innerType?._zod?.optout ?? undefined);
2571
+ inst._zod.parse = (payload, ctx) => {
2572
+ const inner = inst._zod.innerType;
2573
+ return inner._zod.run(payload, ctx);
2574
+ };
2575
+ });
2576
+ export const $ZodCustom = /*@__PURE__*/ core.$constructor("$ZodCustom", (inst, def) => {
2577
+ checks.$ZodCheck.init(inst, def);
2578
+ $ZodType.init(inst, def);
2579
+ inst._zod.parse = (payload, _) => {
2580
+ return payload;
2581
+ };
2582
+ inst._zod.check = (payload) => {
2583
+ const input = payload.value;
2584
+ const r = def.fn(input);
2585
+ if (r instanceof Promise) {
2586
+ return r.then((r) => handleRefineResult(r, payload, input, inst));
2587
+ }
2588
+ handleRefineResult(r, payload, input, inst);
2589
+ return;
2590
+ };
2591
+ });
2592
+ function handleRefineResult(result, payload, input, inst) {
2593
+ if (!result) {
2594
+ const _iss = {
2595
+ code: "custom",
2596
+ input,
2597
+ inst, // incorporates params.error into issue reporting
2598
+ path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting
2599
+ continue: !inst._zod.def.abort,
2600
+ // params: inst._zod.def.params,
2601
+ };
2602
+ if (inst._zod.def.params)
2603
+ _iss.params = inst._zod.def.params;
2604
+ payload.issues.push(util.issue(_iss));
2605
+ }
2606
+ }