@photoroom/ui 0.1.1 → 0.1.2

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 (863) hide show
  1. package/components/content/Tile/TileSelectable.d.ts +1 -1
  2. package/components/content/Tile/TileSelectable.d.ts.map +1 -1
  3. package/components/editor/ObjectItem/ObjectItem.d.ts +1 -0
  4. package/components/editor/ObjectItem/ObjectItem.d.ts.map +1 -1
  5. package/components/editor/ObjectPreview/ObjectPreview.d.ts +2 -1
  6. package/components/editor/ObjectPreview/ObjectPreview.d.ts.map +1 -1
  7. package/components/feed/TextSuggestion/TextSuggestion.d.ts +4 -2
  8. package/components/feed/TextSuggestion/TextSuggestion.d.ts.map +1 -1
  9. package/components/index.d.ts +6 -3
  10. package/components/index.d.ts.map +1 -1
  11. package/components/input/LargeOptionTile/LargeOptionTile.d.ts +30 -0
  12. package/components/input/LargeOptionTile/LargeOptionTile.d.ts.map +1 -0
  13. package/components/input/LargeOptionTile/index.d.ts +2 -0
  14. package/components/input/LargeOptionTile/index.d.ts.map +1 -0
  15. package/components/input/OptionTile/OptionTile.d.ts +30 -0
  16. package/components/input/OptionTile/OptionTile.d.ts.map +1 -0
  17. package/components/input/OptionTile/index.d.ts +2 -0
  18. package/components/input/OptionTile/index.d.ts.map +1 -0
  19. package/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +4 -2
  20. package/components/navigation/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  21. package/components/website/MissionHeroBlock/MissionHeroBlock.d.ts +7 -0
  22. package/components/website/MissionHeroBlock/MissionHeroBlock.d.ts.map +1 -0
  23. package/components/website/MissionHeroBlock/index.d.ts +2 -0
  24. package/components/website/MissionHeroBlock/index.d.ts.map +1 -0
  25. package/index.mjs +49219 -608
  26. package/package.json +1 -1
  27. package/react-textarea-autosize.browser.esm-C6Dsm-5Q.mjs +165 -0
  28. package/style.css +1 -1
  29. package/index10.mjs +0 -95
  30. package/index100.mjs +0 -69
  31. package/index101.mjs +0 -31
  32. package/index102.mjs +0 -78
  33. package/index103.mjs +0 -22
  34. package/index104.mjs +0 -98
  35. package/index105.mjs +0 -115
  36. package/index106.mjs +0 -26
  37. package/index107.mjs +0 -19
  38. package/index108.mjs +0 -39
  39. package/index109.mjs +0 -18
  40. package/index11.mjs +0 -24
  41. package/index110.mjs +0 -74
  42. package/index111.mjs +0 -192
  43. package/index112.mjs +0 -62
  44. package/index113.mjs +0 -29
  45. package/index114.mjs +0 -20
  46. package/index115.mjs +0 -61
  47. package/index116.mjs +0 -38
  48. package/index117.mjs +0 -138
  49. package/index118.mjs +0 -12
  50. package/index119.mjs +0 -99
  51. package/index12.mjs +0 -30
  52. package/index120.mjs +0 -50
  53. package/index121.mjs +0 -17
  54. package/index122.mjs +0 -60
  55. package/index123.mjs +0 -38
  56. package/index124.mjs +0 -35
  57. package/index125.mjs +0 -145
  58. package/index126.mjs +0 -11
  59. package/index127.mjs +0 -95
  60. package/index128.mjs +0 -26
  61. package/index129.mjs +0 -41
  62. package/index13.mjs +0 -74
  63. package/index130.mjs +0 -60
  64. package/index131.mjs +0 -98
  65. package/index132.mjs +0 -27
  66. package/index133.mjs +0 -74
  67. package/index134.mjs +0 -60
  68. package/index135.mjs +0 -36
  69. package/index136.mjs +0 -76
  70. package/index137.mjs +0 -31
  71. package/index138.mjs +0 -29
  72. package/index139.mjs +0 -19
  73. package/index14.mjs +0 -26
  74. package/index140.mjs +0 -94
  75. package/index141.mjs +0 -136
  76. package/index142.mjs +0 -27
  77. package/index143.mjs +0 -31
  78. package/index144.mjs +0 -42
  79. package/index145.mjs +0 -61
  80. package/index146.mjs +0 -7
  81. package/index147.mjs +0 -25
  82. package/index148.mjs +0 -126
  83. package/index149.mjs +0 -55
  84. package/index15.mjs +0 -24
  85. package/index150.mjs +0 -38
  86. package/index151.mjs +0 -160
  87. package/index152.mjs +0 -19
  88. package/index153.mjs +0 -56
  89. package/index154.mjs +0 -30
  90. package/index155.mjs +0 -35
  91. package/index156.mjs +0 -46
  92. package/index157.mjs +0 -69
  93. package/index158.mjs +0 -80
  94. package/index159.mjs +0 -22
  95. package/index16.mjs +0 -87
  96. package/index160.mjs +0 -106
  97. package/index161.mjs +0 -15
  98. package/index162.mjs +0 -51
  99. package/index163.mjs +0 -35
  100. package/index164.mjs +0 -31
  101. package/index165.mjs +0 -23
  102. package/index166.mjs +0 -75
  103. package/index167.mjs +0 -12
  104. package/index168.mjs +0 -26
  105. package/index169.mjs +0 -21
  106. package/index17.mjs +0 -27
  107. package/index170.mjs +0 -22
  108. package/index171.mjs +0 -26
  109. package/index172.mjs +0 -9
  110. package/index173.mjs +0 -7
  111. package/index174.mjs +0 -24
  112. package/index175.mjs +0 -94
  113. package/index176.mjs +0 -90
  114. package/index177.mjs +0 -21
  115. package/index178.mjs +0 -67
  116. package/index179.mjs +0 -30
  117. package/index18.mjs +0 -106
  118. package/index180.mjs +0 -65
  119. package/index181.mjs +0 -36
  120. package/index182.mjs +0 -39
  121. package/index183.mjs +0 -19
  122. package/index184.mjs +0 -17
  123. package/index185.mjs +0 -86
  124. package/index186.mjs +0 -32
  125. package/index187.mjs +0 -29
  126. package/index188.mjs +0 -26
  127. package/index189.mjs +0 -10
  128. package/index19.mjs +0 -35
  129. package/index190.mjs +0 -32
  130. package/index191.mjs +0 -29
  131. package/index192.mjs +0 -12
  132. package/index193.mjs +0 -24
  133. package/index194.mjs +0 -152
  134. package/index195.mjs +0 -16
  135. package/index196.mjs +0 -27
  136. package/index197.mjs +0 -19
  137. package/index198.mjs +0 -34
  138. package/index199.mjs +0 -256
  139. package/index20.mjs +0 -55
  140. package/index200.mjs +0 -93
  141. package/index201.mjs +0 -24
  142. package/index202.mjs +0 -10
  143. package/index203.mjs +0 -31
  144. package/index204.mjs +0 -14
  145. package/index205.mjs +0 -102
  146. package/index206.mjs +0 -33
  147. package/index207.mjs +0 -37
  148. package/index208.mjs +0 -88
  149. package/index209.mjs +0 -46
  150. package/index21.mjs +0 -93
  151. package/index210.mjs +0 -19
  152. package/index211.mjs +0 -32
  153. package/index212.mjs +0 -40
  154. package/index213.mjs +0 -31
  155. package/index214.mjs +0 -28
  156. package/index215.mjs +0 -33
  157. package/index216.mjs +0 -17
  158. package/index217.mjs +0 -19
  159. package/index218.mjs +0 -13
  160. package/index219.mjs +0 -54
  161. package/index22.mjs +0 -27
  162. package/index220.mjs +0 -92
  163. package/index221.mjs +0 -19
  164. package/index222.mjs +0 -17
  165. package/index223.mjs +0 -50
  166. package/index224.mjs +0 -9
  167. package/index225.mjs +0 -61
  168. package/index226.mjs +0 -27
  169. package/index227.mjs +0 -32
  170. package/index228.mjs +0 -23
  171. package/index229.mjs +0 -12
  172. package/index23.mjs +0 -9
  173. package/index230.mjs +0 -15
  174. package/index231.mjs +0 -19
  175. package/index232.mjs +0 -44
  176. package/index233.mjs +0 -56
  177. package/index234.mjs +0 -61
  178. package/index235.mjs +0 -36
  179. package/index236.mjs +0 -47
  180. package/index237.mjs +0 -51
  181. package/index238.mjs +0 -21
  182. package/index239.mjs +0 -9
  183. package/index24.mjs +0 -109
  184. package/index240.mjs +0 -57
  185. package/index241.mjs +0 -50
  186. package/index242.mjs +0 -51
  187. package/index243.mjs +0 -24
  188. package/index244.mjs +0 -11
  189. package/index245.mjs +0 -45
  190. package/index246.mjs +0 -110
  191. package/index247.mjs +0 -11
  192. package/index248.mjs +0 -26
  193. package/index249.mjs +0 -25
  194. package/index25.mjs +0 -32
  195. package/index250.mjs +0 -10
  196. package/index251.mjs +0 -10
  197. package/index252.mjs +0 -7
  198. package/index253.mjs +0 -74
  199. package/index254.mjs +0 -232
  200. package/index255.mjs +0 -90
  201. package/index256.mjs +0 -10
  202. package/index257.mjs +0 -18
  203. package/index258.mjs +0 -22
  204. package/index259.mjs +0 -10
  205. package/index26.mjs +0 -35
  206. package/index260.mjs +0 -9
  207. package/index261.mjs +0 -30
  208. package/index262.mjs +0 -31
  209. package/index263.mjs +0 -20
  210. package/index264.mjs +0 -6
  211. package/index265.mjs +0 -46
  212. package/index266.mjs +0 -31
  213. package/index267.mjs +0 -55
  214. package/index268.mjs +0 -36
  215. package/index269.mjs +0 -40
  216. package/index27.mjs +0 -50
  217. package/index270.mjs +0 -40
  218. package/index271.mjs +0 -37
  219. package/index272.mjs +0 -38
  220. package/index273.mjs +0 -6
  221. package/index274.mjs +0 -17
  222. package/index275.mjs +0 -10
  223. package/index276.mjs +0 -39
  224. package/index277.mjs +0 -97
  225. package/index278.mjs +0 -100
  226. package/index279.mjs +0 -15
  227. package/index28.mjs +0 -50
  228. package/index280.mjs +0 -21
  229. package/index281.mjs +0 -42
  230. package/index282.mjs +0 -47
  231. package/index283.mjs +0 -29
  232. package/index284.mjs +0 -44
  233. package/index285.mjs +0 -54
  234. package/index286.mjs +0 -21
  235. package/index287.mjs +0 -28
  236. package/index288.mjs +0 -55
  237. package/index289.mjs +0 -58
  238. package/index29.mjs +0 -30
  239. package/index290.mjs +0 -19
  240. package/index291.mjs +0 -18
  241. package/index292.mjs +0 -17
  242. package/index293.mjs +0 -20
  243. package/index294.mjs +0 -16
  244. package/index295.mjs +0 -32
  245. package/index296.mjs +0 -18
  246. package/index297.mjs +0 -7
  247. package/index298.mjs +0 -136
  248. package/index299.mjs +0 -55
  249. package/index3.mjs +0 -32
  250. package/index30.mjs +0 -83
  251. package/index300.mjs +0 -1023
  252. package/index301.mjs +0 -34
  253. package/index302.mjs +0 -36
  254. package/index303.mjs +0 -5
  255. package/index304.mjs +0 -243
  256. package/index305.mjs +0 -6
  257. package/index306.mjs +0 -76
  258. package/index307.mjs +0 -17
  259. package/index308.mjs +0 -235
  260. package/index309.mjs +0 -28
  261. package/index31.mjs +0 -35
  262. package/index310.mjs +0 -44
  263. package/index311.mjs +0 -10
  264. package/index312.mjs +0 -12
  265. package/index313.mjs +0 -133
  266. package/index314.mjs +0 -145
  267. package/index315.mjs +0 -239
  268. package/index316.mjs +0 -44
  269. package/index317.mjs +0 -47
  270. package/index318.mjs +0 -38
  271. package/index319.mjs +0 -714
  272. package/index32.mjs +0 -46
  273. package/index320.mjs +0 -37
  274. package/index321.mjs +0 -9
  275. package/index322.mjs +0 -21
  276. package/index323.mjs +0 -18
  277. package/index324.mjs +0 -47
  278. package/index325.mjs +0 -122
  279. package/index326.mjs +0 -226
  280. package/index327.mjs +0 -44
  281. package/index328.mjs +0 -10
  282. package/index329.mjs +0 -9
  283. package/index33.mjs +0 -37
  284. package/index330.mjs +0 -11
  285. package/index331.mjs +0 -12
  286. package/index332.mjs +0 -12
  287. package/index333.mjs +0 -262
  288. package/index334.mjs +0 -7
  289. package/index335.mjs +0 -14
  290. package/index336.mjs +0 -28
  291. package/index337.mjs +0 -11
  292. package/index338.mjs +0 -46
  293. package/index339.mjs +0 -37
  294. package/index34.mjs +0 -104
  295. package/index340.mjs +0 -100
  296. package/index341.mjs +0 -31
  297. package/index342.mjs +0 -104
  298. package/index343.mjs +0 -138
  299. package/index344.mjs +0 -61
  300. package/index345.mjs +0 -8
  301. package/index346.mjs +0 -21
  302. package/index347.mjs +0 -10
  303. package/index348.mjs +0 -42
  304. package/index349.mjs +0 -24
  305. package/index35.mjs +0 -51
  306. package/index350.mjs +0 -252
  307. package/index351.mjs +0 -78
  308. package/index352.mjs +0 -20
  309. package/index353.mjs +0 -17
  310. package/index354.mjs +0 -33
  311. package/index355.mjs +0 -76
  312. package/index356.mjs +0 -50
  313. package/index357.mjs +0 -23
  314. package/index358.mjs +0 -44
  315. package/index359.mjs +0 -48
  316. package/index36.mjs +0 -26
  317. package/index360.mjs +0 -265
  318. package/index361.mjs +0 -33
  319. package/index362.mjs +0 -63
  320. package/index363.mjs +0 -64
  321. package/index364.mjs +0 -340
  322. package/index365.mjs +0 -85
  323. package/index366.mjs +0 -36
  324. package/index367.mjs +0 -39
  325. package/index368.mjs +0 -52
  326. package/index369.mjs +0 -123
  327. package/index37.mjs +0 -41
  328. package/index370.mjs +0 -41
  329. package/index371.mjs +0 -25
  330. package/index372.mjs +0 -63
  331. package/index373.mjs +0 -26
  332. package/index374.mjs +0 -90
  333. package/index375.mjs +0 -39
  334. package/index376.mjs +0 -40
  335. package/index377.mjs +0 -40
  336. package/index378.mjs +0 -27
  337. package/index379.mjs +0 -60
  338. package/index38.mjs +0 -48
  339. package/index380.mjs +0 -436
  340. package/index381.mjs +0 -48
  341. package/index382.mjs +0 -1005
  342. package/index383.mjs +0 -31
  343. package/index384.mjs +0 -32
  344. package/index385.mjs +0 -8
  345. package/index386.mjs +0 -240
  346. package/index387.mjs +0 -27
  347. package/index388.mjs +0 -46
  348. package/index389.mjs +0 -8
  349. package/index39.mjs +0 -74
  350. package/index390.mjs +0 -18
  351. package/index391.mjs +0 -50
  352. package/index392.mjs +0 -26
  353. package/index393.mjs +0 -37
  354. package/index394.mjs +0 -64
  355. package/index395.mjs +0 -28
  356. package/index396.mjs +0 -13
  357. package/index397.mjs +0 -18
  358. package/index398.mjs +0 -44
  359. package/index399.mjs +0 -47
  360. package/index4.mjs +0 -41
  361. package/index40.mjs +0 -18
  362. package/index400.mjs +0 -108
  363. package/index401.mjs +0 -28
  364. package/index402.mjs +0 -34
  365. package/index403.mjs +0 -26
  366. package/index404.mjs +0 -39
  367. package/index405.mjs +0 -26
  368. package/index406.mjs +0 -16
  369. package/index407.mjs +0 -31
  370. package/index408.mjs +0 -67
  371. package/index409.mjs +0 -195
  372. package/index41.mjs +0 -31
  373. package/index410.mjs +0 -6
  374. package/index411.mjs +0 -5
  375. package/index412.mjs +0 -34
  376. package/index413.mjs +0 -16
  377. package/index414.mjs +0 -28
  378. package/index415.mjs +0 -14
  379. package/index416.mjs +0 -42
  380. package/index417.mjs +0 -2003
  381. package/index418.mjs +0 -10
  382. package/index419.mjs +0 -75
  383. package/index42.mjs +0 -48
  384. package/index420.mjs +0 -134
  385. package/index421.mjs +0 -10
  386. package/index422.mjs +0 -30
  387. package/index423.mjs +0 -71
  388. package/index424.mjs +0 -128
  389. package/index425.mjs +0 -18
  390. package/index426.mjs +0 -138
  391. package/index427.mjs +0 -14
  392. package/index428.mjs +0 -222
  393. package/index429.mjs +0 -17
  394. package/index43.mjs +0 -98
  395. package/index430.mjs +0 -72
  396. package/index431.mjs +0 -37
  397. package/index432.mjs +0 -57
  398. package/index433.mjs +0 -55
  399. package/index434.mjs +0 -53
  400. package/index435.mjs +0 -12
  401. package/index436.mjs +0 -653
  402. package/index437.mjs +0 -14
  403. package/index438.mjs +0 -49
  404. package/index439.mjs +0 -184
  405. package/index44.mjs +0 -31
  406. package/index440.mjs +0 -11
  407. package/index441.mjs +0 -28
  408. package/index442.mjs +0 -9
  409. package/index443.mjs +0 -7520
  410. package/index444.mjs +0 -32
  411. package/index445.mjs +0 -42
  412. package/index446.mjs +0 -9
  413. package/index447.mjs +0 -5
  414. package/index448.mjs +0 -182
  415. package/index449.mjs +0 -32
  416. package/index45.mjs +0 -33
  417. package/index450.mjs +0 -856
  418. package/index451.mjs +0 -36
  419. package/index452.mjs +0 -5
  420. package/index453.mjs +0 -87
  421. package/index454.mjs +0 -135
  422. package/index455.mjs +0 -163
  423. package/index456.mjs +0 -32
  424. package/index457.mjs +0 -80
  425. package/index458.mjs +0 -86
  426. package/index459.mjs +0 -58
  427. package/index46.mjs +0 -135
  428. package/index460.mjs +0 -7
  429. package/index461.mjs +0 -33
  430. package/index462.mjs +0 -16
  431. package/index463.mjs +0 -109
  432. package/index464.mjs +0 -101
  433. package/index465.mjs +0 -29
  434. package/index466.mjs +0 -42
  435. package/index467.mjs +0 -8
  436. package/index468.mjs +0 -8
  437. package/index469.mjs +0 -23
  438. package/index47.mjs +0 -25
  439. package/index470.mjs +0 -7
  440. package/index471.mjs +0 -10
  441. package/index472.mjs +0 -11
  442. package/index473.mjs +0 -6
  443. package/index474.mjs +0 -9
  444. package/index475.mjs +0 -8
  445. package/index476.mjs +0 -21
  446. package/index477.mjs +0 -17
  447. package/index478.mjs +0 -22
  448. package/index479.mjs +0 -14
  449. package/index48.mjs +0 -48
  450. package/index480.mjs +0 -18
  451. package/index481.mjs +0 -8
  452. package/index482.mjs +0 -12
  453. package/index483.mjs +0 -13
  454. package/index484.mjs +0 -12
  455. package/index485.mjs +0 -41
  456. package/index486.mjs +0 -6
  457. package/index487.mjs +0 -7
  458. package/index488.mjs +0 -8
  459. package/index489.mjs +0 -13
  460. package/index49.mjs +0 -111
  461. package/index490.mjs +0 -10
  462. package/index491.mjs +0 -7
  463. package/index492.mjs +0 -5
  464. package/index493.mjs +0 -21
  465. package/index494.mjs +0 -17
  466. package/index495.mjs +0 -56
  467. package/index496.mjs +0 -33
  468. package/index497.mjs +0 -40
  469. package/index498.mjs +0 -13
  470. package/index499.mjs +0 -6
  471. package/index5.mjs +0 -41
  472. package/index50.mjs +0 -206
  473. package/index500.mjs +0 -51
  474. package/index501.mjs +0 -10
  475. package/index502.mjs +0 -6
  476. package/index503.mjs +0 -32
  477. package/index504.mjs +0 -19
  478. package/index505.mjs +0 -14
  479. package/index506.mjs +0 -12
  480. package/index507.mjs +0 -5
  481. package/index508.mjs +0 -6
  482. package/index509.mjs +0 -6
  483. package/index51.mjs +0 -69
  484. package/index510.mjs +0 -5
  485. package/index511.mjs +0 -262
  486. package/index512.mjs +0 -19
  487. package/index513.mjs +0 -7
  488. package/index514.mjs +0 -14
  489. package/index515.mjs +0 -6
  490. package/index516.mjs +0 -30
  491. package/index517.mjs +0 -203
  492. package/index518.mjs +0 -8
  493. package/index519.mjs +0 -24
  494. package/index52.mjs +0 -98
  495. package/index520.mjs +0 -14
  496. package/index521.mjs +0 -7
  497. package/index522.mjs +0 -29
  498. package/index523.mjs +0 -7
  499. package/index524.mjs +0 -8
  500. package/index525.mjs +0 -28
  501. package/index526.mjs +0 -14
  502. package/index527.mjs +0 -5
  503. package/index528.mjs +0 -10
  504. package/index529.mjs +0 -9
  505. package/index53.mjs +0 -15
  506. package/index530.mjs +0 -22
  507. package/index531.mjs +0 -119
  508. package/index532.mjs +0 -31
  509. package/index533.mjs +0 -68
  510. package/index534.mjs +0 -37
  511. package/index535.mjs +0 -17
  512. package/index536.mjs +0 -44
  513. package/index537.mjs +0 -5
  514. package/index538.mjs +0 -6
  515. package/index539.mjs +0 -14
  516. package/index54.mjs +0 -56
  517. package/index540.mjs +0 -13
  518. package/index541.mjs +0 -12
  519. package/index542.mjs +0 -20
  520. package/index543.mjs +0 -13
  521. package/index544.mjs +0 -17
  522. package/index545.mjs +0 -68
  523. package/index546.mjs +0 -7
  524. package/index547.mjs +0 -5
  525. package/index548.mjs +0 -18
  526. package/index549.mjs +0 -19
  527. package/index55.mjs +0 -28
  528. package/index550.mjs +0 -7
  529. package/index551.mjs +0 -7
  530. package/index552.mjs +0 -5
  531. package/index553.mjs +0 -10
  532. package/index554.mjs +0 -56
  533. package/index555.mjs +0 -20
  534. package/index556.mjs +0 -12
  535. package/index557.mjs +0 -5
  536. package/index558.mjs +0 -7
  537. package/index559.mjs +0 -5
  538. package/index56.mjs +0 -27
  539. package/index560.mjs +0 -5
  540. package/index561.mjs +0 -8
  541. package/index562.mjs +0 -6
  542. package/index563.mjs +0 -10
  543. package/index564.mjs +0 -19
  544. package/index565.mjs +0 -5
  545. package/index566.mjs +0 -5
  546. package/index567.mjs +0 -9
  547. package/index568.mjs +0 -8
  548. package/index569.mjs +0 -12
  549. package/index57.mjs +0 -35
  550. package/index570.mjs +0 -10
  551. package/index571.mjs +0 -25
  552. package/index572.mjs +0 -36
  553. package/index573.mjs +0 -31
  554. package/index574.mjs +0 -33
  555. package/index575.mjs +0 -26
  556. package/index576.mjs +0 -53
  557. package/index577.mjs +0 -5
  558. package/index578.mjs +0 -5
  559. package/index579.mjs +0 -11
  560. package/index58.mjs +0 -36
  561. package/index580.mjs +0 -9
  562. package/index581.mjs +0 -36
  563. package/index582.mjs +0 -21
  564. package/index583.mjs +0 -50
  565. package/index584.mjs +0 -7
  566. package/index585.mjs +0 -9
  567. package/index586.mjs +0 -34
  568. package/index587.mjs +0 -9
  569. package/index588.mjs +0 -7
  570. package/index589.mjs +0 -15
  571. package/index59.mjs +0 -41
  572. package/index590.mjs +0 -5
  573. package/index591.mjs +0 -15
  574. package/index592.mjs +0 -209
  575. package/index593.mjs +0 -25
  576. package/index594.mjs +0 -403
  577. package/index595.mjs +0 -5
  578. package/index596.mjs +0 -49
  579. package/index597.mjs +0 -5
  580. package/index598.mjs +0 -121
  581. package/index599.mjs +0 -9
  582. package/index6.mjs +0 -13
  583. package/index60.mjs +0 -8
  584. package/index600.mjs +0 -60
  585. package/index601.mjs +0 -9
  586. package/index602.mjs +0 -7
  587. package/index603.mjs +0 -55
  588. package/index604.mjs +0 -16
  589. package/index605.mjs +0 -31
  590. package/index606.mjs +0 -46
  591. package/index607.mjs +0 -33
  592. package/index608.mjs +0 -25
  593. package/index609.mjs +0 -7
  594. package/index61.mjs +0 -73
  595. package/index610.mjs +0 -94
  596. package/index611.mjs +0 -13
  597. package/index612.mjs +0 -13
  598. package/index613.mjs +0 -12
  599. package/index614.mjs +0 -17
  600. package/index615.mjs +0 -7
  601. package/index616.mjs +0 -49
  602. package/index617.mjs +0 -235
  603. package/index618.mjs +0 -45
  604. package/index619.mjs +0 -409
  605. package/index62.mjs +0 -67
  606. package/index620.mjs +0 -202
  607. package/index621.mjs +0 -132
  608. package/index622.mjs +0 -51
  609. package/index623.mjs +0 -169
  610. package/index624.mjs +0 -264
  611. package/index625.mjs +0 -361
  612. package/index626.mjs +0 -44
  613. package/index627.mjs +0 -95
  614. package/index628.mjs +0 -112
  615. package/index629.mjs +0 -6
  616. package/index63.mjs +0 -42
  617. package/index630.mjs +0 -16
  618. package/index631.mjs +0 -8
  619. package/index632.mjs +0 -5
  620. package/index633.mjs +0 -2339
  621. package/index634.mjs +0 -10
  622. package/index635.mjs +0 -28
  623. package/index636.mjs +0 -25
  624. package/index637.mjs +0 -23
  625. package/index638.mjs +0 -33
  626. package/index639.mjs +0 -13
  627. package/index64.mjs +0 -81
  628. package/index640.mjs +0 -27
  629. package/index641.mjs +0 -29
  630. package/index642.mjs +0 -75
  631. package/index643.mjs +0 -45
  632. package/index644.mjs +0 -19
  633. package/index645.mjs +0 -44
  634. package/index646.mjs +0 -73
  635. package/index647.mjs +0 -26
  636. package/index648.mjs +0 -50
  637. package/index649.mjs +0 -44
  638. package/index65.mjs +0 -67
  639. package/index650.mjs +0 -50
  640. package/index651.mjs +0 -5
  641. package/index652.mjs +0 -57
  642. package/index653.mjs +0 -11
  643. package/index654.mjs +0 -16
  644. package/index655.mjs +0 -7
  645. package/index656.mjs +0 -586
  646. package/index657.mjs +0 -14
  647. package/index658.mjs +0 -17
  648. package/index659.mjs +0 -18
  649. package/index66.mjs +0 -129
  650. package/index660.mjs +0 -26
  651. package/index661.mjs +0 -5
  652. package/index662.mjs +0 -32
  653. package/index663.mjs +0 -9
  654. package/index664.mjs +0 -7
  655. package/index665.mjs +0 -11
  656. package/index666.mjs +0 -54
  657. package/index667.mjs +0 -23
  658. package/index668.mjs +0 -119
  659. package/index669.mjs +0 -11
  660. package/index67.mjs +0 -22
  661. package/index670.mjs +0 -25
  662. package/index671.mjs +0 -25
  663. package/index672.mjs +0 -10
  664. package/index673.mjs +0 -5
  665. package/index674.mjs +0 -32
  666. package/index675.mjs +0 -8
  667. package/index676.mjs +0 -76
  668. package/index677.mjs +0 -76
  669. package/index678.mjs +0 -77
  670. package/index679.mjs +0 -77
  671. package/index68.mjs +0 -55
  672. package/index680.mjs +0 -49
  673. package/index681.mjs +0 -49
  674. package/index682.mjs +0 -49
  675. package/index683.mjs +0 -49
  676. package/index684.mjs +0 -49
  677. package/index685.mjs +0 -49
  678. package/index686.mjs +0 -50
  679. package/index687.mjs +0 -49
  680. package/index688.mjs +0 -28
  681. package/index689.mjs +0 -78
  682. package/index69.mjs +0 -72
  683. package/index690.mjs +0 -68
  684. package/index691.mjs +0 -78
  685. package/index692.mjs +0 -77
  686. package/index693.mjs +0 -50
  687. package/index694.mjs +0 -50
  688. package/index695.mjs +0 -50
  689. package/index696.mjs +0 -50
  690. package/index697.mjs +0 -50
  691. package/index698.mjs +0 -50
  692. package/index699.mjs +0 -50
  693. package/index7.mjs +0 -24
  694. package/index70.mjs +0 -69
  695. package/index700.mjs +0 -50
  696. package/index701.mjs +0 -706
  697. package/index702.mjs +0 -891
  698. package/index703.mjs +0 -891
  699. package/index704.mjs +0 -891
  700. package/index705.mjs +0 -891
  701. package/index706.mjs +0 -891
  702. package/index707.mjs +0 -181
  703. package/index708.mjs +0 -1056
  704. package/index709.mjs +0 -5
  705. package/index71.mjs +0 -45
  706. package/index710.mjs +0 -56
  707. package/index711.mjs +0 -68
  708. package/index712.mjs +0 -5
  709. package/index713.mjs +0 -11
  710. package/index714.mjs +0 -330
  711. package/index715.mjs +0 -53
  712. package/index716.mjs +0 -5
  713. package/index717.mjs +0 -25
  714. package/index718.mjs +0 -34
  715. package/index719.mjs +0 -88
  716. package/index72.mjs +0 -55
  717. package/index720.mjs +0 -6
  718. package/index721.mjs +0 -31
  719. package/index722.mjs +0 -28
  720. package/index723.mjs +0 -23
  721. package/index724.mjs +0 -12
  722. package/index725.mjs +0 -16
  723. package/index726.mjs +0 -9
  724. package/index727.mjs +0 -27
  725. package/index728.mjs +0 -5
  726. package/index729.mjs +0 -12
  727. package/index73.mjs +0 -90
  728. package/index730.mjs +0 -10
  729. package/index731.mjs +0 -5
  730. package/index732.mjs +0 -22
  731. package/index733.mjs +0 -30
  732. package/index734.mjs +0 -9
  733. package/index735.mjs +0 -14
  734. package/index736.mjs +0 -31
  735. package/index737.mjs +0 -29
  736. package/index738.mjs +0 -256
  737. package/index739.mjs +0 -85
  738. package/index74.mjs +0 -70
  739. package/index740.mjs +0 -5
  740. package/index741.mjs +0 -16
  741. package/index742.mjs +0 -22
  742. package/index743.mjs +0 -17
  743. package/index744.mjs +0 -108
  744. package/index745.mjs +0 -25
  745. package/index746.mjs +0 -23
  746. package/index747.mjs +0 -8
  747. package/index748.mjs +0 -23
  748. package/index749.mjs +0 -33
  749. package/index75.mjs +0 -61
  750. package/index750.mjs +0 -11
  751. package/index751.mjs +0 -56
  752. package/index752.mjs +0 -26
  753. package/index753.mjs +0 -23
  754. package/index754.mjs +0 -59
  755. package/index755.mjs +0 -14
  756. package/index756.mjs +0 -7
  757. package/index757.mjs +0 -21
  758. package/index758.mjs +0 -7
  759. package/index759.mjs +0 -7
  760. package/index76.mjs +0 -33
  761. package/index760.mjs +0 -5
  762. package/index761.mjs +0 -13
  763. package/index762.mjs +0 -8
  764. package/index763.mjs +0 -15
  765. package/index764.mjs +0 -8
  766. package/index765.mjs +0 -8
  767. package/index766.mjs +0 -6
  768. package/index767.mjs +0 -27
  769. package/index768.mjs +0 -116
  770. package/index769.mjs +0 -19
  771. package/index77.mjs +0 -18
  772. package/index770.mjs +0 -528
  773. package/index771.mjs +0 -131
  774. package/index772.mjs +0 -137
  775. package/index773.mjs +0 -73
  776. package/index774.mjs +0 -5
  777. package/index775.mjs +0 -5
  778. package/index776.mjs +0 -59
  779. package/index777.mjs +0 -34
  780. package/index778.mjs +0 -28
  781. package/index779.mjs +0 -28
  782. package/index78.mjs +0 -44
  783. package/index780.mjs +0 -18
  784. package/index781.mjs +0 -56
  785. package/index782.mjs +0 -5
  786. package/index783.mjs +0 -79
  787. package/index784.mjs +0 -96
  788. package/index785.mjs +0 -55
  789. package/index786.mjs +0 -11
  790. package/index787.mjs +0 -8
  791. package/index788.mjs +0 -55
  792. package/index789.mjs +0 -5
  793. package/index79.mjs +0 -119
  794. package/index790.mjs +0 -27
  795. package/index791.mjs +0 -5
  796. package/index792.mjs +0 -66
  797. package/index793.mjs +0 -11
  798. package/index794.mjs +0 -11
  799. package/index795.mjs +0 -33
  800. package/index796.mjs +0 -9
  801. package/index797.mjs +0 -12
  802. package/index798.mjs +0 -19
  803. package/index799.mjs +0 -10
  804. package/index8.mjs +0 -31
  805. package/index80.mjs +0 -36
  806. package/index800.mjs +0 -5
  807. package/index801.mjs +0 -26
  808. package/index802.mjs +0 -68
  809. package/index803.mjs +0 -8
  810. package/index804.mjs +0 -11
  811. package/index805.mjs +0 -68
  812. package/index806.mjs +0 -72
  813. package/index807.mjs +0 -12
  814. package/index808.mjs +0 -17
  815. package/index809.mjs +0 -69
  816. package/index81.mjs +0 -22
  817. package/index810.mjs +0 -9
  818. package/index811.mjs +0 -27
  819. package/index812.mjs +0 -31
  820. package/index813.mjs +0 -5
  821. package/index814.mjs +0 -5
  822. package/index815.mjs +0 -5
  823. package/index816.mjs +0 -63
  824. package/index817.mjs +0 -5
  825. package/index818.mjs +0 -5
  826. package/index819.mjs +0 -5
  827. package/index82.mjs +0 -16
  828. package/index820.mjs +0 -18
  829. package/index821.mjs +0 -48
  830. package/index822.mjs +0 -100
  831. package/index823.mjs +0 -7
  832. package/index824.mjs +0 -26
  833. package/index825.mjs +0 -10
  834. package/index826.mjs +0 -62
  835. package/index827.mjs +0 -98
  836. package/index828.mjs +0 -95
  837. package/index829.mjs +0 -88
  838. package/index83.mjs +0 -55
  839. package/index830.mjs +0 -8
  840. package/index831.mjs +0 -5
  841. package/index832.mjs +0 -73
  842. package/index833.mjs +0 -5
  843. package/index834.mjs +0 -26
  844. package/index835.mjs +0 -16
  845. package/index836.mjs +0 -31
  846. package/index837.mjs +0 -8
  847. package/index84.mjs +0 -31
  848. package/index85.mjs +0 -53
  849. package/index86.mjs +0 -100
  850. package/index87.mjs +0 -13
  851. package/index88.mjs +0 -44
  852. package/index89.mjs +0 -65
  853. package/index9.mjs +0 -27
  854. package/index90.mjs +0 -151
  855. package/index91.mjs +0 -33
  856. package/index92.mjs +0 -52
  857. package/index93.mjs +0 -28
  858. package/index94.mjs +0 -59
  859. package/index95.mjs +0 -23
  860. package/index96.mjs +0 -53
  861. package/index97.mjs +0 -34
  862. package/index98.mjs +0 -93
  863. package/index99.mjs +0 -41
package/index633.mjs DELETED
@@ -1,2339 +0,0 @@
1
- import { ZodIssueCode as c, ZodError as z } from "./index829.mjs";
2
- import { errorUtil as o } from "./index830.mjs";
3
- import { addIssueToContext as u, INVALID as p, ParseStatus as w, OK as k, isAsync as D, isValid as N, DIRTY as V, isAborted as X, isDirty as K } from "./index827.mjs";
4
- import { util as v, ZodParsedType as h, getParsedType as C } from "./index828.mjs";
5
- class A {
6
- constructor(e, t, s, r) {
7
- this._cachedPath = [], this.parent = e, this.data = t, this._path = s, this._key = r;
8
- }
9
- get path() {
10
- return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
11
- }
12
- }
13
- const ee = (n, e) => {
14
- if (N(e))
15
- return { success: !0, data: e.value };
16
- if (!n.common.issues.length)
17
- throw new Error("Validation failed but no issues detected.");
18
- return {
19
- success: !1,
20
- get error() {
21
- if (this._error)
22
- return this._error;
23
- const t = new z(n.common.issues);
24
- return this._error = t, this._error;
25
- }
26
- };
27
- };
28
- function _(n) {
29
- if (!n)
30
- return {};
31
- const { errorMap: e, invalid_type_error: t, required_error: s, description: r } = n;
32
- if (e && (t || s))
33
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
34
- return e ? { errorMap: e, description: r } : { errorMap: (d, i) => {
35
- const { message: l } = n;
36
- return d.code === "invalid_enum_value" ? { message: l ?? i.defaultError } : typeof i.data > "u" ? { message: l ?? s ?? i.defaultError } : d.code !== "invalid_type" ? { message: i.defaultError } : { message: l ?? t ?? i.defaultError };
37
- }, description: r };
38
- }
39
- class g {
40
- get description() {
41
- return this._def.description;
42
- }
43
- _getType(e) {
44
- return C(e.data);
45
- }
46
- _getOrReturnCtx(e, t) {
47
- return t || {
48
- common: e.parent.common,
49
- data: e.data,
50
- parsedType: C(e.data),
51
- schemaErrorMap: this._def.errorMap,
52
- path: e.path,
53
- parent: e.parent
54
- };
55
- }
56
- _processInputParams(e) {
57
- return {
58
- status: new w(),
59
- ctx: {
60
- common: e.parent.common,
61
- data: e.data,
62
- parsedType: C(e.data),
63
- schemaErrorMap: this._def.errorMap,
64
- path: e.path,
65
- parent: e.parent
66
- }
67
- };
68
- }
69
- _parseSync(e) {
70
- const t = this._parse(e);
71
- if (D(t))
72
- throw new Error("Synchronous parse encountered promise.");
73
- return t;
74
- }
75
- _parseAsync(e) {
76
- const t = this._parse(e);
77
- return Promise.resolve(t);
78
- }
79
- parse(e, t) {
80
- const s = this.safeParse(e, t);
81
- if (s.success)
82
- return s.data;
83
- throw s.error;
84
- }
85
- safeParse(e, t) {
86
- const s = {
87
- common: {
88
- issues: [],
89
- async: (t == null ? void 0 : t.async) ?? !1,
90
- contextualErrorMap: t == null ? void 0 : t.errorMap
91
- },
92
- path: (t == null ? void 0 : t.path) || [],
93
- schemaErrorMap: this._def.errorMap,
94
- parent: null,
95
- data: e,
96
- parsedType: C(e)
97
- }, r = this._parseSync({ data: e, path: s.path, parent: s });
98
- return ee(s, r);
99
- }
100
- "~validate"(e) {
101
- var s, r;
102
- const t = {
103
- common: {
104
- issues: [],
105
- async: !!this["~standard"].async
106
- },
107
- path: [],
108
- schemaErrorMap: this._def.errorMap,
109
- parent: null,
110
- data: e,
111
- parsedType: C(e)
112
- };
113
- if (!this["~standard"].async)
114
- try {
115
- const a = this._parseSync({ data: e, path: [], parent: t });
116
- return N(a) ? {
117
- value: a.value
118
- } : {
119
- issues: t.common.issues
120
- };
121
- } catch (a) {
122
- (r = (s = a == null ? void 0 : a.message) == null ? void 0 : s.toLowerCase()) != null && r.includes("encountered") && (this["~standard"].async = !0), t.common = {
123
- issues: [],
124
- async: !0
125
- };
126
- }
127
- return this._parseAsync({ data: e, path: [], parent: t }).then((a) => N(a) ? {
128
- value: a.value
129
- } : {
130
- issues: t.common.issues
131
- });
132
- }
133
- async parseAsync(e, t) {
134
- const s = await this.safeParseAsync(e, t);
135
- if (s.success)
136
- return s.data;
137
- throw s.error;
138
- }
139
- async safeParseAsync(e, t) {
140
- const s = {
141
- common: {
142
- issues: [],
143
- contextualErrorMap: t == null ? void 0 : t.errorMap,
144
- async: !0
145
- },
146
- path: (t == null ? void 0 : t.path) || [],
147
- schemaErrorMap: this._def.errorMap,
148
- parent: null,
149
- data: e,
150
- parsedType: C(e)
151
- }, r = this._parse({ data: e, path: s.path, parent: s }), a = await (D(r) ? r : Promise.resolve(r));
152
- return ee(s, a);
153
- }
154
- refine(e, t) {
155
- const s = (r) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t;
156
- return this._refinement((r, a) => {
157
- const d = e(r), i = () => a.addIssue({
158
- code: c.custom,
159
- ...s(r)
160
- });
161
- return typeof Promise < "u" && d instanceof Promise ? d.then((l) => l ? !0 : (i(), !1)) : d ? !0 : (i(), !1);
162
- });
163
- }
164
- refinement(e, t) {
165
- return this._refinement((s, r) => e(s) ? !0 : (r.addIssue(typeof t == "function" ? t(s, r) : t), !1));
166
- }
167
- _refinement(e) {
168
- return new j({
169
- schema: this,
170
- typeName: f.ZodEffects,
171
- effect: { type: "refinement", refinement: e }
172
- });
173
- }
174
- superRefine(e) {
175
- return this._refinement(e);
176
- }
177
- constructor(e) {
178
- this.spa = this.safeParseAsync, this._def = e, this.parse = this.parse.bind(this), this.safeParse = this.safeParse.bind(this), this.parseAsync = this.parseAsync.bind(this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this.spa.bind(this), this.refine = this.refine.bind(this), this.refinement = this.refinement.bind(this), this.superRefine = this.superRefine.bind(this), this.optional = this.optional.bind(this), this.nullable = this.nullable.bind(this), this.nullish = this.nullish.bind(this), this.array = this.array.bind(this), this.promise = this.promise.bind(this), this.or = this.or.bind(this), this.and = this.and.bind(this), this.transform = this.transform.bind(this), this.brand = this.brand.bind(this), this.default = this.default.bind(this), this.catch = this.catch.bind(this), this.describe = this.describe.bind(this), this.pipe = this.pipe.bind(this), this.readonly = this.readonly.bind(this), this.isNullable = this.isNullable.bind(this), this.isOptional = this.isOptional.bind(this), this["~standard"] = {
179
- version: 1,
180
- vendor: "zod",
181
- validate: (t) => this["~validate"](t)
182
- };
183
- }
184
- optional() {
185
- return Z.create(this, this._def);
186
- }
187
- nullable() {
188
- return E.create(this, this._def);
189
- }
190
- nullish() {
191
- return this.nullable().optional();
192
- }
193
- array() {
194
- return b.create(this);
195
- }
196
- promise() {
197
- return W.create(this, this._def);
198
- }
199
- or(e) {
200
- return B.create([this, e], this._def);
201
- }
202
- and(e) {
203
- return F.create(this, e, this._def);
204
- }
205
- transform(e) {
206
- return new j({
207
- ..._(this._def),
208
- schema: this,
209
- typeName: f.ZodEffects,
210
- effect: { type: "transform", transform: e }
211
- });
212
- }
213
- default(e) {
214
- const t = typeof e == "function" ? e : () => e;
215
- return new q({
216
- ..._(this._def),
217
- innerType: this,
218
- defaultValue: t,
219
- typeName: f.ZodDefault
220
- });
221
- }
222
- brand() {
223
- return new Pe({
224
- typeName: f.ZodBranded,
225
- type: this,
226
- ..._(this._def)
227
- });
228
- }
229
- catch(e) {
230
- const t = typeof e == "function" ? e : () => e;
231
- return new H({
232
- ..._(this._def),
233
- innerType: this,
234
- catchValue: t,
235
- typeName: f.ZodCatch
236
- });
237
- }
238
- describe(e) {
239
- const t = this.constructor;
240
- return new t({
241
- ...this._def,
242
- description: e
243
- });
244
- }
245
- pipe(e) {
246
- return Q.create(this, e);
247
- }
248
- readonly() {
249
- return G.create(this);
250
- }
251
- isOptional() {
252
- return this.safeParse(void 0).success;
253
- }
254
- isNullable() {
255
- return this.safeParse(null).success;
256
- }
257
- }
258
- const ge = /^c[^\s-]{8,}$/i, ye = /^[0-9a-z]+$/, ve = /^[0-9A-HJKMNP-TV-Z]{26}$/i, xe = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, ke = /^[a-z0-9_-]{21}$/i, we = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, be = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ce = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Te = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
259
- let J;
260
- const Ze = /^(?:(?: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])$/, Ae = /^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/, Se = /^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Oe = /^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Re = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ne = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, fe = "((\\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])))", Ie = new RegExp(`^${fe}$`);
261
- function me(n) {
262
- let e = "[0-5]\\d";
263
- n.precision ? e = `${e}\\.\\d{${n.precision}}` : n.precision == null && (e = `${e}(\\.\\d+)?`);
264
- const t = n.precision ? "+" : "?";
265
- return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`;
266
- }
267
- function je(n) {
268
- return new RegExp(`^${me(n)}$`);
269
- }
270
- function Ee(n) {
271
- let e = `${fe}T${me(n)}`;
272
- const t = [];
273
- return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
274
- }
275
- function Le(n, e) {
276
- return !!((e === "v4" || !e) && Ze.test(n) || (e === "v6" || !e) && Se.test(n));
277
- }
278
- function Ve(n, e) {
279
- if (!we.test(n))
280
- return !1;
281
- try {
282
- const [t] = n.split(".");
283
- if (!t)
284
- return !1;
285
- const s = t.replace(/-/g, "+").replace(/_/g, "/").padEnd(t.length + (4 - t.length % 4) % 4, "="), r = JSON.parse(atob(s));
286
- return !(typeof r != "object" || r === null || "typ" in r && (r == null ? void 0 : r.typ) !== "JWT" || !r.alg || e && r.alg !== e);
287
- } catch {
288
- return !1;
289
- }
290
- }
291
- function ze(n, e) {
292
- return !!((e === "v4" || !e) && Ae.test(n) || (e === "v6" || !e) && Oe.test(n));
293
- }
294
- class T extends g {
295
- _parse(e) {
296
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== h.string) {
297
- const a = this._getOrReturnCtx(e);
298
- return u(a, {
299
- code: c.invalid_type,
300
- expected: h.string,
301
- received: a.parsedType
302
- }), p;
303
- }
304
- const s = new w();
305
- let r;
306
- for (const a of this._def.checks)
307
- if (a.kind === "min")
308
- e.data.length < a.value && (r = this._getOrReturnCtx(e, r), u(r, {
309
- code: c.too_small,
310
- minimum: a.value,
311
- type: "string",
312
- inclusive: !0,
313
- exact: !1,
314
- message: a.message
315
- }), s.dirty());
316
- else if (a.kind === "max")
317
- e.data.length > a.value && (r = this._getOrReturnCtx(e, r), u(r, {
318
- code: c.too_big,
319
- maximum: a.value,
320
- type: "string",
321
- inclusive: !0,
322
- exact: !1,
323
- message: a.message
324
- }), s.dirty());
325
- else if (a.kind === "length") {
326
- const d = e.data.length > a.value, i = e.data.length < a.value;
327
- (d || i) && (r = this._getOrReturnCtx(e, r), d ? u(r, {
328
- code: c.too_big,
329
- maximum: a.value,
330
- type: "string",
331
- inclusive: !0,
332
- exact: !0,
333
- message: a.message
334
- }) : i && u(r, {
335
- code: c.too_small,
336
- minimum: a.value,
337
- type: "string",
338
- inclusive: !0,
339
- exact: !0,
340
- message: a.message
341
- }), s.dirty());
342
- } else if (a.kind === "email")
343
- Ce.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
344
- validation: "email",
345
- code: c.invalid_string,
346
- message: a.message
347
- }), s.dirty());
348
- else if (a.kind === "emoji")
349
- J || (J = new RegExp(Te, "u")), J.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
350
- validation: "emoji",
351
- code: c.invalid_string,
352
- message: a.message
353
- }), s.dirty());
354
- else if (a.kind === "uuid")
355
- xe.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
356
- validation: "uuid",
357
- code: c.invalid_string,
358
- message: a.message
359
- }), s.dirty());
360
- else if (a.kind === "nanoid")
361
- ke.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
362
- validation: "nanoid",
363
- code: c.invalid_string,
364
- message: a.message
365
- }), s.dirty());
366
- else if (a.kind === "cuid")
367
- ge.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
368
- validation: "cuid",
369
- code: c.invalid_string,
370
- message: a.message
371
- }), s.dirty());
372
- else if (a.kind === "cuid2")
373
- ye.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
374
- validation: "cuid2",
375
- code: c.invalid_string,
376
- message: a.message
377
- }), s.dirty());
378
- else if (a.kind === "ulid")
379
- ve.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
380
- validation: "ulid",
381
- code: c.invalid_string,
382
- message: a.message
383
- }), s.dirty());
384
- else if (a.kind === "url")
385
- try {
386
- new URL(e.data);
387
- } catch {
388
- r = this._getOrReturnCtx(e, r), u(r, {
389
- validation: "url",
390
- code: c.invalid_string,
391
- message: a.message
392
- }), s.dirty();
393
- }
394
- else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
395
- validation: "regex",
396
- code: c.invalid_string,
397
- message: a.message
398
- }), s.dirty())) : a.kind === "trim" ? e.data = e.data.trim() : a.kind === "includes" ? e.data.includes(a.value, a.position) || (r = this._getOrReturnCtx(e, r), u(r, {
399
- code: c.invalid_string,
400
- validation: { includes: a.value, position: a.position },
401
- message: a.message
402
- }), s.dirty()) : a.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : a.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : a.kind === "startsWith" ? e.data.startsWith(a.value) || (r = this._getOrReturnCtx(e, r), u(r, {
403
- code: c.invalid_string,
404
- validation: { startsWith: a.value },
405
- message: a.message
406
- }), s.dirty()) : a.kind === "endsWith" ? e.data.endsWith(a.value) || (r = this._getOrReturnCtx(e, r), u(r, {
407
- code: c.invalid_string,
408
- validation: { endsWith: a.value },
409
- message: a.message
410
- }), s.dirty()) : a.kind === "datetime" ? Ee(a).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
411
- code: c.invalid_string,
412
- validation: "datetime",
413
- message: a.message
414
- }), s.dirty()) : a.kind === "date" ? Ie.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
415
- code: c.invalid_string,
416
- validation: "date",
417
- message: a.message
418
- }), s.dirty()) : a.kind === "time" ? je(a).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
419
- code: c.invalid_string,
420
- validation: "time",
421
- message: a.message
422
- }), s.dirty()) : a.kind === "duration" ? be.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
423
- validation: "duration",
424
- code: c.invalid_string,
425
- message: a.message
426
- }), s.dirty()) : a.kind === "ip" ? Le(e.data, a.version) || (r = this._getOrReturnCtx(e, r), u(r, {
427
- validation: "ip",
428
- code: c.invalid_string,
429
- message: a.message
430
- }), s.dirty()) : a.kind === "jwt" ? Ve(e.data, a.alg) || (r = this._getOrReturnCtx(e, r), u(r, {
431
- validation: "jwt",
432
- code: c.invalid_string,
433
- message: a.message
434
- }), s.dirty()) : a.kind === "cidr" ? ze(e.data, a.version) || (r = this._getOrReturnCtx(e, r), u(r, {
435
- validation: "cidr",
436
- code: c.invalid_string,
437
- message: a.message
438
- }), s.dirty()) : a.kind === "base64" ? Re.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
439
- validation: "base64",
440
- code: c.invalid_string,
441
- message: a.message
442
- }), s.dirty()) : a.kind === "base64url" ? Ne.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
443
- validation: "base64url",
444
- code: c.invalid_string,
445
- message: a.message
446
- }), s.dirty()) : v.assertNever(a);
447
- return { status: s.value, value: e.data };
448
- }
449
- _regex(e, t, s) {
450
- return this.refinement((r) => e.test(r), {
451
- validation: t,
452
- code: c.invalid_string,
453
- ...o.errToObj(s)
454
- });
455
- }
456
- _addCheck(e) {
457
- return new T({
458
- ...this._def,
459
- checks: [...this._def.checks, e]
460
- });
461
- }
462
- email(e) {
463
- return this._addCheck({ kind: "email", ...o.errToObj(e) });
464
- }
465
- url(e) {
466
- return this._addCheck({ kind: "url", ...o.errToObj(e) });
467
- }
468
- emoji(e) {
469
- return this._addCheck({ kind: "emoji", ...o.errToObj(e) });
470
- }
471
- uuid(e) {
472
- return this._addCheck({ kind: "uuid", ...o.errToObj(e) });
473
- }
474
- nanoid(e) {
475
- return this._addCheck({ kind: "nanoid", ...o.errToObj(e) });
476
- }
477
- cuid(e) {
478
- return this._addCheck({ kind: "cuid", ...o.errToObj(e) });
479
- }
480
- cuid2(e) {
481
- return this._addCheck({ kind: "cuid2", ...o.errToObj(e) });
482
- }
483
- ulid(e) {
484
- return this._addCheck({ kind: "ulid", ...o.errToObj(e) });
485
- }
486
- base64(e) {
487
- return this._addCheck({ kind: "base64", ...o.errToObj(e) });
488
- }
489
- base64url(e) {
490
- return this._addCheck({
491
- kind: "base64url",
492
- ...o.errToObj(e)
493
- });
494
- }
495
- jwt(e) {
496
- return this._addCheck({ kind: "jwt", ...o.errToObj(e) });
497
- }
498
- ip(e) {
499
- return this._addCheck({ kind: "ip", ...o.errToObj(e) });
500
- }
501
- cidr(e) {
502
- return this._addCheck({ kind: "cidr", ...o.errToObj(e) });
503
- }
504
- datetime(e) {
505
- return typeof e == "string" ? this._addCheck({
506
- kind: "datetime",
507
- precision: null,
508
- offset: !1,
509
- local: !1,
510
- message: e
511
- }) : this._addCheck({
512
- kind: "datetime",
513
- precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
514
- offset: (e == null ? void 0 : e.offset) ?? !1,
515
- local: (e == null ? void 0 : e.local) ?? !1,
516
- ...o.errToObj(e == null ? void 0 : e.message)
517
- });
518
- }
519
- date(e) {
520
- return this._addCheck({ kind: "date", message: e });
521
- }
522
- time(e) {
523
- return typeof e == "string" ? this._addCheck({
524
- kind: "time",
525
- precision: null,
526
- message: e
527
- }) : this._addCheck({
528
- kind: "time",
529
- precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
530
- ...o.errToObj(e == null ? void 0 : e.message)
531
- });
532
- }
533
- duration(e) {
534
- return this._addCheck({ kind: "duration", ...o.errToObj(e) });
535
- }
536
- regex(e, t) {
537
- return this._addCheck({
538
- kind: "regex",
539
- regex: e,
540
- ...o.errToObj(t)
541
- });
542
- }
543
- includes(e, t) {
544
- return this._addCheck({
545
- kind: "includes",
546
- value: e,
547
- position: t == null ? void 0 : t.position,
548
- ...o.errToObj(t == null ? void 0 : t.message)
549
- });
550
- }
551
- startsWith(e, t) {
552
- return this._addCheck({
553
- kind: "startsWith",
554
- value: e,
555
- ...o.errToObj(t)
556
- });
557
- }
558
- endsWith(e, t) {
559
- return this._addCheck({
560
- kind: "endsWith",
561
- value: e,
562
- ...o.errToObj(t)
563
- });
564
- }
565
- min(e, t) {
566
- return this._addCheck({
567
- kind: "min",
568
- value: e,
569
- ...o.errToObj(t)
570
- });
571
- }
572
- max(e, t) {
573
- return this._addCheck({
574
- kind: "max",
575
- value: e,
576
- ...o.errToObj(t)
577
- });
578
- }
579
- length(e, t) {
580
- return this._addCheck({
581
- kind: "length",
582
- value: e,
583
- ...o.errToObj(t)
584
- });
585
- }
586
- /**
587
- * Equivalent to `.min(1)`
588
- */
589
- nonempty(e) {
590
- return this.min(1, o.errToObj(e));
591
- }
592
- trim() {
593
- return new T({
594
- ...this._def,
595
- checks: [...this._def.checks, { kind: "trim" }]
596
- });
597
- }
598
- toLowerCase() {
599
- return new T({
600
- ...this._def,
601
- checks: [...this._def.checks, { kind: "toLowerCase" }]
602
- });
603
- }
604
- toUpperCase() {
605
- return new T({
606
- ...this._def,
607
- checks: [...this._def.checks, { kind: "toUpperCase" }]
608
- });
609
- }
610
- get isDatetime() {
611
- return !!this._def.checks.find((e) => e.kind === "datetime");
612
- }
613
- get isDate() {
614
- return !!this._def.checks.find((e) => e.kind === "date");
615
- }
616
- get isTime() {
617
- return !!this._def.checks.find((e) => e.kind === "time");
618
- }
619
- get isDuration() {
620
- return !!this._def.checks.find((e) => e.kind === "duration");
621
- }
622
- get isEmail() {
623
- return !!this._def.checks.find((e) => e.kind === "email");
624
- }
625
- get isURL() {
626
- return !!this._def.checks.find((e) => e.kind === "url");
627
- }
628
- get isEmoji() {
629
- return !!this._def.checks.find((e) => e.kind === "emoji");
630
- }
631
- get isUUID() {
632
- return !!this._def.checks.find((e) => e.kind === "uuid");
633
- }
634
- get isNANOID() {
635
- return !!this._def.checks.find((e) => e.kind === "nanoid");
636
- }
637
- get isCUID() {
638
- return !!this._def.checks.find((e) => e.kind === "cuid");
639
- }
640
- get isCUID2() {
641
- return !!this._def.checks.find((e) => e.kind === "cuid2");
642
- }
643
- get isULID() {
644
- return !!this._def.checks.find((e) => e.kind === "ulid");
645
- }
646
- get isIP() {
647
- return !!this._def.checks.find((e) => e.kind === "ip");
648
- }
649
- get isCIDR() {
650
- return !!this._def.checks.find((e) => e.kind === "cidr");
651
- }
652
- get isBase64() {
653
- return !!this._def.checks.find((e) => e.kind === "base64");
654
- }
655
- get isBase64url() {
656
- return !!this._def.checks.find((e) => e.kind === "base64url");
657
- }
658
- get minLength() {
659
- let e = null;
660
- for (const t of this._def.checks)
661
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
662
- return e;
663
- }
664
- get maxLength() {
665
- let e = null;
666
- for (const t of this._def.checks)
667
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
668
- return e;
669
- }
670
- }
671
- T.create = (n) => new T({
672
- checks: [],
673
- typeName: f.ZodString,
674
- coerce: (n == null ? void 0 : n.coerce) ?? !1,
675
- ..._(n)
676
- });
677
- function Me(n, e) {
678
- const t = (n.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, r = t > s ? t : s, a = Number.parseInt(n.toFixed(r).replace(".", "")), d = Number.parseInt(e.toFixed(r).replace(".", ""));
679
- return a % d / 10 ** r;
680
- }
681
- class M extends g {
682
- constructor() {
683
- super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
684
- }
685
- _parse(e) {
686
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== h.number) {
687
- const a = this._getOrReturnCtx(e);
688
- return u(a, {
689
- code: c.invalid_type,
690
- expected: h.number,
691
- received: a.parsedType
692
- }), p;
693
- }
694
- let s;
695
- const r = new w();
696
- for (const a of this._def.checks)
697
- a.kind === "int" ? v.isInteger(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
698
- code: c.invalid_type,
699
- expected: "integer",
700
- received: "float",
701
- message: a.message
702
- }), r.dirty()) : a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (s = this._getOrReturnCtx(e, s), u(s, {
703
- code: c.too_small,
704
- minimum: a.value,
705
- type: "number",
706
- inclusive: a.inclusive,
707
- exact: !1,
708
- message: a.message
709
- }), r.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (s = this._getOrReturnCtx(e, s), u(s, {
710
- code: c.too_big,
711
- maximum: a.value,
712
- type: "number",
713
- inclusive: a.inclusive,
714
- exact: !1,
715
- message: a.message
716
- }), r.dirty()) : a.kind === "multipleOf" ? Me(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), u(s, {
717
- code: c.not_multiple_of,
718
- multipleOf: a.value,
719
- message: a.message
720
- }), r.dirty()) : a.kind === "finite" ? Number.isFinite(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
721
- code: c.not_finite,
722
- message: a.message
723
- }), r.dirty()) : v.assertNever(a);
724
- return { status: r.value, value: e.data };
725
- }
726
- gte(e, t) {
727
- return this.setLimit("min", e, !0, o.toString(t));
728
- }
729
- gt(e, t) {
730
- return this.setLimit("min", e, !1, o.toString(t));
731
- }
732
- lte(e, t) {
733
- return this.setLimit("max", e, !0, o.toString(t));
734
- }
735
- lt(e, t) {
736
- return this.setLimit("max", e, !1, o.toString(t));
737
- }
738
- setLimit(e, t, s, r) {
739
- return new M({
740
- ...this._def,
741
- checks: [
742
- ...this._def.checks,
743
- {
744
- kind: e,
745
- value: t,
746
- inclusive: s,
747
- message: o.toString(r)
748
- }
749
- ]
750
- });
751
- }
752
- _addCheck(e) {
753
- return new M({
754
- ...this._def,
755
- checks: [...this._def.checks, e]
756
- });
757
- }
758
- int(e) {
759
- return this._addCheck({
760
- kind: "int",
761
- message: o.toString(e)
762
- });
763
- }
764
- positive(e) {
765
- return this._addCheck({
766
- kind: "min",
767
- value: 0,
768
- inclusive: !1,
769
- message: o.toString(e)
770
- });
771
- }
772
- negative(e) {
773
- return this._addCheck({
774
- kind: "max",
775
- value: 0,
776
- inclusive: !1,
777
- message: o.toString(e)
778
- });
779
- }
780
- nonpositive(e) {
781
- return this._addCheck({
782
- kind: "max",
783
- value: 0,
784
- inclusive: !0,
785
- message: o.toString(e)
786
- });
787
- }
788
- nonnegative(e) {
789
- return this._addCheck({
790
- kind: "min",
791
- value: 0,
792
- inclusive: !0,
793
- message: o.toString(e)
794
- });
795
- }
796
- multipleOf(e, t) {
797
- return this._addCheck({
798
- kind: "multipleOf",
799
- value: e,
800
- message: o.toString(t)
801
- });
802
- }
803
- finite(e) {
804
- return this._addCheck({
805
- kind: "finite",
806
- message: o.toString(e)
807
- });
808
- }
809
- safe(e) {
810
- return this._addCheck({
811
- kind: "min",
812
- inclusive: !0,
813
- value: Number.MIN_SAFE_INTEGER,
814
- message: o.toString(e)
815
- })._addCheck({
816
- kind: "max",
817
- inclusive: !0,
818
- value: Number.MAX_SAFE_INTEGER,
819
- message: o.toString(e)
820
- });
821
- }
822
- get minValue() {
823
- let e = null;
824
- for (const t of this._def.checks)
825
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
826
- return e;
827
- }
828
- get maxValue() {
829
- let e = null;
830
- for (const t of this._def.checks)
831
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
832
- return e;
833
- }
834
- get isInt() {
835
- return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && v.isInteger(e.value));
836
- }
837
- get isFinite() {
838
- let e = null, t = null;
839
- for (const s of this._def.checks) {
840
- if (s.kind === "finite" || s.kind === "int" || s.kind === "multipleOf")
841
- return !0;
842
- s.kind === "min" ? (t === null || s.value > t) && (t = s.value) : s.kind === "max" && (e === null || s.value < e) && (e = s.value);
843
- }
844
- return Number.isFinite(t) && Number.isFinite(e);
845
- }
846
- }
847
- M.create = (n) => new M({
848
- checks: [],
849
- typeName: f.ZodNumber,
850
- coerce: (n == null ? void 0 : n.coerce) || !1,
851
- ..._(n)
852
- });
853
- class P extends g {
854
- constructor() {
855
- super(...arguments), this.min = this.gte, this.max = this.lte;
856
- }
857
- _parse(e) {
858
- if (this._def.coerce)
859
- try {
860
- e.data = BigInt(e.data);
861
- } catch {
862
- return this._getInvalidInput(e);
863
- }
864
- if (this._getType(e) !== h.bigint)
865
- return this._getInvalidInput(e);
866
- let s;
867
- const r = new w();
868
- for (const a of this._def.checks)
869
- a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (s = this._getOrReturnCtx(e, s), u(s, {
870
- code: c.too_small,
871
- type: "bigint",
872
- minimum: a.value,
873
- inclusive: a.inclusive,
874
- message: a.message
875
- }), r.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (s = this._getOrReturnCtx(e, s), u(s, {
876
- code: c.too_big,
877
- type: "bigint",
878
- maximum: a.value,
879
- inclusive: a.inclusive,
880
- message: a.message
881
- }), r.dirty()) : a.kind === "multipleOf" ? e.data % a.value !== BigInt(0) && (s = this._getOrReturnCtx(e, s), u(s, {
882
- code: c.not_multiple_of,
883
- multipleOf: a.value,
884
- message: a.message
885
- }), r.dirty()) : v.assertNever(a);
886
- return { status: r.value, value: e.data };
887
- }
888
- _getInvalidInput(e) {
889
- const t = this._getOrReturnCtx(e);
890
- return u(t, {
891
- code: c.invalid_type,
892
- expected: h.bigint,
893
- received: t.parsedType
894
- }), p;
895
- }
896
- gte(e, t) {
897
- return this.setLimit("min", e, !0, o.toString(t));
898
- }
899
- gt(e, t) {
900
- return this.setLimit("min", e, !1, o.toString(t));
901
- }
902
- lte(e, t) {
903
- return this.setLimit("max", e, !0, o.toString(t));
904
- }
905
- lt(e, t) {
906
- return this.setLimit("max", e, !1, o.toString(t));
907
- }
908
- setLimit(e, t, s, r) {
909
- return new P({
910
- ...this._def,
911
- checks: [
912
- ...this._def.checks,
913
- {
914
- kind: e,
915
- value: t,
916
- inclusive: s,
917
- message: o.toString(r)
918
- }
919
- ]
920
- });
921
- }
922
- _addCheck(e) {
923
- return new P({
924
- ...this._def,
925
- checks: [...this._def.checks, e]
926
- });
927
- }
928
- positive(e) {
929
- return this._addCheck({
930
- kind: "min",
931
- value: BigInt(0),
932
- inclusive: !1,
933
- message: o.toString(e)
934
- });
935
- }
936
- negative(e) {
937
- return this._addCheck({
938
- kind: "max",
939
- value: BigInt(0),
940
- inclusive: !1,
941
- message: o.toString(e)
942
- });
943
- }
944
- nonpositive(e) {
945
- return this._addCheck({
946
- kind: "max",
947
- value: BigInt(0),
948
- inclusive: !0,
949
- message: o.toString(e)
950
- });
951
- }
952
- nonnegative(e) {
953
- return this._addCheck({
954
- kind: "min",
955
- value: BigInt(0),
956
- inclusive: !0,
957
- message: o.toString(e)
958
- });
959
- }
960
- multipleOf(e, t) {
961
- return this._addCheck({
962
- kind: "multipleOf",
963
- value: e,
964
- message: o.toString(t)
965
- });
966
- }
967
- get minValue() {
968
- let e = null;
969
- for (const t of this._def.checks)
970
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
971
- return e;
972
- }
973
- get maxValue() {
974
- let e = null;
975
- for (const t of this._def.checks)
976
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
977
- return e;
978
- }
979
- }
980
- P.create = (n) => new P({
981
- checks: [],
982
- typeName: f.ZodBigInt,
983
- coerce: (n == null ? void 0 : n.coerce) ?? !1,
984
- ..._(n)
985
- });
986
- class te extends g {
987
- _parse(e) {
988
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== h.boolean) {
989
- const s = this._getOrReturnCtx(e);
990
- return u(s, {
991
- code: c.invalid_type,
992
- expected: h.boolean,
993
- received: s.parsedType
994
- }), p;
995
- }
996
- return k(e.data);
997
- }
998
- }
999
- te.create = (n) => new te({
1000
- typeName: f.ZodBoolean,
1001
- coerce: (n == null ? void 0 : n.coerce) || !1,
1002
- ..._(n)
1003
- });
1004
- class U extends g {
1005
- _parse(e) {
1006
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== h.date) {
1007
- const a = this._getOrReturnCtx(e);
1008
- return u(a, {
1009
- code: c.invalid_type,
1010
- expected: h.date,
1011
- received: a.parsedType
1012
- }), p;
1013
- }
1014
- if (Number.isNaN(e.data.getTime())) {
1015
- const a = this._getOrReturnCtx(e);
1016
- return u(a, {
1017
- code: c.invalid_date
1018
- }), p;
1019
- }
1020
- const s = new w();
1021
- let r;
1022
- for (const a of this._def.checks)
1023
- a.kind === "min" ? e.data.getTime() < a.value && (r = this._getOrReturnCtx(e, r), u(r, {
1024
- code: c.too_small,
1025
- message: a.message,
1026
- inclusive: !0,
1027
- exact: !1,
1028
- minimum: a.value,
1029
- type: "date"
1030
- }), s.dirty()) : a.kind === "max" ? e.data.getTime() > a.value && (r = this._getOrReturnCtx(e, r), u(r, {
1031
- code: c.too_big,
1032
- message: a.message,
1033
- inclusive: !0,
1034
- exact: !1,
1035
- maximum: a.value,
1036
- type: "date"
1037
- }), s.dirty()) : v.assertNever(a);
1038
- return {
1039
- status: s.value,
1040
- value: new Date(e.data.getTime())
1041
- };
1042
- }
1043
- _addCheck(e) {
1044
- return new U({
1045
- ...this._def,
1046
- checks: [...this._def.checks, e]
1047
- });
1048
- }
1049
- min(e, t) {
1050
- return this._addCheck({
1051
- kind: "min",
1052
- value: e.getTime(),
1053
- message: o.toString(t)
1054
- });
1055
- }
1056
- max(e, t) {
1057
- return this._addCheck({
1058
- kind: "max",
1059
- value: e.getTime(),
1060
- message: o.toString(t)
1061
- });
1062
- }
1063
- get minDate() {
1064
- let e = null;
1065
- for (const t of this._def.checks)
1066
- t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1067
- return e != null ? new Date(e) : null;
1068
- }
1069
- get maxDate() {
1070
- let e = null;
1071
- for (const t of this._def.checks)
1072
- t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1073
- return e != null ? new Date(e) : null;
1074
- }
1075
- }
1076
- U.create = (n) => new U({
1077
- checks: [],
1078
- coerce: (n == null ? void 0 : n.coerce) || !1,
1079
- typeName: f.ZodDate,
1080
- ..._(n)
1081
- });
1082
- class se extends g {
1083
- _parse(e) {
1084
- if (this._getType(e) !== h.symbol) {
1085
- const s = this._getOrReturnCtx(e);
1086
- return u(s, {
1087
- code: c.invalid_type,
1088
- expected: h.symbol,
1089
- received: s.parsedType
1090
- }), p;
1091
- }
1092
- return k(e.data);
1093
- }
1094
- }
1095
- se.create = (n) => new se({
1096
- typeName: f.ZodSymbol,
1097
- ..._(n)
1098
- });
1099
- class re extends g {
1100
- _parse(e) {
1101
- if (this._getType(e) !== h.undefined) {
1102
- const s = this._getOrReturnCtx(e);
1103
- return u(s, {
1104
- code: c.invalid_type,
1105
- expected: h.undefined,
1106
- received: s.parsedType
1107
- }), p;
1108
- }
1109
- return k(e.data);
1110
- }
1111
- }
1112
- re.create = (n) => new re({
1113
- typeName: f.ZodUndefined,
1114
- ..._(n)
1115
- });
1116
- class ae extends g {
1117
- _parse(e) {
1118
- if (this._getType(e) !== h.null) {
1119
- const s = this._getOrReturnCtx(e);
1120
- return u(s, {
1121
- code: c.invalid_type,
1122
- expected: h.null,
1123
- received: s.parsedType
1124
- }), p;
1125
- }
1126
- return k(e.data);
1127
- }
1128
- }
1129
- ae.create = (n) => new ae({
1130
- typeName: f.ZodNull,
1131
- ..._(n)
1132
- });
1133
- class ne extends g {
1134
- constructor() {
1135
- super(...arguments), this._any = !0;
1136
- }
1137
- _parse(e) {
1138
- return k(e.data);
1139
- }
1140
- }
1141
- ne.create = (n) => new ne({
1142
- typeName: f.ZodAny,
1143
- ..._(n)
1144
- });
1145
- class ie extends g {
1146
- constructor() {
1147
- super(...arguments), this._unknown = !0;
1148
- }
1149
- _parse(e) {
1150
- return k(e.data);
1151
- }
1152
- }
1153
- ie.create = (n) => new ie({
1154
- typeName: f.ZodUnknown,
1155
- ..._(n)
1156
- });
1157
- class S extends g {
1158
- _parse(e) {
1159
- const t = this._getOrReturnCtx(e);
1160
- return u(t, {
1161
- code: c.invalid_type,
1162
- expected: h.never,
1163
- received: t.parsedType
1164
- }), p;
1165
- }
1166
- }
1167
- S.create = (n) => new S({
1168
- typeName: f.ZodNever,
1169
- ..._(n)
1170
- });
1171
- class de extends g {
1172
- _parse(e) {
1173
- if (this._getType(e) !== h.undefined) {
1174
- const s = this._getOrReturnCtx(e);
1175
- return u(s, {
1176
- code: c.invalid_type,
1177
- expected: h.void,
1178
- received: s.parsedType
1179
- }), p;
1180
- }
1181
- return k(e.data);
1182
- }
1183
- }
1184
- de.create = (n) => new de({
1185
- typeName: f.ZodVoid,
1186
- ..._(n)
1187
- });
1188
- class b extends g {
1189
- _parse(e) {
1190
- const { ctx: t, status: s } = this._processInputParams(e), r = this._def;
1191
- if (t.parsedType !== h.array)
1192
- return u(t, {
1193
- code: c.invalid_type,
1194
- expected: h.array,
1195
- received: t.parsedType
1196
- }), p;
1197
- if (r.exactLength !== null) {
1198
- const d = t.data.length > r.exactLength.value, i = t.data.length < r.exactLength.value;
1199
- (d || i) && (u(t, {
1200
- code: d ? c.too_big : c.too_small,
1201
- minimum: i ? r.exactLength.value : void 0,
1202
- maximum: d ? r.exactLength.value : void 0,
1203
- type: "array",
1204
- inclusive: !0,
1205
- exact: !0,
1206
- message: r.exactLength.message
1207
- }), s.dirty());
1208
- }
1209
- if (r.minLength !== null && t.data.length < r.minLength.value && (u(t, {
1210
- code: c.too_small,
1211
- minimum: r.minLength.value,
1212
- type: "array",
1213
- inclusive: !0,
1214
- exact: !1,
1215
- message: r.minLength.message
1216
- }), s.dirty()), r.maxLength !== null && t.data.length > r.maxLength.value && (u(t, {
1217
- code: c.too_big,
1218
- maximum: r.maxLength.value,
1219
- type: "array",
1220
- inclusive: !0,
1221
- exact: !1,
1222
- message: r.maxLength.message
1223
- }), s.dirty()), t.common.async)
1224
- return Promise.all([...t.data].map((d, i) => r.type._parseAsync(new A(t, d, t.path, i)))).then((d) => w.mergeArray(s, d));
1225
- const a = [...t.data].map((d, i) => r.type._parseSync(new A(t, d, t.path, i)));
1226
- return w.mergeArray(s, a);
1227
- }
1228
- get element() {
1229
- return this._def.type;
1230
- }
1231
- min(e, t) {
1232
- return new b({
1233
- ...this._def,
1234
- minLength: { value: e, message: o.toString(t) }
1235
- });
1236
- }
1237
- max(e, t) {
1238
- return new b({
1239
- ...this._def,
1240
- maxLength: { value: e, message: o.toString(t) }
1241
- });
1242
- }
1243
- length(e, t) {
1244
- return new b({
1245
- ...this._def,
1246
- exactLength: { value: e, message: o.toString(t) }
1247
- });
1248
- }
1249
- nonempty(e) {
1250
- return this.min(1, e);
1251
- }
1252
- }
1253
- b.create = (n, e) => new b({
1254
- type: n,
1255
- minLength: null,
1256
- maxLength: null,
1257
- exactLength: null,
1258
- typeName: f.ZodArray,
1259
- ..._(e)
1260
- });
1261
- function R(n) {
1262
- if (n instanceof x) {
1263
- const e = {};
1264
- for (const t in n.shape) {
1265
- const s = n.shape[t];
1266
- e[t] = Z.create(R(s));
1267
- }
1268
- return new x({
1269
- ...n._def,
1270
- shape: () => e
1271
- });
1272
- } else return n instanceof b ? new b({
1273
- ...n._def,
1274
- type: R(n.element)
1275
- }) : n instanceof Z ? Z.create(R(n.unwrap())) : n instanceof E ? E.create(R(n.unwrap())) : n instanceof O ? O.create(n.items.map((e) => R(e))) : n;
1276
- }
1277
- class x extends g {
1278
- constructor() {
1279
- super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
1280
- }
1281
- _getCached() {
1282
- if (this._cached !== null)
1283
- return this._cached;
1284
- const e = this._def.shape(), t = v.objectKeys(e);
1285
- return this._cached = { shape: e, keys: t }, this._cached;
1286
- }
1287
- _parse(e) {
1288
- if (this._getType(e) !== h.object) {
1289
- const m = this._getOrReturnCtx(e);
1290
- return u(m, {
1291
- code: c.invalid_type,
1292
- expected: h.object,
1293
- received: m.parsedType
1294
- }), p;
1295
- }
1296
- const { status: s, ctx: r } = this._processInputParams(e), { shape: a, keys: d } = this._getCached(), i = [];
1297
- if (!(this._def.catchall instanceof S && this._def.unknownKeys === "strip"))
1298
- for (const m in r.data)
1299
- d.includes(m) || i.push(m);
1300
- const l = [];
1301
- for (const m of d) {
1302
- const y = a[m], L = r.data[m];
1303
- l.push({
1304
- key: { status: "valid", value: m },
1305
- value: y._parse(new A(r, L, r.path, m)),
1306
- alwaysSet: m in r.data
1307
- });
1308
- }
1309
- if (this._def.catchall instanceof S) {
1310
- const m = this._def.unknownKeys;
1311
- if (m === "passthrough")
1312
- for (const y of i)
1313
- l.push({
1314
- key: { status: "valid", value: y },
1315
- value: { status: "valid", value: r.data[y] }
1316
- });
1317
- else if (m === "strict")
1318
- i.length > 0 && (u(r, {
1319
- code: c.unrecognized_keys,
1320
- keys: i
1321
- }), s.dirty());
1322
- else if (m !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1323
- } else {
1324
- const m = this._def.catchall;
1325
- for (const y of i) {
1326
- const L = r.data[y];
1327
- l.push({
1328
- key: { status: "valid", value: y },
1329
- value: m._parse(
1330
- new A(r, L, r.path, y)
1331
- //, ctx.child(key), value, getParsedType(value)
1332
- ),
1333
- alwaysSet: y in r.data
1334
- });
1335
- }
1336
- }
1337
- return r.common.async ? Promise.resolve().then(async () => {
1338
- const m = [];
1339
- for (const y of l) {
1340
- const L = await y.key, _e = await y.value;
1341
- m.push({
1342
- key: L,
1343
- value: _e,
1344
- alwaysSet: y.alwaysSet
1345
- });
1346
- }
1347
- return m;
1348
- }).then((m) => w.mergeObjectSync(s, m)) : w.mergeObjectSync(s, l);
1349
- }
1350
- get shape() {
1351
- return this._def.shape();
1352
- }
1353
- strict(e) {
1354
- return o.errToObj, new x({
1355
- ...this._def,
1356
- unknownKeys: "strict",
1357
- ...e !== void 0 ? {
1358
- errorMap: (t, s) => {
1359
- var a, d;
1360
- const r = ((d = (a = this._def).errorMap) == null ? void 0 : d.call(a, t, s).message) ?? s.defaultError;
1361
- return t.code === "unrecognized_keys" ? {
1362
- message: o.errToObj(e).message ?? r
1363
- } : {
1364
- message: r
1365
- };
1366
- }
1367
- } : {}
1368
- });
1369
- }
1370
- strip() {
1371
- return new x({
1372
- ...this._def,
1373
- unknownKeys: "strip"
1374
- });
1375
- }
1376
- passthrough() {
1377
- return new x({
1378
- ...this._def,
1379
- unknownKeys: "passthrough"
1380
- });
1381
- }
1382
- // const AugmentFactory =
1383
- // <Def extends ZodObjectDef>(def: Def) =>
1384
- // <Augmentation extends ZodRawShape>(
1385
- // augmentation: Augmentation
1386
- // ): ZodObject<
1387
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
1388
- // Def["unknownKeys"],
1389
- // Def["catchall"]
1390
- // > => {
1391
- // return new ZodObject({
1392
- // ...def,
1393
- // shape: () => ({
1394
- // ...def.shape(),
1395
- // ...augmentation,
1396
- // }),
1397
- // }) as any;
1398
- // };
1399
- extend(e) {
1400
- return new x({
1401
- ...this._def,
1402
- shape: () => ({
1403
- ...this._def.shape(),
1404
- ...e
1405
- })
1406
- });
1407
- }
1408
- /**
1409
- * Prior to zod@1.0.12 there was a bug in the
1410
- * inferred type of merged objects. Please
1411
- * upgrade if you are experiencing issues.
1412
- */
1413
- merge(e) {
1414
- return new x({
1415
- unknownKeys: e._def.unknownKeys,
1416
- catchall: e._def.catchall,
1417
- shape: () => ({
1418
- ...this._def.shape(),
1419
- ...e._def.shape()
1420
- }),
1421
- typeName: f.ZodObject
1422
- });
1423
- }
1424
- // merge<
1425
- // Incoming extends AnyZodObject,
1426
- // Augmentation extends Incoming["shape"],
1427
- // NewOutput extends {
1428
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1429
- // ? Augmentation[k]["_output"]
1430
- // : k extends keyof Output
1431
- // ? Output[k]
1432
- // : never;
1433
- // },
1434
- // NewInput extends {
1435
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1436
- // ? Augmentation[k]["_input"]
1437
- // : k extends keyof Input
1438
- // ? Input[k]
1439
- // : never;
1440
- // }
1441
- // >(
1442
- // merging: Incoming
1443
- // ): ZodObject<
1444
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
1445
- // Incoming["_def"]["unknownKeys"],
1446
- // Incoming["_def"]["catchall"],
1447
- // NewOutput,
1448
- // NewInput
1449
- // > {
1450
- // const merged: any = new ZodObject({
1451
- // unknownKeys: merging._def.unknownKeys,
1452
- // catchall: merging._def.catchall,
1453
- // shape: () =>
1454
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
1455
- // typeName: ZodFirstPartyTypeKind.ZodObject,
1456
- // }) as any;
1457
- // return merged;
1458
- // }
1459
- setKey(e, t) {
1460
- return this.augment({ [e]: t });
1461
- }
1462
- // merge<Incoming extends AnyZodObject>(
1463
- // merging: Incoming
1464
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
1465
- // ZodObject<
1466
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
1467
- // Incoming["_def"]["unknownKeys"],
1468
- // Incoming["_def"]["catchall"]
1469
- // > {
1470
- // // const mergedShape = objectUtil.mergeShapes(
1471
- // // this._def.shape(),
1472
- // // merging._def.shape()
1473
- // // );
1474
- // const merged: any = new ZodObject({
1475
- // unknownKeys: merging._def.unknownKeys,
1476
- // catchall: merging._def.catchall,
1477
- // shape: () =>
1478
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
1479
- // typeName: ZodFirstPartyTypeKind.ZodObject,
1480
- // }) as any;
1481
- // return merged;
1482
- // }
1483
- catchall(e) {
1484
- return new x({
1485
- ...this._def,
1486
- catchall: e
1487
- });
1488
- }
1489
- pick(e) {
1490
- const t = {};
1491
- for (const s of v.objectKeys(e))
1492
- e[s] && this.shape[s] && (t[s] = this.shape[s]);
1493
- return new x({
1494
- ...this._def,
1495
- shape: () => t
1496
- });
1497
- }
1498
- omit(e) {
1499
- const t = {};
1500
- for (const s of v.objectKeys(this.shape))
1501
- e[s] || (t[s] = this.shape[s]);
1502
- return new x({
1503
- ...this._def,
1504
- shape: () => t
1505
- });
1506
- }
1507
- /**
1508
- * @deprecated
1509
- */
1510
- deepPartial() {
1511
- return R(this);
1512
- }
1513
- partial(e) {
1514
- const t = {};
1515
- for (const s of v.objectKeys(this.shape)) {
1516
- const r = this.shape[s];
1517
- e && !e[s] ? t[s] = r : t[s] = r.optional();
1518
- }
1519
- return new x({
1520
- ...this._def,
1521
- shape: () => t
1522
- });
1523
- }
1524
- required(e) {
1525
- const t = {};
1526
- for (const s of v.objectKeys(this.shape))
1527
- if (e && !e[s])
1528
- t[s] = this.shape[s];
1529
- else {
1530
- let a = this.shape[s];
1531
- for (; a instanceof Z; )
1532
- a = a._def.innerType;
1533
- t[s] = a;
1534
- }
1535
- return new x({
1536
- ...this._def,
1537
- shape: () => t
1538
- });
1539
- }
1540
- keyof() {
1541
- return pe(v.objectKeys(this.shape));
1542
- }
1543
- }
1544
- x.create = (n, e) => new x({
1545
- shape: () => n,
1546
- unknownKeys: "strip",
1547
- catchall: S.create(),
1548
- typeName: f.ZodObject,
1549
- ..._(e)
1550
- });
1551
- x.strictCreate = (n, e) => new x({
1552
- shape: () => n,
1553
- unknownKeys: "strict",
1554
- catchall: S.create(),
1555
- typeName: f.ZodObject,
1556
- ..._(e)
1557
- });
1558
- x.lazycreate = (n, e) => new x({
1559
- shape: n,
1560
- unknownKeys: "strip",
1561
- catchall: S.create(),
1562
- typeName: f.ZodObject,
1563
- ..._(e)
1564
- });
1565
- class B extends g {
1566
- _parse(e) {
1567
- const { ctx: t } = this._processInputParams(e), s = this._def.options;
1568
- function r(a) {
1569
- for (const i of a)
1570
- if (i.result.status === "valid")
1571
- return i.result;
1572
- for (const i of a)
1573
- if (i.result.status === "dirty")
1574
- return t.common.issues.push(...i.ctx.common.issues), i.result;
1575
- const d = a.map((i) => new z(i.ctx.common.issues));
1576
- return u(t, {
1577
- code: c.invalid_union,
1578
- unionErrors: d
1579
- }), p;
1580
- }
1581
- if (t.common.async)
1582
- return Promise.all(s.map(async (a) => {
1583
- const d = {
1584
- ...t,
1585
- common: {
1586
- ...t.common,
1587
- issues: []
1588
- },
1589
- parent: null
1590
- };
1591
- return {
1592
- result: await a._parseAsync({
1593
- data: t.data,
1594
- path: t.path,
1595
- parent: d
1596
- }),
1597
- ctx: d
1598
- };
1599
- })).then(r);
1600
- {
1601
- let a;
1602
- const d = [];
1603
- for (const l of s) {
1604
- const m = {
1605
- ...t,
1606
- common: {
1607
- ...t.common,
1608
- issues: []
1609
- },
1610
- parent: null
1611
- }, y = l._parseSync({
1612
- data: t.data,
1613
- path: t.path,
1614
- parent: m
1615
- });
1616
- if (y.status === "valid")
1617
- return y;
1618
- y.status === "dirty" && !a && (a = { result: y, ctx: m }), m.common.issues.length && d.push(m.common.issues);
1619
- }
1620
- if (a)
1621
- return t.common.issues.push(...a.ctx.common.issues), a.result;
1622
- const i = d.map((l) => new z(l));
1623
- return u(t, {
1624
- code: c.invalid_union,
1625
- unionErrors: i
1626
- }), p;
1627
- }
1628
- }
1629
- get options() {
1630
- return this._def.options;
1631
- }
1632
- }
1633
- B.create = (n, e) => new B({
1634
- options: n,
1635
- typeName: f.ZodUnion,
1636
- ..._(e)
1637
- });
1638
- function Y(n, e) {
1639
- const t = C(n), s = C(e);
1640
- if (n === e)
1641
- return { valid: !0, data: n };
1642
- if (t === h.object && s === h.object) {
1643
- const r = v.objectKeys(e), a = v.objectKeys(n).filter((i) => r.indexOf(i) !== -1), d = { ...n, ...e };
1644
- for (const i of a) {
1645
- const l = Y(n[i], e[i]);
1646
- if (!l.valid)
1647
- return { valid: !1 };
1648
- d[i] = l.data;
1649
- }
1650
- return { valid: !0, data: d };
1651
- } else if (t === h.array && s === h.array) {
1652
- if (n.length !== e.length)
1653
- return { valid: !1 };
1654
- const r = [];
1655
- for (let a = 0; a < n.length; a++) {
1656
- const d = n[a], i = e[a], l = Y(d, i);
1657
- if (!l.valid)
1658
- return { valid: !1 };
1659
- r.push(l.data);
1660
- }
1661
- return { valid: !0, data: r };
1662
- } else return t === h.date && s === h.date && +n == +e ? { valid: !0, data: n } : { valid: !1 };
1663
- }
1664
- class F extends g {
1665
- _parse(e) {
1666
- const { status: t, ctx: s } = this._processInputParams(e), r = (a, d) => {
1667
- if (X(a) || X(d))
1668
- return p;
1669
- const i = Y(a.value, d.value);
1670
- return i.valid ? ((K(a) || K(d)) && t.dirty(), { status: t.value, value: i.data }) : (u(s, {
1671
- code: c.invalid_intersection_types
1672
- }), p);
1673
- };
1674
- return s.common.async ? Promise.all([
1675
- this._def.left._parseAsync({
1676
- data: s.data,
1677
- path: s.path,
1678
- parent: s
1679
- }),
1680
- this._def.right._parseAsync({
1681
- data: s.data,
1682
- path: s.path,
1683
- parent: s
1684
- })
1685
- ]).then(([a, d]) => r(a, d)) : r(this._def.left._parseSync({
1686
- data: s.data,
1687
- path: s.path,
1688
- parent: s
1689
- }), this._def.right._parseSync({
1690
- data: s.data,
1691
- path: s.path,
1692
- parent: s
1693
- }));
1694
- }
1695
- }
1696
- F.create = (n, e, t) => new F({
1697
- left: n,
1698
- right: e,
1699
- typeName: f.ZodIntersection,
1700
- ..._(t)
1701
- });
1702
- class O extends g {
1703
- _parse(e) {
1704
- const { status: t, ctx: s } = this._processInputParams(e);
1705
- if (s.parsedType !== h.array)
1706
- return u(s, {
1707
- code: c.invalid_type,
1708
- expected: h.array,
1709
- received: s.parsedType
1710
- }), p;
1711
- if (s.data.length < this._def.items.length)
1712
- return u(s, {
1713
- code: c.too_small,
1714
- minimum: this._def.items.length,
1715
- inclusive: !0,
1716
- exact: !1,
1717
- type: "array"
1718
- }), p;
1719
- !this._def.rest && s.data.length > this._def.items.length && (u(s, {
1720
- code: c.too_big,
1721
- maximum: this._def.items.length,
1722
- inclusive: !0,
1723
- exact: !1,
1724
- type: "array"
1725
- }), t.dirty());
1726
- const a = [...s.data].map((d, i) => {
1727
- const l = this._def.items[i] || this._def.rest;
1728
- return l ? l._parse(new A(s, d, s.path, i)) : null;
1729
- }).filter((d) => !!d);
1730
- return s.common.async ? Promise.all(a).then((d) => w.mergeArray(t, d)) : w.mergeArray(t, a);
1731
- }
1732
- get items() {
1733
- return this._def.items;
1734
- }
1735
- rest(e) {
1736
- return new O({
1737
- ...this._def,
1738
- rest: e
1739
- });
1740
- }
1741
- }
1742
- O.create = (n, e) => {
1743
- if (!Array.isArray(n))
1744
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
1745
- return new O({
1746
- items: n,
1747
- typeName: f.ZodTuple,
1748
- rest: null,
1749
- ..._(e)
1750
- });
1751
- };
1752
- class ce extends g {
1753
- get keySchema() {
1754
- return this._def.keyType;
1755
- }
1756
- get valueSchema() {
1757
- return this._def.valueType;
1758
- }
1759
- _parse(e) {
1760
- const { status: t, ctx: s } = this._processInputParams(e);
1761
- if (s.parsedType !== h.map)
1762
- return u(s, {
1763
- code: c.invalid_type,
1764
- expected: h.map,
1765
- received: s.parsedType
1766
- }), p;
1767
- const r = this._def.keyType, a = this._def.valueType, d = [...s.data.entries()].map(([i, l], m) => ({
1768
- key: r._parse(new A(s, i, s.path, [m, "key"])),
1769
- value: a._parse(new A(s, l, s.path, [m, "value"]))
1770
- }));
1771
- if (s.common.async) {
1772
- const i = /* @__PURE__ */ new Map();
1773
- return Promise.resolve().then(async () => {
1774
- for (const l of d) {
1775
- const m = await l.key, y = await l.value;
1776
- if (m.status === "aborted" || y.status === "aborted")
1777
- return p;
1778
- (m.status === "dirty" || y.status === "dirty") && t.dirty(), i.set(m.value, y.value);
1779
- }
1780
- return { status: t.value, value: i };
1781
- });
1782
- } else {
1783
- const i = /* @__PURE__ */ new Map();
1784
- for (const l of d) {
1785
- const m = l.key, y = l.value;
1786
- if (m.status === "aborted" || y.status === "aborted")
1787
- return p;
1788
- (m.status === "dirty" || y.status === "dirty") && t.dirty(), i.set(m.value, y.value);
1789
- }
1790
- return { status: t.value, value: i };
1791
- }
1792
- }
1793
- }
1794
- ce.create = (n, e, t) => new ce({
1795
- valueType: e,
1796
- keyType: n,
1797
- typeName: f.ZodMap,
1798
- ..._(t)
1799
- });
1800
- class $ extends g {
1801
- _parse(e) {
1802
- const { status: t, ctx: s } = this._processInputParams(e);
1803
- if (s.parsedType !== h.set)
1804
- return u(s, {
1805
- code: c.invalid_type,
1806
- expected: h.set,
1807
- received: s.parsedType
1808
- }), p;
1809
- const r = this._def;
1810
- r.minSize !== null && s.data.size < r.minSize.value && (u(s, {
1811
- code: c.too_small,
1812
- minimum: r.minSize.value,
1813
- type: "set",
1814
- inclusive: !0,
1815
- exact: !1,
1816
- message: r.minSize.message
1817
- }), t.dirty()), r.maxSize !== null && s.data.size > r.maxSize.value && (u(s, {
1818
- code: c.too_big,
1819
- maximum: r.maxSize.value,
1820
- type: "set",
1821
- inclusive: !0,
1822
- exact: !1,
1823
- message: r.maxSize.message
1824
- }), t.dirty());
1825
- const a = this._def.valueType;
1826
- function d(l) {
1827
- const m = /* @__PURE__ */ new Set();
1828
- for (const y of l) {
1829
- if (y.status === "aborted")
1830
- return p;
1831
- y.status === "dirty" && t.dirty(), m.add(y.value);
1832
- }
1833
- return { status: t.value, value: m };
1834
- }
1835
- const i = [...s.data.values()].map((l, m) => a._parse(new A(s, l, s.path, m)));
1836
- return s.common.async ? Promise.all(i).then((l) => d(l)) : d(i);
1837
- }
1838
- min(e, t) {
1839
- return new $({
1840
- ...this._def,
1841
- minSize: { value: e, message: o.toString(t) }
1842
- });
1843
- }
1844
- max(e, t) {
1845
- return new $({
1846
- ...this._def,
1847
- maxSize: { value: e, message: o.toString(t) }
1848
- });
1849
- }
1850
- size(e, t) {
1851
- return this.min(e, t).max(e, t);
1852
- }
1853
- nonempty(e) {
1854
- return this.min(1, e);
1855
- }
1856
- }
1857
- $.create = (n, e) => new $({
1858
- valueType: n,
1859
- minSize: null,
1860
- maxSize: null,
1861
- typeName: f.ZodSet,
1862
- ..._(e)
1863
- });
1864
- class ue extends g {
1865
- get schema() {
1866
- return this._def.getter();
1867
- }
1868
- _parse(e) {
1869
- const { ctx: t } = this._processInputParams(e);
1870
- return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
1871
- }
1872
- }
1873
- ue.create = (n, e) => new ue({
1874
- getter: n,
1875
- typeName: f.ZodLazy,
1876
- ..._(e)
1877
- });
1878
- class oe extends g {
1879
- _parse(e) {
1880
- if (e.data !== this._def.value) {
1881
- const t = this._getOrReturnCtx(e);
1882
- return u(t, {
1883
- received: t.data,
1884
- code: c.invalid_literal,
1885
- expected: this._def.value
1886
- }), p;
1887
- }
1888
- return { status: "valid", value: e.data };
1889
- }
1890
- get value() {
1891
- return this._def.value;
1892
- }
1893
- }
1894
- oe.create = (n, e) => new oe({
1895
- value: n,
1896
- typeName: f.ZodLiteral,
1897
- ..._(e)
1898
- });
1899
- function pe(n, e) {
1900
- return new I({
1901
- values: n,
1902
- typeName: f.ZodEnum,
1903
- ..._(e)
1904
- });
1905
- }
1906
- class I extends g {
1907
- _parse(e) {
1908
- if (typeof e.data != "string") {
1909
- const t = this._getOrReturnCtx(e), s = this._def.values;
1910
- return u(t, {
1911
- expected: v.joinValues(s),
1912
- received: t.parsedType,
1913
- code: c.invalid_type
1914
- }), p;
1915
- }
1916
- if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
1917
- const t = this._getOrReturnCtx(e), s = this._def.values;
1918
- return u(t, {
1919
- received: t.data,
1920
- code: c.invalid_enum_value,
1921
- options: s
1922
- }), p;
1923
- }
1924
- return k(e.data);
1925
- }
1926
- get options() {
1927
- return this._def.values;
1928
- }
1929
- get enum() {
1930
- const e = {};
1931
- for (const t of this._def.values)
1932
- e[t] = t;
1933
- return e;
1934
- }
1935
- get Values() {
1936
- const e = {};
1937
- for (const t of this._def.values)
1938
- e[t] = t;
1939
- return e;
1940
- }
1941
- get Enum() {
1942
- const e = {};
1943
- for (const t of this._def.values)
1944
- e[t] = t;
1945
- return e;
1946
- }
1947
- extract(e, t = this._def) {
1948
- return I.create(e, {
1949
- ...this._def,
1950
- ...t
1951
- });
1952
- }
1953
- exclude(e, t = this._def) {
1954
- return I.create(this.options.filter((s) => !e.includes(s)), {
1955
- ...this._def,
1956
- ...t
1957
- });
1958
- }
1959
- }
1960
- I.create = pe;
1961
- class le extends g {
1962
- _parse(e) {
1963
- const t = v.getValidEnumValues(this._def.values), s = this._getOrReturnCtx(e);
1964
- if (s.parsedType !== h.string && s.parsedType !== h.number) {
1965
- const r = v.objectValues(t);
1966
- return u(s, {
1967
- expected: v.joinValues(r),
1968
- received: s.parsedType,
1969
- code: c.invalid_type
1970
- }), p;
1971
- }
1972
- if (this._cache || (this._cache = new Set(v.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
1973
- const r = v.objectValues(t);
1974
- return u(s, {
1975
- received: s.data,
1976
- code: c.invalid_enum_value,
1977
- options: r
1978
- }), p;
1979
- }
1980
- return k(e.data);
1981
- }
1982
- get enum() {
1983
- return this._def.values;
1984
- }
1985
- }
1986
- le.create = (n, e) => new le({
1987
- values: n,
1988
- typeName: f.ZodNativeEnum,
1989
- ..._(e)
1990
- });
1991
- class W extends g {
1992
- unwrap() {
1993
- return this._def.type;
1994
- }
1995
- _parse(e) {
1996
- const { ctx: t } = this._processInputParams(e);
1997
- if (t.parsedType !== h.promise && t.common.async === !1)
1998
- return u(t, {
1999
- code: c.invalid_type,
2000
- expected: h.promise,
2001
- received: t.parsedType
2002
- }), p;
2003
- const s = t.parsedType === h.promise ? t.data : Promise.resolve(t.data);
2004
- return k(s.then((r) => this._def.type.parseAsync(r, {
2005
- path: t.path,
2006
- errorMap: t.common.contextualErrorMap
2007
- })));
2008
- }
2009
- }
2010
- W.create = (n, e) => new W({
2011
- type: n,
2012
- typeName: f.ZodPromise,
2013
- ..._(e)
2014
- });
2015
- class j extends g {
2016
- innerType() {
2017
- return this._def.schema;
2018
- }
2019
- sourceType() {
2020
- return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2021
- }
2022
- _parse(e) {
2023
- const { status: t, ctx: s } = this._processInputParams(e), r = this._def.effect || null, a = {
2024
- addIssue: (d) => {
2025
- u(s, d), d.fatal ? t.abort() : t.dirty();
2026
- },
2027
- get path() {
2028
- return s.path;
2029
- }
2030
- };
2031
- if (a.addIssue = a.addIssue.bind(a), r.type === "preprocess") {
2032
- const d = r.transform(s.data, a);
2033
- if (s.common.async)
2034
- return Promise.resolve(d).then(async (i) => {
2035
- if (t.value === "aborted")
2036
- return p;
2037
- const l = await this._def.schema._parseAsync({
2038
- data: i,
2039
- path: s.path,
2040
- parent: s
2041
- });
2042
- return l.status === "aborted" ? p : l.status === "dirty" ? V(l.value) : t.value === "dirty" ? V(l.value) : l;
2043
- });
2044
- {
2045
- if (t.value === "aborted")
2046
- return p;
2047
- const i = this._def.schema._parseSync({
2048
- data: d,
2049
- path: s.path,
2050
- parent: s
2051
- });
2052
- return i.status === "aborted" ? p : i.status === "dirty" ? V(i.value) : t.value === "dirty" ? V(i.value) : i;
2053
- }
2054
- }
2055
- if (r.type === "refinement") {
2056
- const d = (i) => {
2057
- const l = r.refinement(i, a);
2058
- if (s.common.async)
2059
- return Promise.resolve(l);
2060
- if (l instanceof Promise)
2061
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
2062
- return i;
2063
- };
2064
- if (s.common.async === !1) {
2065
- const i = this._def.schema._parseSync({
2066
- data: s.data,
2067
- path: s.path,
2068
- parent: s
2069
- });
2070
- return i.status === "aborted" ? p : (i.status === "dirty" && t.dirty(), d(i.value), { status: t.value, value: i.value });
2071
- } else
2072
- return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((i) => i.status === "aborted" ? p : (i.status === "dirty" && t.dirty(), d(i.value).then(() => ({ status: t.value, value: i.value }))));
2073
- }
2074
- if (r.type === "transform")
2075
- if (s.common.async === !1) {
2076
- const d = this._def.schema._parseSync({
2077
- data: s.data,
2078
- path: s.path,
2079
- parent: s
2080
- });
2081
- if (!N(d))
2082
- return p;
2083
- const i = r.transform(d.value, a);
2084
- if (i instanceof Promise)
2085
- throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
2086
- return { status: t.value, value: i };
2087
- } else
2088
- return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((d) => N(d) ? Promise.resolve(r.transform(d.value, a)).then((i) => ({
2089
- status: t.value,
2090
- value: i
2091
- })) : p);
2092
- v.assertNever(r);
2093
- }
2094
- }
2095
- j.create = (n, e, t) => new j({
2096
- schema: n,
2097
- typeName: f.ZodEffects,
2098
- effect: e,
2099
- ..._(t)
2100
- });
2101
- j.createWithPreprocess = (n, e, t) => new j({
2102
- schema: e,
2103
- effect: { type: "preprocess", transform: n },
2104
- typeName: f.ZodEffects,
2105
- ..._(t)
2106
- });
2107
- class Z extends g {
2108
- _parse(e) {
2109
- return this._getType(e) === h.undefined ? k(void 0) : this._def.innerType._parse(e);
2110
- }
2111
- unwrap() {
2112
- return this._def.innerType;
2113
- }
2114
- }
2115
- Z.create = (n, e) => new Z({
2116
- innerType: n,
2117
- typeName: f.ZodOptional,
2118
- ..._(e)
2119
- });
2120
- class E extends g {
2121
- _parse(e) {
2122
- return this._getType(e) === h.null ? k(null) : this._def.innerType._parse(e);
2123
- }
2124
- unwrap() {
2125
- return this._def.innerType;
2126
- }
2127
- }
2128
- E.create = (n, e) => new E({
2129
- innerType: n,
2130
- typeName: f.ZodNullable,
2131
- ..._(e)
2132
- });
2133
- class q extends g {
2134
- _parse(e) {
2135
- const { ctx: t } = this._processInputParams(e);
2136
- let s = t.data;
2137
- return t.parsedType === h.undefined && (s = this._def.defaultValue()), this._def.innerType._parse({
2138
- data: s,
2139
- path: t.path,
2140
- parent: t
2141
- });
2142
- }
2143
- removeDefault() {
2144
- return this._def.innerType;
2145
- }
2146
- }
2147
- q.create = (n, e) => new q({
2148
- innerType: n,
2149
- typeName: f.ZodDefault,
2150
- defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2151
- ..._(e)
2152
- });
2153
- class H extends g {
2154
- _parse(e) {
2155
- const { ctx: t } = this._processInputParams(e), s = {
2156
- ...t,
2157
- common: {
2158
- ...t.common,
2159
- issues: []
2160
- }
2161
- }, r = this._def.innerType._parse({
2162
- data: s.data,
2163
- path: s.path,
2164
- parent: {
2165
- ...s
2166
- }
2167
- });
2168
- return D(r) ? r.then((a) => ({
2169
- status: "valid",
2170
- value: a.status === "valid" ? a.value : this._def.catchValue({
2171
- get error() {
2172
- return new z(s.common.issues);
2173
- },
2174
- input: s.data
2175
- })
2176
- })) : {
2177
- status: "valid",
2178
- value: r.status === "valid" ? r.value : this._def.catchValue({
2179
- get error() {
2180
- return new z(s.common.issues);
2181
- },
2182
- input: s.data
2183
- })
2184
- };
2185
- }
2186
- removeCatch() {
2187
- return this._def.innerType;
2188
- }
2189
- }
2190
- H.create = (n, e) => new H({
2191
- innerType: n,
2192
- typeName: f.ZodCatch,
2193
- catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2194
- ..._(e)
2195
- });
2196
- class he extends g {
2197
- _parse(e) {
2198
- if (this._getType(e) !== h.nan) {
2199
- const s = this._getOrReturnCtx(e);
2200
- return u(s, {
2201
- code: c.invalid_type,
2202
- expected: h.nan,
2203
- received: s.parsedType
2204
- }), p;
2205
- }
2206
- return { status: "valid", value: e.data };
2207
- }
2208
- }
2209
- he.create = (n) => new he({
2210
- typeName: f.ZodNaN,
2211
- ..._(n)
2212
- });
2213
- class Pe extends g {
2214
- _parse(e) {
2215
- const { ctx: t } = this._processInputParams(e), s = t.data;
2216
- return this._def.type._parse({
2217
- data: s,
2218
- path: t.path,
2219
- parent: t
2220
- });
2221
- }
2222
- unwrap() {
2223
- return this._def.type;
2224
- }
2225
- }
2226
- class Q extends g {
2227
- _parse(e) {
2228
- const { status: t, ctx: s } = this._processInputParams(e);
2229
- if (s.common.async)
2230
- return (async () => {
2231
- const a = await this._def.in._parseAsync({
2232
- data: s.data,
2233
- path: s.path,
2234
- parent: s
2235
- });
2236
- return a.status === "aborted" ? p : a.status === "dirty" ? (t.dirty(), V(a.value)) : this._def.out._parseAsync({
2237
- data: a.value,
2238
- path: s.path,
2239
- parent: s
2240
- });
2241
- })();
2242
- {
2243
- const r = this._def.in._parseSync({
2244
- data: s.data,
2245
- path: s.path,
2246
- parent: s
2247
- });
2248
- return r.status === "aborted" ? p : r.status === "dirty" ? (t.dirty(), {
2249
- status: "dirty",
2250
- value: r.value
2251
- }) : this._def.out._parseSync({
2252
- data: r.value,
2253
- path: s.path,
2254
- parent: s
2255
- });
2256
- }
2257
- }
2258
- static create(e, t) {
2259
- return new Q({
2260
- in: e,
2261
- out: t,
2262
- typeName: f.ZodPipeline
2263
- });
2264
- }
2265
- }
2266
- class G extends g {
2267
- _parse(e) {
2268
- const t = this._def.innerType._parse(e), s = (r) => (N(r) && (r.value = Object.freeze(r.value)), r);
2269
- return D(t) ? t.then((r) => s(r)) : s(t);
2270
- }
2271
- unwrap() {
2272
- return this._def.innerType;
2273
- }
2274
- }
2275
- G.create = (n, e) => new G({
2276
- innerType: n,
2277
- typeName: f.ZodReadonly,
2278
- ..._(e)
2279
- });
2280
- var f;
2281
- (function(n) {
2282
- n.ZodString = "ZodString", n.ZodNumber = "ZodNumber", n.ZodNaN = "ZodNaN", n.ZodBigInt = "ZodBigInt", n.ZodBoolean = "ZodBoolean", n.ZodDate = "ZodDate", n.ZodSymbol = "ZodSymbol", n.ZodUndefined = "ZodUndefined", n.ZodNull = "ZodNull", n.ZodAny = "ZodAny", n.ZodUnknown = "ZodUnknown", n.ZodNever = "ZodNever", n.ZodVoid = "ZodVoid", n.ZodArray = "ZodArray", n.ZodObject = "ZodObject", n.ZodUnion = "ZodUnion", n.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", n.ZodIntersection = "ZodIntersection", n.ZodTuple = "ZodTuple", n.ZodRecord = "ZodRecord", n.ZodMap = "ZodMap", n.ZodSet = "ZodSet", n.ZodFunction = "ZodFunction", n.ZodLazy = "ZodLazy", n.ZodLiteral = "ZodLiteral", n.ZodEnum = "ZodEnum", n.ZodEffects = "ZodEffects", n.ZodNativeEnum = "ZodNativeEnum", n.ZodOptional = "ZodOptional", n.ZodNullable = "ZodNullable", n.ZodDefault = "ZodDefault", n.ZodCatch = "ZodCatch", n.ZodPromise = "ZodPromise", n.ZodBranded = "ZodBranded", n.ZodPipeline = "ZodPipeline", n.ZodReadonly = "ZodReadonly";
2283
- })(f || (f = {}));
2284
- const Fe = T.create;
2285
- S.create;
2286
- b.create;
2287
- const We = x.create;
2288
- B.create;
2289
- F.create;
2290
- O.create;
2291
- I.create;
2292
- W.create;
2293
- const Je = Z.create;
2294
- E.create;
2295
- export {
2296
- g as Schema,
2297
- ne as ZodAny,
2298
- b as ZodArray,
2299
- P as ZodBigInt,
2300
- te as ZodBoolean,
2301
- Pe as ZodBranded,
2302
- H as ZodCatch,
2303
- U as ZodDate,
2304
- q as ZodDefault,
2305
- j as ZodEffects,
2306
- I as ZodEnum,
2307
- f as ZodFirstPartyTypeKind,
2308
- F as ZodIntersection,
2309
- ue as ZodLazy,
2310
- oe as ZodLiteral,
2311
- ce as ZodMap,
2312
- he as ZodNaN,
2313
- le as ZodNativeEnum,
2314
- S as ZodNever,
2315
- ae as ZodNull,
2316
- E as ZodNullable,
2317
- M as ZodNumber,
2318
- x as ZodObject,
2319
- Z as ZodOptional,
2320
- Q as ZodPipeline,
2321
- W as ZodPromise,
2322
- G as ZodReadonly,
2323
- g as ZodSchema,
2324
- $ as ZodSet,
2325
- T as ZodString,
2326
- se as ZodSymbol,
2327
- j as ZodTransformer,
2328
- O as ZodTuple,
2329
- g as ZodType,
2330
- re as ZodUndefined,
2331
- B as ZodUnion,
2332
- ie as ZodUnknown,
2333
- de as ZodVoid,
2334
- Ee as datetimeRegex,
2335
- We as object,
2336
- Je as optional,
2337
- Fe as string
2338
- };
2339
- //# sourceMappingURL=index633.mjs.map