@alivault/pico 0.14.0 → 0.16.1

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 (703) hide show
  1. package/.output/public/_shell.html +19 -0
  2. package/.output/public/assets/PatchDiff-SN-mXa3p.js +343 -0
  3. package/.output/public/assets/{angular-html-BZNntD0J.js → angular-html-B9LEBPKs.js} +1 -1
  4. package/.output/public/assets/{angular-ts-SQQMYL2C.js → angular-ts-CD6u-Ij9.js} +1 -1
  5. package/.output/public/assets/{apl-D5V6uPDr.js → apl-VeDHIFIx.js} +1 -1
  6. package/.output/public/assets/app-shell-common-0xa28gDm.js +1 -0
  7. package/.output/public/assets/{astro-DeXKSaFP.js → astro-Dd8L1z6M.js} +1 -1
  8. package/.output/public/assets/{blade-Bu5re0Vg.js → blade-BNxrbiva.js} +1 -1
  9. package/.output/public/assets/{bsl-B1qbqNES.js → bsl-B0twaj2j.js} +1 -1
  10. package/.output/public/assets/{cairo-BDj8wWhy.js → cairo-DASKFAWI.js} +1 -1
  11. package/.output/public/assets/{cobol-nvZDS9LT.js → cobol-D_qN8j4K.js} +1 -1
  12. package/.output/public/assets/{coffee-BKLOTq4e.js → coffee-60nIQewd.js} +1 -1
  13. package/.output/public/assets/{cpp-D6g1DVNt.js → cpp-e1j1tDCV.js} +1 -1
  14. package/.output/public/assets/{crystal-DfoZI57w.js → crystal-brDfRjQ_.js} +1 -1
  15. package/.output/public/assets/{edge-DwocGnOF.js → edge-DadfRK3Q.js} +1 -1
  16. package/.output/public/assets/{elixir-Dtbfds1r.js → elixir-CsoHPmz3.js} +1 -1
  17. package/.output/public/assets/{elm-CpPtm471.js → elm-BLTa0sZG.js} +1 -1
  18. package/.output/public/assets/{erb--z3IM9Cb.js → erb-DIR2QRkp.js} +1 -1
  19. package/.output/public/assets/{erlang-Bc4hQuqa.js → erlang-DnbJbitJ.js} +1 -1
  20. package/.output/public/assets/{fortran-fixed-form-B02FOYI-.js → fortran-fixed-form-Bse4XUyD.js} +1 -1
  21. package/.output/public/assets/{fsharp-DhdR18vN.js → fsharp-Dy8OnZ0O.js} +1 -1
  22. package/.output/public/assets/{gdresource-DgnrMPIx.js → gdresource-BD_7yRHA.js} +1 -1
  23. package/.output/public/assets/{git-commit-DGJi7qBD.js → git-commit-CIMjlyHf.js} +1 -1
  24. package/.output/public/assets/{git-rebase-Ce47xoa6.js → git-rebase-DV2DyQK7.js} +1 -1
  25. package/.output/public/assets/{glimmer-js-C0BuzxQC.js → glimmer-js-DVG5pFvd.js} +1 -1
  26. package/.output/public/assets/{glimmer-ts-irOZ-cAQ.js → glimmer-ts-BeWaLARz.js} +1 -1
  27. package/.output/public/assets/{glsl-JAhLUe0P.js → glsl-BrOWUUEh.js} +1 -1
  28. package/.output/public/assets/{graphql-D2ba3BkR.js → graphql-B_3o81z5.js} +1 -1
  29. package/.output/public/assets/{hack-CgzUpY8l.js → hack-BW-0PxQy.js} +1 -1
  30. package/.output/public/assets/{haml-C-oIZcDo.js → haml-DnNXiHAO.js} +1 -1
  31. package/.output/public/assets/{handlebars-CbP-Mhzf.js → handlebars-CftcPtku.js} +1 -1
  32. package/.output/public/assets/{html-ddqpqPg0.js → html-D5IqfVuz.js} +1 -1
  33. package/.output/public/assets/{html-derivative-DWGxf_At.js → html-derivative-QNqmMkaY.js} +1 -1
  34. package/.output/public/assets/{http-Bg1nG1nG.js → http-Dd7eRKUa.js} +1 -1
  35. package/.output/public/assets/{hurl-zm47Pi1n.js → hurl-kBs5Ibg1.js} +1 -1
  36. package/.output/public/assets/{hxml-adC65L_J.js → hxml-CGx66ebi.js} +1 -1
  37. package/.output/public/assets/index-C-mxWGZ5.css +2 -0
  38. package/.output/public/assets/index-FOqZaR4L.js +48 -0
  39. package/.output/public/assets/{jinja-Bnj4awH5.js → jinja-BPoCSjyd.js} +1 -1
  40. package/.output/public/assets/{jison-CuCNs9Q3.js → jison-WHPVy3Jl.js} +1 -1
  41. package/.output/public/assets/{julia-DNYHzXlE.js → julia-BaKiQMPf.js} +1 -1
  42. package/.output/public/assets/{just-BlWkkmf2.js → just-BKMc7tVT.js} +1 -1
  43. package/.output/public/assets/{latex-DqPzjMIt.js → latex-Cczzu1HI.js} +1 -1
  44. package/.output/public/assets/{liquid-BURJK16h.js → liquid-DrJZrMEf.js} +1 -1
  45. package/.output/public/assets/{lua-31hdJClp.js → lua-CFIwCMnP.js} +1 -1
  46. package/.output/public/assets/{marko-C2ZcdSLh.js → marko-BreagErn.js} +1 -1
  47. package/.output/public/assets/{mdc-N1ii9pk5.js → mdc-CBcMHZUq.js} +1 -1
  48. package/.output/public/assets/{nextflow-JEyYUlIq.js → nextflow-CZbrTmS2.js} +1 -1
  49. package/.output/public/assets/{nginx-BuomO0W8.js → nginx-CMOi8dTH.js} +1 -1
  50. package/.output/public/assets/{nim-hKoEPsYL.js → nim-DbDZ9Wa-.js} +1 -1
  51. package/.output/public/assets/{perl-CAGVW6Ra.js → perl-DyRCGnKu.js} +1 -1
  52. package/.output/public/assets/{php-BycclmzS.js → php-Ciarv7b4.js} +1 -1
  53. package/.output/public/assets/plus-B1rJPgNv.js +1 -0
  54. package/.output/public/assets/preload-helper-Csz9R64u.js +5 -0
  55. package/.output/public/assets/{pug-4maJHz9G.js → pug-CVCqbfEm.js} +1 -1
  56. package/.output/public/assets/{qml-JLIQfzyb.js → qml-DechmdFA.js} +1 -1
  57. package/.output/public/assets/query-keys-C9jMaRnO.js +1 -0
  58. package/.output/public/assets/{razor-P8rbooCh.js → razor-bgzHke67.js} +1 -1
  59. package/.output/public/assets/right-sidebar-CWvXcZzC.js +1831 -0
  60. package/.output/public/assets/routes-CXlaorp4.js +23 -0
  61. package/.output/public/assets/{rst-C6GHyL-N.js → rst-Ce6_XwFd.js} +1 -1
  62. package/.output/public/assets/{ruby-Cl8PVkbY.js → ruby-BtLKlt8E.js} +1 -1
  63. package/.output/public/assets/{sas-CXoVwlZN.js → sas-Bco5tnse.js} +1 -1
  64. package/.output/public/assets/{scss-DNczJ95n.js → scss-KPCA05M8.js} +1 -1
  65. package/.output/public/assets/{shaderlab-DZ3Lsiak.js → shaderlab-uUHiM5Mm.js} +1 -1
  66. package/.output/public/assets/{shellsession-COm1V40U.js → shellsession-BnUZVYXU.js} +1 -1
  67. package/.output/public/assets/{soy-DwewhJ_3.js → soy-Dsrg4bVI.js} +1 -1
  68. package/.output/public/assets/{sparql-B9c85a_o.js → sparql-D5zsvcbT.js} +1 -1
  69. package/.output/public/assets/{stata-Bl--TAbZ.js → stata-BdK5CFUf.js} +1 -1
  70. package/.output/public/assets/{surrealql-BW79EE-U.js → surrealql-Blm5wp47.js} +1 -1
  71. package/.output/public/assets/{svelte-ziMErdPi.js → svelte-DZrj_gMz.js} +1 -1
  72. package/.output/public/assets/{templ-C_9I6ncv.js → templ-CJ7sDrtu.js} +1 -1
  73. package/.output/public/assets/terminal-panel-YGR6v-ZH.js +1 -0
  74. package/.output/public/assets/{tex-D8LVuLf5.js → tex-CvSRdXZA.js} +1 -1
  75. package/.output/public/assets/{ts-tags-DKuFCGsc.js → ts-tags-DgGFCSef.js} +1 -1
  76. package/.output/public/assets/{twig-Bs1kcsO6.js → twig-D8_PS89g.js} +1 -1
  77. package/.output/public/assets/{vue-Dnf0y5RU.js → vue-KvGEuYod.js} +1 -1
  78. package/.output/public/assets/{vue-html-CRtKS76J.js → vue-html-qAt9D-IF.js} +1 -1
  79. package/.output/public/assets/{vue-vine-BxjPqU7T.js → vue-vine-j1nOqxMu.js} +1 -1
  80. package/.output/public/assets/{xml-eU7M3iZJ.js → xml-BrFkMwfd.js} +1 -1
  81. package/.output/public/assets/{xsl-DSqe4nTO.js → xsl-OmCo2PyZ.js} +1 -1
  82. package/.output/public/index.html +19 -0
  83. package/README.md +171 -46
  84. package/bin/native-runtime.mjs +265 -0
  85. package/bin/pico.mjs +289 -222
  86. package/package.json +34 -31
  87. package/.output/nitro.json +0 -17
  88. package/.output/public/assets/index-DBVxXDtw.js +0 -54
  89. package/.output/public/assets/routes-yUxD2q-l.js +0 -2194
  90. package/.output/public/assets/styles-CUVz7jV9.css +0 -2
  91. package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +0 -5
  92. package/.output/server/_chunks/ssr-renderer.mjs +0 -15
  93. package/.output/server/_libs/@base-ui/react+[...].mjs +0 -14512
  94. package/.output/server/_libs/@dnd-kit/core+[...].mjs +0 -2748
  95. package/.output/server/_libs/@pierre/diffs+[...].mjs +0 -19314
  96. package/.output/server/_libs/@pierre/trees+[...].mjs +0 -9236
  97. package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +0 -1789
  98. package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +0 -136
  99. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
  100. package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +0 -1607
  101. package/.output/server/_libs/@tanstack/react-router+[...].mjs +0 -13950
  102. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +0 -90
  103. package/.output/server/_libs/bail.mjs +0 -13
  104. package/.output/server/_libs/character-entities.mjs +0 -2135
  105. package/.output/server/_libs/class-variance-authority+clsx.mjs +0 -69
  106. package/.output/server/_libs/cmdk.mjs +0 -473
  107. package/.output/server/_libs/crossws.mjs +0 -2929
  108. package/.output/server/_libs/decode-named-character-reference+[...].mjs +0 -19
  109. package/.output/server/_libs/devlop.mjs +0 -5
  110. package/.output/server/_libs/diff.mjs +0 -732
  111. package/.output/server/_libs/dnd-kit__accessibility.mjs +0 -46
  112. package/.output/server/_libs/dnd-kit__sortable.mjs +0 -400
  113. package/.output/server/_libs/entities.mjs +0 -372
  114. package/.output/server/_libs/escape-string-regexp.mjs +0 -7
  115. package/.output/server/_libs/estree-util-is-identifier-name.mjs +0 -20
  116. package/.output/server/_libs/extend.mjs +0 -75
  117. package/.output/server/_libs/h3+rou3+srvx.mjs +0 -1216
  118. package/.output/server/_libs/hast-util-from-parse5+[...].mjs +0 -741
  119. package/.output/server/_libs/hast-util-raw+[...].mjs +0 -7897
  120. package/.output/server/_libs/hast-util-sanitize.mjs +0 -780
  121. package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +0 -1165
  122. package/.output/server/_libs/hookable.mjs +0 -41
  123. package/.output/server/_libs/html-url-attributes.mjs +0 -44
  124. package/.output/server/_libs/is-plain-obj.mjs +0 -8
  125. package/.output/server/_libs/longest-streak.mjs +0 -29
  126. package/.output/server/_libs/lucide-react.mjs +0 -788
  127. package/.output/server/_libs/markdown-table.mjs +0 -289
  128. package/.output/server/_libs/mdast-util-find-and-replace.mjs +0 -198
  129. package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +0 -8409
  130. package/.output/server/_libs/mdast-util-gfm+[...].mjs +0 -2062
  131. package/.output/server/_libs/mdast-util-to-hast+[...].mjs +0 -1771
  132. package/.output/server/_libs/micromark-extension-gfm+[...].mjs +0 -2234
  133. package/.output/server/_libs/next-themes.mjs +0 -124
  134. package/.output/server/_libs/pierre__theme.mjs +0 -10
  135. package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
  136. package/.output/server/_libs/radix-ui__react-compose-refs.mjs +0 -30
  137. package/.output/server/_libs/radix-ui__react-context.mjs +0 -88
  138. package/.output/server/_libs/react-markdown+[...].mjs +0 -2316
  139. package/.output/server/_libs/rehype-raw.mjs +0 -37
  140. package/.output/server/_libs/rehype-sanitize.mjs +0 -27
  141. package/.output/server/_libs/remark-gfm.mjs +0 -34
  142. package/.output/server/_libs/shiki.mjs +0 -16
  143. package/.output/server/_libs/shikijs__langs.mjs +0 -1355
  144. package/.output/server/_libs/shikijs__themes.mjs +0 -262
  145. package/.output/server/_libs/sonner.mjs +0 -908
  146. package/.output/server/_libs/tailwind-merge.mjs +0 -1962
  147. package/.output/server/_libs/tanstack__history.mjs +0 -342
  148. package/.output/server/_libs/tanstack__pacer.mjs +0 -1111
  149. package/.output/server/_libs/tanstack__query-core.mjs +0 -2202
  150. package/.output/server/_libs/tanstack__react-hotkeys.mjs +0 -152
  151. package/.output/server/_libs/tanstack__react-query.mjs +0 -180
  152. package/.output/server/_libs/tanstack__react-store.mjs +0 -39
  153. package/.output/server/_libs/tanstack__router-core.mjs +0 -6
  154. package/.output/server/_libs/tanstack__store.mjs +0 -28
  155. package/.output/server/_libs/ufo.mjs +0 -64
  156. package/.output/server/_libs/unctx.mjs +0 -82
  157. package/.output/server/_libs/ungap__structured-clone.mjs +0 -197
  158. package/.output/server/_libs/vaul.mjs +0 -1250
  159. package/.output/server/_libs/xterm__addon-fit.mjs +0 -44
  160. package/.output/server/_libs/xterm__xterm.mjs +0 -10234
  161. package/.output/server/_libs/zod.mjs +0 -3341
  162. package/.output/server/_routes/api/terminal/[id]/ws.mjs +0 -8874
  163. package/.output/server/_runtime.mjs +0 -35
  164. package/.output/server/_ssr/router-CN4JMm2A.mjs +0 -9733
  165. package/.output/server/_ssr/routes-BsQ26pbY.mjs +0 -29306
  166. package/.output/server/_ssr/routes-DbjuMLFI.mjs +0 -3400
  167. package/.output/server/_ssr/ssr.mjs +0 -5176
  168. package/.output/server/_ssr/start-jIczsXlR.mjs +0 -4
  169. package/.output/server/_tanstack-start-manifest_v-Bs4g_j1_.mjs +0 -77
  170. package/.output/server/index.mjs +0 -2670
  171. package/.output/server/node_modules/node-pty/LICENSE +0 -69
  172. package/.output/server/node_modules/node-pty/README.md +0 -165
  173. package/.output/server/node_modules/node-pty/binding.gyp +0 -111
  174. package/.output/server/node_modules/node-pty/build/Makefile +0 -369
  175. package/.output/server/node_modules/node-pty/build/Release/pty.node +0 -0
  176. package/.output/server/node_modules/node-pty/build/binding.Makefile +0 -6
  177. package/.output/server/node_modules/node-pty/build/pty.target.mk +0 -168
  178. package/.output/server/node_modules/node-pty/deps/.editorconfig +0 -2
  179. package/.output/server/node_modules/node-pty/deps/winpty/.drone.yml +0 -17
  180. package/.output/server/node_modules/node-pty/deps/winpty/.gitattributes +0 -19
  181. package/.output/server/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  182. package/.output/server/node_modules/node-pty/deps/winpty/Makefile +0 -166
  183. package/.output/server/node_modules/node-pty/deps/winpty/README.md +0 -151
  184. package/.output/server/node_modules/node-pty/deps/winpty/RELEASES.md +0 -280
  185. package/.output/server/node_modules/node-pty/deps/winpty/VERSION.txt +0 -1
  186. package/.output/server/node_modules/node-pty/deps/winpty/configure +0 -167
  187. package/.output/server/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +0 -90
  188. package/.output/server/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +0 -53
  189. package/.output/server/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +0 -72
  190. package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +0 -117
  191. package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  192. package/.output/server/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +0 -113
  193. package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugClient.py +0 -42
  194. package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugServer.py +0 -63
  195. package/.output/server/node_modules/node-pty/deps/winpty/misc/DumpLines.py +0 -5
  196. package/.output/server/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +0 -46
  197. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +0 -528
  198. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +0 -633
  199. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +0 -630
  200. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +0 -630
  201. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +0 -630
  202. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +0 -630
  203. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +0 -16
  204. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +0 -4
  205. package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +0 -144
  206. package/.output/server/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +0 -100
  207. package/.output/server/node_modules/node-pty/deps/winpty/misc/FormatChar.h +0 -21
  208. package/.output/server/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +0 -62
  209. package/.output/server/node_modules/node-pty/deps/winpty/misc/GetCh.cc +0 -20
  210. package/.output/server/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +0 -41
  211. package/.output/server/node_modules/node-pty/deps/winpty/misc/GetFont.cc +0 -261
  212. package/.output/server/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  213. package/.output/server/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +0 -87
  214. package/.output/server/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +0 -90
  215. package/.output/server/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +0 -34
  216. package/.output/server/node_modules/node-pty/deps/winpty/misc/Notes.txt +0 -219
  217. package/.output/server/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +0 -27
  218. package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +0 -101
  219. package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +0 -671
  220. package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +0 -151
  221. package/.output/server/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +0 -45
  222. package/.output/server/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +0 -32
  223. package/.output/server/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +0 -10
  224. package/.output/server/node_modules/node-pty/deps/winpty/misc/SetFont.cc +0 -145
  225. package/.output/server/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +0 -36
  226. package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +0 -12
  227. package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +0 -40
  228. package/.output/server/node_modules/node-pty/deps/winpty/misc/Spew.py +0 -5
  229. package/.output/server/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +0 -172
  230. package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +0 -102
  231. package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +0 -246
  232. package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +0 -130
  233. package/.output/server/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +0 -89
  234. package/.output/server/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +0 -46
  235. package/.output/server/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +0 -122
  236. package/.output/server/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +0 -56
  237. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +0 -52
  238. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +0 -57
  239. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +0 -30
  240. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +0 -26
  241. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +0 -19
  242. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +0 -46
  243. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +0 -70
  244. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +0 -78
  245. package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +0 -44
  246. package/.output/server/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +0 -27
  247. package/.output/server/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +0 -106
  248. package/.output/server/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  249. package/.output/server/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  250. package/.output/server/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  251. package/.output/server/node_modules/node-pty/deps/winpty/misc/font-notes.txt +0 -300
  252. package/.output/server/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +0 -201
  253. package/.output/server/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  254. package/.output/server/node_modules/node-pty/deps/winpty/ship/common_ship.py +0 -53
  255. package/.output/server/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +0 -165
  256. package/.output/server/node_modules/node-pty/deps/winpty/ship/ship.py +0 -108
  257. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +0 -613
  258. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.h +0 -103
  259. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +0 -84
  260. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +0 -28
  261. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +0 -632
  262. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +0 -28
  263. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +0 -852
  264. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +0 -109
  265. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +0 -121
  266. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +0 -36
  267. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +0 -152
  268. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +0 -41
  269. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Coord.h +0 -87
  270. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +0 -239
  271. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +0 -32
  272. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +0 -422
  273. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +0 -28
  274. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +0 -30
  275. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +0 -99
  276. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +0 -47
  277. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +0 -246
  278. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +0 -114
  279. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +0 -71
  280. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +0 -68
  281. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +0 -378
  282. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +0 -125
  283. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +0 -699
  284. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +0 -103
  285. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +0 -75
  286. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +0 -143
  287. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +0 -535
  288. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +0 -69
  289. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +0 -157
  290. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +0 -189
  291. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +0 -107
  292. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +0 -67
  293. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +0 -193
  294. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +0 -99
  295. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/main.cc +0 -114
  296. package/.output/server/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +0 -61
  297. package/.output/server/node_modules/node-pty/deps/winpty/src/configurations.gypi +0 -60
  298. package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +0 -117
  299. package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +0 -41
  300. package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty.h +0 -242
  301. package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +0 -131
  302. package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +0 -75
  303. package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +0 -28
  304. package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +0 -54
  305. package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +0 -72
  306. package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +0 -46
  307. package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +0 -970
  308. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +0 -38
  309. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +0 -122
  310. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +0 -73
  311. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +0 -103
  312. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +0 -102
  313. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +0 -187
  314. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +0 -38
  315. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +0 -138
  316. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +0 -55
  317. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  318. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +0 -54
  319. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +0 -63
  320. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +0 -36
  321. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +0 -45
  322. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +0 -43
  323. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +0 -227
  324. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +0 -114
  325. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +0 -55
  326. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +0 -80
  327. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +0 -63
  328. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +0 -45
  329. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  330. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +0 -460
  331. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +0 -104
  332. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +0 -252
  333. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +0 -29
  334. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +0 -55
  335. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +0 -64
  336. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +0 -57
  337. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +0 -43
  338. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +0 -42
  339. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +0 -27
  340. package/.output/server/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +0 -99
  341. package/.output/server/node_modules/node-pty/deps/winpty/src/subdir.mk +0 -5
  342. package/.output/server/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +0 -28
  343. package/.output/server/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +0 -158
  344. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +0 -114
  345. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +0 -56
  346. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +0 -80
  347. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +0 -53
  348. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +0 -86
  349. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +0 -31
  350. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +0 -70
  351. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +0 -42
  352. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +0 -729
  353. package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +0 -41
  354. package/.output/server/node_modules/node-pty/deps/winpty/src/winpty.gyp +0 -234
  355. package/.output/server/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  356. package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js +0 -16
  357. package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js.map +0 -1
  358. package/.output/server/node_modules/node-pty/lib/eventEmitter2.js +0 -47
  359. package/.output/server/node_modules/node-pty/lib/eventEmitter2.js.map +0 -1
  360. package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  361. package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js.map +0 -1
  362. package/.output/server/node_modules/node-pty/lib/index.js +0 -52
  363. package/.output/server/node_modules/node-pty/lib/index.js.map +0 -1
  364. package/.output/server/node_modules/node-pty/lib/interfaces.js +0 -7
  365. package/.output/server/node_modules/node-pty/lib/interfaces.js.map +0 -1
  366. package/.output/server/node_modules/node-pty/lib/shared/conout.js +0 -11
  367. package/.output/server/node_modules/node-pty/lib/shared/conout.js.map +0 -1
  368. package/.output/server/node_modules/node-pty/lib/terminal.js +0 -190
  369. package/.output/server/node_modules/node-pty/lib/terminal.js.map +0 -1
  370. package/.output/server/node_modules/node-pty/lib/terminal.test.js +0 -139
  371. package/.output/server/node_modules/node-pty/lib/terminal.test.js.map +0 -1
  372. package/.output/server/node_modules/node-pty/lib/testUtils.test.js +0 -28
  373. package/.output/server/node_modules/node-pty/lib/testUtils.test.js.map +0 -1
  374. package/.output/server/node_modules/node-pty/lib/types.js +0 -7
  375. package/.output/server/node_modules/node-pty/lib/types.js.map +0 -1
  376. package/.output/server/node_modules/node-pty/lib/unixTerminal.js +0 -346
  377. package/.output/server/node_modules/node-pty/lib/unixTerminal.js.map +0 -1
  378. package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  379. package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js.map +0 -1
  380. package/.output/server/node_modules/node-pty/lib/utils.js +0 -39
  381. package/.output/server/node_modules/node-pty/lib/utils.js.map +0 -1
  382. package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js +0 -125
  383. package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js.map +0 -1
  384. package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js +0 -320
  385. package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js.map +0 -1
  386. package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  387. package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +0 -1
  388. package/.output/server/node_modules/node-pty/lib/windowsTerminal.js +0 -199
  389. package/.output/server/node_modules/node-pty/lib/windowsTerminal.js.map +0 -1
  390. package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  391. package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js.map +0 -1
  392. package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js +0 -22
  393. package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +0 -1
  394. package/.output/server/node_modules/node-pty/package.json +0 -64
  395. package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  396. package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  397. package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  398. package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  399. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  400. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  401. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
  402. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
  403. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  404. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  405. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
  406. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
  407. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
  408. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
  409. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
  410. package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
  411. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  412. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  413. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  414. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
  415. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  416. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  417. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  418. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
  419. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  420. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
  421. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  422. package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
  423. package/.output/server/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  424. package/.output/server/node_modules/node-pty/scripts/increment-version.js +0 -54
  425. package/.output/server/node_modules/node-pty/scripts/post-install.js +0 -80
  426. package/.output/server/node_modules/node-pty/scripts/prebuild.js +0 -34
  427. package/.output/server/node_modules/node-pty/src/conpty_console_list_agent.ts +0 -15
  428. package/.output/server/node_modules/node-pty/src/eventEmitter2.test.ts +0 -30
  429. package/.output/server/node_modules/node-pty/src/eventEmitter2.ts +0 -48
  430. package/.output/server/node_modules/node-pty/src/index.ts +0 -52
  431. package/.output/server/node_modules/node-pty/src/interfaces.ts +0 -130
  432. package/.output/server/node_modules/node-pty/src/native.d.ts +0 -54
  433. package/.output/server/node_modules/node-pty/src/shared/conout.ts +0 -15
  434. package/.output/server/node_modules/node-pty/src/terminal.test.ts +0 -119
  435. package/.output/server/node_modules/node-pty/src/terminal.ts +0 -211
  436. package/.output/server/node_modules/node-pty/src/testUtils.test.ts +0 -23
  437. package/.output/server/node_modules/node-pty/src/tsconfig.json +0 -22
  438. package/.output/server/node_modules/node-pty/src/types.ts +0 -15
  439. package/.output/server/node_modules/node-pty/src/unix/pty.cc +0 -799
  440. package/.output/server/node_modules/node-pty/src/unix/spawn-helper.cc +0 -23
  441. package/.output/server/node_modules/node-pty/src/unixTerminal.test.ts +0 -367
  442. package/.output/server/node_modules/node-pty/src/unixTerminal.ts +0 -388
  443. package/.output/server/node_modules/node-pty/src/utils.ts +0 -29
  444. package/.output/server/node_modules/node-pty/src/win/conpty.cc +0 -583
  445. package/.output/server/node_modules/node-pty/src/win/conpty.h +0 -41
  446. package/.output/server/node_modules/node-pty/src/win/conpty_console_list.cc +0 -44
  447. package/.output/server/node_modules/node-pty/src/win/path_util.cc +0 -95
  448. package/.output/server/node_modules/node-pty/src/win/path_util.h +0 -26
  449. package/.output/server/node_modules/node-pty/src/win/winpty.cc +0 -333
  450. package/.output/server/node_modules/node-pty/src/windowsConoutConnection.ts +0 -82
  451. package/.output/server/node_modules/node-pty/src/windowsPtyAgent.test.ts +0 -94
  452. package/.output/server/node_modules/node-pty/src/windowsPtyAgent.ts +0 -321
  453. package/.output/server/node_modules/node-pty/src/windowsTerminal.test.ts +0 -229
  454. package/.output/server/node_modules/node-pty/src/windowsTerminal.ts +0 -203
  455. package/.output/server/node_modules/node-pty/src/worker/conoutSocketWorker.ts +0 -22
  456. package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  457. package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
  458. package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  459. package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  460. package/.output/server/node_modules/node-pty/typings/node-pty.d.ts +0 -211
  461. package/.output/server/node_modules/tslib/modules/index.js +0 -70
  462. package/.output/server/node_modules/tslib/modules/package.json +0 -3
  463. package/.output/server/node_modules/tslib/package.json +0 -47
  464. package/.output/server/node_modules/tslib/tslib.js +0 -484
  465. package/.output/server/package.json +0 -10
  466. package/scripts/release.mjs +0 -173
  467. package/vendor/node-domexception/index.js +0 -3
  468. package/vendor/node-domexception/package.json +0 -10
  469. /package/.output/public/assets/{abap-smLpETzL.js → abap-CglpPUUh.js} +0 -0
  470. /package/.output/public/assets/{actionscript-3-o-aRvjY5.js → actionscript-3-CGv72Q9E.js} +0 -0
  471. /package/.output/public/assets/{ada-D5RRX1i4.js → ada-CfxXaXwr.js} +0 -0
  472. /package/.output/public/assets/{addon-fit-CMMXLNsg.js → addon-fit-C9RD8ot3.js} +0 -0
  473. /package/.output/public/assets/{andromeeda-N4z3YzmR.js → andromeeda-DXsn6mTE.js} +0 -0
  474. /package/.output/public/assets/{apache-DttKlSqg.js → apache-D5xAQKSB.js} +0 -0
  475. /package/.output/public/assets/{apex-DL7j-a2n.js → apex-qgfedJV2.js} +0 -0
  476. /package/.output/public/assets/{applescript-DCbL_2FX.js → applescript-DqumQxTt.js} +0 -0
  477. /package/.output/public/assets/{ara-DqheWJCe.js → ara-Ditv3ow6.js} +0 -0
  478. /package/.output/public/assets/{asciidoc-BH2sf2K4.js → asciidoc-DL8QwiT7.js} +0 -0
  479. /package/.output/public/assets/{asm-rfjOMz3U.js → asm-K6TMxl3o.js} +0 -0
  480. /package/.output/public/assets/{aurora-x-CND-FqEb.js → aurora-x-DGv-xZaa.js} +0 -0
  481. /package/.output/public/assets/{awk-CMV5n9Z7.js → awk-CYSfQSDT.js} +0 -0
  482. /package/.output/public/assets/{ayu-dark-on7xzq_B.js → ayu-dark-DGBaJbpH.js} +0 -0
  483. /package/.output/public/assets/{ayu-light-DnGeGGc2.js → ayu-light-BQrGPVs2.js} +0 -0
  484. /package/.output/public/assets/{ayu-mirage-DG3LlYC_.js → ayu-mirage-Do-5o2VL.js} +0 -0
  485. /package/.output/public/assets/{ballerina-BjMqJjlr.js → ballerina-BE-8n54s.js} +0 -0
  486. /package/.output/public/assets/{bat-BaVbo_qw.js → bat-B1zTc1QZ.js} +0 -0
  487. /package/.output/public/assets/{beancount-DBt5Mbc_.js → beancount-DhObrvif.js} +0 -0
  488. /package/.output/public/assets/{berry-Cyjuxiss.js → berry-Cnbvthv1.js} +0 -0
  489. /package/.output/public/assets/{bibtex-BV_0nsPq.js → bibtex-pp5SrwZy.js} +0 -0
  490. /package/.output/public/assets/{bicep-C2gEwu4J.js → bicep-BL6eYxbs.js} +0 -0
  491. /package/.output/public/assets/{bird2-BRyaEJd0.js → bird2-BQaXYY9n.js} +0 -0
  492. /package/.output/public/assets/{c-Nc9zJT78.js → c-BHFJ4Jk3.js} +0 -0
  493. /package/.output/public/assets/{c3-DTTbp5N2.js → c3-BHTco5Hb.js} +0 -0
  494. /package/.output/public/assets/{cadence-CPz83cmI.js → cadence-CoPxW0qb.js} +0 -0
  495. /package/.output/public/assets/{catppuccin-frappe-Dr22sraq.js → catppuccin-frappe-9fYwMJCf.js} +0 -0
  496. /package/.output/public/assets/{catppuccin-latte-C57EeX8c.js → catppuccin-latte-BUiKH1yZ.js} +0 -0
  497. /package/.output/public/assets/{catppuccin-macchiato-CpheI4uD.js → catppuccin-macchiato-ZmO2e0M_.js} +0 -0
  498. /package/.output/public/assets/{catppuccin-mocha-D8Lmdks_.js → catppuccin-mocha-CFwbXQfO.js} +0 -0
  499. /package/.output/public/assets/{clarity-CFJ2Yc3q.js → clarity-DVUGm1xP.js} +0 -0
  500. /package/.output/public/assets/{clojure-6R01QgJC.js → clojure-BgXJG6FG.js} +0 -0
  501. /package/.output/public/assets/{cmake-D5rSbMir.js → cmake-CZndsvm6.js} +0 -0
  502. /package/.output/public/assets/{codeowners-_3A-ClkN.js → codeowners-Dd7a447M.js} +0 -0
  503. /package/.output/public/assets/{codeql-DlIhJTR7.js → codeql-XJR6llG-.js} +0 -0
  504. /package/.output/public/assets/{common-lisp-BvQzz173.js → common-lisp-BOMbLvgT.js} +0 -0
  505. /package/.output/public/assets/{coq-DTNXReIC.js → coq-DnhmQYDa.js} +0 -0
  506. /package/.output/public/assets/{csharp-BDKQY1K9.js → csharp-BdEyRqBm.js} +0 -0
  507. /package/.output/public/assets/{css-DRmnABqB.js → css-CsTDDTLq.js} +0 -0
  508. /package/.output/public/assets/{csv-DNUpVBxl.js → csv-CXchYFbz.js} +0 -0
  509. /package/.output/public/assets/{cue-DDdBc2s3.js → cue-D7YpBZvd.js} +0 -0
  510. /package/.output/public/assets/{cypher-CguaznO2.js → cypher-XIm1N8YJ.js} +0 -0
  511. /package/.output/public/assets/{d-CHcoyjv3.js → d-DvB0pbZH.js} +0 -0
  512. /package/.output/public/assets/{dark-plus-CqeW_0kH.js → dark-plus-BUdpMFIA.js} +0 -0
  513. /package/.output/public/assets/{dart-RM3aRphk.js → dart-CwpSKTMB.js} +0 -0
  514. /package/.output/public/assets/{dax-nbnY1d79.js → dax-CEynWJsU.js} +0 -0
  515. /package/.output/public/assets/{desktop-BD76cvxT.js → desktop-Dk-YiYS_.js} +0 -0
  516. /package/.output/public/assets/{diff-CdkWtnkL.js → diff-abLZ-xM1.js} +0 -0
  517. /package/.output/public/assets/{docker-ZyPHc6zB.js → docker-BT48KsRJ.js} +0 -0
  518. /package/.output/public/assets/{dotenv-BdJZEwA6.js → dotenv-NOMQQbM0.js} +0 -0
  519. /package/.output/public/assets/{dracula-CtqCPLGa.js → dracula-BUW0ZyNO.js} +0 -0
  520. /package/.output/public/assets/{dracula-soft-DmBpwRAy.js → dracula-soft-BMjAt1_u.js} +0 -0
  521. /package/.output/public/assets/{dream-maker-BJL4qlg3.js → dream-maker-D26TP1Q3.js} +0 -0
  522. /package/.output/public/assets/{emacs-lisp-_LyYa2Ky.js → emacs-lisp-C2EvfotR.js} +0 -0
  523. /package/.output/public/assets/{everforest-dark-CrbyKk4n.js → everforest-dark-hC6a272f.js} +0 -0
  524. /package/.output/public/assets/{everforest-light-DRbSh8Tm.js → everforest-light-BTpbYY5G.js} +0 -0
  525. /package/.output/public/assets/{fennel-CC2BkRsS.js → fennel-DWOL-Ewx.js} +0 -0
  526. /package/.output/public/assets/{fish-D2ZCzqcE.js → fish-CQPQq0pQ.js} +0 -0
  527. /package/.output/public/assets/{fluent-DKAm3m7q.js → fluent-BYdsr2M8.js} +0 -0
  528. /package/.output/public/assets/{fortran-free-form-BPTf0lbT.js → fortran-free-form-C_EtY4F9.js} +0 -0
  529. /package/.output/public/assets/{gdscript-CsadCSaZ.js → gdscript-CH_tD-VB.js} +0 -0
  530. /package/.output/public/assets/{gdshader-PfnN_8tR.js → gdshader-BemFblFP.js} +0 -0
  531. /package/.output/public/assets/{genie-Bj-orPAV.js → genie-hCPg_eq7.js} +0 -0
  532. /package/.output/public/assets/{gherkin-COVWpJ-Q.js → gherkin-CO0ypD1P.js} +0 -0
  533. /package/.output/public/assets/{github-dark-ipGuFGYC.js → github-dark-cA72fqmI.js} +0 -0
  534. /package/.output/public/assets/{github-dark-default-DX3IG_X0.js → github-dark-default-DiYTFvY5.js} +0 -0
  535. /package/.output/public/assets/{github-dark-dimmed-CH6p_7ez.js → github-dark-dimmed-D-uBHzyG.js} +0 -0
  536. /package/.output/public/assets/{github-dark-high-contrast-Bg2sSao5.js → github-dark-high-contrast-BrUSkckI.js} +0 -0
  537. /package/.output/public/assets/{github-light-default-DwpDd1IQ.js → github-light-default-BT-6Vf7C.js} +0 -0
  538. /package/.output/public/assets/{github-light-high-contrast-C0QeixPf.js → github-light-high-contrast-DqmEyTTc.js} +0 -0
  539. /package/.output/public/assets/{github-light-BxjqOQl0.js → github-light-piFPqU8R.js} +0 -0
  540. /package/.output/public/assets/{gleam-BF2NigGj.js → gleam-CWJA_H5i.js} +0 -0
  541. /package/.output/public/assets/{gn-CMIt9roj.js → gn-nlTwLSjP.js} +0 -0
  542. /package/.output/public/assets/{gnuplot-DgWlRTEj.js → gnuplot-wYV0MbPl.js} +0 -0
  543. /package/.output/public/assets/{go-DLnOLj8q.js → go-BUPBDRDo.js} +0 -0
  544. /package/.output/public/assets/{groovy-B9qLWIkE.js → groovy-BusafOA8.js} +0 -0
  545. /package/.output/public/assets/{gruvbox-dark-hard-BIMX9ePb.js → gruvbox-dark-hard-BrrZYoPF.js} +0 -0
  546. /package/.output/public/assets/{gruvbox-dark-medium-DxuwyVzM.js → gruvbox-dark-medium-DsxcLuUs.js} +0 -0
  547. /package/.output/public/assets/{gruvbox-dark-soft-ba2fjht0.js → gruvbox-dark-soft-DQXOs_GH.js} +0 -0
  548. /package/.output/public/assets/{gruvbox-light-hard-DAJK2PqC.js → gruvbox-light-hard-CtHwj_cB.js} +0 -0
  549. /package/.output/public/assets/{gruvbox-light-medium-WRifDAJD.js → gruvbox-light-medium-CPJMdgXQ.js} +0 -0
  550. /package/.output/public/assets/{gruvbox-light-soft-B0dBOoVB.js → gruvbox-light-soft-C4Xh9Hc-.js} +0 -0
  551. /package/.output/public/assets/{haskell-BaGpmm_c.js → haskell-CaDqJkn4.js} +0 -0
  552. /package/.output/public/assets/{haxe-DfXTCEOz.js → haxe-Dxg-8_J7.js} +0 -0
  553. /package/.output/public/assets/{hcl-CbCtpSbi.js → hcl-Bjg-rMJ0.js} +0 -0
  554. /package/.output/public/assets/{hjson-_4-w-pHU.js → hjson-BMbeOOMg.js} +0 -0
  555. /package/.output/public/assets/{hlsl-DpuYn7pp.js → hlsl-D-cuwCFV.js} +0 -0
  556. /package/.output/public/assets/{horizon-C5RtD1fY.js → horizon-BofYY9of.js} +0 -0
  557. /package/.output/public/assets/{horizon-bright-pEOice34.js → horizon-bright-CFOVQsf2.js} +0 -0
  558. /package/.output/public/assets/{houston-A0zg9vNP.js → houston-BIBYxFpQ.js} +0 -0
  559. /package/.output/public/assets/{hy-t9zDXBje.js → hy-Cye3Jt7O.js} +0 -0
  560. /package/.output/public/assets/{imba-Bxu-TDfw.js → imba-CjkQtgD2.js} +0 -0
  561. /package/.output/public/assets/{ini-D-v34c8N.js → ini-BvMtfDNl.js} +0 -0
  562. /package/.output/public/assets/{java-DVLnIrqC.js → java-BYO3uQJZ.js} +0 -0
  563. /package/.output/public/assets/{javascript-Cop1kpy_.js → javascript-BsdGTPv_.js} +0 -0
  564. /package/.output/public/assets/{json-CTw4n7kn.js → json-Kp2u6f_f.js} +0 -0
  565. /package/.output/public/assets/{json5-D0XL1D5m.js → json5-BCxDPjxU.js} +0 -0
  566. /package/.output/public/assets/{jsonc-BBgf3TX3.js → jsonc-BV8VFjqO.js} +0 -0
  567. /package/.output/public/assets/{jsonl-KrKLbtB7.js → jsonl-DHrr7c-M.js} +0 -0
  568. /package/.output/public/assets/{jsonnet-B2ZwWMOt.js → jsonnet-xURar8mu.js} +0 -0
  569. /package/.output/public/assets/{jssm-ByRpI9-B.js → jssm-DtoLUQAt.js} +0 -0
  570. /package/.output/public/assets/{jsx-0oMUGqZj.js → jsx-CyrO086S.js} +0 -0
  571. /package/.output/public/assets/{kanagawa-dragon-CtPmcCMp.js → kanagawa-dragon-COwlYgQB.js} +0 -0
  572. /package/.output/public/assets/{kanagawa-lotus-DpOXEGCa.js → kanagawa-lotus-GZWqyq_E.js} +0 -0
  573. /package/.output/public/assets/{kanagawa-wave-CLVCyc-n.js → kanagawa-wave-CP4uw3DX.js} +0 -0
  574. /package/.output/public/assets/{kdl-6FPPEH4H.js → kdl-DGo2N7N5.js} +0 -0
  575. /package/.output/public/assets/{kotlin-D4L3Nd2D.js → kotlin-Cm4W8Bbs.js} +0 -0
  576. /package/.output/public/assets/{kusto-D-mmc07O.js → kusto-DQ22_tcT.js} +0 -0
  577. /package/.output/public/assets/{laserwave-7fEj4XGb.js → laserwave-DfABGYsD.js} +0 -0
  578. /package/.output/public/assets/{lean-BMVMuP2E.js → lean-D-8a6Wwv.js} +0 -0
  579. /package/.output/public/assets/{less-C95PyOu0.js → less-B-qZzFKw.js} +0 -0
  580. /package/.output/public/assets/{light-plus-DHI2dh3p.js → light-plus-DS_rmE1N.js} +0 -0
  581. /package/.output/public/assets/{llvm-Dy3qORTl.js → llvm-Ch-k6TUk.js} +0 -0
  582. /package/.output/public/assets/{log-BQop7fzg.js → log-BGwbCG2S.js} +0 -0
  583. /package/.output/public/assets/{logo-DKtnYmrp.js → logo-DHGHbFWy.js} +0 -0
  584. /package/.output/public/assets/{luau-Dha4KG0q.js → luau-qsvm_nYh.js} +0 -0
  585. /package/.output/public/assets/{make-DfmS6buu.js → make-Dlfjp_Q8.js} +0 -0
  586. /package/.output/public/assets/{markdown-BaI9LyM4.js → markdown-COh4ruD_.js} +0 -0
  587. /package/.output/public/assets/{material-theme-Dm6ETY8i.js → material-theme-Ccrl1jie.js} +0 -0
  588. /package/.output/public/assets/{material-theme-darker-BeyjmM5Z.js → material-theme-darker-CcOH0iHe.js} +0 -0
  589. /package/.output/public/assets/{material-theme-lighter-CCOYYzKL.js → material-theme-lighter-DoKpC7NM.js} +0 -0
  590. /package/.output/public/assets/{material-theme-ocean-CUtPiiX3.js → material-theme-ocean-BcvBZHgH.js} +0 -0
  591. /package/.output/public/assets/{material-theme-palenight-2L4zMwIM.js → material-theme-palenight-DIL4EAzl.js} +0 -0
  592. /package/.output/public/assets/{matlab-BT79Cq_j.js → matlab-CBqMuw7w.js} +0 -0
  593. /package/.output/public/assets/{mdx-CxGBwLNt.js → mdx-BjoJxHxW.js} +0 -0
  594. /package/.output/public/assets/{mermaid-DLf3axBN.js → mermaid-DjAh2yR5.js} +0 -0
  595. /package/.output/public/assets/{min-dark-B8TUPGHg.js → min-dark-CbwghdE5.js} +0 -0
  596. /package/.output/public/assets/{min-light-BDOoBxcA.js → min-light-_F39d_94.js} +0 -0
  597. /package/.output/public/assets/{mipsasm-DXuU_0cI.js → mipsasm-DA1H0O78.js} +0 -0
  598. /package/.output/public/assets/{mojo-1Omp2pIo.js → mojo-BVgjRjTn.js} +0 -0
  599. /package/.output/public/assets/{monokai-E_VBmXGZ.js → monokai-CxgvaWkX.js} +0 -0
  600. /package/.output/public/assets/{moonbit-DZzq699o.js → moonbit-tKY94ZOM.js} +0 -0
  601. /package/.output/public/assets/{move-DxDAOJVd.js → move-B5WspEjG.js} +0 -0
  602. /package/.output/public/assets/{narrat-CxDcPPb9.js → narrat-CDPRStf_.js} +0 -0
  603. /package/.output/public/assets/{nextflow-groovy-wvmJO4hi.js → nextflow-groovy-1GYTZoD5.js} +0 -0
  604. /package/.output/public/assets/{night-owl-DefhalNX.js → night-owl-CCydx7ZR.js} +0 -0
  605. /package/.output/public/assets/{night-owl-light-byb3AbEn.js → night-owl-light-CLM7UUPY.js} +0 -0
  606. /package/.output/public/assets/{nix-DsFTDHWT.js → nix-DXFN4IwW.js} +0 -0
  607. /package/.output/public/assets/{nord-D5rQzHT-.js → nord-CiCWZ1de.js} +0 -0
  608. /package/.output/public/assets/{nushell-BQ_rO0AM.js → nushell-Ck9o2qOx.js} +0 -0
  609. /package/.output/public/assets/{objective-c-BMq6JT_m.js → objective-c-4koxci9E.js} +0 -0
  610. /package/.output/public/assets/{objective-cpp-DRwojuGv.js → objective-cpp-BPFAgSN9.js} +0 -0
  611. /package/.output/public/assets/{ocaml-e4_gKO6E.js → ocaml-BdlBLhZV.js} +0 -0
  612. /package/.output/public/assets/{odin-mdTPwYOg.js → odin-BcGOLCqZ.js} +0 -0
  613. /package/.output/public/assets/{one-dark-pro-DxXww9jg.js → one-dark-pro-DEMdTgiO.js} +0 -0
  614. /package/.output/public/assets/{one-light-D9c03w7t.js → one-light-Cmpe9X1u.js} +0 -0
  615. /package/.output/public/assets/{openscad-D2aTdNfr.js → openscad-DBveSHYE.js} +0 -0
  616. /package/.output/public/assets/{pascal-D4n_G8vj.js → pascal-DxOVE99u.js} +0 -0
  617. /package/.output/public/assets/{pierre-dark-CizZ1Z5z.js → pierre-dark-DIUCKU6U.js} +0 -0
  618. /package/.output/public/assets/{pierre-light-CHMWfAMe.js → pierre-light-DVO2KPlh.js} +0 -0
  619. /package/.output/public/assets/{pkl-DcjhAp0L.js → pkl-pIvtf7Vu.js} +0 -0
  620. /package/.output/public/assets/{plastic-uOsw7z1x.js → plastic-Dvdf8qVN.js} +0 -0
  621. /package/.output/public/assets/{plsql-BSy3Ag0J.js → plsql-d50MFTFK.js} +0 -0
  622. /package/.output/public/assets/{po-Be96RYkA.js → po-CboxWwYg.js} +0 -0
  623. /package/.output/public/assets/{poimandres-CyO4HORD.js → poimandres-DHgQGH4M.js} +0 -0
  624. /package/.output/public/assets/{polar-BmhMKWum.js → polar-DNp7Oek8.js} +0 -0
  625. /package/.output/public/assets/{postcss-BTQso3H9.js → postcss-LpmI6XQv.js} +0 -0
  626. /package/.output/public/assets/{powerquery-DVyQv3M2.js → powerquery-BNCl8Uwz.js} +0 -0
  627. /package/.output/public/assets/{powershell-BmtCGJVD.js → powershell-CZ9J0XuS.js} +0 -0
  628. /package/.output/public/assets/{prisma-CCFA9rEj.js → prisma-AELUiJCl.js} +0 -0
  629. /package/.output/public/assets/{prolog-DWGEEo78.js → prolog-BlqwejRD.js} +0 -0
  630. /package/.output/public/assets/{proto-C3eop1kM.js → proto-DRQC3swD.js} +0 -0
  631. /package/.output/public/assets/{puppet-C0_7Nv5A.js → puppet-DBKR8MlH.js} +0 -0
  632. /package/.output/public/assets/{purescript-Bv-B8yRw.js → purescript-DItLzxZS.js} +0 -0
  633. /package/.output/public/assets/{python-CKg5r0C3.js → python-D9t_ETu8.js} +0 -0
  634. /package/.output/public/assets/{qmldir-Cqfb4Lox.js → qmldir-DP_KD1nk.js} +0 -0
  635. /package/.output/public/assets/{qss-Csho9BH8.js → qss-CL02opOd.js} +0 -0
  636. /package/.output/public/assets/{r-UcxRcvcA.js → r-DmmrCFmB.js} +0 -0
  637. /package/.output/public/assets/{racket-D8-uWeQH.js → racket-K0frLTWj.js} +0 -0
  638. /package/.output/public/assets/{raku-Cj4JSa8p.js → raku-DwgLlPg9.js} +0 -0
  639. /package/.output/public/assets/{red-z4H4llUY.js → red-DzDu-aXc.js} +0 -0
  640. /package/.output/public/assets/{reg-DXGFiJSl.js → reg-B_y3c7di.js} +0 -0
  641. /package/.output/public/assets/{regexp-3-A0406L.js → regexp--eMB47Xx.js} +0 -0
  642. /package/.output/public/assets/{rel-CunnVTBK.js → rel-CT65ywJp.js} +0 -0
  643. /package/.output/public/assets/{riscv-C8BcOCkS.js → riscv-Qv5W2vIg.js} +0 -0
  644. /package/.output/public/assets/{ron-DiDyR9oa.js → ron-cRHu9zPp.js} +0 -0
  645. /package/.output/public/assets/{rose-pine-BADquuIH.js → rose-pine-DFmTJHIJ.js} +0 -0
  646. /package/.output/public/assets/{rose-pine-dawn-BLcEeBoh.js → rose-pine-dawn-YIuK9wUm.js} +0 -0
  647. /package/.output/public/assets/{rose-pine-moon-BK_tLY1Y.js → rose-pine-moon-BYEHfkUB.js} +0 -0
  648. /package/.output/public/assets/{rosmsg-CHmL1Uyj.js → rosmsg-_L1z4wrx.js} +0 -0
  649. /package/.output/public/assets/{rust-DjJFInu3.js → rust-BA5wQ_EY.js} +0 -0
  650. /package/.output/public/assets/{sass-D3xZ5o-v.js → sass-sd__ov8V.js} +0 -0
  651. /package/.output/public/assets/{scala-B0IRml5w.js → scala--cVG4U7H.js} +0 -0
  652. /package/.output/public/assets/{scheme-BhwcV3Av.js → scheme-D6Q1O-kY.js} +0 -0
  653. /package/.output/public/assets/{sdbl-BmWYR-pI.js → sdbl-jB0DUrL_.js} +0 -0
  654. /package/.output/public/assets/{shellscript-DaVPunOM.js → shellscript-DyWRuzkj.js} +0 -0
  655. /package/.output/public/assets/{slack-dark-DOnVms5P.js → slack-dark-DHhAlQBa.js} +0 -0
  656. /package/.output/public/assets/{slack-ochin-DcRTft4q.js → slack-ochin-PZXbcZaN.js} +0 -0
  657. /package/.output/public/assets/{smalltalk-DVQuUMII.js → smalltalk-C7VkdTlv.js} +0 -0
  658. /package/.output/public/assets/{snazzy-light-x9CLJ1W9.js → snazzy-light-CPc_Qts9.js} +0 -0
  659. /package/.output/public/assets/{solarized-dark-BB1sh-pe.js → solarized-dark-DCCfKtTh.js} +0 -0
  660. /package/.output/public/assets/{solarized-light-9-RPS998.js → solarized-light-B84T-R9X.js} +0 -0
  661. /package/.output/public/assets/{solidity-gQ4WXILB.js → solidity-DVsDPpDS.js} +0 -0
  662. /package/.output/public/assets/{splunk-OB48_RcD.js → splunk-A-BwP6Va.js} +0 -0
  663. /package/.output/public/assets/{sql-CrTmZCMa.js → sql-CRzu7iKx.js} +0 -0
  664. /package/.output/public/assets/{ssh-config-DA9YMRGV.js → ssh-config-CFPv6mTy.js} +0 -0
  665. /package/.output/public/assets/{stylus-sKwvsUaC.js → stylus-CUf3IESt.js} +0 -0
  666. /package/.output/public/assets/{swift-C72NbAtg.js → swift-CSiiYB_Q.js} +0 -0
  667. /package/.output/public/assets/{synthwave-84-eJ9uRN_S.js → synthwave-84-uJp1j2Jd.js} +0 -0
  668. /package/.output/public/assets/{system-verilog-CnWMF7Nq.js → system-verilog-rMjKy-O9.js} +0 -0
  669. /package/.output/public/assets/{systemd-DMzItW5N.js → systemd-R-KDM4-t.js} +0 -0
  670. /package/.output/public/assets/{talonscript-DopQCWDL.js → talonscript-D666vCtm.js} +0 -0
  671. /package/.output/public/assets/{tasl-C28SYKbq.js → tasl-68cbBocU.js} +0 -0
  672. /package/.output/public/assets/{tcl-DHq7zmoF.js → tcl-Y39dJ_pX.js} +0 -0
  673. /package/.output/public/assets/{terraform-CogS1YKX.js → terraform-BF7wAo-b.js} +0 -0
  674. /package/.output/public/assets/{tokyo-night-B9N7LyrF.js → tokyo-night-EeABtN82.js} +0 -0
  675. /package/.output/public/assets/{toml-BH_iPsgK.js → toml-BrMFN1JF.js} +0 -0
  676. /package/.output/public/assets/{tsv-BIkdBZX1.js → tsv-Dp2l5v7f.js} +0 -0
  677. /package/.output/public/assets/{tsx-BjkCKOtw.js → tsx-CQqypS0k.js} +0 -0
  678. /package/.output/public/assets/{turtle-CqNXyJWZ.js → turtle-_N1aDtpV.js} +0 -0
  679. /package/.output/public/assets/{typescript-BoHeP9q1.js → typescript-CPmDkqmE.js} +0 -0
  680. /package/.output/public/assets/{typespec-CQ9LYD_e.js → typespec-ghgF2GAI.js} +0 -0
  681. /package/.output/public/assets/{typst-T-Fsk-Sv.js → typst-DP_izaNK.js} +0 -0
  682. /package/.output/public/assets/{v-BhMEOw9x.js → v-CdNC_Wok.js} +0 -0
  683. /package/.output/public/assets/{vala-DzajMnwt.js → vala-Bu4pYkLC.js} +0 -0
  684. /package/.output/public/assets/{vb-7Xr8dEYW.js → vb-u84IyWSS.js} +0 -0
  685. /package/.output/public/assets/{verilog-AvXtwZir.js → verilog-BC33pi7Z.js} +0 -0
  686. /package/.output/public/assets/{vesper-CtgQQ2sf.js → vesper-7-XtS0Kg.js} +0 -0
  687. /package/.output/public/assets/{vhdl-BHu0zg1P.js → vhdl-BBxTOQe0.js} +0 -0
  688. /package/.output/public/assets/{viml-Di0QpLfC.js → viml-X_r-ivXA.js} +0 -0
  689. /package/.output/public/assets/{vitesse-black-jXdfyqgD.js → vitesse-black-DRdlY-cW.js} +0 -0
  690. /package/.output/public/assets/{vitesse-dark-B88PxG1r.js → vitesse-dark-Bz0hOFHJ.js} +0 -0
  691. /package/.output/public/assets/{vitesse-light-BXxZh2iV.js → vitesse-light-7kCLd0yn.js} +0 -0
  692. /package/.output/public/assets/{vyper-C3R5yXgx.js → vyper-E7qIwMXy.js} +0 -0
  693. /package/.output/public/assets/{wasm-D_MQmneJ.js → wasm-BqG9CUph.js} +0 -0
  694. /package/.output/public/assets/{wasm-Chsuwt1A.js → wasm-C18OEcCL.js} +0 -0
  695. /package/.output/public/assets/{wenyan-BonVcr2i.js → wenyan-siXAC4el.js} +0 -0
  696. /package/.output/public/assets/{wgsl-D59WYmNq.js → wgsl-BJQt8Uld.js} +0 -0
  697. /package/.output/public/assets/{wikitext-ariTI2Wk.js → wikitext-Ci0ePJmf.js} +0 -0
  698. /package/.output/public/assets/{wit-EA4fa3Dt.js → wit-BdDJ7geN.js} +0 -0
  699. /package/.output/public/assets/{wolfram-DDp7LhyU.js → wolfram-Bi-O1IUM.js} +0 -0
  700. /package/.output/public/assets/{xterm-CCMwI7sy.js → xterm-TTe2Bv9Z.js} +0 -0
  701. /package/.output/public/assets/{yaml-BTD1XHJG.js → yaml-DgkO7CC2.js} +0 -0
  702. /package/.output/public/assets/{zenscript-4WaROUyc.js → zenscript-CnkrxCBw.js} +0 -0
  703. /package/.output/public/assets/{zig-CJoLJGwV.js → zig-CgMsxF9-.js} +0 -0
@@ -1,3341 +0,0 @@
1
- Object.freeze({ status: "aborted" });
2
- function $constructor(name, initializer, params) {
3
- function init(inst, def) {
4
- if (!inst._zod) Object.defineProperty(inst, "_zod", {
5
- value: {
6
- def,
7
- constr: _,
8
- traits: /* @__PURE__ */ new Set()
9
- },
10
- enumerable: false
11
- });
12
- if (inst._zod.traits.has(name)) return;
13
- inst._zod.traits.add(name);
14
- initializer(inst, def);
15
- const proto = _.prototype;
16
- const keys = Object.keys(proto);
17
- for (let i = 0; i < keys.length; i++) {
18
- const k = keys[i];
19
- if (!(k in inst)) inst[k] = proto[k].bind(inst);
20
- }
21
- }
22
- const Parent = params?.Parent ?? Object;
23
- class Definition extends Parent {}
24
- Object.defineProperty(Definition, "name", { value: name });
25
- function _(def) {
26
- var _a;
27
- const inst = params?.Parent ? new Definition() : this;
28
- init(inst, def);
29
- (_a = inst._zod).deferred ?? (_a.deferred = []);
30
- for (const fn of inst._zod.deferred) fn();
31
- return inst;
32
- }
33
- Object.defineProperty(_, "init", { value: init });
34
- Object.defineProperty(_, Symbol.hasInstance, { value: (inst) => {
35
- if (params?.Parent && inst instanceof params.Parent) return true;
36
- return inst?._zod?.traits?.has(name);
37
- } });
38
- Object.defineProperty(_, "name", { value: name });
39
- return _;
40
- }
41
- var $ZodAsyncError = class extends Error {
42
- constructor() {
43
- super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
44
- }
45
- };
46
- var $ZodEncodeError = class extends Error {
47
- constructor(name) {
48
- super(`Encountered unidirectional transform during encode: ${name}`);
49
- this.name = "ZodEncodeError";
50
- }
51
- };
52
- var globalConfig = {};
53
- function config(newConfig) {
54
- if (newConfig) Object.assign(globalConfig, newConfig);
55
- return globalConfig;
56
- }
57
- //#endregion
58
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
59
- function getEnumValues(entries) {
60
- const numericValues = Object.values(entries).filter((v) => typeof v === "number");
61
- return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
62
- }
63
- function jsonStringifyReplacer(_, value) {
64
- if (typeof value === "bigint") return value.toString();
65
- return value;
66
- }
67
- function cached(getter) {
68
- return { get value() {
69
- {
70
- const value = getter();
71
- Object.defineProperty(this, "value", { value });
72
- return value;
73
- }
74
- throw new Error("cached value already set");
75
- } };
76
- }
77
- function nullish(input) {
78
- return input === null || input === void 0;
79
- }
80
- function cleanRegex(source) {
81
- const start = source.startsWith("^") ? 1 : 0;
82
- const end = source.endsWith("$") ? source.length - 1 : source.length;
83
- return source.slice(start, end);
84
- }
85
- var EVALUATING = Symbol("evaluating");
86
- function defineLazy(object, key, getter) {
87
- let value = void 0;
88
- Object.defineProperty(object, key, {
89
- get() {
90
- if (value === EVALUATING) return;
91
- if (value === void 0) {
92
- value = EVALUATING;
93
- value = getter();
94
- }
95
- return value;
96
- },
97
- set(v) {
98
- Object.defineProperty(object, key, { value: v });
99
- },
100
- configurable: true
101
- });
102
- }
103
- function assignProp(target, prop, value) {
104
- Object.defineProperty(target, prop, {
105
- value,
106
- writable: true,
107
- enumerable: true,
108
- configurable: true
109
- });
110
- }
111
- function mergeDefs(...defs) {
112
- const mergedDescriptors = {};
113
- for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
114
- return Object.defineProperties({}, mergedDescriptors);
115
- }
116
- function esc(str) {
117
- return JSON.stringify(str);
118
- }
119
- function slugify(input) {
120
- return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
121
- }
122
- var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
123
- function isObject(data) {
124
- return typeof data === "object" && data !== null && !Array.isArray(data);
125
- }
126
- var allowsEval = cached(() => {
127
- if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
128
- try {
129
- new Function("");
130
- return true;
131
- } catch (_) {
132
- return false;
133
- }
134
- });
135
- function isPlainObject(o) {
136
- if (isObject(o) === false) return false;
137
- const ctor = o.constructor;
138
- if (ctor === void 0) return true;
139
- if (typeof ctor !== "function") return true;
140
- const prot = ctor.prototype;
141
- if (isObject(prot) === false) return false;
142
- if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
143
- return true;
144
- }
145
- function shallowClone(o) {
146
- if (isPlainObject(o)) return { ...o };
147
- if (Array.isArray(o)) return [...o];
148
- return o;
149
- }
150
- var propertyKeyTypes = new Set([
151
- "string",
152
- "number",
153
- "symbol"
154
- ]);
155
- function escapeRegex(str) {
156
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
157
- }
158
- function clone(inst, def, params) {
159
- const cl = new inst._zod.constr(def ?? inst._zod.def);
160
- if (!def || params?.parent) cl._zod.parent = inst;
161
- return cl;
162
- }
163
- function normalizeParams(_params) {
164
- const params = _params;
165
- if (!params) return {};
166
- if (typeof params === "string") return { error: () => params };
167
- if (params?.message !== void 0) {
168
- if (params?.error !== void 0) throw new Error("Cannot specify both `message` and `error` params");
169
- params.error = params.message;
170
- }
171
- delete params.message;
172
- if (typeof params.error === "string") return {
173
- ...params,
174
- error: () => params.error
175
- };
176
- return params;
177
- }
178
- function optionalKeys(shape) {
179
- return Object.keys(shape).filter((k) => {
180
- return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
181
- });
182
- }
183
- Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, -Number.MAX_VALUE, Number.MAX_VALUE;
184
- function pick(schema, mask) {
185
- const currDef = schema._zod.def;
186
- const checks = currDef.checks;
187
- if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
188
- return clone(schema, mergeDefs(schema._zod.def, {
189
- get shape() {
190
- const newShape = {};
191
- for (const key in mask) {
192
- if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
193
- if (!mask[key]) continue;
194
- newShape[key] = currDef.shape[key];
195
- }
196
- assignProp(this, "shape", newShape);
197
- return newShape;
198
- },
199
- checks: []
200
- }));
201
- }
202
- function omit(schema, mask) {
203
- const currDef = schema._zod.def;
204
- const checks = currDef.checks;
205
- if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
206
- return clone(schema, mergeDefs(schema._zod.def, {
207
- get shape() {
208
- const newShape = { ...schema._zod.def.shape };
209
- for (const key in mask) {
210
- if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
211
- if (!mask[key]) continue;
212
- delete newShape[key];
213
- }
214
- assignProp(this, "shape", newShape);
215
- return newShape;
216
- },
217
- checks: []
218
- }));
219
- }
220
- function extend(schema, shape) {
221
- if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
222
- const checks = schema._zod.def.checks;
223
- if (checks && checks.length > 0) {
224
- const existingShape = schema._zod.def.shape;
225
- for (const key in shape) if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
226
- }
227
- return clone(schema, mergeDefs(schema._zod.def, { get shape() {
228
- const _shape = {
229
- ...schema._zod.def.shape,
230
- ...shape
231
- };
232
- assignProp(this, "shape", _shape);
233
- return _shape;
234
- } }));
235
- }
236
- function safeExtend(schema, shape) {
237
- if (!isPlainObject(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
238
- return clone(schema, mergeDefs(schema._zod.def, { get shape() {
239
- const _shape = {
240
- ...schema._zod.def.shape,
241
- ...shape
242
- };
243
- assignProp(this, "shape", _shape);
244
- return _shape;
245
- } }));
246
- }
247
- function merge(a, b) {
248
- return clone(a, mergeDefs(a._zod.def, {
249
- get shape() {
250
- const _shape = {
251
- ...a._zod.def.shape,
252
- ...b._zod.def.shape
253
- };
254
- assignProp(this, "shape", _shape);
255
- return _shape;
256
- },
257
- get catchall() {
258
- return b._zod.def.catchall;
259
- },
260
- checks: []
261
- }));
262
- }
263
- function partial(Class, schema, mask) {
264
- const checks = schema._zod.def.checks;
265
- if (checks && checks.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements");
266
- return clone(schema, mergeDefs(schema._zod.def, {
267
- get shape() {
268
- const oldShape = schema._zod.def.shape;
269
- const shape = { ...oldShape };
270
- if (mask) for (const key in mask) {
271
- if (!(key in oldShape)) throw new Error(`Unrecognized key: "${key}"`);
272
- if (!mask[key]) continue;
273
- shape[key] = Class ? new Class({
274
- type: "optional",
275
- innerType: oldShape[key]
276
- }) : oldShape[key];
277
- }
278
- else for (const key in oldShape) shape[key] = Class ? new Class({
279
- type: "optional",
280
- innerType: oldShape[key]
281
- }) : oldShape[key];
282
- assignProp(this, "shape", shape);
283
- return shape;
284
- },
285
- checks: []
286
- }));
287
- }
288
- function required(Class, schema, mask) {
289
- return clone(schema, mergeDefs(schema._zod.def, { get shape() {
290
- const oldShape = schema._zod.def.shape;
291
- const shape = { ...oldShape };
292
- if (mask) for (const key in mask) {
293
- if (!(key in shape)) throw new Error(`Unrecognized key: "${key}"`);
294
- if (!mask[key]) continue;
295
- shape[key] = new Class({
296
- type: "nonoptional",
297
- innerType: oldShape[key]
298
- });
299
- }
300
- else for (const key in oldShape) shape[key] = new Class({
301
- type: "nonoptional",
302
- innerType: oldShape[key]
303
- });
304
- assignProp(this, "shape", shape);
305
- return shape;
306
- } }));
307
- }
308
- function aborted(x, startIndex = 0) {
309
- if (x.aborted === true) return true;
310
- for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
311
- return false;
312
- }
313
- function prefixIssues(path, issues) {
314
- return issues.map((iss) => {
315
- var _a;
316
- (_a = iss).path ?? (_a.path = []);
317
- iss.path.unshift(path);
318
- return iss;
319
- });
320
- }
321
- function unwrapMessage(message) {
322
- return typeof message === "string" ? message : message?.message;
323
- }
324
- function finalizeIssue(iss, ctx, config) {
325
- const full = {
326
- ...iss,
327
- path: iss.path ?? []
328
- };
329
- if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
330
- delete full.inst;
331
- delete full.continue;
332
- if (!ctx?.reportInput) delete full.input;
333
- return full;
334
- }
335
- function getLengthableOrigin(input) {
336
- if (Array.isArray(input)) return "array";
337
- if (typeof input === "string") return "string";
338
- return "unknown";
339
- }
340
- function issue(...args) {
341
- const [iss, input, inst] = args;
342
- if (typeof iss === "string") return {
343
- message: iss,
344
- code: "custom",
345
- input,
346
- inst
347
- };
348
- return { ...iss };
349
- }
350
- //#endregion
351
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
352
- var initializer$1 = (inst, def) => {
353
- inst.name = "$ZodError";
354
- Object.defineProperty(inst, "_zod", {
355
- value: inst._zod,
356
- enumerable: false
357
- });
358
- Object.defineProperty(inst, "issues", {
359
- value: def,
360
- enumerable: false
361
- });
362
- inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
363
- Object.defineProperty(inst, "toString", {
364
- value: () => inst.message,
365
- enumerable: false
366
- });
367
- };
368
- var $ZodError = $constructor("$ZodError", initializer$1);
369
- var $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
370
- function flattenError(error, mapper = (issue) => issue.message) {
371
- const fieldErrors = {};
372
- const formErrors = [];
373
- for (const sub of error.issues) if (sub.path.length > 0) {
374
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
375
- fieldErrors[sub.path[0]].push(mapper(sub));
376
- } else formErrors.push(mapper(sub));
377
- return {
378
- formErrors,
379
- fieldErrors
380
- };
381
- }
382
- function formatError(error, mapper = (issue) => issue.message) {
383
- const fieldErrors = { _errors: [] };
384
- const processError = (error) => {
385
- for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }));
386
- else if (issue.code === "invalid_key") processError({ issues: issue.issues });
387
- else if (issue.code === "invalid_element") processError({ issues: issue.issues });
388
- else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue));
389
- else {
390
- let curr = fieldErrors;
391
- let i = 0;
392
- while (i < issue.path.length) {
393
- const el = issue.path[i];
394
- if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
395
- else {
396
- curr[el] = curr[el] || { _errors: [] };
397
- curr[el]._errors.push(mapper(issue));
398
- }
399
- curr = curr[el];
400
- i++;
401
- }
402
- }
403
- };
404
- processError(error);
405
- return fieldErrors;
406
- }
407
- //#endregion
408
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
409
- var _parse = (_Err) => (schema, value, _ctx, _params) => {
410
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
411
- const result = schema._zod.run({
412
- value,
413
- issues: []
414
- }, ctx);
415
- if (result instanceof Promise) throw new $ZodAsyncError();
416
- if (result.issues.length) {
417
- const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
418
- captureStackTrace(e, _params?.callee);
419
- throw e;
420
- }
421
- return result.value;
422
- };
423
- var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
424
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
425
- let result = schema._zod.run({
426
- value,
427
- issues: []
428
- }, ctx);
429
- if (result instanceof Promise) result = await result;
430
- if (result.issues.length) {
431
- const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
432
- captureStackTrace(e, params?.callee);
433
- throw e;
434
- }
435
- return result.value;
436
- };
437
- var _safeParse = (_Err) => (schema, value, _ctx) => {
438
- const ctx = _ctx ? {
439
- ..._ctx,
440
- async: false
441
- } : { async: false };
442
- const result = schema._zod.run({
443
- value,
444
- issues: []
445
- }, ctx);
446
- if (result instanceof Promise) throw new $ZodAsyncError();
447
- return result.issues.length ? {
448
- success: false,
449
- error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
450
- } : {
451
- success: true,
452
- data: result.value
453
- };
454
- };
455
- var safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
456
- var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
457
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
458
- let result = schema._zod.run({
459
- value,
460
- issues: []
461
- }, ctx);
462
- if (result instanceof Promise) result = await result;
463
- return result.issues.length ? {
464
- success: false,
465
- error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
466
- } : {
467
- success: true,
468
- data: result.value
469
- };
470
- };
471
- var safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
472
- var _encode = (_Err) => (schema, value, _ctx) => {
473
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
474
- return _parse(_Err)(schema, value, ctx);
475
- };
476
- var _decode = (_Err) => (schema, value, _ctx) => {
477
- return _parse(_Err)(schema, value, _ctx);
478
- };
479
- var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
480
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
481
- return _parseAsync(_Err)(schema, value, ctx);
482
- };
483
- var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
484
- return _parseAsync(_Err)(schema, value, _ctx);
485
- };
486
- var _safeEncode = (_Err) => (schema, value, _ctx) => {
487
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
488
- return _safeParse(_Err)(schema, value, ctx);
489
- };
490
- var _safeDecode = (_Err) => (schema, value, _ctx) => {
491
- return _safeParse(_Err)(schema, value, _ctx);
492
- };
493
- var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
494
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
495
- return _safeParseAsync(_Err)(schema, value, ctx);
496
- };
497
- var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
498
- return _safeParseAsync(_Err)(schema, value, _ctx);
499
- };
500
- //#endregion
501
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
502
- var cuid = /^[cC][^\s-]{8,}$/;
503
- var cuid2 = /^[0-9a-z]+$/;
504
- var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
505
- var xid = /^[0-9a-vA-V]{20}$/;
506
- var ksuid = /^[A-Za-z0-9]{27}$/;
507
- var nanoid = /^[a-zA-Z0-9_-]{21}$/;
508
- /** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
509
- var duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
510
- /** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
511
- var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
512
- /** Returns a regex for validating an RFC 9562/4122 UUID.
513
- *
514
- * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
515
- var uuid = (version) => {
516
- if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
517
- return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
518
- };
519
- /** Practical email validation */
520
- var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
521
- var _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
522
- function emoji() {
523
- return new RegExp(_emoji$1, "u");
524
- }
525
- var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
526
- var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
527
- var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
528
- var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
529
- var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
530
- var base64url = /^[A-Za-z0-9_-]*$/;
531
- var e164 = /^\+[1-9]\d{6,14}$/;
532
- var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
533
- var date$1 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
534
- function timeSource(args) {
535
- const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
536
- return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
537
- }
538
- function time$1(args) {
539
- return new RegExp(`^${timeSource(args)}$`);
540
- }
541
- function datetime$1(args) {
542
- const time = timeSource({ precision: args.precision });
543
- const opts = ["Z"];
544
- if (args.local) opts.push("");
545
- if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
546
- const timeRegex = `${time}(?:${opts.join("|")})`;
547
- return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
548
- }
549
- var string$1 = (params) => {
550
- const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
551
- return new RegExp(`^${regex}$`);
552
- };
553
- var lowercase = /^[^A-Z]*$/;
554
- var uppercase = /^[^a-z]*$/;
555
- //#endregion
556
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
557
- var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
558
- var _a;
559
- inst._zod ?? (inst._zod = {});
560
- inst._zod.def = def;
561
- (_a = inst._zod).onattach ?? (_a.onattach = []);
562
- });
563
- var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
564
- var _a;
565
- $ZodCheck.init(inst, def);
566
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
567
- const val = payload.value;
568
- return !nullish(val) && val.length !== void 0;
569
- });
570
- inst._zod.onattach.push((inst) => {
571
- const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
572
- if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
573
- });
574
- inst._zod.check = (payload) => {
575
- const input = payload.value;
576
- if (input.length <= def.maximum) return;
577
- const origin = getLengthableOrigin(input);
578
- payload.issues.push({
579
- origin,
580
- code: "too_big",
581
- maximum: def.maximum,
582
- inclusive: true,
583
- input,
584
- inst,
585
- continue: !def.abort
586
- });
587
- };
588
- });
589
- var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
590
- var _a;
591
- $ZodCheck.init(inst, def);
592
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
593
- const val = payload.value;
594
- return !nullish(val) && val.length !== void 0;
595
- });
596
- inst._zod.onattach.push((inst) => {
597
- const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
598
- if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
599
- });
600
- inst._zod.check = (payload) => {
601
- const input = payload.value;
602
- if (input.length >= def.minimum) return;
603
- const origin = getLengthableOrigin(input);
604
- payload.issues.push({
605
- origin,
606
- code: "too_small",
607
- minimum: def.minimum,
608
- inclusive: true,
609
- input,
610
- inst,
611
- continue: !def.abort
612
- });
613
- };
614
- });
615
- var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
616
- var _a;
617
- $ZodCheck.init(inst, def);
618
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
619
- const val = payload.value;
620
- return !nullish(val) && val.length !== void 0;
621
- });
622
- inst._zod.onattach.push((inst) => {
623
- const bag = inst._zod.bag;
624
- bag.minimum = def.length;
625
- bag.maximum = def.length;
626
- bag.length = def.length;
627
- });
628
- inst._zod.check = (payload) => {
629
- const input = payload.value;
630
- const length = input.length;
631
- if (length === def.length) return;
632
- const origin = getLengthableOrigin(input);
633
- const tooBig = length > def.length;
634
- payload.issues.push({
635
- origin,
636
- ...tooBig ? {
637
- code: "too_big",
638
- maximum: def.length
639
- } : {
640
- code: "too_small",
641
- minimum: def.length
642
- },
643
- inclusive: true,
644
- exact: true,
645
- input: payload.value,
646
- inst,
647
- continue: !def.abort
648
- });
649
- };
650
- });
651
- var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
652
- var _a, _b;
653
- $ZodCheck.init(inst, def);
654
- inst._zod.onattach.push((inst) => {
655
- const bag = inst._zod.bag;
656
- bag.format = def.format;
657
- if (def.pattern) {
658
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
659
- bag.patterns.add(def.pattern);
660
- }
661
- });
662
- if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
663
- def.pattern.lastIndex = 0;
664
- if (def.pattern.test(payload.value)) return;
665
- payload.issues.push({
666
- origin: "string",
667
- code: "invalid_format",
668
- format: def.format,
669
- input: payload.value,
670
- ...def.pattern ? { pattern: def.pattern.toString() } : {},
671
- inst,
672
- continue: !def.abort
673
- });
674
- });
675
- else (_b = inst._zod).check ?? (_b.check = () => {});
676
- });
677
- var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
678
- $ZodCheckStringFormat.init(inst, def);
679
- inst._zod.check = (payload) => {
680
- def.pattern.lastIndex = 0;
681
- if (def.pattern.test(payload.value)) return;
682
- payload.issues.push({
683
- origin: "string",
684
- code: "invalid_format",
685
- format: "regex",
686
- input: payload.value,
687
- pattern: def.pattern.toString(),
688
- inst,
689
- continue: !def.abort
690
- });
691
- };
692
- });
693
- var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
694
- def.pattern ?? (def.pattern = lowercase);
695
- $ZodCheckStringFormat.init(inst, def);
696
- });
697
- var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
698
- def.pattern ?? (def.pattern = uppercase);
699
- $ZodCheckStringFormat.init(inst, def);
700
- });
701
- var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
702
- $ZodCheck.init(inst, def);
703
- const escapedRegex = escapeRegex(def.includes);
704
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
705
- def.pattern = pattern;
706
- inst._zod.onattach.push((inst) => {
707
- const bag = inst._zod.bag;
708
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
709
- bag.patterns.add(pattern);
710
- });
711
- inst._zod.check = (payload) => {
712
- if (payload.value.includes(def.includes, def.position)) return;
713
- payload.issues.push({
714
- origin: "string",
715
- code: "invalid_format",
716
- format: "includes",
717
- includes: def.includes,
718
- input: payload.value,
719
- inst,
720
- continue: !def.abort
721
- });
722
- };
723
- });
724
- var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
725
- $ZodCheck.init(inst, def);
726
- const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
727
- def.pattern ?? (def.pattern = pattern);
728
- inst._zod.onattach.push((inst) => {
729
- const bag = inst._zod.bag;
730
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
731
- bag.patterns.add(pattern);
732
- });
733
- inst._zod.check = (payload) => {
734
- if (payload.value.startsWith(def.prefix)) return;
735
- payload.issues.push({
736
- origin: "string",
737
- code: "invalid_format",
738
- format: "starts_with",
739
- prefix: def.prefix,
740
- input: payload.value,
741
- inst,
742
- continue: !def.abort
743
- });
744
- };
745
- });
746
- var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
747
- $ZodCheck.init(inst, def);
748
- const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
749
- def.pattern ?? (def.pattern = pattern);
750
- inst._zod.onattach.push((inst) => {
751
- const bag = inst._zod.bag;
752
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
753
- bag.patterns.add(pattern);
754
- });
755
- inst._zod.check = (payload) => {
756
- if (payload.value.endsWith(def.suffix)) return;
757
- payload.issues.push({
758
- origin: "string",
759
- code: "invalid_format",
760
- format: "ends_with",
761
- suffix: def.suffix,
762
- input: payload.value,
763
- inst,
764
- continue: !def.abort
765
- });
766
- };
767
- });
768
- var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
769
- $ZodCheck.init(inst, def);
770
- inst._zod.check = (payload) => {
771
- payload.value = def.tx(payload.value);
772
- };
773
- });
774
- //#endregion
775
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
776
- var Doc = class {
777
- constructor(args = []) {
778
- this.content = [];
779
- this.indent = 0;
780
- if (this) this.args = args;
781
- }
782
- indented(fn) {
783
- this.indent += 1;
784
- fn(this);
785
- this.indent -= 1;
786
- }
787
- write(arg) {
788
- if (typeof arg === "function") {
789
- arg(this, { execution: "sync" });
790
- arg(this, { execution: "async" });
791
- return;
792
- }
793
- const lines = arg.split("\n").filter((x) => x);
794
- const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
795
- const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
796
- for (const line of dedented) this.content.push(line);
797
- }
798
- compile() {
799
- const F = Function;
800
- const args = this?.args;
801
- const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)];
802
- return new F(...args, lines.join("\n"));
803
- }
804
- };
805
- //#endregion
806
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
807
- var version = {
808
- major: 4,
809
- minor: 3,
810
- patch: 6
811
- };
812
- //#endregion
813
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
814
- var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
815
- var _a;
816
- inst ?? (inst = {});
817
- inst._zod.def = def;
818
- inst._zod.bag = inst._zod.bag || {};
819
- inst._zod.version = version;
820
- const checks = [...inst._zod.def.checks ?? []];
821
- if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
822
- for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
823
- if (checks.length === 0) {
824
- (_a = inst._zod).deferred ?? (_a.deferred = []);
825
- inst._zod.deferred?.push(() => {
826
- inst._zod.run = inst._zod.parse;
827
- });
828
- } else {
829
- const runChecks = (payload, checks, ctx) => {
830
- let isAborted = aborted(payload);
831
- let asyncResult;
832
- for (const ch of checks) {
833
- if (ch._zod.def.when) {
834
- if (!ch._zod.def.when(payload)) continue;
835
- } else if (isAborted) continue;
836
- const currLen = payload.issues.length;
837
- const _ = ch._zod.check(payload);
838
- if (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();
839
- if (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
840
- await _;
841
- if (payload.issues.length === currLen) return;
842
- if (!isAborted) isAborted = aborted(payload, currLen);
843
- });
844
- else {
845
- if (payload.issues.length === currLen) continue;
846
- if (!isAborted) isAborted = aborted(payload, currLen);
847
- }
848
- }
849
- if (asyncResult) return asyncResult.then(() => {
850
- return payload;
851
- });
852
- return payload;
853
- };
854
- const handleCanaryResult = (canary, payload, ctx) => {
855
- if (aborted(canary)) {
856
- canary.aborted = true;
857
- return canary;
858
- }
859
- const checkResult = runChecks(payload, checks, ctx);
860
- if (checkResult instanceof Promise) {
861
- if (ctx.async === false) throw new $ZodAsyncError();
862
- return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
863
- }
864
- return inst._zod.parse(checkResult, ctx);
865
- };
866
- inst._zod.run = (payload, ctx) => {
867
- if (ctx.skipChecks) return inst._zod.parse(payload, ctx);
868
- if (ctx.direction === "backward") {
869
- const canary = inst._zod.parse({
870
- value: payload.value,
871
- issues: []
872
- }, {
873
- ...ctx,
874
- skipChecks: true
875
- });
876
- if (canary instanceof Promise) return canary.then((canary) => {
877
- return handleCanaryResult(canary, payload, ctx);
878
- });
879
- return handleCanaryResult(canary, payload, ctx);
880
- }
881
- const result = inst._zod.parse(payload, ctx);
882
- if (result instanceof Promise) {
883
- if (ctx.async === false) throw new $ZodAsyncError();
884
- return result.then((result) => runChecks(result, checks, ctx));
885
- }
886
- return runChecks(result, checks, ctx);
887
- };
888
- }
889
- defineLazy(inst, "~standard", () => ({
890
- validate: (value) => {
891
- try {
892
- const r = safeParse$1(inst, value);
893
- return r.success ? { value: r.data } : { issues: r.error?.issues };
894
- } catch (_) {
895
- return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
896
- }
897
- },
898
- vendor: "zod",
899
- version: 1
900
- }));
901
- });
902
- var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
903
- $ZodType.init(inst, def);
904
- inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
905
- inst._zod.parse = (payload, _) => {
906
- if (def.coerce) try {
907
- payload.value = String(payload.value);
908
- } catch (_) {}
909
- if (typeof payload.value === "string") return payload;
910
- payload.issues.push({
911
- expected: "string",
912
- code: "invalid_type",
913
- input: payload.value,
914
- inst
915
- });
916
- return payload;
917
- };
918
- });
919
- var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => {
920
- $ZodCheckStringFormat.init(inst, def);
921
- $ZodString.init(inst, def);
922
- });
923
- var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
924
- def.pattern ?? (def.pattern = guid);
925
- $ZodStringFormat.init(inst, def);
926
- });
927
- var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
928
- if (def.version) {
929
- const v = {
930
- v1: 1,
931
- v2: 2,
932
- v3: 3,
933
- v4: 4,
934
- v5: 5,
935
- v6: 6,
936
- v7: 7,
937
- v8: 8
938
- }[def.version];
939
- if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
940
- def.pattern ?? (def.pattern = uuid(v));
941
- } else def.pattern ?? (def.pattern = uuid());
942
- $ZodStringFormat.init(inst, def);
943
- });
944
- var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
945
- def.pattern ?? (def.pattern = email);
946
- $ZodStringFormat.init(inst, def);
947
- });
948
- var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
949
- $ZodStringFormat.init(inst, def);
950
- inst._zod.check = (payload) => {
951
- try {
952
- const trimmed = payload.value.trim();
953
- const url = new URL(trimmed);
954
- if (def.hostname) {
955
- def.hostname.lastIndex = 0;
956
- if (!def.hostname.test(url.hostname)) payload.issues.push({
957
- code: "invalid_format",
958
- format: "url",
959
- note: "Invalid hostname",
960
- pattern: def.hostname.source,
961
- input: payload.value,
962
- inst,
963
- continue: !def.abort
964
- });
965
- }
966
- if (def.protocol) {
967
- def.protocol.lastIndex = 0;
968
- if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) payload.issues.push({
969
- code: "invalid_format",
970
- format: "url",
971
- note: "Invalid protocol",
972
- pattern: def.protocol.source,
973
- input: payload.value,
974
- inst,
975
- continue: !def.abort
976
- });
977
- }
978
- if (def.normalize) payload.value = url.href;
979
- else payload.value = trimmed;
980
- return;
981
- } catch (_) {
982
- payload.issues.push({
983
- code: "invalid_format",
984
- format: "url",
985
- input: payload.value,
986
- inst,
987
- continue: !def.abort
988
- });
989
- }
990
- };
991
- });
992
- var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
993
- def.pattern ?? (def.pattern = emoji());
994
- $ZodStringFormat.init(inst, def);
995
- });
996
- var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
997
- def.pattern ?? (def.pattern = nanoid);
998
- $ZodStringFormat.init(inst, def);
999
- });
1000
- var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
1001
- def.pattern ?? (def.pattern = cuid);
1002
- $ZodStringFormat.init(inst, def);
1003
- });
1004
- var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
1005
- def.pattern ?? (def.pattern = cuid2);
1006
- $ZodStringFormat.init(inst, def);
1007
- });
1008
- var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
1009
- def.pattern ?? (def.pattern = ulid);
1010
- $ZodStringFormat.init(inst, def);
1011
- });
1012
- var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
1013
- def.pattern ?? (def.pattern = xid);
1014
- $ZodStringFormat.init(inst, def);
1015
- });
1016
- var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
1017
- def.pattern ?? (def.pattern = ksuid);
1018
- $ZodStringFormat.init(inst, def);
1019
- });
1020
- var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
1021
- def.pattern ?? (def.pattern = datetime$1(def));
1022
- $ZodStringFormat.init(inst, def);
1023
- });
1024
- var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
1025
- def.pattern ?? (def.pattern = date$1);
1026
- $ZodStringFormat.init(inst, def);
1027
- });
1028
- var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
1029
- def.pattern ?? (def.pattern = time$1(def));
1030
- $ZodStringFormat.init(inst, def);
1031
- });
1032
- var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
1033
- def.pattern ?? (def.pattern = duration$1);
1034
- $ZodStringFormat.init(inst, def);
1035
- });
1036
- var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
1037
- def.pattern ?? (def.pattern = ipv4);
1038
- $ZodStringFormat.init(inst, def);
1039
- inst._zod.bag.format = `ipv4`;
1040
- });
1041
- var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
1042
- def.pattern ?? (def.pattern = ipv6);
1043
- $ZodStringFormat.init(inst, def);
1044
- inst._zod.bag.format = `ipv6`;
1045
- inst._zod.check = (payload) => {
1046
- try {
1047
- new URL(`http://[${payload.value}]`);
1048
- } catch {
1049
- payload.issues.push({
1050
- code: "invalid_format",
1051
- format: "ipv6",
1052
- input: payload.value,
1053
- inst,
1054
- continue: !def.abort
1055
- });
1056
- }
1057
- };
1058
- });
1059
- var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
1060
- def.pattern ?? (def.pattern = cidrv4);
1061
- $ZodStringFormat.init(inst, def);
1062
- });
1063
- var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
1064
- def.pattern ?? (def.pattern = cidrv6);
1065
- $ZodStringFormat.init(inst, def);
1066
- inst._zod.check = (payload) => {
1067
- const parts = payload.value.split("/");
1068
- try {
1069
- if (parts.length !== 2) throw new Error();
1070
- const [address, prefix] = parts;
1071
- if (!prefix) throw new Error();
1072
- const prefixNum = Number(prefix);
1073
- if (`${prefixNum}` !== prefix) throw new Error();
1074
- if (prefixNum < 0 || prefixNum > 128) throw new Error();
1075
- new URL(`http://[${address}]`);
1076
- } catch {
1077
- payload.issues.push({
1078
- code: "invalid_format",
1079
- format: "cidrv6",
1080
- input: payload.value,
1081
- inst,
1082
- continue: !def.abort
1083
- });
1084
- }
1085
- };
1086
- });
1087
- function isValidBase64(data) {
1088
- if (data === "") return true;
1089
- if (data.length % 4 !== 0) return false;
1090
- try {
1091
- atob(data);
1092
- return true;
1093
- } catch {
1094
- return false;
1095
- }
1096
- }
1097
- var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
1098
- def.pattern ?? (def.pattern = base64);
1099
- $ZodStringFormat.init(inst, def);
1100
- inst._zod.bag.contentEncoding = "base64";
1101
- inst._zod.check = (payload) => {
1102
- if (isValidBase64(payload.value)) return;
1103
- payload.issues.push({
1104
- code: "invalid_format",
1105
- format: "base64",
1106
- input: payload.value,
1107
- inst,
1108
- continue: !def.abort
1109
- });
1110
- };
1111
- });
1112
- function isValidBase64URL(data) {
1113
- if (!base64url.test(data)) return false;
1114
- const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1115
- return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
1116
- }
1117
- var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
1118
- def.pattern ?? (def.pattern = base64url);
1119
- $ZodStringFormat.init(inst, def);
1120
- inst._zod.bag.contentEncoding = "base64url";
1121
- inst._zod.check = (payload) => {
1122
- if (isValidBase64URL(payload.value)) return;
1123
- payload.issues.push({
1124
- code: "invalid_format",
1125
- format: "base64url",
1126
- input: payload.value,
1127
- inst,
1128
- continue: !def.abort
1129
- });
1130
- };
1131
- });
1132
- var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
1133
- def.pattern ?? (def.pattern = e164);
1134
- $ZodStringFormat.init(inst, def);
1135
- });
1136
- function isValidJWT(token, algorithm = null) {
1137
- try {
1138
- const tokensParts = token.split(".");
1139
- if (tokensParts.length !== 3) return false;
1140
- const [header] = tokensParts;
1141
- if (!header) return false;
1142
- const parsedHeader = JSON.parse(atob(header));
1143
- if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
1144
- if (!parsedHeader.alg) return false;
1145
- if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) return false;
1146
- return true;
1147
- } catch {
1148
- return false;
1149
- }
1150
- }
1151
- var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
1152
- $ZodStringFormat.init(inst, def);
1153
- inst._zod.check = (payload) => {
1154
- if (isValidJWT(payload.value, def.alg)) return;
1155
- payload.issues.push({
1156
- code: "invalid_format",
1157
- format: "jwt",
1158
- input: payload.value,
1159
- inst,
1160
- continue: !def.abort
1161
- });
1162
- };
1163
- });
1164
- var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
1165
- $ZodType.init(inst, def);
1166
- inst._zod.parse = (payload) => payload;
1167
- });
1168
- var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
1169
- $ZodType.init(inst, def);
1170
- inst._zod.parse = (payload, _ctx) => {
1171
- payload.issues.push({
1172
- expected: "never",
1173
- code: "invalid_type",
1174
- input: payload.value,
1175
- inst
1176
- });
1177
- return payload;
1178
- };
1179
- });
1180
- function handleArrayResult(result, final, index) {
1181
- if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
1182
- final.value[index] = result.value;
1183
- }
1184
- var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1185
- $ZodType.init(inst, def);
1186
- inst._zod.parse = (payload, ctx) => {
1187
- const input = payload.value;
1188
- if (!Array.isArray(input)) {
1189
- payload.issues.push({
1190
- expected: "array",
1191
- code: "invalid_type",
1192
- input,
1193
- inst
1194
- });
1195
- return payload;
1196
- }
1197
- payload.value = Array(input.length);
1198
- const proms = [];
1199
- for (let i = 0; i < input.length; i++) {
1200
- const item = input[i];
1201
- const result = def.element._zod.run({
1202
- value: item,
1203
- issues: []
1204
- }, ctx);
1205
- if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
1206
- else handleArrayResult(result, payload, i);
1207
- }
1208
- if (proms.length) return Promise.all(proms).then(() => payload);
1209
- return payload;
1210
- };
1211
- });
1212
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
1213
- if (result.issues.length) {
1214
- if (isOptionalOut && !(key in input)) return;
1215
- final.issues.push(...prefixIssues(key, result.issues));
1216
- }
1217
- if (result.value === void 0) {
1218
- if (key in input) final.value[key] = void 0;
1219
- } else final.value[key] = result.value;
1220
- }
1221
- function normalizeDef(def) {
1222
- const keys = Object.keys(def.shape);
1223
- for (const k of keys) if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
1224
- const okeys = optionalKeys(def.shape);
1225
- return {
1226
- ...def,
1227
- keys,
1228
- keySet: new Set(keys),
1229
- numKeys: keys.length,
1230
- optionalKeys: new Set(okeys)
1231
- };
1232
- }
1233
- function handleCatchall(proms, input, payload, ctx, def, inst) {
1234
- const unrecognized = [];
1235
- const keySet = def.keySet;
1236
- const _catchall = def.catchall._zod;
1237
- const t = _catchall.def.type;
1238
- const isOptionalOut = _catchall.optout === "optional";
1239
- for (const key in input) {
1240
- if (keySet.has(key)) continue;
1241
- if (t === "never") {
1242
- unrecognized.push(key);
1243
- continue;
1244
- }
1245
- const r = _catchall.run({
1246
- value: input[key],
1247
- issues: []
1248
- }, ctx);
1249
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
1250
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
1251
- }
1252
- if (unrecognized.length) payload.issues.push({
1253
- code: "unrecognized_keys",
1254
- keys: unrecognized,
1255
- input,
1256
- inst
1257
- });
1258
- if (!proms.length) return payload;
1259
- return Promise.all(proms).then(() => {
1260
- return payload;
1261
- });
1262
- }
1263
- var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
1264
- $ZodType.init(inst, def);
1265
- if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
1266
- const sh = def.shape;
1267
- Object.defineProperty(def, "shape", { get: () => {
1268
- const newSh = { ...sh };
1269
- Object.defineProperty(def, "shape", { value: newSh });
1270
- return newSh;
1271
- } });
1272
- }
1273
- const _normalized = cached(() => normalizeDef(def));
1274
- defineLazy(inst._zod, "propValues", () => {
1275
- const shape = def.shape;
1276
- const propValues = {};
1277
- for (const key in shape) {
1278
- const field = shape[key]._zod;
1279
- if (field.values) {
1280
- propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
1281
- for (const v of field.values) propValues[key].add(v);
1282
- }
1283
- }
1284
- return propValues;
1285
- });
1286
- const isObject$2 = isObject;
1287
- const catchall = def.catchall;
1288
- let value;
1289
- inst._zod.parse = (payload, ctx) => {
1290
- value ?? (value = _normalized.value);
1291
- const input = payload.value;
1292
- if (!isObject$2(input)) {
1293
- payload.issues.push({
1294
- expected: "object",
1295
- code: "invalid_type",
1296
- input,
1297
- inst
1298
- });
1299
- return payload;
1300
- }
1301
- payload.value = {};
1302
- const proms = [];
1303
- const shape = value.shape;
1304
- for (const key of value.keys) {
1305
- const el = shape[key];
1306
- const isOptionalOut = el._zod.optout === "optional";
1307
- const r = el._zod.run({
1308
- value: input[key],
1309
- issues: []
1310
- }, ctx);
1311
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
1312
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
1313
- }
1314
- if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
1315
- return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
1316
- };
1317
- });
1318
- var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
1319
- $ZodObject.init(inst, def);
1320
- const superParse = inst._zod.parse;
1321
- const _normalized = cached(() => normalizeDef(def));
1322
- const generateFastpass = (shape) => {
1323
- const doc = new Doc([
1324
- "shape",
1325
- "payload",
1326
- "ctx"
1327
- ]);
1328
- const normalized = _normalized.value;
1329
- const parseStr = (key) => {
1330
- const k = esc(key);
1331
- return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1332
- };
1333
- doc.write(`const input = payload.value;`);
1334
- const ids = Object.create(null);
1335
- let counter = 0;
1336
- for (const key of normalized.keys) ids[key] = `key_${counter++}`;
1337
- doc.write(`const newResult = {};`);
1338
- for (const key of normalized.keys) {
1339
- const id = ids[key];
1340
- const k = esc(key);
1341
- const isOptionalOut = shape[key]?._zod?.optout === "optional";
1342
- doc.write(`const ${id} = ${parseStr(key)};`);
1343
- if (isOptionalOut) doc.write(`
1344
- if (${id}.issues.length) {
1345
- if (${k} in input) {
1346
- payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
1347
- ...iss,
1348
- path: iss.path ? [${k}, ...iss.path] : [${k}]
1349
- })));
1350
- }
1351
- }
1352
-
1353
- if (${id}.value === undefined) {
1354
- if (${k} in input) {
1355
- newResult[${k}] = undefined;
1356
- }
1357
- } else {
1358
- newResult[${k}] = ${id}.value;
1359
- }
1360
-
1361
- `);
1362
- else doc.write(`
1363
- if (${id}.issues.length) {
1364
- payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
1365
- ...iss,
1366
- path: iss.path ? [${k}, ...iss.path] : [${k}]
1367
- })));
1368
- }
1369
-
1370
- if (${id}.value === undefined) {
1371
- if (${k} in input) {
1372
- newResult[${k}] = undefined;
1373
- }
1374
- } else {
1375
- newResult[${k}] = ${id}.value;
1376
- }
1377
-
1378
- `);
1379
- }
1380
- doc.write(`payload.value = newResult;`);
1381
- doc.write(`return payload;`);
1382
- const fn = doc.compile();
1383
- return (payload, ctx) => fn(shape, payload, ctx);
1384
- };
1385
- let fastpass;
1386
- const isObject$1 = isObject;
1387
- const jit = !globalConfig.jitless;
1388
- const fastEnabled = jit && allowsEval.value;
1389
- const catchall = def.catchall;
1390
- let value;
1391
- inst._zod.parse = (payload, ctx) => {
1392
- value ?? (value = _normalized.value);
1393
- const input = payload.value;
1394
- if (!isObject$1(input)) {
1395
- payload.issues.push({
1396
- expected: "object",
1397
- code: "invalid_type",
1398
- input,
1399
- inst
1400
- });
1401
- return payload;
1402
- }
1403
- if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
1404
- if (!fastpass) fastpass = generateFastpass(def.shape);
1405
- payload = fastpass(payload, ctx);
1406
- if (!catchall) return payload;
1407
- return handleCatchall([], input, payload, ctx, value, inst);
1408
- }
1409
- return superParse(payload, ctx);
1410
- };
1411
- });
1412
- function handleUnionResults(results, final, inst, ctx) {
1413
- for (const result of results) if (result.issues.length === 0) {
1414
- final.value = result.value;
1415
- return final;
1416
- }
1417
- const nonaborted = results.filter((r) => !aborted(r));
1418
- if (nonaborted.length === 1) {
1419
- final.value = nonaborted[0].value;
1420
- return nonaborted[0];
1421
- }
1422
- final.issues.push({
1423
- code: "invalid_union",
1424
- input: final.value,
1425
- inst,
1426
- errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
1427
- });
1428
- return final;
1429
- }
1430
- var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
1431
- $ZodType.init(inst, def);
1432
- defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
1433
- defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
1434
- defineLazy(inst._zod, "values", () => {
1435
- if (def.options.every((o) => o._zod.values)) return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
1436
- });
1437
- defineLazy(inst._zod, "pattern", () => {
1438
- if (def.options.every((o) => o._zod.pattern)) {
1439
- const patterns = def.options.map((o) => o._zod.pattern);
1440
- return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
1441
- }
1442
- });
1443
- const single = def.options.length === 1;
1444
- const first = def.options[0]._zod.run;
1445
- inst._zod.parse = (payload, ctx) => {
1446
- if (single) return first(payload, ctx);
1447
- let async = false;
1448
- const results = [];
1449
- for (const option of def.options) {
1450
- const result = option._zod.run({
1451
- value: payload.value,
1452
- issues: []
1453
- }, ctx);
1454
- if (result instanceof Promise) {
1455
- results.push(result);
1456
- async = true;
1457
- } else {
1458
- if (result.issues.length === 0) return result;
1459
- results.push(result);
1460
- }
1461
- }
1462
- if (!async) return handleUnionResults(results, payload, inst, ctx);
1463
- return Promise.all(results).then((results) => {
1464
- return handleUnionResults(results, payload, inst, ctx);
1465
- });
1466
- };
1467
- });
1468
- var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
1469
- $ZodType.init(inst, def);
1470
- inst._zod.parse = (payload, ctx) => {
1471
- const input = payload.value;
1472
- const left = def.left._zod.run({
1473
- value: input,
1474
- issues: []
1475
- }, ctx);
1476
- const right = def.right._zod.run({
1477
- value: input,
1478
- issues: []
1479
- }, ctx);
1480
- if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => {
1481
- return handleIntersectionResults(payload, left, right);
1482
- });
1483
- return handleIntersectionResults(payload, left, right);
1484
- };
1485
- });
1486
- function mergeValues(a, b) {
1487
- if (a === b) return {
1488
- valid: true,
1489
- data: a
1490
- };
1491
- if (a instanceof Date && b instanceof Date && +a === +b) return {
1492
- valid: true,
1493
- data: a
1494
- };
1495
- if (isPlainObject(a) && isPlainObject(b)) {
1496
- const bKeys = Object.keys(b);
1497
- const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1498
- const newObj = {
1499
- ...a,
1500
- ...b
1501
- };
1502
- for (const key of sharedKeys) {
1503
- const sharedValue = mergeValues(a[key], b[key]);
1504
- if (!sharedValue.valid) return {
1505
- valid: false,
1506
- mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
1507
- };
1508
- newObj[key] = sharedValue.data;
1509
- }
1510
- return {
1511
- valid: true,
1512
- data: newObj
1513
- };
1514
- }
1515
- if (Array.isArray(a) && Array.isArray(b)) {
1516
- if (a.length !== b.length) return {
1517
- valid: false,
1518
- mergeErrorPath: []
1519
- };
1520
- const newArray = [];
1521
- for (let index = 0; index < a.length; index++) {
1522
- const itemA = a[index];
1523
- const itemB = b[index];
1524
- const sharedValue = mergeValues(itemA, itemB);
1525
- if (!sharedValue.valid) return {
1526
- valid: false,
1527
- mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
1528
- };
1529
- newArray.push(sharedValue.data);
1530
- }
1531
- return {
1532
- valid: true,
1533
- data: newArray
1534
- };
1535
- }
1536
- return {
1537
- valid: false,
1538
- mergeErrorPath: []
1539
- };
1540
- }
1541
- function handleIntersectionResults(result, left, right) {
1542
- const unrecKeys = /* @__PURE__ */ new Map();
1543
- let unrecIssue;
1544
- for (const iss of left.issues) if (iss.code === "unrecognized_keys") {
1545
- unrecIssue ?? (unrecIssue = iss);
1546
- for (const k of iss.keys) {
1547
- if (!unrecKeys.has(k)) unrecKeys.set(k, {});
1548
- unrecKeys.get(k).l = true;
1549
- }
1550
- } else result.issues.push(iss);
1551
- for (const iss of right.issues) if (iss.code === "unrecognized_keys") for (const k of iss.keys) {
1552
- if (!unrecKeys.has(k)) unrecKeys.set(k, {});
1553
- unrecKeys.get(k).r = true;
1554
- }
1555
- else result.issues.push(iss);
1556
- const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
1557
- if (bothKeys.length && unrecIssue) result.issues.push({
1558
- ...unrecIssue,
1559
- keys: bothKeys
1560
- });
1561
- if (aborted(result)) return result;
1562
- const merged = mergeValues(left.value, right.value);
1563
- if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
1564
- result.value = merged.data;
1565
- return result;
1566
- }
1567
- var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
1568
- $ZodType.init(inst, def);
1569
- const values = getEnumValues(def.entries);
1570
- const valuesSet = new Set(values);
1571
- inst._zod.values = valuesSet;
1572
- inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
1573
- inst._zod.parse = (payload, _ctx) => {
1574
- const input = payload.value;
1575
- if (valuesSet.has(input)) return payload;
1576
- payload.issues.push({
1577
- code: "invalid_value",
1578
- values,
1579
- input,
1580
- inst
1581
- });
1582
- return payload;
1583
- };
1584
- });
1585
- var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
1586
- $ZodType.init(inst, def);
1587
- inst._zod.parse = (payload, ctx) => {
1588
- if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
1589
- const _out = def.transform(payload.value, payload);
1590
- if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
1591
- payload.value = output;
1592
- return payload;
1593
- });
1594
- if (_out instanceof Promise) throw new $ZodAsyncError();
1595
- payload.value = _out;
1596
- return payload;
1597
- };
1598
- });
1599
- function handleOptionalResult(result, input) {
1600
- if (result.issues.length && input === void 0) return {
1601
- issues: [],
1602
- value: void 0
1603
- };
1604
- return result;
1605
- }
1606
- var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
1607
- $ZodType.init(inst, def);
1608
- inst._zod.optin = "optional";
1609
- inst._zod.optout = "optional";
1610
- defineLazy(inst._zod, "values", () => {
1611
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
1612
- });
1613
- defineLazy(inst._zod, "pattern", () => {
1614
- const pattern = def.innerType._zod.pattern;
1615
- return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
1616
- });
1617
- inst._zod.parse = (payload, ctx) => {
1618
- if (def.innerType._zod.optin === "optional") {
1619
- const result = def.innerType._zod.run(payload, ctx);
1620
- if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value));
1621
- return handleOptionalResult(result, payload.value);
1622
- }
1623
- if (payload.value === void 0) return payload;
1624
- return def.innerType._zod.run(payload, ctx);
1625
- };
1626
- });
1627
- var $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => {
1628
- $ZodOptional.init(inst, def);
1629
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1630
- defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
1631
- inst._zod.parse = (payload, ctx) => {
1632
- return def.innerType._zod.run(payload, ctx);
1633
- };
1634
- });
1635
- var $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
1636
- $ZodType.init(inst, def);
1637
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1638
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1639
- defineLazy(inst._zod, "pattern", () => {
1640
- const pattern = def.innerType._zod.pattern;
1641
- return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
1642
- });
1643
- defineLazy(inst._zod, "values", () => {
1644
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
1645
- });
1646
- inst._zod.parse = (payload, ctx) => {
1647
- if (payload.value === null) return payload;
1648
- return def.innerType._zod.run(payload, ctx);
1649
- };
1650
- });
1651
- var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
1652
- $ZodType.init(inst, def);
1653
- inst._zod.optin = "optional";
1654
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1655
- inst._zod.parse = (payload, ctx) => {
1656
- if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
1657
- if (payload.value === void 0) {
1658
- payload.value = def.defaultValue;
1659
- /**
1660
- * $ZodDefault returns the default value immediately in forward direction.
1661
- * 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. */
1662
- return payload;
1663
- }
1664
- const result = def.innerType._zod.run(payload, ctx);
1665
- if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def));
1666
- return handleDefaultResult(result, def);
1667
- };
1668
- });
1669
- function handleDefaultResult(payload, def) {
1670
- if (payload.value === void 0) payload.value = def.defaultValue;
1671
- return payload;
1672
- }
1673
- var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
1674
- $ZodType.init(inst, def);
1675
- inst._zod.optin = "optional";
1676
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1677
- inst._zod.parse = (payload, ctx) => {
1678
- if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
1679
- if (payload.value === void 0) payload.value = def.defaultValue;
1680
- return def.innerType._zod.run(payload, ctx);
1681
- };
1682
- });
1683
- var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
1684
- $ZodType.init(inst, def);
1685
- defineLazy(inst._zod, "values", () => {
1686
- const v = def.innerType._zod.values;
1687
- return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
1688
- });
1689
- inst._zod.parse = (payload, ctx) => {
1690
- const result = def.innerType._zod.run(payload, ctx);
1691
- if (result instanceof Promise) return result.then((result) => handleNonOptionalResult(result, inst));
1692
- return handleNonOptionalResult(result, inst);
1693
- };
1694
- });
1695
- function handleNonOptionalResult(payload, inst) {
1696
- if (!payload.issues.length && payload.value === void 0) payload.issues.push({
1697
- code: "invalid_type",
1698
- expected: "nonoptional",
1699
- input: payload.value,
1700
- inst
1701
- });
1702
- return payload;
1703
- }
1704
- var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
1705
- $ZodType.init(inst, def);
1706
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1707
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1708
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1709
- inst._zod.parse = (payload, ctx) => {
1710
- if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
1711
- const result = def.innerType._zod.run(payload, ctx);
1712
- if (result instanceof Promise) return result.then((result) => {
1713
- payload.value = result.value;
1714
- if (result.issues.length) {
1715
- payload.value = def.catchValue({
1716
- ...payload,
1717
- error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
1718
- input: payload.value
1719
- });
1720
- payload.issues = [];
1721
- }
1722
- return payload;
1723
- });
1724
- payload.value = result.value;
1725
- if (result.issues.length) {
1726
- payload.value = def.catchValue({
1727
- ...payload,
1728
- error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
1729
- input: payload.value
1730
- });
1731
- payload.issues = [];
1732
- }
1733
- return payload;
1734
- };
1735
- });
1736
- var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
1737
- $ZodType.init(inst, def);
1738
- defineLazy(inst._zod, "values", () => def.in._zod.values);
1739
- defineLazy(inst._zod, "optin", () => def.in._zod.optin);
1740
- defineLazy(inst._zod, "optout", () => def.out._zod.optout);
1741
- defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
1742
- inst._zod.parse = (payload, ctx) => {
1743
- if (ctx.direction === "backward") {
1744
- const right = def.out._zod.run(payload, ctx);
1745
- if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx));
1746
- return handlePipeResult(right, def.in, ctx);
1747
- }
1748
- const left = def.in._zod.run(payload, ctx);
1749
- if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx));
1750
- return handlePipeResult(left, def.out, ctx);
1751
- };
1752
- });
1753
- function handlePipeResult(left, next, ctx) {
1754
- if (left.issues.length) {
1755
- left.aborted = true;
1756
- return left;
1757
- }
1758
- return next._zod.run({
1759
- value: left.value,
1760
- issues: left.issues
1761
- }, ctx);
1762
- }
1763
- var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
1764
- $ZodType.init(inst, def);
1765
- defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
1766
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1767
- defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
1768
- defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
1769
- inst._zod.parse = (payload, ctx) => {
1770
- if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
1771
- const result = def.innerType._zod.run(payload, ctx);
1772
- if (result instanceof Promise) return result.then(handleReadonlyResult);
1773
- return handleReadonlyResult(result);
1774
- };
1775
- });
1776
- function handleReadonlyResult(payload) {
1777
- payload.value = Object.freeze(payload.value);
1778
- return payload;
1779
- }
1780
- var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
1781
- $ZodCheck.init(inst, def);
1782
- $ZodType.init(inst, def);
1783
- inst._zod.parse = (payload, _) => {
1784
- return payload;
1785
- };
1786
- inst._zod.check = (payload) => {
1787
- const input = payload.value;
1788
- const r = def.fn(input);
1789
- if (r instanceof Promise) return r.then((r) => handleRefineResult(r, payload, input, inst));
1790
- handleRefineResult(r, payload, input, inst);
1791
- };
1792
- });
1793
- function handleRefineResult(result, payload, input, inst) {
1794
- if (!result) {
1795
- const _iss = {
1796
- code: "custom",
1797
- input,
1798
- inst,
1799
- path: [...inst._zod.def.path ?? []],
1800
- continue: !inst._zod.def.abort
1801
- };
1802
- if (inst._zod.def.params) _iss.params = inst._zod.def.params;
1803
- payload.issues.push(issue(_iss));
1804
- }
1805
- }
1806
- //#endregion
1807
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1808
- var _a;
1809
- var $ZodRegistry = class {
1810
- constructor() {
1811
- this._map = /* @__PURE__ */ new WeakMap();
1812
- this._idmap = /* @__PURE__ */ new Map();
1813
- }
1814
- add(schema, ..._meta) {
1815
- const meta = _meta[0];
1816
- this._map.set(schema, meta);
1817
- if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
1818
- return this;
1819
- }
1820
- clear() {
1821
- this._map = /* @__PURE__ */ new WeakMap();
1822
- this._idmap = /* @__PURE__ */ new Map();
1823
- return this;
1824
- }
1825
- remove(schema) {
1826
- const meta = this._map.get(schema);
1827
- if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
1828
- this._map.delete(schema);
1829
- return this;
1830
- }
1831
- get(schema) {
1832
- const p = schema._zod.parent;
1833
- if (p) {
1834
- const pm = { ...this.get(p) ?? {} };
1835
- delete pm.id;
1836
- const f = {
1837
- ...pm,
1838
- ...this._map.get(schema)
1839
- };
1840
- return Object.keys(f).length ? f : void 0;
1841
- }
1842
- return this._map.get(schema);
1843
- }
1844
- has(schema) {
1845
- return this._map.has(schema);
1846
- }
1847
- };
1848
- function registry() {
1849
- return new $ZodRegistry();
1850
- }
1851
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1852
- var globalRegistry = globalThis.__zod_globalRegistry;
1853
- //#endregion
1854
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1855
- /* @__NO_SIDE_EFFECTS__ */
1856
- function _string(Class, params) {
1857
- return new Class({
1858
- type: "string",
1859
- ...normalizeParams(params)
1860
- });
1861
- }
1862
- /* @__NO_SIDE_EFFECTS__ */
1863
- function _email(Class, params) {
1864
- return new Class({
1865
- type: "string",
1866
- format: "email",
1867
- check: "string_format",
1868
- abort: false,
1869
- ...normalizeParams(params)
1870
- });
1871
- }
1872
- /* @__NO_SIDE_EFFECTS__ */
1873
- function _guid(Class, params) {
1874
- return new Class({
1875
- type: "string",
1876
- format: "guid",
1877
- check: "string_format",
1878
- abort: false,
1879
- ...normalizeParams(params)
1880
- });
1881
- }
1882
- /* @__NO_SIDE_EFFECTS__ */
1883
- function _uuid(Class, params) {
1884
- return new Class({
1885
- type: "string",
1886
- format: "uuid",
1887
- check: "string_format",
1888
- abort: false,
1889
- ...normalizeParams(params)
1890
- });
1891
- }
1892
- /* @__NO_SIDE_EFFECTS__ */
1893
- function _uuidv4(Class, params) {
1894
- return new Class({
1895
- type: "string",
1896
- format: "uuid",
1897
- check: "string_format",
1898
- abort: false,
1899
- version: "v4",
1900
- ...normalizeParams(params)
1901
- });
1902
- }
1903
- /* @__NO_SIDE_EFFECTS__ */
1904
- function _uuidv6(Class, params) {
1905
- return new Class({
1906
- type: "string",
1907
- format: "uuid",
1908
- check: "string_format",
1909
- abort: false,
1910
- version: "v6",
1911
- ...normalizeParams(params)
1912
- });
1913
- }
1914
- /* @__NO_SIDE_EFFECTS__ */
1915
- function _uuidv7(Class, params) {
1916
- return new Class({
1917
- type: "string",
1918
- format: "uuid",
1919
- check: "string_format",
1920
- abort: false,
1921
- version: "v7",
1922
- ...normalizeParams(params)
1923
- });
1924
- }
1925
- /* @__NO_SIDE_EFFECTS__ */
1926
- function _url(Class, params) {
1927
- return new Class({
1928
- type: "string",
1929
- format: "url",
1930
- check: "string_format",
1931
- abort: false,
1932
- ...normalizeParams(params)
1933
- });
1934
- }
1935
- /* @__NO_SIDE_EFFECTS__ */
1936
- function _emoji(Class, params) {
1937
- return new Class({
1938
- type: "string",
1939
- format: "emoji",
1940
- check: "string_format",
1941
- abort: false,
1942
- ...normalizeParams(params)
1943
- });
1944
- }
1945
- /* @__NO_SIDE_EFFECTS__ */
1946
- function _nanoid(Class, params) {
1947
- return new Class({
1948
- type: "string",
1949
- format: "nanoid",
1950
- check: "string_format",
1951
- abort: false,
1952
- ...normalizeParams(params)
1953
- });
1954
- }
1955
- /* @__NO_SIDE_EFFECTS__ */
1956
- function _cuid(Class, params) {
1957
- return new Class({
1958
- type: "string",
1959
- format: "cuid",
1960
- check: "string_format",
1961
- abort: false,
1962
- ...normalizeParams(params)
1963
- });
1964
- }
1965
- /* @__NO_SIDE_EFFECTS__ */
1966
- function _cuid2(Class, params) {
1967
- return new Class({
1968
- type: "string",
1969
- format: "cuid2",
1970
- check: "string_format",
1971
- abort: false,
1972
- ...normalizeParams(params)
1973
- });
1974
- }
1975
- /* @__NO_SIDE_EFFECTS__ */
1976
- function _ulid(Class, params) {
1977
- return new Class({
1978
- type: "string",
1979
- format: "ulid",
1980
- check: "string_format",
1981
- abort: false,
1982
- ...normalizeParams(params)
1983
- });
1984
- }
1985
- /* @__NO_SIDE_EFFECTS__ */
1986
- function _xid(Class, params) {
1987
- return new Class({
1988
- type: "string",
1989
- format: "xid",
1990
- check: "string_format",
1991
- abort: false,
1992
- ...normalizeParams(params)
1993
- });
1994
- }
1995
- /* @__NO_SIDE_EFFECTS__ */
1996
- function _ksuid(Class, params) {
1997
- return new Class({
1998
- type: "string",
1999
- format: "ksuid",
2000
- check: "string_format",
2001
- abort: false,
2002
- ...normalizeParams(params)
2003
- });
2004
- }
2005
- /* @__NO_SIDE_EFFECTS__ */
2006
- function _ipv4(Class, params) {
2007
- return new Class({
2008
- type: "string",
2009
- format: "ipv4",
2010
- check: "string_format",
2011
- abort: false,
2012
- ...normalizeParams(params)
2013
- });
2014
- }
2015
- /* @__NO_SIDE_EFFECTS__ */
2016
- function _ipv6(Class, params) {
2017
- return new Class({
2018
- type: "string",
2019
- format: "ipv6",
2020
- check: "string_format",
2021
- abort: false,
2022
- ...normalizeParams(params)
2023
- });
2024
- }
2025
- /* @__NO_SIDE_EFFECTS__ */
2026
- function _cidrv4(Class, params) {
2027
- return new Class({
2028
- type: "string",
2029
- format: "cidrv4",
2030
- check: "string_format",
2031
- abort: false,
2032
- ...normalizeParams(params)
2033
- });
2034
- }
2035
- /* @__NO_SIDE_EFFECTS__ */
2036
- function _cidrv6(Class, params) {
2037
- return new Class({
2038
- type: "string",
2039
- format: "cidrv6",
2040
- check: "string_format",
2041
- abort: false,
2042
- ...normalizeParams(params)
2043
- });
2044
- }
2045
- /* @__NO_SIDE_EFFECTS__ */
2046
- function _base64(Class, params) {
2047
- return new Class({
2048
- type: "string",
2049
- format: "base64",
2050
- check: "string_format",
2051
- abort: false,
2052
- ...normalizeParams(params)
2053
- });
2054
- }
2055
- /* @__NO_SIDE_EFFECTS__ */
2056
- function _base64url(Class, params) {
2057
- return new Class({
2058
- type: "string",
2059
- format: "base64url",
2060
- check: "string_format",
2061
- abort: false,
2062
- ...normalizeParams(params)
2063
- });
2064
- }
2065
- /* @__NO_SIDE_EFFECTS__ */
2066
- function _e164(Class, params) {
2067
- return new Class({
2068
- type: "string",
2069
- format: "e164",
2070
- check: "string_format",
2071
- abort: false,
2072
- ...normalizeParams(params)
2073
- });
2074
- }
2075
- /* @__NO_SIDE_EFFECTS__ */
2076
- function _jwt(Class, params) {
2077
- return new Class({
2078
- type: "string",
2079
- format: "jwt",
2080
- check: "string_format",
2081
- abort: false,
2082
- ...normalizeParams(params)
2083
- });
2084
- }
2085
- /* @__NO_SIDE_EFFECTS__ */
2086
- function _isoDateTime(Class, params) {
2087
- return new Class({
2088
- type: "string",
2089
- format: "datetime",
2090
- check: "string_format",
2091
- offset: false,
2092
- local: false,
2093
- precision: null,
2094
- ...normalizeParams(params)
2095
- });
2096
- }
2097
- /* @__NO_SIDE_EFFECTS__ */
2098
- function _isoDate(Class, params) {
2099
- return new Class({
2100
- type: "string",
2101
- format: "date",
2102
- check: "string_format",
2103
- ...normalizeParams(params)
2104
- });
2105
- }
2106
- /* @__NO_SIDE_EFFECTS__ */
2107
- function _isoTime(Class, params) {
2108
- return new Class({
2109
- type: "string",
2110
- format: "time",
2111
- check: "string_format",
2112
- precision: null,
2113
- ...normalizeParams(params)
2114
- });
2115
- }
2116
- /* @__NO_SIDE_EFFECTS__ */
2117
- function _isoDuration(Class, params) {
2118
- return new Class({
2119
- type: "string",
2120
- format: "duration",
2121
- check: "string_format",
2122
- ...normalizeParams(params)
2123
- });
2124
- }
2125
- /* @__NO_SIDE_EFFECTS__ */
2126
- function _unknown(Class) {
2127
- return new Class({ type: "unknown" });
2128
- }
2129
- /* @__NO_SIDE_EFFECTS__ */
2130
- function _never(Class, params) {
2131
- return new Class({
2132
- type: "never",
2133
- ...normalizeParams(params)
2134
- });
2135
- }
2136
- /* @__NO_SIDE_EFFECTS__ */
2137
- function _maxLength(maximum, params) {
2138
- return new $ZodCheckMaxLength({
2139
- check: "max_length",
2140
- ...normalizeParams(params),
2141
- maximum
2142
- });
2143
- }
2144
- /* @__NO_SIDE_EFFECTS__ */
2145
- function _minLength(minimum, params) {
2146
- return new $ZodCheckMinLength({
2147
- check: "min_length",
2148
- ...normalizeParams(params),
2149
- minimum
2150
- });
2151
- }
2152
- /* @__NO_SIDE_EFFECTS__ */
2153
- function _length(length, params) {
2154
- return new $ZodCheckLengthEquals({
2155
- check: "length_equals",
2156
- ...normalizeParams(params),
2157
- length
2158
- });
2159
- }
2160
- /* @__NO_SIDE_EFFECTS__ */
2161
- function _regex(pattern, params) {
2162
- return new $ZodCheckRegex({
2163
- check: "string_format",
2164
- format: "regex",
2165
- ...normalizeParams(params),
2166
- pattern
2167
- });
2168
- }
2169
- /* @__NO_SIDE_EFFECTS__ */
2170
- function _lowercase(params) {
2171
- return new $ZodCheckLowerCase({
2172
- check: "string_format",
2173
- format: "lowercase",
2174
- ...normalizeParams(params)
2175
- });
2176
- }
2177
- /* @__NO_SIDE_EFFECTS__ */
2178
- function _uppercase(params) {
2179
- return new $ZodCheckUpperCase({
2180
- check: "string_format",
2181
- format: "uppercase",
2182
- ...normalizeParams(params)
2183
- });
2184
- }
2185
- /* @__NO_SIDE_EFFECTS__ */
2186
- function _includes(includes, params) {
2187
- return new $ZodCheckIncludes({
2188
- check: "string_format",
2189
- format: "includes",
2190
- ...normalizeParams(params),
2191
- includes
2192
- });
2193
- }
2194
- /* @__NO_SIDE_EFFECTS__ */
2195
- function _startsWith(prefix, params) {
2196
- return new $ZodCheckStartsWith({
2197
- check: "string_format",
2198
- format: "starts_with",
2199
- ...normalizeParams(params),
2200
- prefix
2201
- });
2202
- }
2203
- /* @__NO_SIDE_EFFECTS__ */
2204
- function _endsWith(suffix, params) {
2205
- return new $ZodCheckEndsWith({
2206
- check: "string_format",
2207
- format: "ends_with",
2208
- ...normalizeParams(params),
2209
- suffix
2210
- });
2211
- }
2212
- /* @__NO_SIDE_EFFECTS__ */
2213
- function _overwrite(tx) {
2214
- return new $ZodCheckOverwrite({
2215
- check: "overwrite",
2216
- tx
2217
- });
2218
- }
2219
- /* @__NO_SIDE_EFFECTS__ */
2220
- function _normalize(form) {
2221
- return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
2222
- }
2223
- /* @__NO_SIDE_EFFECTS__ */
2224
- function _trim() {
2225
- return /* @__PURE__ */ _overwrite((input) => input.trim());
2226
- }
2227
- /* @__NO_SIDE_EFFECTS__ */
2228
- function _toLowerCase() {
2229
- return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
2230
- }
2231
- /* @__NO_SIDE_EFFECTS__ */
2232
- function _toUpperCase() {
2233
- return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
2234
- }
2235
- /* @__NO_SIDE_EFFECTS__ */
2236
- function _slugify() {
2237
- return /* @__PURE__ */ _overwrite((input) => slugify(input));
2238
- }
2239
- /* @__NO_SIDE_EFFECTS__ */
2240
- function _array(Class, element, params) {
2241
- return new Class({
2242
- type: "array",
2243
- element,
2244
- ...normalizeParams(params)
2245
- });
2246
- }
2247
- /* @__NO_SIDE_EFFECTS__ */
2248
- function _refine(Class, fn, _params) {
2249
- return new Class({
2250
- type: "custom",
2251
- check: "custom",
2252
- fn,
2253
- ...normalizeParams(_params)
2254
- });
2255
- }
2256
- /* @__NO_SIDE_EFFECTS__ */
2257
- function _superRefine(fn) {
2258
- const ch = /* @__PURE__ */ _check((payload) => {
2259
- payload.addIssue = (issue$2) => {
2260
- if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
2261
- else {
2262
- const _issue = issue$2;
2263
- if (_issue.fatal) _issue.continue = false;
2264
- _issue.code ?? (_issue.code = "custom");
2265
- _issue.input ?? (_issue.input = payload.value);
2266
- _issue.inst ?? (_issue.inst = ch);
2267
- _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
2268
- payload.issues.push(issue(_issue));
2269
- }
2270
- };
2271
- return fn(payload.value, payload);
2272
- });
2273
- return ch;
2274
- }
2275
- /* @__NO_SIDE_EFFECTS__ */
2276
- function _check(fn, params) {
2277
- const ch = new $ZodCheck({
2278
- check: "custom",
2279
- ...normalizeParams(params)
2280
- });
2281
- ch._zod.check = fn;
2282
- return ch;
2283
- }
2284
- //#endregion
2285
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
2286
- function initializeContext(params) {
2287
- let target = params?.target ?? "draft-2020-12";
2288
- if (target === "draft-4") target = "draft-04";
2289
- if (target === "draft-7") target = "draft-07";
2290
- return {
2291
- processors: params.processors ?? {},
2292
- metadataRegistry: params?.metadata ?? globalRegistry,
2293
- target,
2294
- unrepresentable: params?.unrepresentable ?? "throw",
2295
- override: params?.override ?? (() => {}),
2296
- io: params?.io ?? "output",
2297
- counter: 0,
2298
- seen: /* @__PURE__ */ new Map(),
2299
- cycles: params?.cycles ?? "ref",
2300
- reused: params?.reused ?? "inline",
2301
- external: params?.external ?? void 0
2302
- };
2303
- }
2304
- function process(schema, ctx, _params = {
2305
- path: [],
2306
- schemaPath: []
2307
- }) {
2308
- var _a;
2309
- const def = schema._zod.def;
2310
- const seen = ctx.seen.get(schema);
2311
- if (seen) {
2312
- seen.count++;
2313
- if (_params.schemaPath.includes(schema)) seen.cycle = _params.path;
2314
- return seen.schema;
2315
- }
2316
- const result = {
2317
- schema: {},
2318
- count: 1,
2319
- cycle: void 0,
2320
- path: _params.path
2321
- };
2322
- ctx.seen.set(schema, result);
2323
- const overrideSchema = schema._zod.toJSONSchema?.();
2324
- if (overrideSchema) result.schema = overrideSchema;
2325
- else {
2326
- const params = {
2327
- ..._params,
2328
- schemaPath: [..._params.schemaPath, schema],
2329
- path: _params.path
2330
- };
2331
- if (schema._zod.processJSONSchema) schema._zod.processJSONSchema(ctx, result.schema, params);
2332
- else {
2333
- const _json = result.schema;
2334
- const processor = ctx.processors[def.type];
2335
- if (!processor) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
2336
- processor(schema, ctx, _json, params);
2337
- }
2338
- const parent = schema._zod.parent;
2339
- if (parent) {
2340
- if (!result.ref) result.ref = parent;
2341
- process(parent, ctx, params);
2342
- ctx.seen.get(parent).isParent = true;
2343
- }
2344
- }
2345
- const meta = ctx.metadataRegistry.get(schema);
2346
- if (meta) Object.assign(result.schema, meta);
2347
- if (ctx.io === "input" && isTransforming(schema)) {
2348
- delete result.schema.examples;
2349
- delete result.schema.default;
2350
- }
2351
- if (ctx.io === "input" && result.schema._prefault) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
2352
- delete result.schema._prefault;
2353
- return ctx.seen.get(schema).schema;
2354
- }
2355
- function extractDefs(ctx, schema) {
2356
- const root = ctx.seen.get(schema);
2357
- if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
2358
- const idToSchema = /* @__PURE__ */ new Map();
2359
- for (const entry of ctx.seen.entries()) {
2360
- const id = ctx.metadataRegistry.get(entry[0])?.id;
2361
- if (id) {
2362
- const existing = idToSchema.get(id);
2363
- if (existing && existing !== entry[0]) throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
2364
- idToSchema.set(id, entry[0]);
2365
- }
2366
- }
2367
- const makeURI = (entry) => {
2368
- const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
2369
- if (ctx.external) {
2370
- const externalId = ctx.external.registry.get(entry[0])?.id;
2371
- const uriGenerator = ctx.external.uri ?? ((id) => id);
2372
- if (externalId) return { ref: uriGenerator(externalId) };
2373
- const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
2374
- entry[1].defId = id;
2375
- return {
2376
- defId: id,
2377
- ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
2378
- };
2379
- }
2380
- if (entry[1] === root) return { ref: "#" };
2381
- const defUriPrefix = `#/${defsSegment}/`;
2382
- const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
2383
- return {
2384
- defId,
2385
- ref: defUriPrefix + defId
2386
- };
2387
- };
2388
- const extractToDef = (entry) => {
2389
- if (entry[1].schema.$ref) return;
2390
- const seen = entry[1];
2391
- const { ref, defId } = makeURI(entry);
2392
- seen.def = { ...seen.schema };
2393
- if (defId) seen.defId = defId;
2394
- const schema = seen.schema;
2395
- for (const key in schema) delete schema[key];
2396
- schema.$ref = ref;
2397
- };
2398
- if (ctx.cycles === "throw") for (const entry of ctx.seen.entries()) {
2399
- const seen = entry[1];
2400
- if (seen.cycle) throw new Error(`Cycle detected: #/${seen.cycle?.join("/")}/<root>
2401
-
2402
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
2403
- }
2404
- for (const entry of ctx.seen.entries()) {
2405
- const seen = entry[1];
2406
- if (schema === entry[0]) {
2407
- extractToDef(entry);
2408
- continue;
2409
- }
2410
- if (ctx.external) {
2411
- const ext = ctx.external.registry.get(entry[0])?.id;
2412
- if (schema !== entry[0] && ext) {
2413
- extractToDef(entry);
2414
- continue;
2415
- }
2416
- }
2417
- if (ctx.metadataRegistry.get(entry[0])?.id) {
2418
- extractToDef(entry);
2419
- continue;
2420
- }
2421
- if (seen.cycle) {
2422
- extractToDef(entry);
2423
- continue;
2424
- }
2425
- if (seen.count > 1) {
2426
- if (ctx.reused === "ref") {
2427
- extractToDef(entry);
2428
- continue;
2429
- }
2430
- }
2431
- }
2432
- }
2433
- function finalize(ctx, schema) {
2434
- const root = ctx.seen.get(schema);
2435
- if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
2436
- const flattenRef = (zodSchema) => {
2437
- const seen = ctx.seen.get(zodSchema);
2438
- if (seen.ref === null) return;
2439
- const schema = seen.def ?? seen.schema;
2440
- const _cached = { ...schema };
2441
- const ref = seen.ref;
2442
- seen.ref = null;
2443
- if (ref) {
2444
- flattenRef(ref);
2445
- const refSeen = ctx.seen.get(ref);
2446
- const refSchema = refSeen.schema;
2447
- if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
2448
- schema.allOf = schema.allOf ?? [];
2449
- schema.allOf.push(refSchema);
2450
- } else Object.assign(schema, refSchema);
2451
- Object.assign(schema, _cached);
2452
- if (zodSchema._zod.parent === ref) for (const key in schema) {
2453
- if (key === "$ref" || key === "allOf") continue;
2454
- if (!(key in _cached)) delete schema[key];
2455
- }
2456
- if (refSchema.$ref && refSeen.def) for (const key in schema) {
2457
- if (key === "$ref" || key === "allOf") continue;
2458
- if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) delete schema[key];
2459
- }
2460
- }
2461
- const parent = zodSchema._zod.parent;
2462
- if (parent && parent !== ref) {
2463
- flattenRef(parent);
2464
- const parentSeen = ctx.seen.get(parent);
2465
- if (parentSeen?.schema.$ref) {
2466
- schema.$ref = parentSeen.schema.$ref;
2467
- if (parentSeen.def) for (const key in schema) {
2468
- if (key === "$ref" || key === "allOf") continue;
2469
- if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) delete schema[key];
2470
- }
2471
- }
2472
- }
2473
- ctx.override({
2474
- zodSchema,
2475
- jsonSchema: schema,
2476
- path: seen.path ?? []
2477
- });
2478
- };
2479
- for (const entry of [...ctx.seen.entries()].reverse()) flattenRef(entry[0]);
2480
- const result = {};
2481
- if (ctx.target === "draft-2020-12") result.$schema = "https://json-schema.org/draft/2020-12/schema";
2482
- else if (ctx.target === "draft-07") result.$schema = "http://json-schema.org/draft-07/schema#";
2483
- else if (ctx.target === "draft-04") result.$schema = "http://json-schema.org/draft-04/schema#";
2484
- else if (ctx.target === "openapi-3.0") {}
2485
- if (ctx.external?.uri) {
2486
- const id = ctx.external.registry.get(schema)?.id;
2487
- if (!id) throw new Error("Schema is missing an `id` property");
2488
- result.$id = ctx.external.uri(id);
2489
- }
2490
- Object.assign(result, root.def ?? root.schema);
2491
- const defs = ctx.external?.defs ?? {};
2492
- for (const entry of ctx.seen.entries()) {
2493
- const seen = entry[1];
2494
- if (seen.def && seen.defId) defs[seen.defId] = seen.def;
2495
- }
2496
- if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
2497
- else result.definitions = defs;
2498
- try {
2499
- const finalized = JSON.parse(JSON.stringify(result));
2500
- Object.defineProperty(finalized, "~standard", {
2501
- value: {
2502
- ...schema["~standard"],
2503
- jsonSchema: {
2504
- input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
2505
- output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
2506
- }
2507
- },
2508
- enumerable: false,
2509
- writable: false
2510
- });
2511
- return finalized;
2512
- } catch (_err) {
2513
- throw new Error("Error converting schema to JSON.");
2514
- }
2515
- }
2516
- function isTransforming(_schema, _ctx) {
2517
- const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
2518
- if (ctx.seen.has(_schema)) return false;
2519
- ctx.seen.add(_schema);
2520
- const def = _schema._zod.def;
2521
- if (def.type === "transform") return true;
2522
- if (def.type === "array") return isTransforming(def.element, ctx);
2523
- if (def.type === "set") return isTransforming(def.valueType, ctx);
2524
- if (def.type === "lazy") return isTransforming(def.getter(), ctx);
2525
- if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") return isTransforming(def.innerType, ctx);
2526
- if (def.type === "intersection") return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
2527
- if (def.type === "record" || def.type === "map") return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
2528
- if (def.type === "pipe") return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
2529
- if (def.type === "object") {
2530
- for (const key in def.shape) if (isTransforming(def.shape[key], ctx)) return true;
2531
- return false;
2532
- }
2533
- if (def.type === "union") {
2534
- for (const option of def.options) if (isTransforming(option, ctx)) return true;
2535
- return false;
2536
- }
2537
- if (def.type === "tuple") {
2538
- for (const item of def.items) if (isTransforming(item, ctx)) return true;
2539
- if (def.rest && isTransforming(def.rest, ctx)) return true;
2540
- return false;
2541
- }
2542
- return false;
2543
- }
2544
- /**
2545
- * Creates a toJSONSchema method for a schema instance.
2546
- * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
2547
- */
2548
- var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
2549
- const ctx = initializeContext({
2550
- ...params,
2551
- processors
2552
- });
2553
- process(schema, ctx);
2554
- extractDefs(ctx, schema);
2555
- return finalize(ctx, schema);
2556
- };
2557
- var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
2558
- const { libraryOptions, target } = params ?? {};
2559
- const ctx = initializeContext({
2560
- ...libraryOptions ?? {},
2561
- target,
2562
- io,
2563
- processors
2564
- });
2565
- process(schema, ctx);
2566
- extractDefs(ctx, schema);
2567
- return finalize(ctx, schema);
2568
- };
2569
- //#endregion
2570
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
2571
- var formatMap = {
2572
- guid: "uuid",
2573
- url: "uri",
2574
- datetime: "date-time",
2575
- json_string: "json-string",
2576
- regex: ""
2577
- };
2578
- var stringProcessor = (schema, ctx, _json, _params) => {
2579
- const json = _json;
2580
- json.type = "string";
2581
- const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
2582
- if (typeof minimum === "number") json.minLength = minimum;
2583
- if (typeof maximum === "number") json.maxLength = maximum;
2584
- if (format) {
2585
- json.format = formatMap[format] ?? format;
2586
- if (json.format === "") delete json.format;
2587
- if (format === "time") delete json.format;
2588
- }
2589
- if (contentEncoding) json.contentEncoding = contentEncoding;
2590
- if (patterns && patterns.size > 0) {
2591
- const regexes = [...patterns];
2592
- if (regexes.length === 1) json.pattern = regexes[0].source;
2593
- else if (regexes.length > 1) json.allOf = [...regexes.map((regex) => ({
2594
- ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
2595
- pattern: regex.source
2596
- }))];
2597
- }
2598
- };
2599
- var neverProcessor = (_schema, _ctx, json, _params) => {
2600
- json.not = {};
2601
- };
2602
- var unknownProcessor = (_schema, _ctx, _json, _params) => {};
2603
- var enumProcessor = (schema, _ctx, json, _params) => {
2604
- const def = schema._zod.def;
2605
- const values = getEnumValues(def.entries);
2606
- if (values.every((v) => typeof v === "number")) json.type = "number";
2607
- if (values.every((v) => typeof v === "string")) json.type = "string";
2608
- json.enum = values;
2609
- };
2610
- var customProcessor = (_schema, ctx, _json, _params) => {
2611
- if (ctx.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema");
2612
- };
2613
- var transformProcessor = (_schema, ctx, _json, _params) => {
2614
- if (ctx.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema");
2615
- };
2616
- var arrayProcessor = (schema, ctx, _json, params) => {
2617
- const json = _json;
2618
- const def = schema._zod.def;
2619
- const { minimum, maximum } = schema._zod.bag;
2620
- if (typeof minimum === "number") json.minItems = minimum;
2621
- if (typeof maximum === "number") json.maxItems = maximum;
2622
- json.type = "array";
2623
- json.items = process(def.element, ctx, {
2624
- ...params,
2625
- path: [...params.path, "items"]
2626
- });
2627
- };
2628
- var objectProcessor = (schema, ctx, _json, params) => {
2629
- const json = _json;
2630
- const def = schema._zod.def;
2631
- json.type = "object";
2632
- json.properties = {};
2633
- const shape = def.shape;
2634
- for (const key in shape) json.properties[key] = process(shape[key], ctx, {
2635
- ...params,
2636
- path: [
2637
- ...params.path,
2638
- "properties",
2639
- key
2640
- ]
2641
- });
2642
- const allKeys = new Set(Object.keys(shape));
2643
- const requiredKeys = new Set([...allKeys].filter((key) => {
2644
- const v = def.shape[key]._zod;
2645
- if (ctx.io === "input") return v.optin === void 0;
2646
- else return v.optout === void 0;
2647
- }));
2648
- if (requiredKeys.size > 0) json.required = Array.from(requiredKeys);
2649
- if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
2650
- else if (!def.catchall) {
2651
- if (ctx.io === "output") json.additionalProperties = false;
2652
- } else if (def.catchall) json.additionalProperties = process(def.catchall, ctx, {
2653
- ...params,
2654
- path: [...params.path, "additionalProperties"]
2655
- });
2656
- };
2657
- var unionProcessor = (schema, ctx, json, params) => {
2658
- const def = schema._zod.def;
2659
- const isExclusive = def.inclusive === false;
2660
- const options = def.options.map((x, i) => process(x, ctx, {
2661
- ...params,
2662
- path: [
2663
- ...params.path,
2664
- isExclusive ? "oneOf" : "anyOf",
2665
- i
2666
- ]
2667
- }));
2668
- if (isExclusive) json.oneOf = options;
2669
- else json.anyOf = options;
2670
- };
2671
- var intersectionProcessor = (schema, ctx, json, params) => {
2672
- const def = schema._zod.def;
2673
- const a = process(def.left, ctx, {
2674
- ...params,
2675
- path: [
2676
- ...params.path,
2677
- "allOf",
2678
- 0
2679
- ]
2680
- });
2681
- const b = process(def.right, ctx, {
2682
- ...params,
2683
- path: [
2684
- ...params.path,
2685
- "allOf",
2686
- 1
2687
- ]
2688
- });
2689
- const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
2690
- json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
2691
- };
2692
- var nullableProcessor = (schema, ctx, json, params) => {
2693
- const def = schema._zod.def;
2694
- const inner = process(def.innerType, ctx, params);
2695
- const seen = ctx.seen.get(schema);
2696
- if (ctx.target === "openapi-3.0") {
2697
- seen.ref = def.innerType;
2698
- json.nullable = true;
2699
- } else json.anyOf = [inner, { type: "null" }];
2700
- };
2701
- var nonoptionalProcessor = (schema, ctx, _json, params) => {
2702
- const def = schema._zod.def;
2703
- process(def.innerType, ctx, params);
2704
- const seen = ctx.seen.get(schema);
2705
- seen.ref = def.innerType;
2706
- };
2707
- var defaultProcessor = (schema, ctx, json, params) => {
2708
- const def = schema._zod.def;
2709
- process(def.innerType, ctx, params);
2710
- const seen = ctx.seen.get(schema);
2711
- seen.ref = def.innerType;
2712
- json.default = JSON.parse(JSON.stringify(def.defaultValue));
2713
- };
2714
- var prefaultProcessor = (schema, ctx, json, params) => {
2715
- const def = schema._zod.def;
2716
- process(def.innerType, ctx, params);
2717
- const seen = ctx.seen.get(schema);
2718
- seen.ref = def.innerType;
2719
- if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
2720
- };
2721
- var catchProcessor = (schema, ctx, json, params) => {
2722
- const def = schema._zod.def;
2723
- process(def.innerType, ctx, params);
2724
- const seen = ctx.seen.get(schema);
2725
- seen.ref = def.innerType;
2726
- let catchValue;
2727
- try {
2728
- catchValue = def.catchValue(void 0);
2729
- } catch {
2730
- throw new Error("Dynamic catch values are not supported in JSON Schema");
2731
- }
2732
- json.default = catchValue;
2733
- };
2734
- var pipeProcessor = (schema, ctx, _json, params) => {
2735
- const def = schema._zod.def;
2736
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
2737
- process(innerType, ctx, params);
2738
- const seen = ctx.seen.get(schema);
2739
- seen.ref = innerType;
2740
- };
2741
- var readonlyProcessor = (schema, ctx, json, params) => {
2742
- const def = schema._zod.def;
2743
- process(def.innerType, ctx, params);
2744
- const seen = ctx.seen.get(schema);
2745
- seen.ref = def.innerType;
2746
- json.readOnly = true;
2747
- };
2748
- var optionalProcessor = (schema, ctx, _json, params) => {
2749
- const def = schema._zod.def;
2750
- process(def.innerType, ctx, params);
2751
- const seen = ctx.seen.get(schema);
2752
- seen.ref = def.innerType;
2753
- };
2754
- //#endregion
2755
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
2756
- var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
2757
- $ZodISODateTime.init(inst, def);
2758
- ZodStringFormat.init(inst, def);
2759
- });
2760
- function datetime(params) {
2761
- return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
2762
- }
2763
- var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
2764
- $ZodISODate.init(inst, def);
2765
- ZodStringFormat.init(inst, def);
2766
- });
2767
- function date(params) {
2768
- return /* @__PURE__ */ _isoDate(ZodISODate, params);
2769
- }
2770
- var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
2771
- $ZodISOTime.init(inst, def);
2772
- ZodStringFormat.init(inst, def);
2773
- });
2774
- function time(params) {
2775
- return /* @__PURE__ */ _isoTime(ZodISOTime, params);
2776
- }
2777
- var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
2778
- $ZodISODuration.init(inst, def);
2779
- ZodStringFormat.init(inst, def);
2780
- });
2781
- function duration(params) {
2782
- return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
2783
- }
2784
- //#endregion
2785
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
2786
- var initializer = (inst, issues) => {
2787
- $ZodError.init(inst, issues);
2788
- inst.name = "ZodError";
2789
- Object.defineProperties(inst, {
2790
- format: { value: (mapper) => formatError(inst, mapper) },
2791
- flatten: { value: (mapper) => flattenError(inst, mapper) },
2792
- addIssue: { value: (issue) => {
2793
- inst.issues.push(issue);
2794
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
2795
- } },
2796
- addIssues: { value: (issues) => {
2797
- inst.issues.push(...issues);
2798
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
2799
- } },
2800
- isEmpty: { get() {
2801
- return inst.issues.length === 0;
2802
- } }
2803
- });
2804
- };
2805
- $constructor("ZodError", initializer);
2806
- var ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
2807
- //#endregion
2808
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
2809
- var parse = /* @__PURE__ */ _parse(ZodRealError);
2810
- var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
2811
- var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
2812
- var safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
2813
- var encode = /* @__PURE__ */ _encode(ZodRealError);
2814
- var decode = /* @__PURE__ */ _decode(ZodRealError);
2815
- var encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
2816
- var decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
2817
- var safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
2818
- var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
2819
- var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
2820
- var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
2821
- //#endregion
2822
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
2823
- var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
2824
- $ZodType.init(inst, def);
2825
- Object.assign(inst["~standard"], { jsonSchema: {
2826
- input: createStandardJSONSchemaMethod(inst, "input"),
2827
- output: createStandardJSONSchemaMethod(inst, "output")
2828
- } });
2829
- inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
2830
- inst.def = def;
2831
- inst.type = def.type;
2832
- Object.defineProperty(inst, "_def", { value: def });
2833
- inst.check = (...checks) => {
2834
- return inst.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
2835
- check: ch,
2836
- def: { check: "custom" },
2837
- onattach: []
2838
- } } : ch)] }), { parent: true });
2839
- };
2840
- inst.with = inst.check;
2841
- inst.clone = (def, params) => clone(inst, def, params);
2842
- inst.brand = () => inst;
2843
- inst.register = ((reg, meta) => {
2844
- reg.add(inst, meta);
2845
- return inst;
2846
- });
2847
- inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
2848
- inst.safeParse = (data, params) => safeParse(inst, data, params);
2849
- inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
2850
- inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
2851
- inst.spa = inst.safeParseAsync;
2852
- inst.encode = (data, params) => encode(inst, data, params);
2853
- inst.decode = (data, params) => decode(inst, data, params);
2854
- inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
2855
- inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
2856
- inst.safeEncode = (data, params) => safeEncode(inst, data, params);
2857
- inst.safeDecode = (data, params) => safeDecode(inst, data, params);
2858
- inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
2859
- inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
2860
- inst.refine = (check, params) => inst.check(refine(check, params));
2861
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
2862
- inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
2863
- inst.optional = () => optional(inst);
2864
- inst.exactOptional = () => exactOptional(inst);
2865
- inst.nullable = () => nullable(inst);
2866
- inst.nullish = () => optional(nullable(inst));
2867
- inst.nonoptional = (params) => nonoptional(inst, params);
2868
- inst.array = () => array(inst);
2869
- inst.or = (arg) => union([inst, arg]);
2870
- inst.and = (arg) => intersection(inst, arg);
2871
- inst.transform = (tx) => pipe(inst, transform(tx));
2872
- inst.default = (def) => _default(inst, def);
2873
- inst.prefault = (def) => prefault(inst, def);
2874
- inst.catch = (params) => _catch(inst, params);
2875
- inst.pipe = (target) => pipe(inst, target);
2876
- inst.readonly = () => readonly(inst);
2877
- inst.describe = (description) => {
2878
- const cl = inst.clone();
2879
- globalRegistry.add(cl, { description });
2880
- return cl;
2881
- };
2882
- Object.defineProperty(inst, "description", {
2883
- get() {
2884
- return globalRegistry.get(inst)?.description;
2885
- },
2886
- configurable: true
2887
- });
2888
- inst.meta = (...args) => {
2889
- if (args.length === 0) return globalRegistry.get(inst);
2890
- const cl = inst.clone();
2891
- globalRegistry.add(cl, args[0]);
2892
- return cl;
2893
- };
2894
- inst.isOptional = () => inst.safeParse(void 0).success;
2895
- inst.isNullable = () => inst.safeParse(null).success;
2896
- inst.apply = (fn) => fn(inst);
2897
- return inst;
2898
- });
2899
- /** @internal */
2900
- var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
2901
- $ZodString.init(inst, def);
2902
- ZodType.init(inst, def);
2903
- inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
2904
- const bag = inst._zod.bag;
2905
- inst.format = bag.format ?? null;
2906
- inst.minLength = bag.minimum ?? null;
2907
- inst.maxLength = bag.maximum ?? null;
2908
- inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
2909
- inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
2910
- inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
2911
- inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
2912
- inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
2913
- inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
2914
- inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
2915
- inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
2916
- inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
2917
- inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
2918
- inst.trim = () => inst.check(/* @__PURE__ */ _trim());
2919
- inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
2920
- inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
2921
- inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
2922
- inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
2923
- });
2924
- var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
2925
- $ZodString.init(inst, def);
2926
- _ZodString.init(inst, def);
2927
- inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
2928
- inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
2929
- inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
2930
- inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
2931
- inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
2932
- inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
2933
- inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
2934
- inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
2935
- inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
2936
- inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
2937
- inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
2938
- inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
2939
- inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
2940
- inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
2941
- inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
2942
- inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
2943
- inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
2944
- inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
2945
- inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
2946
- inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
2947
- inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
2948
- inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
2949
- inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
2950
- inst.datetime = (params) => inst.check(datetime(params));
2951
- inst.date = (params) => inst.check(date(params));
2952
- inst.time = (params) => inst.check(time(params));
2953
- inst.duration = (params) => inst.check(duration(params));
2954
- });
2955
- function string(params) {
2956
- return /* @__PURE__ */ _string(ZodString, params);
2957
- }
2958
- var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
2959
- $ZodStringFormat.init(inst, def);
2960
- _ZodString.init(inst, def);
2961
- });
2962
- var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
2963
- $ZodEmail.init(inst, def);
2964
- ZodStringFormat.init(inst, def);
2965
- });
2966
- var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
2967
- $ZodGUID.init(inst, def);
2968
- ZodStringFormat.init(inst, def);
2969
- });
2970
- var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
2971
- $ZodUUID.init(inst, def);
2972
- ZodStringFormat.init(inst, def);
2973
- });
2974
- var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
2975
- $ZodURL.init(inst, def);
2976
- ZodStringFormat.init(inst, def);
2977
- });
2978
- var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
2979
- $ZodEmoji.init(inst, def);
2980
- ZodStringFormat.init(inst, def);
2981
- });
2982
- var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
2983
- $ZodNanoID.init(inst, def);
2984
- ZodStringFormat.init(inst, def);
2985
- });
2986
- var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
2987
- $ZodCUID.init(inst, def);
2988
- ZodStringFormat.init(inst, def);
2989
- });
2990
- var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
2991
- $ZodCUID2.init(inst, def);
2992
- ZodStringFormat.init(inst, def);
2993
- });
2994
- var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
2995
- $ZodULID.init(inst, def);
2996
- ZodStringFormat.init(inst, def);
2997
- });
2998
- var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
2999
- $ZodXID.init(inst, def);
3000
- ZodStringFormat.init(inst, def);
3001
- });
3002
- var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
3003
- $ZodKSUID.init(inst, def);
3004
- ZodStringFormat.init(inst, def);
3005
- });
3006
- var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
3007
- $ZodIPv4.init(inst, def);
3008
- ZodStringFormat.init(inst, def);
3009
- });
3010
- var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
3011
- $ZodIPv6.init(inst, def);
3012
- ZodStringFormat.init(inst, def);
3013
- });
3014
- var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
3015
- $ZodCIDRv4.init(inst, def);
3016
- ZodStringFormat.init(inst, def);
3017
- });
3018
- var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
3019
- $ZodCIDRv6.init(inst, def);
3020
- ZodStringFormat.init(inst, def);
3021
- });
3022
- var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
3023
- $ZodBase64.init(inst, def);
3024
- ZodStringFormat.init(inst, def);
3025
- });
3026
- var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
3027
- $ZodBase64URL.init(inst, def);
3028
- ZodStringFormat.init(inst, def);
3029
- });
3030
- var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
3031
- $ZodE164.init(inst, def);
3032
- ZodStringFormat.init(inst, def);
3033
- });
3034
- var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
3035
- $ZodJWT.init(inst, def);
3036
- ZodStringFormat.init(inst, def);
3037
- });
3038
- var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
3039
- $ZodUnknown.init(inst, def);
3040
- ZodType.init(inst, def);
3041
- inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
3042
- });
3043
- function unknown() {
3044
- return /* @__PURE__ */ _unknown(ZodUnknown);
3045
- }
3046
- var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
3047
- $ZodNever.init(inst, def);
3048
- ZodType.init(inst, def);
3049
- inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
3050
- });
3051
- function never(params) {
3052
- return /* @__PURE__ */ _never(ZodNever, params);
3053
- }
3054
- var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
3055
- $ZodArray.init(inst, def);
3056
- ZodType.init(inst, def);
3057
- inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
3058
- inst.element = def.element;
3059
- inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
3060
- inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
3061
- inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
3062
- inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
3063
- inst.unwrap = () => inst.element;
3064
- });
3065
- function array(element, params) {
3066
- return /* @__PURE__ */ _array(ZodArray, element, params);
3067
- }
3068
- var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
3069
- $ZodObjectJIT.init(inst, def);
3070
- ZodType.init(inst, def);
3071
- inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
3072
- defineLazy(inst, "shape", () => {
3073
- return def.shape;
3074
- });
3075
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
3076
- inst.catchall = (catchall) => inst.clone({
3077
- ...inst._zod.def,
3078
- catchall
3079
- });
3080
- inst.passthrough = () => inst.clone({
3081
- ...inst._zod.def,
3082
- catchall: unknown()
3083
- });
3084
- inst.loose = () => inst.clone({
3085
- ...inst._zod.def,
3086
- catchall: unknown()
3087
- });
3088
- inst.strict = () => inst.clone({
3089
- ...inst._zod.def,
3090
- catchall: never()
3091
- });
3092
- inst.strip = () => inst.clone({
3093
- ...inst._zod.def,
3094
- catchall: void 0
3095
- });
3096
- inst.extend = (incoming) => {
3097
- return extend(inst, incoming);
3098
- };
3099
- inst.safeExtend = (incoming) => {
3100
- return safeExtend(inst, incoming);
3101
- };
3102
- inst.merge = (other) => merge(inst, other);
3103
- inst.pick = (mask) => pick(inst, mask);
3104
- inst.omit = (mask) => omit(inst, mask);
3105
- inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
3106
- inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
3107
- });
3108
- function object(shape, params) {
3109
- return new ZodObject({
3110
- type: "object",
3111
- shape: shape ?? {},
3112
- ...normalizeParams(params)
3113
- });
3114
- }
3115
- var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
3116
- $ZodUnion.init(inst, def);
3117
- ZodType.init(inst, def);
3118
- inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
3119
- inst.options = def.options;
3120
- });
3121
- function union(options, params) {
3122
- return new ZodUnion({
3123
- type: "union",
3124
- options,
3125
- ...normalizeParams(params)
3126
- });
3127
- }
3128
- var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
3129
- $ZodIntersection.init(inst, def);
3130
- ZodType.init(inst, def);
3131
- inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
3132
- });
3133
- function intersection(left, right) {
3134
- return new ZodIntersection({
3135
- type: "intersection",
3136
- left,
3137
- right
3138
- });
3139
- }
3140
- var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
3141
- $ZodEnum.init(inst, def);
3142
- ZodType.init(inst, def);
3143
- inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
3144
- inst.enum = def.entries;
3145
- inst.options = Object.values(def.entries);
3146
- const keys = new Set(Object.keys(def.entries));
3147
- inst.extract = (values, params) => {
3148
- const newEntries = {};
3149
- for (const value of values) if (keys.has(value)) newEntries[value] = def.entries[value];
3150
- else throw new Error(`Key ${value} not found in enum`);
3151
- return new ZodEnum({
3152
- ...def,
3153
- checks: [],
3154
- ...normalizeParams(params),
3155
- entries: newEntries
3156
- });
3157
- };
3158
- inst.exclude = (values, params) => {
3159
- const newEntries = { ...def.entries };
3160
- for (const value of values) if (keys.has(value)) delete newEntries[value];
3161
- else throw new Error(`Key ${value} not found in enum`);
3162
- return new ZodEnum({
3163
- ...def,
3164
- checks: [],
3165
- ...normalizeParams(params),
3166
- entries: newEntries
3167
- });
3168
- };
3169
- });
3170
- function _enum(values, params) {
3171
- return new ZodEnum({
3172
- type: "enum",
3173
- entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
3174
- ...normalizeParams(params)
3175
- });
3176
- }
3177
- var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
3178
- $ZodTransform.init(inst, def);
3179
- ZodType.init(inst, def);
3180
- inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
3181
- inst._zod.parse = (payload, _ctx) => {
3182
- if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
3183
- payload.addIssue = (issue$1) => {
3184
- if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def));
3185
- else {
3186
- const _issue = issue$1;
3187
- if (_issue.fatal) _issue.continue = false;
3188
- _issue.code ?? (_issue.code = "custom");
3189
- _issue.input ?? (_issue.input = payload.value);
3190
- _issue.inst ?? (_issue.inst = inst);
3191
- payload.issues.push(issue(_issue));
3192
- }
3193
- };
3194
- const output = def.transform(payload.value, payload);
3195
- if (output instanceof Promise) return output.then((output) => {
3196
- payload.value = output;
3197
- return payload;
3198
- });
3199
- payload.value = output;
3200
- return payload;
3201
- };
3202
- });
3203
- function transform(fn) {
3204
- return new ZodTransform({
3205
- type: "transform",
3206
- transform: fn
3207
- });
3208
- }
3209
- var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
3210
- $ZodOptional.init(inst, def);
3211
- ZodType.init(inst, def);
3212
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
3213
- inst.unwrap = () => inst._zod.def.innerType;
3214
- });
3215
- function optional(innerType) {
3216
- return new ZodOptional({
3217
- type: "optional",
3218
- innerType
3219
- });
3220
- }
3221
- var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
3222
- $ZodExactOptional.init(inst, def);
3223
- ZodType.init(inst, def);
3224
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
3225
- inst.unwrap = () => inst._zod.def.innerType;
3226
- });
3227
- function exactOptional(innerType) {
3228
- return new ZodExactOptional({
3229
- type: "optional",
3230
- innerType
3231
- });
3232
- }
3233
- var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
3234
- $ZodNullable.init(inst, def);
3235
- ZodType.init(inst, def);
3236
- inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
3237
- inst.unwrap = () => inst._zod.def.innerType;
3238
- });
3239
- function nullable(innerType) {
3240
- return new ZodNullable({
3241
- type: "nullable",
3242
- innerType
3243
- });
3244
- }
3245
- var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
3246
- $ZodDefault.init(inst, def);
3247
- ZodType.init(inst, def);
3248
- inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
3249
- inst.unwrap = () => inst._zod.def.innerType;
3250
- inst.removeDefault = inst.unwrap;
3251
- });
3252
- function _default(innerType, defaultValue) {
3253
- return new ZodDefault({
3254
- type: "default",
3255
- innerType,
3256
- get defaultValue() {
3257
- return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
3258
- }
3259
- });
3260
- }
3261
- var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
3262
- $ZodPrefault.init(inst, def);
3263
- ZodType.init(inst, def);
3264
- inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
3265
- inst.unwrap = () => inst._zod.def.innerType;
3266
- });
3267
- function prefault(innerType, defaultValue) {
3268
- return new ZodPrefault({
3269
- type: "prefault",
3270
- innerType,
3271
- get defaultValue() {
3272
- return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
3273
- }
3274
- });
3275
- }
3276
- var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
3277
- $ZodNonOptional.init(inst, def);
3278
- ZodType.init(inst, def);
3279
- inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
3280
- inst.unwrap = () => inst._zod.def.innerType;
3281
- });
3282
- function nonoptional(innerType, params) {
3283
- return new ZodNonOptional({
3284
- type: "nonoptional",
3285
- innerType,
3286
- ...normalizeParams(params)
3287
- });
3288
- }
3289
- var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
3290
- $ZodCatch.init(inst, def);
3291
- ZodType.init(inst, def);
3292
- inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
3293
- inst.unwrap = () => inst._zod.def.innerType;
3294
- inst.removeCatch = inst.unwrap;
3295
- });
3296
- function _catch(innerType, catchValue) {
3297
- return new ZodCatch({
3298
- type: "catch",
3299
- innerType,
3300
- catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
3301
- });
3302
- }
3303
- var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
3304
- $ZodPipe.init(inst, def);
3305
- ZodType.init(inst, def);
3306
- inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
3307
- inst.in = def.in;
3308
- inst.out = def.out;
3309
- });
3310
- function pipe(in_, out) {
3311
- return new ZodPipe({
3312
- type: "pipe",
3313
- in: in_,
3314
- out
3315
- });
3316
- }
3317
- var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
3318
- $ZodReadonly.init(inst, def);
3319
- ZodType.init(inst, def);
3320
- inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
3321
- inst.unwrap = () => inst._zod.def.innerType;
3322
- });
3323
- function readonly(innerType) {
3324
- return new ZodReadonly({
3325
- type: "readonly",
3326
- innerType
3327
- });
3328
- }
3329
- var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
3330
- $ZodCustom.init(inst, def);
3331
- ZodType.init(inst, def);
3332
- inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
3333
- });
3334
- function refine(fn, _params = {}) {
3335
- return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
3336
- }
3337
- function superRefine(fn) {
3338
- return /* @__PURE__ */ _superRefine(fn);
3339
- }
3340
- //#endregion
3341
- export { string as n, object as t };