@scbt-ecom/ui 0.4.2 → 0.4.4

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 (471) hide show
  1. package/dist/Notification-BGmp0XMG.js +5750 -0
  2. package/dist/Notification-BGmp0XMG.js.map +1 -0
  3. package/dist/client.d.ts +7 -0
  4. package/dist/client.js +39333 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/configs/index.d.ts +2 -0
  7. package/dist/configs/tailwindConfigBase.d.ts +2 -0
  8. package/dist/configs/tailwindPresets/extendsPreset.d.ts +2 -0
  9. package/dist/configs/tailwindPresets/index.d.ts +2 -0
  10. package/dist/configs/tailwindPresets/resetPreset.d.ts +2 -0
  11. package/dist/hybrid.d.ts +20 -0
  12. package/dist/hybrid.js +3939 -0
  13. package/dist/hybrid.js.map +1 -0
  14. package/dist/shared/constants/api.d.ts +2 -0
  15. package/dist/shared/constants/designSystem/colors.d.ts +124 -0
  16. package/dist/shared/constants/designSystem/index.d.ts +3 -0
  17. package/dist/shared/constants/designSystem/others.d.ts +27 -0
  18. package/dist/shared/constants/designSystem/typography.d.ts +75 -0
  19. package/dist/shared/constants/index.d.ts +2 -0
  20. package/dist/shared/hooks/index.d.ts +5 -0
  21. package/dist/shared/hooks/useBoolean.d.ts +3 -0
  22. package/dist/shared/hooks/useClickOutside.d.ts +2 -0
  23. package/dist/shared/hooks/useCombineRef.d.ts +5 -0
  24. package/dist/shared/hooks/useControlledForm.d.ts +7 -0
  25. package/dist/shared/hooks/useDebounce.d.ts +3 -0
  26. package/dist/shared/hooks/useMediaQuery.d.ts +4 -0
  27. package/dist/shared/ui/Badge.d.ts +6 -0
  28. package/dist/shared/ui/Breadcrumbs.d.ts +15 -0
  29. package/dist/shared/ui/ButtonIcon.d.ts +17 -0
  30. package/dist/shared/ui/CustomLink.d.ts +16 -0
  31. package/dist/shared/ui/Document.d.ts +13 -0
  32. package/dist/shared/ui/Heading.d.ts +12 -0
  33. package/dist/shared/ui/Hint.d.ts +21 -0
  34. package/dist/shared/ui/Loader.d.ts +21 -0
  35. package/dist/shared/ui/PhoneView.d.ts +12 -0
  36. package/dist/shared/ui/ProgressBar.d.ts +18 -0
  37. package/dist/shared/ui/ResponsiveContainer.d.ts +6 -0
  38. package/dist/shared/ui/Section.d.ts +6 -0
  39. package/dist/shared/ui/Skeleton.d.ts +4 -0
  40. package/dist/shared/ui/TabsSwitcher.d.ts +35 -0
  41. package/dist/shared/ui/accordion/Accordion.d.ts +13 -0
  42. package/dist/shared/ui/accordion/index.d.ts +1 -0
  43. package/dist/shared/ui/accordion/model/types.d.ts +17 -0
  44. package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +8 -0
  45. package/dist/shared/ui/brandLogos.d.ts +5 -0
  46. package/dist/shared/ui/button/Button.d.ts +18 -0
  47. package/dist/shared/ui/button/index.d.ts +1 -0
  48. package/dist/shared/ui/button/model/helpers.d.ts +2 -0
  49. package/dist/shared/ui/formControlElements/CheckboxControl.d.ts +13 -0
  50. package/dist/shared/ui/formControlElements/FormControl.d.ts +3 -0
  51. package/dist/shared/ui/formControlElements/InputControlMask.d.ts +10 -0
  52. package/dist/shared/ui/formControlElements/RadioControl.d.ts +26 -0
  53. package/dist/shared/ui/formControlElements/SwitchControl.d.ts +16 -0
  54. package/dist/shared/ui/formControlElements/TextareaControl.d.ts +11 -0
  55. package/dist/shared/ui/formControlElements/calendarControl/CalendarControl.d.ts +15 -0
  56. package/dist/shared/ui/formControlElements/calendarControl/hooks/index.d.ts +2 -0
  57. package/dist/shared/ui/formControlElements/calendarControl/hooks/useCalendar.d.ts +16 -0
  58. package/dist/shared/ui/formControlElements/calendarControl/hooks/useCalendarDropdowns.d.ts +9 -0
  59. package/{lib/shared/ui/formControlElements/calendarControl/index.ts → dist/shared/ui/formControlElements/calendarControl/index.d.ts} +1 -1
  60. package/dist/shared/ui/formControlElements/calendarControl/model/helpers.d.ts +24 -0
  61. package/dist/shared/ui/formControlElements/calendarControl/model/types.d.ts +33 -0
  62. package/dist/shared/ui/formControlElements/calendarControl/ui/DaysOfMonth.d.ts +10 -0
  63. package/dist/shared/ui/formControlElements/calendarControl/ui/DaysOfWeek.d.ts +6 -0
  64. package/dist/shared/ui/formControlElements/calendarControl/ui/Dropdown.d.ts +11 -0
  65. package/dist/shared/ui/formControlElements/calendarControl/ui/Header.d.ts +14 -0
  66. package/dist/shared/ui/formControlElements/calendarControl/ui/Navigation.d.ts +9 -0
  67. package/dist/shared/ui/formControlElements/calendarControl/ui/OptionsList.d.ts +5 -0
  68. package/dist/shared/ui/formControlElements/calendarControl/ui/index.d.ts +4 -0
  69. package/dist/shared/ui/formControlElements/comboboxControl/ComboboxControl.d.ts +31 -0
  70. package/{lib/shared/ui/formControlElements/comboboxControl/index.ts → dist/shared/ui/formControlElements/comboboxControl/index.d.ts} +1 -1
  71. package/dist/shared/ui/formControlElements/comboboxControl/model/selectClassnames.d.ts +21 -0
  72. package/dist/shared/ui/formControlElements/comboboxControl/model/types.d.ts +36 -0
  73. package/dist/shared/ui/formControlElements/comboboxControl/ui/ComboboxOption.d.ts +8 -0
  74. package/dist/shared/ui/formControlElements/comboboxControl/ui/DropdownIndicator.d.ts +7 -0
  75. package/dist/shared/ui/formControlElements/comboboxControl/ui/MultiValueRemove.d.ts +7 -0
  76. package/dist/shared/ui/formControlElements/comboboxControl/ui/index.d.ts +3 -0
  77. package/dist/shared/ui/formControlElements/dadata/DadataInputControl.d.ts +14 -0
  78. package/{lib/shared/ui/formControlElements/dadata/index.ts → dist/shared/ui/formControlElements/dadata/index.d.ts} +1 -1
  79. package/dist/shared/ui/formControlElements/dadata/model/api.d.ts +2 -0
  80. package/dist/shared/ui/formControlElements/dadata/model/helpers.d.ts +7 -0
  81. package/dist/shared/ui/formControlElements/dadata/model/types.d.ts +42 -0
  82. package/dist/shared/ui/formControlElements/dadata/model/useDadata.d.ts +7 -0
  83. package/dist/shared/ui/formControlElements/editorControl/EditorControl.d.ts +7 -0
  84. package/dist/shared/ui/formControlElements/editorControl/components/conrols.d.ts +6 -0
  85. package/dist/shared/ui/formControlElements/editorControl/components/menu.d.ts +6 -0
  86. package/dist/shared/ui/formControlElements/editorControl/index.d.ts +1 -0
  87. package/dist/shared/ui/formControlElements/editorControl/ui/RemoveBlockButton.d.ts +2 -0
  88. package/dist/shared/ui/formControlElements/editorControl/ui/ResetBlockType.d.ts +2 -0
  89. package/{lib/shared/ui/formControlElements/index.ts → dist/shared/ui/formControlElements/index.d.ts} +14 -14
  90. package/dist/shared/ui/formControlElements/inputControl/InputControl.d.ts +7 -0
  91. package/{lib/shared/ui/formControlElements/inputControl/index.ts → dist/shared/ui/formControlElements/inputControl/index.d.ts} +1 -1
  92. package/dist/shared/ui/formControlElements/inputControl/model/hooks.d.ts +5 -0
  93. package/dist/shared/ui/formControlElements/inputControlUploader/InputControlUploader.d.ts +10 -0
  94. package/{lib/shared/ui/formControlElements/inputControlUploader/index.ts → dist/shared/ui/formControlElements/inputControlUploader/index.d.ts} +1 -1
  95. package/dist/shared/ui/formControlElements/inputControlUploader/model/helpers.d.ts +8 -0
  96. package/dist/shared/ui/formControlElements/inputControlUploader/model/hooks/useUploader.d.ts +11 -0
  97. package/{lib/shared/ui/formControlElements/inputControlUploader/model/index.ts → dist/shared/ui/formControlElements/inputControlUploader/model/index.d.ts} +1 -1
  98. package/dist/shared/ui/formControlElements/inputControlUploader/model/types.d.ts +20 -0
  99. package/dist/shared/ui/formControlElements/inputControlUploader/ui/File.d.ts +12 -0
  100. package/dist/shared/ui/formControlElements/inputControlUploader/ui/Filename.d.ts +7 -0
  101. package/dist/shared/ui/formControlElements/inputControlUploader/ui/Files.d.ts +12 -0
  102. package/dist/shared/ui/formControlElements/inputControlUploader/ui/Input.d.ts +11 -0
  103. package/dist/shared/ui/formControlElements/inputControlUploader/ui/Uploader.d.ts +15 -0
  104. package/dist/shared/ui/formControlElements/inputControlUploader/ui/index.d.ts +3 -0
  105. package/dist/shared/ui/formControlElements/inputCurrencyControl/InputCurrencyControl.d.ts +13 -0
  106. package/{lib/shared/ui/formControlElements/inputCurrencyControl/index.ts → dist/shared/ui/formControlElements/inputCurrencyControl/index.d.ts} +1 -1
  107. package/dist/shared/ui/formControlElements/inputCurrencyControl/model/helpers.d.ts +3 -0
  108. package/dist/shared/ui/formControlElements/inputCurrencyControl/model/useInputCurrency.d.ts +10 -0
  109. package/dist/shared/ui/formControlElements/inputCurrencyControl/ui/MenuTrigger.d.ts +7 -0
  110. package/dist/shared/ui/formControlElements/inputCurrencyControl/ui/OptionList.d.ts +8 -0
  111. package/dist/shared/ui/formControlElements/inputCurrencyControl/ui/index.d.ts +2 -0
  112. package/dist/shared/ui/formControlElements/inputSliderControl/InputSliderControl.d.ts +20 -0
  113. package/{lib/shared/ui/formControlElements/inputSliderControl/index.ts → dist/shared/ui/formControlElements/inputSliderControl/index.d.ts} +1 -1
  114. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/dates/getEndWordMonth.d.ts +1 -0
  115. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/dates/getYearEnding.d.ts +1 -0
  116. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/dates/index.d.ts +2 -0
  117. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/formatNumber.d.ts +1 -0
  118. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/getInputSliderSuffix.d.ts +3 -0
  119. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/getStepByVariant.d.ts +2 -0
  120. package/dist/shared/ui/formControlElements/inputSliderControl/model/helpers/index.d.ts +4 -0
  121. package/dist/shared/ui/formControlElements/inputSliderControl/model/types.d.ts +1 -0
  122. package/dist/shared/ui/formControlElements/inputSliderControl/model/useSlider.d.ts +6 -0
  123. package/dist/shared/ui/formControlElements/inputSliderControl/ui/SliderControl.d.ts +17 -0
  124. package/dist/shared/ui/formControlElements/inputSliderControl/ui/index.d.ts +1 -0
  125. package/dist/shared/ui/formControlElements/model/classes-types.d.ts +18 -0
  126. package/dist/shared/ui/formControlElements/model/index.d.ts +2 -0
  127. package/dist/shared/ui/formControlElements/model/message-view-animation.d.ts +22 -0
  128. package/dist/shared/ui/formControlElements/model/props-types.d.ts +22 -0
  129. package/dist/shared/ui/formControlElements/ui/FieldAttachment.d.ts +15 -0
  130. package/dist/shared/ui/formControlElements/ui/FieldContainer.d.ts +15 -0
  131. package/dist/shared/ui/formControlElements/ui/FieldWrapper.d.ts +14 -0
  132. package/dist/shared/ui/formControlElements/ui/Label.d.ts +11 -0
  133. package/dist/shared/ui/formControlElements/ui/MessageView.d.ts +13 -0
  134. package/dist/shared/ui/formControlElements/ui/index.d.ts +4 -0
  135. package/dist/shared/ui/icon/Icon.d.ts +10 -0
  136. package/{lib/shared/ui/icon/index.ts → dist/shared/ui/icon/index.d.ts} +2 -2
  137. package/dist/shared/ui/icon/sprite.gen.d.ts +18 -0
  138. package/dist/shared/ui/index.d.ts +24 -0
  139. package/dist/shared/ui/modal/Modal.d.ts +16 -0
  140. package/dist/shared/ui/modal/index.d.ts +1 -0
  141. package/dist/shared/ui/modal/model/helpers.d.ts +33 -0
  142. package/dist/shared/ui/modal/ui/ModalHeader.d.ts +12 -0
  143. package/dist/shared/ui/notification/Notification.d.ts +10 -0
  144. package/{lib/shared/ui/notification/index.ts → dist/shared/ui/notification/index.d.ts} +1 -1
  145. package/dist/shared/ui/notification/ui/CustomToast.d.ts +10 -0
  146. package/dist/shared/ui/popover/Popover.d.ts +23 -0
  147. package/dist/shared/ui/popover/index.d.ts +1 -0
  148. package/dist/shared/ui/providers/NotificationProvider.d.ts +5 -0
  149. package/{lib/shared/ui/providers/index.ts → dist/shared/ui/providers/index.d.ts} +1 -1
  150. package/dist/shared/ui/table/Table.d.ts +17 -0
  151. package/dist/shared/ui/table/index.d.ts +1 -0
  152. package/dist/shared/ui/table/type.d.ts +21 -0
  153. package/dist/shared/utils/capitalize.d.ts +1 -0
  154. package/dist/shared/utils/cn.d.ts +2 -0
  155. package/dist/shared/utils/deepCompare.d.ts +1 -0
  156. package/dist/shared/utils/formatToDate.d.ts +1 -0
  157. package/dist/shared/utils/index.d.ts +5 -0
  158. package/dist/shared/utils/isClient.d.ts +1 -0
  159. package/dist/shared/validation/index.d.ts +3 -0
  160. package/dist/shared/validation/messages.d.ts +12 -0
  161. package/dist/shared/validation/regExp.d.ts +3 -0
  162. package/dist/shared/validation/zodValidation/calendar.d.ts +2 -0
  163. package/dist/shared/validation/zodValidation/dadataFio.d.ts +6 -0
  164. package/dist/shared/validation/zodValidation/index.d.ts +2 -0
  165. package/dist/style.css +1 -0
  166. package/dist/widgets/Advantages.d.ts +17 -0
  167. package/dist/widgets/banner/Banner.d.ts +29 -0
  168. package/dist/widgets/banner/index.d.ts +1 -0
  169. package/dist/widgets/banner/model/helpers.d.ts +9 -0
  170. package/dist/widgets/banner/ui/BannerButtonsGroup.d.ts +13 -0
  171. package/dist/widgets/banner/ui/banners/BannerImageFull.d.ts +2 -0
  172. package/dist/widgets/banner/ui/banners/BannerWithSeparateImg.d.ts +2 -0
  173. package/dist/widgets/banner/ui/banners/index.d.ts +1 -0
  174. package/dist/widgets/footer/Footer.d.ts +27 -0
  175. package/dist/widgets/footer/index.d.ts +1 -0
  176. package/dist/widgets/footer/model/defaultValues.d.ts +6 -0
  177. package/dist/widgets/footer/model/types.d.ts +16 -0
  178. package/dist/widgets/footer/ui/Copyright.d.ts +10 -0
  179. package/dist/widgets/footer/ui/Ligal.d.ts +12 -0
  180. package/dist/widgets/footer/ui/NavLinks.d.ts +14 -0
  181. package/dist/widgets/footer/ui/PhonesBlock.d.ts +13 -0
  182. package/dist/widgets/footer/ui/SocialLinks.d.ts +12 -0
  183. package/{lib/widgets/footer/ui/index.ts → dist/widgets/footer/ui/index.d.ts} +5 -5
  184. package/{lib/widgets/index.ts → dist/widgets/index.d.ts} +5 -5
  185. package/dist/widgets/pageHeader/PageHeader.d.ts +16 -0
  186. package/{lib/widgets/pageHeader/index.ts → dist/widgets/pageHeader/index.d.ts} +1 -1
  187. package/dist/widgets/stepper/Stepper.d.ts +18 -0
  188. package/{lib/widgets/stepper/index.ts → dist/widgets/stepper/index.d.ts} +1 -1
  189. package/dist/widgets/stepper/ui/SingleStep.d.ts +14 -0
  190. package/package.json +4 -1
  191. package/.env +0 -3
  192. package/.github/workflows/publish.yml +0 -61
  193. package/.github/workflows/setup-node/action.yml +0 -22
  194. package/.husky/pre-commit +0 -1
  195. package/.prettierignore +0 -1
  196. package/.prettierrc +0 -20
  197. package/.releaserc +0 -18
  198. package/.storybook/main.ts +0 -44
  199. package/.storybook/preview.tsx +0 -37
  200. package/chromatic.config.json +0 -5
  201. package/eslint.config.mjs +0 -193
  202. package/index.html +0 -13
  203. package/lib/client.ts +0 -12
  204. package/lib/configs/index.ts +0 -2
  205. package/lib/configs/tailwindConfigBase.ts +0 -110
  206. package/lib/configs/tailwindPresets/extendsPreset.ts +0 -43
  207. package/lib/configs/tailwindPresets/index.ts +0 -2
  208. package/lib/configs/tailwindPresets/resetPreset.ts +0 -71
  209. package/lib/hybrid.ts +0 -25
  210. package/lib/shared/constants/api.ts +0 -2
  211. package/lib/shared/constants/designSystem/colors.ts +0 -121
  212. package/lib/shared/constants/designSystem/index.ts +0 -3
  213. package/lib/shared/constants/designSystem/others.ts +0 -30
  214. package/lib/shared/constants/designSystem/typography.ts +0 -88
  215. package/lib/shared/constants/index.ts +0 -2
  216. package/lib/shared/hooks/index.ts +0 -5
  217. package/lib/shared/hooks/useBoolean.ts +0 -12
  218. package/lib/shared/hooks/useClickOutside.ts +0 -22
  219. package/lib/shared/hooks/useCombineRef.ts +0 -23
  220. package/lib/shared/hooks/useControlledForm.ts +0 -16
  221. package/lib/shared/hooks/useDebounce.ts +0 -38
  222. package/lib/shared/hooks/useMediaQuery.tsx +0 -42
  223. package/lib/shared/style.css +0 -118
  224. package/lib/shared/ui/Badge.tsx +0 -20
  225. package/lib/shared/ui/Breadcrumbs.tsx +0 -57
  226. package/lib/shared/ui/ButtonIcon.tsx +0 -50
  227. package/lib/shared/ui/CustomLink.tsx +0 -76
  228. package/lib/shared/ui/Document.tsx +0 -51
  229. package/lib/shared/ui/Heading.tsx +0 -33
  230. package/lib/shared/ui/Hint.tsx +0 -72
  231. package/lib/shared/ui/Loader.tsx +0 -58
  232. package/lib/shared/ui/PhoneView.tsx +0 -23
  233. package/lib/shared/ui/ProgressBar.tsx +0 -43
  234. package/lib/shared/ui/ResponsiveContainer.tsx +0 -15
  235. package/lib/shared/ui/Section.tsx +0 -15
  236. package/lib/shared/ui/Skeleton.tsx +0 -9
  237. package/lib/shared/ui/TabsSwitcher.tsx +0 -87
  238. package/lib/shared/ui/accordion/Accordion.tsx +0 -36
  239. package/lib/shared/ui/accordion/index.ts +0 -1
  240. package/lib/shared/ui/accordion/model/types.ts +0 -20
  241. package/lib/shared/ui/accordion/ui/AccordionHeader.tsx +0 -35
  242. package/lib/shared/ui/brandLogos.tsx +0 -14
  243. package/lib/shared/ui/button/Button.tsx +0 -117
  244. package/lib/shared/ui/button/index.ts +0 -1
  245. package/lib/shared/ui/button/model/helpers.ts +0 -16
  246. package/lib/shared/ui/formControlElements/CheckboxControl.tsx +0 -92
  247. package/lib/shared/ui/formControlElements/FormControl.tsx +0 -5
  248. package/lib/shared/ui/formControlElements/InputControlMask.tsx +0 -90
  249. package/lib/shared/ui/formControlElements/RadioControl.tsx +0 -130
  250. package/lib/shared/ui/formControlElements/SwitchControl.tsx +0 -79
  251. package/lib/shared/ui/formControlElements/TextareaControl.tsx +0 -96
  252. package/lib/shared/ui/formControlElements/calendarControl/CalendarControl.tsx +0 -178
  253. package/lib/shared/ui/formControlElements/calendarControl/hooks/index.ts +0 -2
  254. package/lib/shared/ui/formControlElements/calendarControl/hooks/useCalendar.tsx +0 -86
  255. package/lib/shared/ui/formControlElements/calendarControl/hooks/useCalendarDropdowns.ts +0 -38
  256. package/lib/shared/ui/formControlElements/calendarControl/model/helpers.ts +0 -60
  257. package/lib/shared/ui/formControlElements/calendarControl/model/types.ts +0 -44
  258. package/lib/shared/ui/formControlElements/calendarControl/ui/DaysOfMonth.tsx +0 -53
  259. package/lib/shared/ui/formControlElements/calendarControl/ui/DaysOfWeek.tsx +0 -28
  260. package/lib/shared/ui/formControlElements/calendarControl/ui/Dropdown.tsx +0 -62
  261. package/lib/shared/ui/formControlElements/calendarControl/ui/Header.tsx +0 -51
  262. package/lib/shared/ui/formControlElements/calendarControl/ui/Navigation.tsx +0 -32
  263. package/lib/shared/ui/formControlElements/calendarControl/ui/OptionsList.tsx +0 -44
  264. package/lib/shared/ui/formControlElements/calendarControl/ui/index.ts +0 -4
  265. package/lib/shared/ui/formControlElements/comboboxControl/ComboboxControl.tsx +0 -134
  266. package/lib/shared/ui/formControlElements/comboboxControl/model/selectClassnames.ts +0 -51
  267. package/lib/shared/ui/formControlElements/comboboxControl/model/types.ts +0 -42
  268. package/lib/shared/ui/formControlElements/comboboxControl/ui/ComboboxOption.tsx +0 -38
  269. package/lib/shared/ui/formControlElements/comboboxControl/ui/DropdownIndicator.tsx +0 -23
  270. package/lib/shared/ui/formControlElements/comboboxControl/ui/MultiValueRemove.tsx +0 -16
  271. package/lib/shared/ui/formControlElements/comboboxControl/ui/index.ts +0 -3
  272. package/lib/shared/ui/formControlElements/dadata/DadataInputControl.tsx +0 -137
  273. package/lib/shared/ui/formControlElements/dadata/model/api.ts +0 -25
  274. package/lib/shared/ui/formControlElements/dadata/model/helpers.ts +0 -76
  275. package/lib/shared/ui/formControlElements/dadata/model/types.ts +0 -52
  276. package/lib/shared/ui/formControlElements/dadata/model/useDadata.ts +0 -25
  277. package/lib/shared/ui/formControlElements/editorControl/EditorControl.tsx +0 -82
  278. package/lib/shared/ui/formControlElements/editorControl/components/conrols.tsx +0 -136
  279. package/lib/shared/ui/formControlElements/editorControl/components/menu.tsx +0 -107
  280. package/lib/shared/ui/formControlElements/editorControl/index.ts +0 -60
  281. package/lib/shared/ui/formControlElements/editorControl/ui/RemoveBlockButton.tsx +0 -23
  282. package/lib/shared/ui/formControlElements/editorControl/ui/ResetBlockType.tsx +0 -17
  283. package/lib/shared/ui/formControlElements/inputControl/InputControl.tsx +0 -87
  284. package/lib/shared/ui/formControlElements/inputControl/model/hooks.tsx +0 -26
  285. package/lib/shared/ui/formControlElements/inputControlUploader/InputControlUploader.tsx +0 -47
  286. package/lib/shared/ui/formControlElements/inputControlUploader/model/helpers.ts +0 -18
  287. package/lib/shared/ui/formControlElements/inputControlUploader/model/hooks/useUploader.tsx +0 -66
  288. package/lib/shared/ui/formControlElements/inputControlUploader/model/types.ts +0 -22
  289. package/lib/shared/ui/formControlElements/inputControlUploader/ui/File.tsx +0 -35
  290. package/lib/shared/ui/formControlElements/inputControlUploader/ui/Filename.tsx +0 -40
  291. package/lib/shared/ui/formControlElements/inputControlUploader/ui/Files.tsx +0 -30
  292. package/lib/shared/ui/formControlElements/inputControlUploader/ui/Input.tsx +0 -48
  293. package/lib/shared/ui/formControlElements/inputControlUploader/ui/Uploader.tsx +0 -58
  294. package/lib/shared/ui/formControlElements/inputControlUploader/ui/index.ts +0 -3
  295. package/lib/shared/ui/formControlElements/inputCurrencyControl/InputCurrencyControl.tsx +0 -88
  296. package/lib/shared/ui/formControlElements/inputCurrencyControl/model/helpers.ts +0 -46
  297. package/lib/shared/ui/formControlElements/inputCurrencyControl/model/useInputCurrency.tsx +0 -33
  298. package/lib/shared/ui/formControlElements/inputCurrencyControl/ui/MenuTrigger.tsx +0 -20
  299. package/lib/shared/ui/formControlElements/inputCurrencyControl/ui/OptionList.tsx +0 -29
  300. package/lib/shared/ui/formControlElements/inputCurrencyControl/ui/index.ts +0 -2
  301. package/lib/shared/ui/formControlElements/inputSliderControl/InputSliderControl.tsx +0 -144
  302. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/dates/getEndWordMonth.ts +0 -14
  303. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/dates/getYearEnding.ts +0 -13
  304. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/dates/index.ts +0 -2
  305. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/formatNumber.ts +0 -6
  306. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/getInputSliderSuffix.ts +0 -20
  307. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/getStepByVariant.ts +0 -29
  308. package/lib/shared/ui/formControlElements/inputSliderControl/model/helpers/index.ts +0 -4
  309. package/lib/shared/ui/formControlElements/inputSliderControl/model/types.ts +0 -1
  310. package/lib/shared/ui/formControlElements/inputSliderControl/model/useSlider.ts +0 -26
  311. package/lib/shared/ui/formControlElements/inputSliderControl/ui/SliderControl.tsx +0 -47
  312. package/lib/shared/ui/formControlElements/inputSliderControl/ui/index.ts +0 -1
  313. package/lib/shared/ui/formControlElements/model/classes-types.ts +0 -22
  314. package/lib/shared/ui/formControlElements/model/index.ts +0 -2
  315. package/lib/shared/ui/formControlElements/model/message-view-animation.ts +0 -6
  316. package/lib/shared/ui/formControlElements/model/props-types.ts +0 -31
  317. package/lib/shared/ui/formControlElements/ui/FieldAttachment.tsx +0 -76
  318. package/lib/shared/ui/formControlElements/ui/FieldContainer.tsx +0 -37
  319. package/lib/shared/ui/formControlElements/ui/FieldWrapper.tsx +0 -33
  320. package/lib/shared/ui/formControlElements/ui/Label.tsx +0 -32
  321. package/lib/shared/ui/formControlElements/ui/MessageView.tsx +0 -41
  322. package/lib/shared/ui/formControlElements/ui/index.ts +0 -4
  323. package/lib/shared/ui/icon/Icon.tsx +0 -41
  324. package/lib/shared/ui/icon/sprite.gen.ts +0 -177
  325. package/lib/shared/ui/index.ts +0 -68
  326. package/lib/shared/ui/modal/Modal.tsx +0 -68
  327. package/lib/shared/ui/modal/index.ts +0 -1
  328. package/lib/shared/ui/modal/model/helpers.ts +0 -13
  329. package/lib/shared/ui/modal/ui/ModalHeader.tsx +0 -33
  330. package/lib/shared/ui/notification/Notification.tsx +0 -31
  331. package/lib/shared/ui/notification/ui/CustomToast.tsx +0 -42
  332. package/lib/shared/ui/popover/Popover.tsx +0 -74
  333. package/lib/shared/ui/popover/index.ts +0 -1
  334. package/lib/shared/ui/providers/NotificationProvider.tsx +0 -29
  335. package/lib/shared/ui/table/Table.tsx +0 -144
  336. package/lib/shared/ui/table/index.ts +0 -1
  337. package/lib/shared/ui/table/type.ts +0 -30
  338. package/lib/shared/utils/capitalize.ts +0 -6
  339. package/lib/shared/utils/cn.ts +0 -6
  340. package/lib/shared/utils/deepCompare.ts +0 -1
  341. package/lib/shared/utils/formatToDate.ts +0 -5
  342. package/lib/shared/utils/index.ts +0 -5
  343. package/lib/shared/utils/isClient.ts +0 -1
  344. package/lib/shared/validation/index.ts +0 -3
  345. package/lib/shared/validation/messages.ts +0 -12
  346. package/lib/shared/validation/regExp.ts +0 -5
  347. package/lib/shared/validation/zodValidation/calendar.ts +0 -32
  348. package/lib/shared/validation/zodValidation/dadataFio.ts +0 -67
  349. package/lib/shared/validation/zodValidation/index.ts +0 -2
  350. package/lib/vite-env.d.ts +0 -2
  351. package/lib/widgets/Advantages.tsx +0 -45
  352. package/lib/widgets/banner/Banner.tsx +0 -74
  353. package/lib/widgets/banner/index.ts +0 -1
  354. package/lib/widgets/banner/model/helpers.ts +0 -159
  355. package/lib/widgets/banner/money.png +0 -0
  356. package/lib/widgets/banner/saif.jpg +0 -0
  357. package/lib/widgets/banner/saifMob.jpg +0 -0
  358. package/lib/widgets/banner/seif.jpg +0 -0
  359. package/lib/widgets/banner/shield.jpg +0 -0
  360. package/lib/widgets/banner/shield.png +0 -0
  361. package/lib/widgets/banner/ui/BannerButtonsGroup.tsx +0 -44
  362. package/lib/widgets/banner/ui/banners/BannerImageFull.tsx +0 -82
  363. package/lib/widgets/banner/ui/banners/BannerWithSeparateImg.tsx +0 -60
  364. package/lib/widgets/banner/ui/banners/index.ts +0 -1
  365. package/lib/widgets/footer/Footer.tsx +0 -95
  366. package/lib/widgets/footer/index.ts +0 -1
  367. package/lib/widgets/footer/model/defaultValues.tsx +0 -105
  368. package/lib/widgets/footer/model/types.ts +0 -19
  369. package/lib/widgets/footer/ui/Copyright.tsx +0 -15
  370. package/lib/widgets/footer/ui/Ligal.tsx +0 -50
  371. package/lib/widgets/footer/ui/NavLinks.tsx +0 -41
  372. package/lib/widgets/footer/ui/PhonesBlock.tsx +0 -34
  373. package/lib/widgets/footer/ui/SocialLinks.tsx +0 -30
  374. package/lib/widgets/pageHeader/PageHeader.tsx +0 -54
  375. package/lib/widgets/stepper/Stepper.tsx +0 -43
  376. package/lib/widgets/stepper/ui/SingleStep.tsx +0 -42
  377. package/postcss.config.mjs +0 -8
  378. package/src/App.tsx +0 -9
  379. package/src/app/providers/RootProvider.tsx +0 -11
  380. package/src/app/providers/index.ts +0 -1
  381. package/src/app/providers/model/types.ts +0 -5
  382. package/src/configs/setup.ts +0 -9
  383. package/src/configs/storybook.config.ts +0 -23
  384. package/src/main.tsx +0 -10
  385. package/src/stories/primitives/Accordion.stories.tsx +0 -66
  386. package/src/stories/primitives/Badge.stories.tsx +0 -28
  387. package/src/stories/primitives/Breadcrumbs.stories.tsx +0 -29
  388. package/src/stories/primitives/Button/Button.stories.tsx +0 -149
  389. package/src/stories/primitives/Button/Button.test.tsx +0 -150
  390. package/src/stories/primitives/ButtonIcon.stories.tsx +0 -75
  391. package/src/stories/primitives/CustomLink.stories.tsx +0 -64
  392. package/src/stories/primitives/Document.stories.tsx +0 -36
  393. package/src/stories/primitives/Heading.stories.tsx +0 -29
  394. package/src/stories/primitives/Hint.stories.tsx +0 -82
  395. package/src/stories/primitives/Icon.stories.tsx +0 -36
  396. package/src/stories/primitives/Loader.stories.tsx +0 -39
  397. package/src/stories/primitives/Modal.stories.tsx +0 -106
  398. package/src/stories/primitives/Notification.stories.tsx +0 -102
  399. package/src/stories/primitives/PhoneView.stories.tsx +0 -22
  400. package/src/stories/primitives/Popover.stories.tsx +0 -41
  401. package/src/stories/primitives/ProgressBar.stories.tsx +0 -68
  402. package/src/stories/primitives/Skeleton.stories.tsx +0 -21
  403. package/src/stories/primitives/Table.stories.tsx +0 -44
  404. package/src/stories/primitives/TabsSwitcher.stories.tsx +0 -45
  405. package/src/stories/primitives/formControl/CalendarControl.stories.tsx +0 -45
  406. package/src/stories/primitives/formControl/CheckboxControl.stories.tsx +0 -64
  407. package/src/stories/primitives/formControl/ComboboxControl.stories.tsx +0 -67
  408. package/src/stories/primitives/formControl/DadataInputControl.stories.tsx +0 -79
  409. package/src/stories/primitives/formControl/EditorControl.stories.tsx +0 -31
  410. package/src/stories/primitives/formControl/FormControlAllFields.stories.tsx +0 -25
  411. package/src/stories/primitives/formControl/InputControl.stories.tsx +0 -84
  412. package/src/stories/primitives/formControl/InputControlPassword.stories.tsx +0 -38
  413. package/src/stories/primitives/formControl/InputControlUploader.stories.tsx +0 -44
  414. package/src/stories/primitives/formControl/InputCurrencyControl.stories.tsx +0 -73
  415. package/src/stories/primitives/formControl/InputSliderControl.stories.tsx +0 -62
  416. package/src/stories/primitives/formControl/RadioContol.stories.tsx +0 -61
  417. package/src/stories/primitives/formControl/SwitchControl.stories.tsx +0 -51
  418. package/src/stories/primitives/formControl/TextareaControl.stories.tsx +0 -55
  419. package/src/stories/primitives/formControl/inputControlMask.stories.tsx +0 -67
  420. package/src/stories/widgets/Advantages.stories.tsx +0 -42
  421. package/src/stories/widgets/Banner.stories.tsx +0 -94
  422. package/src/stories/widgets/Footer.stories.tsx +0 -36
  423. package/src/stories/widgets/PageHeader.stories.tsx +0 -33
  424. package/src/stories/widgets/Stepper.stories.tsx +0 -24
  425. package/src/storybookHelpers/actions.tsx +0 -5
  426. package/src/storybookHelpers/index.ts +0 -2
  427. package/src/storybookHelpers/reactHookForm/index.ts +0 -3
  428. package/src/storybookHelpers/reactHookForm/model/mockData.ts +0 -19
  429. package/src/storybookHelpers/reactHookForm/model/mocks.tsx +0 -105
  430. package/src/storybookHelpers/reactHookForm/model/renderFields.tsx +0 -58
  431. package/src/storybookHelpers/reactHookForm/model/types.ts +0 -86
  432. package/src/storybookHelpers/reactHookForm/ui/StorybookFieldsMapper.tsx +0 -32
  433. package/src/storybookHelpers/reactHookForm/ui/StorybookFormProvider.tsx +0 -43
  434. package/src/storybookHelpers/reactHookForm/ui/index.ts +0 -2
  435. package/src/storybookHelpers/table/utils/defaultValue.ts +0 -51
  436. package/static/arrows/arrowCircle.svg +0 -18
  437. package/static/arrows/arrowLink.svg +0 -3
  438. package/static/arrows/arrowRight.svg +0 -3
  439. package/static/brandLogos/logoBlack.svg +0 -14
  440. package/static/brandLogos/logoBusiness.svg +0 -80
  441. package/static/brandLogos/logoGray.svg +0 -56
  442. package/static/brandLogos/logoInsurance.svg +0 -124
  443. package/static/brandLogos/logoMain.svg +0 -14
  444. package/static/brandLogos/logoWhite.svg +0 -56
  445. package/static/files/border.svg +0 -6
  446. package/static/files/borderError.svg +0 -6
  447. package/static/files/documentFilled.svg +0 -4
  448. package/static/files/documentOutline.svg +0 -4
  449. package/static/files/upload.svg +0 -3
  450. package/static/general/calendar.svg +0 -3
  451. package/static/general/check.svg +0 -6
  452. package/static/general/close.svg +0 -12
  453. package/static/general/edit.svg +0 -4
  454. package/static/general/hiddenEye.svg +0 -4
  455. package/static/general/plus.svg +0 -3
  456. package/static/general/showEye.svg +0 -4
  457. package/static/info/warningCircle.svg +0 -5
  458. package/static/social/classmates.svg +0 -3
  459. package/static/social/telegram.svg +0 -3
  460. package/static/social/vk.svg +0 -3
  461. package/tailwind.config.ts +0 -10
  462. package/tsconfig.json +0 -33
  463. package/tsconfig.node.json +0 -11
  464. package/vite.config.ts +0 -68
  465. package/vitest.config.mjs +0 -12
  466. /package/{public → dist}/sprites/arrows.svg +0 -0
  467. /package/{public → dist}/sprites/brandLogos.svg +0 -0
  468. /package/{public → dist}/sprites/files.svg +0 -0
  469. /package/{public → dist}/sprites/general.svg +0 -0
  470. /package/{public → dist}/sprites/info.svg +0 -0
  471. /package/{public → dist}/sprites/social.svg +0 -0
package/dist/hybrid.js ADDED
@@ -0,0 +1,3939 @@
1
+ import { p as Fe, j as g, c as x, H as mt, a as L, I as Me, L as ht, i as yt, g as We } from "./Notification-BGmp0XMG.js";
2
+ import { B as nn, D as an, d as sn, N as on, b as dn } from "./Notification-BGmp0XMG.js";
3
+ import { forwardRef as qe } from "react";
4
+ const $r = (r, e) => JSON.stringify(r) === JSON.stringify(e), je = (r) => r.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), Vr = (r, e = "dd.MM.yyyy") => Fe(r, e, /* @__PURE__ */ new Date()), Pr = ({ children: r, className: e, ...t }) => /* @__PURE__ */ g.jsx("section", { className: x("pb-16 desktop:pb-20", e), ...t, children: r }), gt = ({ children: r, className: e, ...t }) => /* @__PURE__ */ g.jsx("div", { className: x("m-auto w-full px-4 desktop:max-w-[1188px]", e), ...t, children: r }), vt = L("grid", {
5
+ variants: {
6
+ columnCount: {
7
+ twoColumns: "grid-cols-[repeat(2,minmax(172px,_1fr))] desktop:grid-cols-[repeat(2,minmax(172px,_1fr))]",
8
+ threeColumns: "grid-cols-[repeat(3,minmax(172px,_1fr))] desktop:grid-cols-[repeat(3,minmax(312px,_1fr))]"
9
+ }
10
+ }
11
+ }), _t = L("grid", {
12
+ variants: {
13
+ columnCount: {
14
+ twoColumns: "",
15
+ threeColumns: ""
16
+ },
17
+ titlesExist: {
18
+ exist: "",
19
+ notExist: ""
20
+ }
21
+ },
22
+ compoundVariants: [
23
+ {
24
+ titlesExist: "notExist",
25
+ columnCount: "twoColumns",
26
+ class: "grid-rows-[repeat(2,_auto)] border-b border-warm-grey-200 py-4"
27
+ },
28
+ {
29
+ titlesExist: "notExist",
30
+ columnCount: "threeColumns",
31
+ class: "grid-cols-[repeat(3,_auto)]"
32
+ },
33
+ {
34
+ titlesExist: "exist",
35
+ columnCount: "twoColumns",
36
+ class: "grid-cols-[repeat(2,_auto)]"
37
+ },
38
+ {
39
+ titlesExist: "exist",
40
+ columnCount: "threeColumns",
41
+ class: "grid-cols-[repeat(3,_auto)]"
42
+ }
43
+ ]
44
+ }), xt = L("grid", {
45
+ variants: {
46
+ columnCount: {
47
+ twoColumns: "",
48
+ threeColumns: ""
49
+ }
50
+ },
51
+ compoundVariants: [
52
+ {
53
+ columnCount: "threeColumns",
54
+ class: "mobile:overflow-x-scroll mobile:max-w-[368px] mb-1"
55
+ }
56
+ ]
57
+ }), bt = L("border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l mob-body-regular-l", {
58
+ variants: {
59
+ columnCount: {
60
+ twoColumns: "",
61
+ threeColumns: ""
62
+ },
63
+ titlesExist: {
64
+ exist: "",
65
+ notExist: ""
66
+ }
67
+ },
68
+ compoundVariants: [
69
+ {
70
+ titlesExist: "notExist",
71
+ columnCount: "twoColumns",
72
+ class: "border-transparent border-0 p-0"
73
+ }
74
+ ]
75
+ }), zr = ({
76
+ headTitle: r,
77
+ tableRows: e,
78
+ tableHead: t,
79
+ additionalText: n,
80
+ columnCount: a,
81
+ classes: s
82
+ }) => {
83
+ const i = t && t.length > 0 ? "exist" : "notExist";
84
+ return /* @__PURE__ */ g.jsx(gt, { children: /* @__PURE__ */ g.jsxs("div", { className: x("flex flex-col", s == null ? void 0 : s.tableRootWrapper), children: [
85
+ /* @__PURE__ */ g.jsx(mt, { as: "h3", className: x("mob-title-bold-m pb-6 desktop:desk-title-bold-s", s == null ? void 0 : s.tableHeading), children: r }),
86
+ /* @__PURE__ */ g.jsxs("div", { className: x(xt({ columnCount: a }), s == null ? void 0 : s.tableBody), children: [
87
+ /* @__PURE__ */ g.jsx("ul", { className: x(vt({ columnCount: a }), s == null ? void 0 : s.tableTitlesContainer), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ g.jsx(
88
+ "li",
89
+ {
90
+ className: x(
91
+ "mob-body-regular-l border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l",
92
+ s == null ? void 0 : s.tableTitleRow
93
+ ),
94
+ children: o
95
+ },
96
+ o
97
+ )) }),
98
+ /* @__PURE__ */ g.jsx("ul", { className: x("mb-4 flex flex-col", s == null ? void 0 : s.tableBodyContainer), children: e.map((o, c) => /* @__PURE__ */ g.jsx("li", { className: x(_t({ columnCount: a, titlesExist: i }), s == null ? void 0 : s.tableBodyRow), children: o.map((l, m) => /* @__PURE__ */ g.jsx("p", { className: x(bt({ titlesExist: i, columnCount: a }), s == null ? void 0 : s.tableBodyCeil), children: l.text }, m)) }, c)) })
99
+ ] }),
100
+ /* @__PURE__ */ g.jsx("p", { className: x("mob-body-regular-m desktop:desk-body-regular-l", s == null ? void 0 : s.tableAdditionalText), children: n })
101
+ ] }) });
102
+ }, Br = ({ linksList: r }) => /* @__PURE__ */ g.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: r.map((e) => /* @__PURE__ */ g.jsx(g.Fragment, { children: "path" in e ? /* @__PURE__ */ g.jsxs(
103
+ "div",
104
+ {
105
+ className: x(
106
+ "flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
107
+ { "pointer-events-none !border-transparent": e == null ? void 0 : e.isDisabled }
108
+ ),
109
+ children: [
110
+ /* @__PURE__ */ g.jsx(
111
+ "a",
112
+ {
113
+ href: e.path,
114
+ target: "_blank",
115
+ rel: "noreferrer",
116
+ className: x(
117
+ "desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
118
+ { "!text-color-disabled": e == null ? void 0 : e.isDisabled }
119
+ ),
120
+ children: e.label
121
+ }
122
+ ),
123
+ /* @__PURE__ */ g.jsx(
124
+ Me,
125
+ {
126
+ name: "arrows/arrowRight",
127
+ className: x("size-4 text-icon-primary-default", { "!text-icon-disabled": e == null ? void 0 : e.isDisabled })
128
+ }
129
+ )
130
+ ]
131
+ }
132
+ ) : /* @__PURE__ */ g.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: e.label }) })) }), wt = (r) => {
133
+ switch (r) {
134
+ case "ghost":
135
+ case "secondary":
136
+ return "secondary";
137
+ case "primary":
138
+ case "negative":
139
+ return "primary";
140
+ default:
141
+ return r;
142
+ }
143
+ }, kt = L(
144
+ "relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
145
+ {
146
+ variants: {
147
+ intent: {
148
+ primary: "bg-color-primary-default text-color-white outline-offset-[3px] hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-default focus:outline-primary-focus disabled:bg-color-primary-disabled",
149
+ secondary: "bg-transparent text-color-primary-default border border-solid border-primary-default hover:bg-color-primary-tr-hover active:bg-color-primary-tr-pressed active:border-primary-hover focus:outline-primary-focus focus:bg-color-primary-tr-focus disabled:bg-color-blue-grey-200 disabled:text-color-primary-disabled disabled:border-transparent",
150
+ ghost: "bg-transparent text-color-primary-default hover:bg-color-primary-tr-hover hover:text-color-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:bg-color-primary-tr-pressed active:text-color-primary-hover disabled:text-color-primary-disabled disabled:bg-transparent",
151
+ negative: "bg-color-secondary-default text-color-white outline-offset-[3px] hover:bg-color-secondary-hover disabled:bg-color-secondary-disabled active:bg-color-secondary-hover focus:bg-color-secondary-default focus:outline-primary-focus"
152
+ },
153
+ size: {
154
+ sm: "h-10",
155
+ md: "h-12",
156
+ lg: "h-14"
157
+ },
158
+ textFormat: {
159
+ capitalize: "capitalize",
160
+ uppercase: "uppercase",
161
+ lowercase: "lowercase",
162
+ initial: "initial"
163
+ },
164
+ isFull: {
165
+ true: "w-full px-4"
166
+ },
167
+ isLoading: {
168
+ true: "",
169
+ false: ""
170
+ }
171
+ },
172
+ compoundVariants: [
173
+ {
174
+ intent: "primary",
175
+ isLoading: !0,
176
+ class: "!bg-color-primary-default"
177
+ },
178
+ {
179
+ intent: "secondary",
180
+ isLoading: !0,
181
+ class: "!bg-color-transparent !border-primary-hover"
182
+ },
183
+ {
184
+ intent: "ghost",
185
+ isLoading: !0,
186
+ class: "!bg-color-blue-grey-200"
187
+ },
188
+ {
189
+ intent: "negative",
190
+ isLoading: !0,
191
+ class: "!bg-color-secondary-default"
192
+ }
193
+ ],
194
+ defaultVariants: {
195
+ intent: "primary",
196
+ size: "md",
197
+ textFormat: "initial",
198
+ isFull: !1
199
+ }
200
+ }
201
+ ), Ur = qe(
202
+ ({
203
+ intent: r,
204
+ size: e,
205
+ className: t,
206
+ children: n,
207
+ type: a = "button",
208
+ iconLeft: s,
209
+ iconRight: i,
210
+ disabled: o = !1,
211
+ isLoading: c = !1,
212
+ isFull: l = !1,
213
+ textFormat: m,
214
+ ...C
215
+ }, ye) => /* @__PURE__ */ g.jsx(
216
+ "button",
217
+ {
218
+ ref: ye,
219
+ type: a,
220
+ disabled: o || c,
221
+ className: x(kt({ intent: r, size: e, textFormat: m, isLoading: c, isFull: l }), t),
222
+ ...C,
223
+ children: c ? /* @__PURE__ */ g.jsx(ht, { size: "sm", intent: wt(r) }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
224
+ s && /* @__PURE__ */ g.jsx("span", { className: "flex size-5 items-center justify-center", children: s }),
225
+ n,
226
+ i && /* @__PURE__ */ g.jsx("span", { className: "flex size-5 items-center justify-center", children: i })
227
+ ] })
228
+ }
229
+ )
230
+ ), Tt = L(
231
+ "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
232
+ {
233
+ variants: {
234
+ intent: {
235
+ primary: "text-icon-white bg-color-primary-default hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-hover focus:outline-primary-focus disabled:bg-color-primary-disabled",
236
+ secondary: "text-icon-primary-default bg-color-transparent border border-solid outline-offset-4 border-primary-default hover:bg-color-primary-tr-hover hover:text-icon-primary-default hover:border-primary-hover active:bg-color-primary-tr-pressed active:border-primary-hover active:text-icon-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus disabled:bg-color-blue-grey-200 disabled:border-transparent disabled:text-icon-primary-disabled",
237
+ ghost: "text-icon-primary-default bg-color-transparent hover:bg-color-primary-tr-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:text-icon-primary-hover active:bg-color-primary-tr-pressed disabled:bg-color-transparent disabled:text-icon-primary-disabled"
238
+ },
239
+ size: {
240
+ sm: "size-8",
241
+ md: "size-10",
242
+ lg: "size-12"
243
+ }
244
+ },
245
+ defaultVariants: {
246
+ intent: "primary",
247
+ size: "lg"
248
+ }
249
+ }
250
+ ), Fr = qe(
251
+ ({ size: r, intent: e, children: t, classes: n, type: a = "button", ...s }, i) => /* @__PURE__ */ g.jsx("button", { ref: i, type: a, className: x(Tt({ intent: e, size: r }), n == null ? void 0 : n.button), ...s, children: /* @__PURE__ */ g.jsx("span", { className: x(n == null ? void 0 : n.icon), children: t }) })
252
+ ), Ct = L(
253
+ "group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
254
+ {
255
+ variants: {
256
+ intent: {
257
+ blue: "text-color-primary-default hover:text-color-primary-hover focus:text-color-primary-default focus:border-primary-focus",
258
+ white: "text-color-white hover:text-color-footer focus:text-color-white focus:border-primary-focus"
259
+ },
260
+ withIcon: {
261
+ true: "flex items-center gap-1",
262
+ false: ""
263
+ },
264
+ disabled: {
265
+ true: "!text-color-primary-disabled pointer-events-none !border-transparent",
266
+ false: ""
267
+ },
268
+ size: {
269
+ sm: "desk-body-regular-m",
270
+ md: "desk-body-regular-l"
271
+ }
272
+ },
273
+ defaultVariants: {
274
+ intent: "blue",
275
+ withIcon: !0,
276
+ disabled: !1,
277
+ size: "sm"
278
+ }
279
+ }
280
+ ), Nt = L("size-6", {
281
+ variants: {
282
+ intent: {
283
+ blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
284
+ white: "text-icon-white group-hover:text-icon-footer group-focus:text-icon-white"
285
+ },
286
+ disabled: {
287
+ true: "!text-icon-primary-disabled pointer-events-none",
288
+ false: ""
289
+ }
290
+ },
291
+ defaultVariants: {
292
+ intent: "blue",
293
+ disabled: !1
294
+ }
295
+ }), Wr = ({
296
+ Component: r = "a",
297
+ intent: e,
298
+ children: t,
299
+ withIcon: n,
300
+ disabled: a,
301
+ size: s,
302
+ icon: i = "arrows/arrowLink",
303
+ ...o
304
+ }) => /* @__PURE__ */ g.jsxs(r, { className: x(Ct({ intent: e, withIcon: n, disabled: a, size: s })), ...o, children: [
305
+ t,
306
+ n && /* @__PURE__ */ g.jsx(Me, { name: i, className: x(Nt({ intent: e, disabled: a })) })
307
+ ] }), Et = L("size-8 transition-colors", {
308
+ variants: {
309
+ intent: {
310
+ outline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
311
+ filled: "text-icon-primary-default group-hover:text-icon-primary-hover"
312
+ }
313
+ },
314
+ defaultVariants: {
315
+ intent: "outline"
316
+ }
317
+ }), Zt = {
318
+ filled: "files/documentFilled",
319
+ outline: "files/documentOutline"
320
+ }, qr = ({ text: r, size: e, sizeType: t, href: n, intent: a = "outline" }) => /* @__PURE__ */ g.jsxs(
321
+ "a",
322
+ {
323
+ href: n,
324
+ target: "_blank",
325
+ rel: "noreferrer",
326
+ tabIndex: 0,
327
+ className: x(
328
+ "group flex max-w-[288px] cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus desktop:max-w-[592px]"
329
+ ),
330
+ children: [
331
+ /* @__PURE__ */ g.jsx(Me, { name: Zt[a], className: x(Et({ intent: a })) }),
332
+ /* @__PURE__ */ g.jsxs("div", { className: x("flex flex-1 flex-col"), children: [
333
+ /* @__PURE__ */ g.jsx("p", { className: x("desk-body-medium-l text-color-dark"), children: r }),
334
+ /* @__PURE__ */ g.jsxs("div", { className: x("desk-body-regular-m text-color-disabled"), children: [
335
+ e,
336
+ " ",
337
+ t
338
+ ] })
339
+ ] })
340
+ ]
341
+ }
342
+ ), Gr = ({ phone: r, text: e, classes: t }) => /* @__PURE__ */ g.jsxs("div", { className: x("flex w-max flex-col", t == null ? void 0 : t.wrapper), children: [
343
+ /* @__PURE__ */ g.jsx("a", { href: `tel:${r}`, className: x("desk-body-medium-l ml-auto text-color-dark", t == null ? void 0 : t.link), children: r }),
344
+ /* @__PURE__ */ g.jsx("p", { className: x("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.text), children: e })
345
+ ] }), Hr = ({ topContent: r, bottomContent: e, progress: t, maxPercent: n = 100, classes: a }) => /* @__PURE__ */ g.jsxs("div", { className: x("flex flex-col", a == null ? void 0 : a.wrapper), children: [
346
+ r && /* @__PURE__ */ g.jsx("div", { className: x("mb-2 flex justify-between gap-5", a == null ? void 0 : a.topContent), children: r }),
347
+ /* @__PURE__ */ g.jsxs("div", { className: x("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", a == null ? void 0 : a.progressBar), children: [
348
+ /* @__PURE__ */ g.jsx(
349
+ "div",
350
+ {
351
+ style: { width: `${t}%` },
352
+ className: x("relative z-10 h-2 rounded-md bg-color-positive transition-all", a == null ? void 0 : a.progress)
353
+ }
354
+ ),
355
+ /* @__PURE__ */ g.jsx(
356
+ "span",
357
+ {
358
+ style: { maxWidth: `${n}%` },
359
+ className: x(
360
+ "progressBar-apply absolute top-1/2 z-1 h-full w-full -translate-y-1/2 animate-progress-loader rounded-md",
361
+ a == null ? void 0 : a.loader
362
+ )
363
+ }
364
+ )
365
+ ] }),
366
+ e && /* @__PURE__ */ g.jsx("div", { className: x("mt-2 flex justify-between gap-5", a == null ? void 0 : a.bottomContent), children: e })
367
+ ] }), Jr = ({ className: r }) => /* @__PURE__ */ g.jsx("div", { className: x("skeleton-apply h-full w-full", r) }), me = {
368
+ transparent: "transparent",
369
+ current: "currentColor",
370
+ inherit: "inherit",
371
+ initial: "initial"
372
+ }, ve = {
373
+ "blue-grey-100": "#f3f4f7",
374
+ "blue-grey-200": "#eaedf1",
375
+ "blue-grey-300": "#d4dbe2",
376
+ "blue-grey-500": "#a9b6c5",
377
+ footer: "#40465a",
378
+ negative: "#f42500",
379
+ "negative-light": "#ffd2ca",
380
+ positive: "#76bc21",
381
+ "positive-light": "#e4f6ce",
382
+ "primary-default": "#003790",
383
+ "primary-focus": "#2477ff",
384
+ "primary-hover": "#042e73",
385
+ "primary-light-default": "#f0f4f9",
386
+ "primary-tr-focus": "#0037901f",
387
+ "primary-tr-hover": "#00379014",
388
+ "primary-tr-pressed": "#00379033",
389
+ "secondary-default": "#fc5055",
390
+ "secondary-hover": "#f12f34",
391
+ warning: "#f49f00",
392
+ "warning-light": "#ffeecc",
393
+ white: "#ffffff",
394
+ "primary-disabled": "#809bc7",
395
+ "secondary-disabled": "#FFB7BF",
396
+ dark: "#000000",
397
+ purple: "#5f40bd",
398
+ "purple-hover": "#52399d",
399
+ overlay: "#0000004d",
400
+ ...me
401
+ }, Ge = {
402
+ dark: "#292929",
403
+ disabled: "#a9b6c5",
404
+ footer: "#c3c3c3",
405
+ negative: "#f42500",
406
+ positive: "#76bc21",
407
+ "primary-default": "#003790",
408
+ "primary-hover": "#042e73",
409
+ secondary: "#40465a",
410
+ tetriary: "#5a6e85",
411
+ warning: "#f49f00",
412
+ white: "#ffffff",
413
+ "primary-disabled": "#809bc7",
414
+ "blue-grey-600": "#94a4b7",
415
+ ...me
416
+ }, He = {
417
+ "barvcray-200": "#ebeef4",
418
+ "barvcray-300": "#dde1e8",
419
+ "greymint-200": "#deecee",
420
+ "lavender-100": "#f7f7ff",
421
+ "lavender-200": "#ecedfa",
422
+ "lavender-300": "#d0d3f1",
423
+ "lightblue-300": "#bed3ec",
424
+ "mint-200": "#e4f5ed",
425
+ "salmon-200": "#faecec",
426
+ "skyblue-100": "#f4f8fe",
427
+ "skyblue-200": "#e7f3ff",
428
+ "skyblue-300": "#d9edff",
429
+ ...me
430
+ }, $ = {
431
+ "accent-default": "#2477ff",
432
+ "accent-hover": "#0053da",
433
+ "blue-grey-100": "#f3f4f7",
434
+ "blue-grey-600": "#94a4b7",
435
+ "blue-grey-700": "#69809a",
436
+ "blue-grey-800": "#5a6e85",
437
+ "dark-default": "#292929",
438
+ "dark-hover": "#535353",
439
+ disabled: "#a9b6c5",
440
+ "negative-default": "#f42500",
441
+ "negative-hover": "#c31e00",
442
+ "positive-default": "#76bc21",
443
+ "positive-hover": "#598d19",
444
+ "primary-default": "#003790",
445
+ "primary-hover": "#042e73",
446
+ "secondary-dark-default": "#f12f34",
447
+ "secondary-dark-hover": "#c40309",
448
+ "secondary-default": "#fc5055",
449
+ "secondary-hover": "#f12f34",
450
+ "warning-default": "#f49f00",
451
+ "warning-hover": "#d68b00",
452
+ white: "#ffffff",
453
+ "primary-disabled": "#809bc7",
454
+ footer: "#C3C3C3",
455
+ ...me
456
+ }, _e = {
457
+ "blue-grey-500": "#a9b6c5",
458
+ "blue-grey-700": "#69809a",
459
+ "blue-grey-800": "#5a6e85",
460
+ dark: "#292929",
461
+ negative: "#f42500",
462
+ positive: "#76bc21",
463
+ "primary-default": "#003790",
464
+ "primary-focus": "#2477ff",
465
+ "primary-hover": "#042e73",
466
+ "primary-light": "#f0f4f9",
467
+ "secondary-default": "#fc5055",
468
+ "secondary-hover": "#f12f34",
469
+ "warm-grey-200": "#e4e4e4",
470
+ "warm-grey-300": "#c3c3c3",
471
+ warning: "#f49f00",
472
+ white: "#ffffff",
473
+ "primary-disabled": "#809bc7",
474
+ ...me
475
+ }, Je = {
476
+ none: "0",
477
+ sm: "4px",
478
+ md: "8px",
479
+ lg: "16px",
480
+ full: "9999px"
481
+ }, Ye = {
482
+ 30: "30deg",
483
+ 45: "45deg",
484
+ 80: "80deg",
485
+ 90: "90deg",
486
+ 110: "110deg",
487
+ 180: "180deg"
488
+ }, St = {
489
+ 0: "0",
490
+ 1: "1",
491
+ 10: "10",
492
+ 30: "30",
493
+ 50: "50",
494
+ 100: "100",
495
+ 250: "250",
496
+ 500: "500",
497
+ 1e3: "1000"
498
+ }, Xe = {
499
+ 12: "12px",
500
+ 14: "14px",
501
+ 16: "16px",
502
+ 18: "18px",
503
+ 20: "20px",
504
+ 24: "24px",
505
+ 28: "28px",
506
+ 32: "32px",
507
+ 40: "40px"
508
+ }, Qe = {
509
+ 16: "16px",
510
+ 20: "20px",
511
+ 22: "22px",
512
+ 24: "24px",
513
+ 30: "30px",
514
+ 32: "32px",
515
+ 40: "40px",
516
+ 48: "48px"
517
+ }, Ke = {
518
+ /* # Headline */
519
+ ".mob-headline-bold-m": {
520
+ "@apply font-bold text-28 leading-32": ""
521
+ },
522
+ ".mob-headline-bold-s": {
523
+ "@apply font-bold text-24 leading-30": ""
524
+ },
525
+ /* # Title */
526
+ ".mob-title-bold-l": {
527
+ "@apply font-bold text-20 leading-24": ""
528
+ },
529
+ ".mob-title-bold-m": {
530
+ "@apply font-bold text-18 leading-22": ""
531
+ },
532
+ /* # Body */
533
+ ".mob-body-medium-l": {
534
+ "@apply font-medium text-16 leading-22": ""
535
+ },
536
+ ".mob-body-regular-l": {
537
+ "@apply font-normal text-16 leading-22": ""
538
+ },
539
+ ".mob-body-medium-m": {
540
+ "@apply font-medium text-14 leading-20": ""
541
+ },
542
+ ".mob-body-regular-m": {
543
+ "@apply font-normal text-14 leading-20": ""
544
+ },
545
+ ".mob-body-regular-s": {
546
+ "@apply font-normal text-12 leading-20": ""
547
+ },
548
+ /* -------- Desktop Typography -------- */
549
+ /* # Headline */
550
+ ".desk-headline-bold-l": {
551
+ "@apply font-bold text-40 leading-48": ""
552
+ },
553
+ ".desk-headline-bold-m": {
554
+ "@apply font-bold text-32 leading-40": ""
555
+ },
556
+ /* # Title */
557
+ ".desk-title-bold-l": {
558
+ "@apply font-bold text-24 leading-30": ""
559
+ },
560
+ ".desk-title-bold-s": {
561
+ "@apply font-bold text-18 leading-22": ""
562
+ },
563
+ /* # Body */
564
+ ".desk-body-medium-l": {
565
+ "@apply font-medium text-16 leading-22": ""
566
+ },
567
+ ".desk-body-regular-l": {
568
+ "@apply font-normal text-16 leading-22": ""
569
+ },
570
+ ".desk-body-regular-m": {
571
+ "@apply font-normal text-14 leading-20": ""
572
+ },
573
+ ".desk-body-regular-s": {
574
+ "@apply font-normal text-12 leading-16": ""
575
+ }
576
+ }, jt = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, Ve = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, It = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, ge = {
577
+ REQUIRED: "Поле обязательно к заполнению",
578
+ MIN_LENGTH: "Минимальная длина символов должна быть не менее",
579
+ MAX_LENGTH: "Максимальная длина символов должна быть не более",
580
+ FIX_LENGTH: "Длина символов должна быть равна",
581
+ MAX_LENGTH_ELEMENTS: "Максимальное количество элементов должно быть не более",
582
+ MIN_LENGTH_ELEMENTS: "Минимальное количество элементов должно быть не менее",
583
+ FIX_LENGTH_ELEMENTS: "Количество элементов должно быть равно",
584
+ INVALID_VALUE: "Поле заполнено некорректно",
585
+ INVALID_DATE: "Введите корректную дату",
586
+ FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
587
+ };
588
+ var b;
589
+ (function(r) {
590
+ r.assertEqual = (a) => a;
591
+ function e(a) {
592
+ }
593
+ r.assertIs = e;
594
+ function t(a) {
595
+ throw new Error();
596
+ }
597
+ r.assertNever = t, r.arrayToEnum = (a) => {
598
+ const s = {};
599
+ for (const i of a)
600
+ s[i] = i;
601
+ return s;
602
+ }, r.getValidEnumValues = (a) => {
603
+ const s = r.objectKeys(a).filter((o) => typeof a[a[o]] != "number"), i = {};
604
+ for (const o of s)
605
+ i[o] = a[o];
606
+ return r.objectValues(i);
607
+ }, r.objectValues = (a) => r.objectKeys(a).map(function(s) {
608
+ return a[s];
609
+ }), r.objectKeys = typeof Object.keys == "function" ? (a) => Object.keys(a) : (a) => {
610
+ const s = [];
611
+ for (const i in a)
612
+ Object.prototype.hasOwnProperty.call(a, i) && s.push(i);
613
+ return s;
614
+ }, r.find = (a, s) => {
615
+ for (const i of a)
616
+ if (s(i))
617
+ return i;
618
+ }, r.isInteger = typeof Number.isInteger == "function" ? (a) => Number.isInteger(a) : (a) => typeof a == "number" && isFinite(a) && Math.floor(a) === a;
619
+ function n(a, s = " | ") {
620
+ return a.map((i) => typeof i == "string" ? `'${i}'` : i).join(s);
621
+ }
622
+ r.joinValues = n, r.jsonStringifyReplacer = (a, s) => typeof s == "bigint" ? s.toString() : s;
623
+ })(b || (b = {}));
624
+ var Re;
625
+ (function(r) {
626
+ r.mergeShapes = (e, t) => ({
627
+ ...e,
628
+ ...t
629
+ // second overwrites first
630
+ });
631
+ })(Re || (Re = {}));
632
+ const f = b.arrayToEnum([
633
+ "string",
634
+ "nan",
635
+ "number",
636
+ "integer",
637
+ "float",
638
+ "boolean",
639
+ "date",
640
+ "bigint",
641
+ "symbol",
642
+ "function",
643
+ "undefined",
644
+ "null",
645
+ "array",
646
+ "object",
647
+ "unknown",
648
+ "promise",
649
+ "void",
650
+ "never",
651
+ "map",
652
+ "set"
653
+ ]), M = (r) => {
654
+ switch (typeof r) {
655
+ case "undefined":
656
+ return f.undefined;
657
+ case "string":
658
+ return f.string;
659
+ case "number":
660
+ return isNaN(r) ? f.nan : f.number;
661
+ case "boolean":
662
+ return f.boolean;
663
+ case "function":
664
+ return f.function;
665
+ case "bigint":
666
+ return f.bigint;
667
+ case "symbol":
668
+ return f.symbol;
669
+ case "object":
670
+ return Array.isArray(r) ? f.array : r === null ? f.null : r.then && typeof r.then == "function" && r.catch && typeof r.catch == "function" ? f.promise : typeof Map < "u" && r instanceof Map ? f.map : typeof Set < "u" && r instanceof Set ? f.set : typeof Date < "u" && r instanceof Date ? f.date : f.object;
671
+ default:
672
+ return f.unknown;
673
+ }
674
+ }, d = b.arrayToEnum([
675
+ "invalid_type",
676
+ "invalid_literal",
677
+ "custom",
678
+ "invalid_union",
679
+ "invalid_union_discriminator",
680
+ "invalid_enum_value",
681
+ "unrecognized_keys",
682
+ "invalid_arguments",
683
+ "invalid_return_type",
684
+ "invalid_date",
685
+ "invalid_string",
686
+ "too_small",
687
+ "too_big",
688
+ "invalid_intersection_types",
689
+ "not_multiple_of",
690
+ "not_finite"
691
+ ]), Ot = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
692
+ class N extends Error {
693
+ constructor(e) {
694
+ super(), this.issues = [], this.addIssue = (n) => {
695
+ this.issues = [...this.issues, n];
696
+ }, this.addIssues = (n = []) => {
697
+ this.issues = [...this.issues, ...n];
698
+ };
699
+ const t = new.target.prototype;
700
+ Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
701
+ }
702
+ get errors() {
703
+ return this.issues;
704
+ }
705
+ format(e) {
706
+ const t = e || function(s) {
707
+ return s.message;
708
+ }, n = { _errors: [] }, a = (s) => {
709
+ for (const i of s.issues)
710
+ if (i.code === "invalid_union")
711
+ i.unionErrors.map(a);
712
+ else if (i.code === "invalid_return_type")
713
+ a(i.returnTypeError);
714
+ else if (i.code === "invalid_arguments")
715
+ a(i.argumentsError);
716
+ else if (i.path.length === 0)
717
+ n._errors.push(t(i));
718
+ else {
719
+ let o = n, c = 0;
720
+ for (; c < i.path.length; ) {
721
+ const l = i.path[c];
722
+ c === i.path.length - 1 ? (o[l] = o[l] || { _errors: [] }, o[l]._errors.push(t(i))) : o[l] = o[l] || { _errors: [] }, o = o[l], c++;
723
+ }
724
+ }
725
+ };
726
+ return a(this), n;
727
+ }
728
+ static assert(e) {
729
+ if (!(e instanceof N))
730
+ throw new Error(`Not a ZodError: ${e}`);
731
+ }
732
+ toString() {
733
+ return this.message;
734
+ }
735
+ get message() {
736
+ return JSON.stringify(this.issues, b.jsonStringifyReplacer, 2);
737
+ }
738
+ get isEmpty() {
739
+ return this.issues.length === 0;
740
+ }
741
+ flatten(e = (t) => t.message) {
742
+ const t = {}, n = [];
743
+ for (const a of this.issues)
744
+ a.path.length > 0 ? (t[a.path[0]] = t[a.path[0]] || [], t[a.path[0]].push(e(a))) : n.push(e(a));
745
+ return { formErrors: n, fieldErrors: t };
746
+ }
747
+ get formErrors() {
748
+ return this.flatten();
749
+ }
750
+ }
751
+ N.create = (r) => new N(r);
752
+ const J = (r, e) => {
753
+ let t;
754
+ switch (r.code) {
755
+ case d.invalid_type:
756
+ r.received === f.undefined ? t = "Required" : t = `Expected ${r.expected}, received ${r.received}`;
757
+ break;
758
+ case d.invalid_literal:
759
+ t = `Invalid literal value, expected ${JSON.stringify(r.expected, b.jsonStringifyReplacer)}`;
760
+ break;
761
+ case d.unrecognized_keys:
762
+ t = `Unrecognized key(s) in object: ${b.joinValues(r.keys, ", ")}`;
763
+ break;
764
+ case d.invalid_union:
765
+ t = "Invalid input";
766
+ break;
767
+ case d.invalid_union_discriminator:
768
+ t = `Invalid discriminator value. Expected ${b.joinValues(r.options)}`;
769
+ break;
770
+ case d.invalid_enum_value:
771
+ t = `Invalid enum value. Expected ${b.joinValues(r.options)}, received '${r.received}'`;
772
+ break;
773
+ case d.invalid_arguments:
774
+ t = "Invalid function arguments";
775
+ break;
776
+ case d.invalid_return_type:
777
+ t = "Invalid function return type";
778
+ break;
779
+ case d.invalid_date:
780
+ t = "Invalid date";
781
+ break;
782
+ case d.invalid_string:
783
+ typeof r.validation == "object" ? "includes" in r.validation ? (t = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? t = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? t = `Invalid input: must end with "${r.validation.endsWith}"` : b.assertNever(r.validation) : r.validation !== "regex" ? t = `Invalid ${r.validation}` : t = "Invalid";
784
+ break;
785
+ case d.too_small:
786
+ r.type === "array" ? t = `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "more than"} ${r.minimum} element(s)` : r.type === "string" ? t = `String must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "over"} ${r.minimum} character(s)` : r.type === "number" ? t = `Number must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${r.minimum}` : r.type === "date" ? t = `Date must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(r.minimum))}` : t = "Invalid input";
787
+ break;
788
+ case d.too_big:
789
+ r.type === "array" ? t = `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at most" : "less than"} ${r.maximum} element(s)` : r.type === "string" ? t = `String must contain ${r.exact ? "exactly" : r.inclusive ? "at most" : "under"} ${r.maximum} character(s)` : r.type === "number" ? t = `Number must be ${r.exact ? "exactly" : r.inclusive ? "less than or equal to" : "less than"} ${r.maximum}` : r.type === "bigint" ? t = `BigInt must be ${r.exact ? "exactly" : r.inclusive ? "less than or equal to" : "less than"} ${r.maximum}` : r.type === "date" ? t = `Date must be ${r.exact ? "exactly" : r.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(r.maximum))}` : t = "Invalid input";
790
+ break;
791
+ case d.custom:
792
+ t = "Invalid input";
793
+ break;
794
+ case d.invalid_intersection_types:
795
+ t = "Intersection results could not be merged";
796
+ break;
797
+ case d.not_multiple_of:
798
+ t = `Number must be a multiple of ${r.multipleOf}`;
799
+ break;
800
+ case d.not_finite:
801
+ t = "Number must be finite";
802
+ break;
803
+ default:
804
+ t = e.defaultError, b.assertNever(r);
805
+ }
806
+ return { message: t };
807
+ };
808
+ let et = J;
809
+ function Rt(r) {
810
+ et = r;
811
+ }
812
+ function xe() {
813
+ return et;
814
+ }
815
+ const be = (r) => {
816
+ const { data: e, path: t, errorMaps: n, issueData: a } = r, s = [...t, ...a.path || []], i = {
817
+ ...a,
818
+ path: s
819
+ };
820
+ if (a.message !== void 0)
821
+ return {
822
+ ...a,
823
+ path: s,
824
+ message: a.message
825
+ };
826
+ let o = "";
827
+ const c = n.filter((l) => !!l).slice().reverse();
828
+ for (const l of c)
829
+ o = l(i, { data: e, defaultError: o }).message;
830
+ return {
831
+ ...a,
832
+ path: s,
833
+ message: o
834
+ };
835
+ }, At = [];
836
+ function u(r, e) {
837
+ const t = xe(), n = be({
838
+ issueData: e,
839
+ data: r.data,
840
+ path: r.path,
841
+ errorMaps: [
842
+ r.common.contextualErrorMap,
843
+ r.schemaErrorMap,
844
+ t,
845
+ t === J ? void 0 : J
846
+ // then global default map
847
+ ].filter((a) => !!a)
848
+ });
849
+ r.common.issues.push(n);
850
+ }
851
+ class k {
852
+ constructor() {
853
+ this.value = "valid";
854
+ }
855
+ dirty() {
856
+ this.value === "valid" && (this.value = "dirty");
857
+ }
858
+ abort() {
859
+ this.value !== "aborted" && (this.value = "aborted");
860
+ }
861
+ static mergeArray(e, t) {
862
+ const n = [];
863
+ for (const a of t) {
864
+ if (a.status === "aborted")
865
+ return y;
866
+ a.status === "dirty" && e.dirty(), n.push(a.value);
867
+ }
868
+ return { status: e.value, value: n };
869
+ }
870
+ static async mergeObjectAsync(e, t) {
871
+ const n = [];
872
+ for (const a of t) {
873
+ const s = await a.key, i = await a.value;
874
+ n.push({
875
+ key: s,
876
+ value: i
877
+ });
878
+ }
879
+ return k.mergeObjectSync(e, n);
880
+ }
881
+ static mergeObjectSync(e, t) {
882
+ const n = {};
883
+ for (const a of t) {
884
+ const { key: s, value: i } = a;
885
+ if (s.status === "aborted" || i.status === "aborted")
886
+ return y;
887
+ s.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), s.value !== "__proto__" && (typeof i.value < "u" || a.alwaysSet) && (n[s.value] = i.value);
888
+ }
889
+ return { status: e.value, value: n };
890
+ }
891
+ }
892
+ const y = Object.freeze({
893
+ status: "aborted"
894
+ }), G = (r) => ({ status: "dirty", value: r }), T = (r) => ({ status: "valid", value: r }), Ae = (r) => r.status === "aborted", De = (r) => r.status === "dirty", ee = (r) => r.status === "valid", te = (r) => typeof Promise < "u" && r instanceof Promise;
895
+ function we(r, e, t, n) {
896
+ if (typeof e == "function" ? r !== e || !n : !e.has(r)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
897
+ return e.get(r);
898
+ }
899
+ function tt(r, e, t, n, a) {
900
+ if (typeof e == "function" ? r !== e || !a : !e.has(r)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
901
+ return e.set(r, t), t;
902
+ }
903
+ var p;
904
+ (function(r) {
905
+ r.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, r.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
906
+ })(p || (p = {}));
907
+ var Q, K;
908
+ class O {
909
+ constructor(e, t, n, a) {
910
+ this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = a;
911
+ }
912
+ get path() {
913
+ return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
914
+ }
915
+ }
916
+ const Pe = (r, e) => {
917
+ if (ee(e))
918
+ return { success: !0, data: e.value };
919
+ if (!r.common.issues.length)
920
+ throw new Error("Validation failed but no issues detected.");
921
+ return {
922
+ success: !1,
923
+ get error() {
924
+ if (this._error)
925
+ return this._error;
926
+ const t = new N(r.common.issues);
927
+ return this._error = t, this._error;
928
+ }
929
+ };
930
+ };
931
+ function v(r) {
932
+ if (!r)
933
+ return {};
934
+ const { errorMap: e, invalid_type_error: t, required_error: n, description: a } = r;
935
+ if (e && (t || n))
936
+ throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
937
+ return e ? { errorMap: e, description: a } : { errorMap: (i, o) => {
938
+ var c, l;
939
+ const { message: m } = r;
940
+ return i.code === "invalid_enum_value" ? { message: m ?? o.defaultError } : typeof o.data > "u" ? { message: (c = m ?? n) !== null && c !== void 0 ? c : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (l = m ?? t) !== null && l !== void 0 ? l : o.defaultError };
941
+ }, description: a };
942
+ }
943
+ class _ {
944
+ constructor(e) {
945
+ 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);
946
+ }
947
+ get description() {
948
+ return this._def.description;
949
+ }
950
+ _getType(e) {
951
+ return M(e.data);
952
+ }
953
+ _getOrReturnCtx(e, t) {
954
+ return t || {
955
+ common: e.parent.common,
956
+ data: e.data,
957
+ parsedType: M(e.data),
958
+ schemaErrorMap: this._def.errorMap,
959
+ path: e.path,
960
+ parent: e.parent
961
+ };
962
+ }
963
+ _processInputParams(e) {
964
+ return {
965
+ status: new k(),
966
+ ctx: {
967
+ common: e.parent.common,
968
+ data: e.data,
969
+ parsedType: M(e.data),
970
+ schemaErrorMap: this._def.errorMap,
971
+ path: e.path,
972
+ parent: e.parent
973
+ }
974
+ };
975
+ }
976
+ _parseSync(e) {
977
+ const t = this._parse(e);
978
+ if (te(t))
979
+ throw new Error("Synchronous parse encountered promise.");
980
+ return t;
981
+ }
982
+ _parseAsync(e) {
983
+ const t = this._parse(e);
984
+ return Promise.resolve(t);
985
+ }
986
+ parse(e, t) {
987
+ const n = this.safeParse(e, t);
988
+ if (n.success)
989
+ return n.data;
990
+ throw n.error;
991
+ }
992
+ safeParse(e, t) {
993
+ var n;
994
+ const a = {
995
+ common: {
996
+ issues: [],
997
+ async: (n = t == null ? void 0 : t.async) !== null && n !== void 0 ? n : !1,
998
+ contextualErrorMap: t == null ? void 0 : t.errorMap
999
+ },
1000
+ path: (t == null ? void 0 : t.path) || [],
1001
+ schemaErrorMap: this._def.errorMap,
1002
+ parent: null,
1003
+ data: e,
1004
+ parsedType: M(e)
1005
+ }, s = this._parseSync({ data: e, path: a.path, parent: a });
1006
+ return Pe(a, s);
1007
+ }
1008
+ async parseAsync(e, t) {
1009
+ const n = await this.safeParseAsync(e, t);
1010
+ if (n.success)
1011
+ return n.data;
1012
+ throw n.error;
1013
+ }
1014
+ async safeParseAsync(e, t) {
1015
+ const n = {
1016
+ common: {
1017
+ issues: [],
1018
+ contextualErrorMap: t == null ? void 0 : t.errorMap,
1019
+ async: !0
1020
+ },
1021
+ path: (t == null ? void 0 : t.path) || [],
1022
+ schemaErrorMap: this._def.errorMap,
1023
+ parent: null,
1024
+ data: e,
1025
+ parsedType: M(e)
1026
+ }, a = this._parse({ data: e, path: n.path, parent: n }), s = await (te(a) ? a : Promise.resolve(a));
1027
+ return Pe(n, s);
1028
+ }
1029
+ refine(e, t) {
1030
+ const n = (a) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(a) : t;
1031
+ return this._refinement((a, s) => {
1032
+ const i = e(a), o = () => s.addIssue({
1033
+ code: d.custom,
1034
+ ...n(a)
1035
+ });
1036
+ return typeof Promise < "u" && i instanceof Promise ? i.then((c) => c ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
1037
+ });
1038
+ }
1039
+ refinement(e, t) {
1040
+ return this._refinement((n, a) => e(n) ? !0 : (a.addIssue(typeof t == "function" ? t(n, a) : t), !1));
1041
+ }
1042
+ _refinement(e) {
1043
+ return new S({
1044
+ schema: this,
1045
+ typeName: h.ZodEffects,
1046
+ effect: { type: "refinement", refinement: e }
1047
+ });
1048
+ }
1049
+ superRefine(e) {
1050
+ return this._refinement(e);
1051
+ }
1052
+ optional() {
1053
+ return I.create(this, this._def);
1054
+ }
1055
+ nullable() {
1056
+ return B.create(this, this._def);
1057
+ }
1058
+ nullish() {
1059
+ return this.nullable().optional();
1060
+ }
1061
+ array() {
1062
+ return Z.create(this, this._def);
1063
+ }
1064
+ promise() {
1065
+ return X.create(this, this._def);
1066
+ }
1067
+ or(e) {
1068
+ return se.create([this, e], this._def);
1069
+ }
1070
+ and(e) {
1071
+ return ie.create(this, e, this._def);
1072
+ }
1073
+ transform(e) {
1074
+ return new S({
1075
+ ...v(this._def),
1076
+ schema: this,
1077
+ typeName: h.ZodEffects,
1078
+ effect: { type: "transform", transform: e }
1079
+ });
1080
+ }
1081
+ default(e) {
1082
+ const t = typeof e == "function" ? e : () => e;
1083
+ return new ue({
1084
+ ...v(this._def),
1085
+ innerType: this,
1086
+ defaultValue: t,
1087
+ typeName: h.ZodDefault
1088
+ });
1089
+ }
1090
+ brand() {
1091
+ return new $e({
1092
+ typeName: h.ZodBranded,
1093
+ type: this,
1094
+ ...v(this._def)
1095
+ });
1096
+ }
1097
+ catch(e) {
1098
+ const t = typeof e == "function" ? e : () => e;
1099
+ return new fe({
1100
+ ...v(this._def),
1101
+ innerType: this,
1102
+ catchValue: t,
1103
+ typeName: h.ZodCatch
1104
+ });
1105
+ }
1106
+ describe(e) {
1107
+ const t = this.constructor;
1108
+ return new t({
1109
+ ...this._def,
1110
+ description: e
1111
+ });
1112
+ }
1113
+ pipe(e) {
1114
+ return he.create(this, e);
1115
+ }
1116
+ readonly() {
1117
+ return pe.create(this);
1118
+ }
1119
+ isOptional() {
1120
+ return this.safeParse(void 0).success;
1121
+ }
1122
+ isNullable() {
1123
+ return this.safeParse(null).success;
1124
+ }
1125
+ }
1126
+ const Dt = /^c[^\s-]{8,}$/i, Lt = /^[0-9a-z]+$/, Mt = /^[0-9A-HJKMNP-TV-Z]{26}$/, $t = /^[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, Vt = /^[a-z0-9_-]{21}$/i, Pt = /^[-+]?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)?)??$/, zt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Bt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1127
+ let Ie;
1128
+ const Ut = /^(?:(?: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])$/, Ft = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Wt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, rt = "((\\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])))", qt = new RegExp(`^${rt}$`);
1129
+ function nt(r) {
1130
+ let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
1131
+ return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
1132
+ }
1133
+ function Gt(r) {
1134
+ return new RegExp(`^${nt(r)}$`);
1135
+ }
1136
+ function at(r) {
1137
+ let e = `${rt}T${nt(r)}`;
1138
+ const t = [];
1139
+ return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
1140
+ }
1141
+ function Ht(r, e) {
1142
+ return !!((e === "v4" || !e) && Ut.test(r) || (e === "v6" || !e) && Ft.test(r));
1143
+ }
1144
+ class E extends _ {
1145
+ _parse(e) {
1146
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== f.string) {
1147
+ const s = this._getOrReturnCtx(e);
1148
+ return u(s, {
1149
+ code: d.invalid_type,
1150
+ expected: f.string,
1151
+ received: s.parsedType
1152
+ }), y;
1153
+ }
1154
+ const n = new k();
1155
+ let a;
1156
+ for (const s of this._def.checks)
1157
+ if (s.kind === "min")
1158
+ e.data.length < s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1159
+ code: d.too_small,
1160
+ minimum: s.value,
1161
+ type: "string",
1162
+ inclusive: !0,
1163
+ exact: !1,
1164
+ message: s.message
1165
+ }), n.dirty());
1166
+ else if (s.kind === "max")
1167
+ e.data.length > s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1168
+ code: d.too_big,
1169
+ maximum: s.value,
1170
+ type: "string",
1171
+ inclusive: !0,
1172
+ exact: !1,
1173
+ message: s.message
1174
+ }), n.dirty());
1175
+ else if (s.kind === "length") {
1176
+ const i = e.data.length > s.value, o = e.data.length < s.value;
1177
+ (i || o) && (a = this._getOrReturnCtx(e, a), i ? u(a, {
1178
+ code: d.too_big,
1179
+ maximum: s.value,
1180
+ type: "string",
1181
+ inclusive: !0,
1182
+ exact: !0,
1183
+ message: s.message
1184
+ }) : o && u(a, {
1185
+ code: d.too_small,
1186
+ minimum: s.value,
1187
+ type: "string",
1188
+ inclusive: !0,
1189
+ exact: !0,
1190
+ message: s.message
1191
+ }), n.dirty());
1192
+ } else if (s.kind === "email")
1193
+ zt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1194
+ validation: "email",
1195
+ code: d.invalid_string,
1196
+ message: s.message
1197
+ }), n.dirty());
1198
+ else if (s.kind === "emoji")
1199
+ Ie || (Ie = new RegExp(Bt, "u")), Ie.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1200
+ validation: "emoji",
1201
+ code: d.invalid_string,
1202
+ message: s.message
1203
+ }), n.dirty());
1204
+ else if (s.kind === "uuid")
1205
+ $t.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1206
+ validation: "uuid",
1207
+ code: d.invalid_string,
1208
+ message: s.message
1209
+ }), n.dirty());
1210
+ else if (s.kind === "nanoid")
1211
+ Vt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1212
+ validation: "nanoid",
1213
+ code: d.invalid_string,
1214
+ message: s.message
1215
+ }), n.dirty());
1216
+ else if (s.kind === "cuid")
1217
+ Dt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1218
+ validation: "cuid",
1219
+ code: d.invalid_string,
1220
+ message: s.message
1221
+ }), n.dirty());
1222
+ else if (s.kind === "cuid2")
1223
+ Lt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1224
+ validation: "cuid2",
1225
+ code: d.invalid_string,
1226
+ message: s.message
1227
+ }), n.dirty());
1228
+ else if (s.kind === "ulid")
1229
+ Mt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1230
+ validation: "ulid",
1231
+ code: d.invalid_string,
1232
+ message: s.message
1233
+ }), n.dirty());
1234
+ else if (s.kind === "url")
1235
+ try {
1236
+ new URL(e.data);
1237
+ } catch {
1238
+ a = this._getOrReturnCtx(e, a), u(a, {
1239
+ validation: "url",
1240
+ code: d.invalid_string,
1241
+ message: s.message
1242
+ }), n.dirty();
1243
+ }
1244
+ else s.kind === "regex" ? (s.regex.lastIndex = 0, s.regex.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1245
+ validation: "regex",
1246
+ code: d.invalid_string,
1247
+ message: s.message
1248
+ }), n.dirty())) : s.kind === "trim" ? e.data = e.data.trim() : s.kind === "includes" ? e.data.includes(s.value, s.position) || (a = this._getOrReturnCtx(e, a), u(a, {
1249
+ code: d.invalid_string,
1250
+ validation: { includes: s.value, position: s.position },
1251
+ message: s.message
1252
+ }), n.dirty()) : s.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : s.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : s.kind === "startsWith" ? e.data.startsWith(s.value) || (a = this._getOrReturnCtx(e, a), u(a, {
1253
+ code: d.invalid_string,
1254
+ validation: { startsWith: s.value },
1255
+ message: s.message
1256
+ }), n.dirty()) : s.kind === "endsWith" ? e.data.endsWith(s.value) || (a = this._getOrReturnCtx(e, a), u(a, {
1257
+ code: d.invalid_string,
1258
+ validation: { endsWith: s.value },
1259
+ message: s.message
1260
+ }), n.dirty()) : s.kind === "datetime" ? at(s).test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1261
+ code: d.invalid_string,
1262
+ validation: "datetime",
1263
+ message: s.message
1264
+ }), n.dirty()) : s.kind === "date" ? qt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1265
+ code: d.invalid_string,
1266
+ validation: "date",
1267
+ message: s.message
1268
+ }), n.dirty()) : s.kind === "time" ? Gt(s).test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1269
+ code: d.invalid_string,
1270
+ validation: "time",
1271
+ message: s.message
1272
+ }), n.dirty()) : s.kind === "duration" ? Pt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1273
+ validation: "duration",
1274
+ code: d.invalid_string,
1275
+ message: s.message
1276
+ }), n.dirty()) : s.kind === "ip" ? Ht(e.data, s.version) || (a = this._getOrReturnCtx(e, a), u(a, {
1277
+ validation: "ip",
1278
+ code: d.invalid_string,
1279
+ message: s.message
1280
+ }), n.dirty()) : s.kind === "base64" ? Wt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1281
+ validation: "base64",
1282
+ code: d.invalid_string,
1283
+ message: s.message
1284
+ }), n.dirty()) : b.assertNever(s);
1285
+ return { status: n.value, value: e.data };
1286
+ }
1287
+ _regex(e, t, n) {
1288
+ return this.refinement((a) => e.test(a), {
1289
+ validation: t,
1290
+ code: d.invalid_string,
1291
+ ...p.errToObj(n)
1292
+ });
1293
+ }
1294
+ _addCheck(e) {
1295
+ return new E({
1296
+ ...this._def,
1297
+ checks: [...this._def.checks, e]
1298
+ });
1299
+ }
1300
+ email(e) {
1301
+ return this._addCheck({ kind: "email", ...p.errToObj(e) });
1302
+ }
1303
+ url(e) {
1304
+ return this._addCheck({ kind: "url", ...p.errToObj(e) });
1305
+ }
1306
+ emoji(e) {
1307
+ return this._addCheck({ kind: "emoji", ...p.errToObj(e) });
1308
+ }
1309
+ uuid(e) {
1310
+ return this._addCheck({ kind: "uuid", ...p.errToObj(e) });
1311
+ }
1312
+ nanoid(e) {
1313
+ return this._addCheck({ kind: "nanoid", ...p.errToObj(e) });
1314
+ }
1315
+ cuid(e) {
1316
+ return this._addCheck({ kind: "cuid", ...p.errToObj(e) });
1317
+ }
1318
+ cuid2(e) {
1319
+ return this._addCheck({ kind: "cuid2", ...p.errToObj(e) });
1320
+ }
1321
+ ulid(e) {
1322
+ return this._addCheck({ kind: "ulid", ...p.errToObj(e) });
1323
+ }
1324
+ base64(e) {
1325
+ return this._addCheck({ kind: "base64", ...p.errToObj(e) });
1326
+ }
1327
+ ip(e) {
1328
+ return this._addCheck({ kind: "ip", ...p.errToObj(e) });
1329
+ }
1330
+ datetime(e) {
1331
+ var t, n;
1332
+ return typeof e == "string" ? this._addCheck({
1333
+ kind: "datetime",
1334
+ precision: null,
1335
+ offset: !1,
1336
+ local: !1,
1337
+ message: e
1338
+ }) : this._addCheck({
1339
+ kind: "datetime",
1340
+ precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
1341
+ offset: (t = e == null ? void 0 : e.offset) !== null && t !== void 0 ? t : !1,
1342
+ local: (n = e == null ? void 0 : e.local) !== null && n !== void 0 ? n : !1,
1343
+ ...p.errToObj(e == null ? void 0 : e.message)
1344
+ });
1345
+ }
1346
+ date(e) {
1347
+ return this._addCheck({ kind: "date", message: e });
1348
+ }
1349
+ time(e) {
1350
+ return typeof e == "string" ? this._addCheck({
1351
+ kind: "time",
1352
+ precision: null,
1353
+ message: e
1354
+ }) : this._addCheck({
1355
+ kind: "time",
1356
+ precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
1357
+ ...p.errToObj(e == null ? void 0 : e.message)
1358
+ });
1359
+ }
1360
+ duration(e) {
1361
+ return this._addCheck({ kind: "duration", ...p.errToObj(e) });
1362
+ }
1363
+ regex(e, t) {
1364
+ return this._addCheck({
1365
+ kind: "regex",
1366
+ regex: e,
1367
+ ...p.errToObj(t)
1368
+ });
1369
+ }
1370
+ includes(e, t) {
1371
+ return this._addCheck({
1372
+ kind: "includes",
1373
+ value: e,
1374
+ position: t == null ? void 0 : t.position,
1375
+ ...p.errToObj(t == null ? void 0 : t.message)
1376
+ });
1377
+ }
1378
+ startsWith(e, t) {
1379
+ return this._addCheck({
1380
+ kind: "startsWith",
1381
+ value: e,
1382
+ ...p.errToObj(t)
1383
+ });
1384
+ }
1385
+ endsWith(e, t) {
1386
+ return this._addCheck({
1387
+ kind: "endsWith",
1388
+ value: e,
1389
+ ...p.errToObj(t)
1390
+ });
1391
+ }
1392
+ min(e, t) {
1393
+ return this._addCheck({
1394
+ kind: "min",
1395
+ value: e,
1396
+ ...p.errToObj(t)
1397
+ });
1398
+ }
1399
+ max(e, t) {
1400
+ return this._addCheck({
1401
+ kind: "max",
1402
+ value: e,
1403
+ ...p.errToObj(t)
1404
+ });
1405
+ }
1406
+ length(e, t) {
1407
+ return this._addCheck({
1408
+ kind: "length",
1409
+ value: e,
1410
+ ...p.errToObj(t)
1411
+ });
1412
+ }
1413
+ /**
1414
+ * @deprecated Use z.string().min(1) instead.
1415
+ * @see {@link ZodString.min}
1416
+ */
1417
+ nonempty(e) {
1418
+ return this.min(1, p.errToObj(e));
1419
+ }
1420
+ trim() {
1421
+ return new E({
1422
+ ...this._def,
1423
+ checks: [...this._def.checks, { kind: "trim" }]
1424
+ });
1425
+ }
1426
+ toLowerCase() {
1427
+ return new E({
1428
+ ...this._def,
1429
+ checks: [...this._def.checks, { kind: "toLowerCase" }]
1430
+ });
1431
+ }
1432
+ toUpperCase() {
1433
+ return new E({
1434
+ ...this._def,
1435
+ checks: [...this._def.checks, { kind: "toUpperCase" }]
1436
+ });
1437
+ }
1438
+ get isDatetime() {
1439
+ return !!this._def.checks.find((e) => e.kind === "datetime");
1440
+ }
1441
+ get isDate() {
1442
+ return !!this._def.checks.find((e) => e.kind === "date");
1443
+ }
1444
+ get isTime() {
1445
+ return !!this._def.checks.find((e) => e.kind === "time");
1446
+ }
1447
+ get isDuration() {
1448
+ return !!this._def.checks.find((e) => e.kind === "duration");
1449
+ }
1450
+ get isEmail() {
1451
+ return !!this._def.checks.find((e) => e.kind === "email");
1452
+ }
1453
+ get isURL() {
1454
+ return !!this._def.checks.find((e) => e.kind === "url");
1455
+ }
1456
+ get isEmoji() {
1457
+ return !!this._def.checks.find((e) => e.kind === "emoji");
1458
+ }
1459
+ get isUUID() {
1460
+ return !!this._def.checks.find((e) => e.kind === "uuid");
1461
+ }
1462
+ get isNANOID() {
1463
+ return !!this._def.checks.find((e) => e.kind === "nanoid");
1464
+ }
1465
+ get isCUID() {
1466
+ return !!this._def.checks.find((e) => e.kind === "cuid");
1467
+ }
1468
+ get isCUID2() {
1469
+ return !!this._def.checks.find((e) => e.kind === "cuid2");
1470
+ }
1471
+ get isULID() {
1472
+ return !!this._def.checks.find((e) => e.kind === "ulid");
1473
+ }
1474
+ get isIP() {
1475
+ return !!this._def.checks.find((e) => e.kind === "ip");
1476
+ }
1477
+ get isBase64() {
1478
+ return !!this._def.checks.find((e) => e.kind === "base64");
1479
+ }
1480
+ get minLength() {
1481
+ let e = null;
1482
+ for (const t of this._def.checks)
1483
+ t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1484
+ return e;
1485
+ }
1486
+ get maxLength() {
1487
+ let e = null;
1488
+ for (const t of this._def.checks)
1489
+ t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1490
+ return e;
1491
+ }
1492
+ }
1493
+ E.create = (r) => {
1494
+ var e;
1495
+ return new E({
1496
+ checks: [],
1497
+ typeName: h.ZodString,
1498
+ coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
1499
+ ...v(r)
1500
+ });
1501
+ };
1502
+ function Jt(r, e) {
1503
+ const t = (r.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, a = t > n ? t : n, s = parseInt(r.toFixed(a).replace(".", "")), i = parseInt(e.toFixed(a).replace(".", ""));
1504
+ return s % i / Math.pow(10, a);
1505
+ }
1506
+ class V extends _ {
1507
+ constructor() {
1508
+ super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1509
+ }
1510
+ _parse(e) {
1511
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== f.number) {
1512
+ const s = this._getOrReturnCtx(e);
1513
+ return u(s, {
1514
+ code: d.invalid_type,
1515
+ expected: f.number,
1516
+ received: s.parsedType
1517
+ }), y;
1518
+ }
1519
+ let n;
1520
+ const a = new k();
1521
+ for (const s of this._def.checks)
1522
+ s.kind === "int" ? b.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1523
+ code: d.invalid_type,
1524
+ expected: "integer",
1525
+ received: "float",
1526
+ message: s.message
1527
+ }), a.dirty()) : s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1528
+ code: d.too_small,
1529
+ minimum: s.value,
1530
+ type: "number",
1531
+ inclusive: s.inclusive,
1532
+ exact: !1,
1533
+ message: s.message
1534
+ }), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1535
+ code: d.too_big,
1536
+ maximum: s.value,
1537
+ type: "number",
1538
+ inclusive: s.inclusive,
1539
+ exact: !1,
1540
+ message: s.message
1541
+ }), a.dirty()) : s.kind === "multipleOf" ? Jt(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
1542
+ code: d.not_multiple_of,
1543
+ multipleOf: s.value,
1544
+ message: s.message
1545
+ }), a.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1546
+ code: d.not_finite,
1547
+ message: s.message
1548
+ }), a.dirty()) : b.assertNever(s);
1549
+ return { status: a.value, value: e.data };
1550
+ }
1551
+ gte(e, t) {
1552
+ return this.setLimit("min", e, !0, p.toString(t));
1553
+ }
1554
+ gt(e, t) {
1555
+ return this.setLimit("min", e, !1, p.toString(t));
1556
+ }
1557
+ lte(e, t) {
1558
+ return this.setLimit("max", e, !0, p.toString(t));
1559
+ }
1560
+ lt(e, t) {
1561
+ return this.setLimit("max", e, !1, p.toString(t));
1562
+ }
1563
+ setLimit(e, t, n, a) {
1564
+ return new V({
1565
+ ...this._def,
1566
+ checks: [
1567
+ ...this._def.checks,
1568
+ {
1569
+ kind: e,
1570
+ value: t,
1571
+ inclusive: n,
1572
+ message: p.toString(a)
1573
+ }
1574
+ ]
1575
+ });
1576
+ }
1577
+ _addCheck(e) {
1578
+ return new V({
1579
+ ...this._def,
1580
+ checks: [...this._def.checks, e]
1581
+ });
1582
+ }
1583
+ int(e) {
1584
+ return this._addCheck({
1585
+ kind: "int",
1586
+ message: p.toString(e)
1587
+ });
1588
+ }
1589
+ positive(e) {
1590
+ return this._addCheck({
1591
+ kind: "min",
1592
+ value: 0,
1593
+ inclusive: !1,
1594
+ message: p.toString(e)
1595
+ });
1596
+ }
1597
+ negative(e) {
1598
+ return this._addCheck({
1599
+ kind: "max",
1600
+ value: 0,
1601
+ inclusive: !1,
1602
+ message: p.toString(e)
1603
+ });
1604
+ }
1605
+ nonpositive(e) {
1606
+ return this._addCheck({
1607
+ kind: "max",
1608
+ value: 0,
1609
+ inclusive: !0,
1610
+ message: p.toString(e)
1611
+ });
1612
+ }
1613
+ nonnegative(e) {
1614
+ return this._addCheck({
1615
+ kind: "min",
1616
+ value: 0,
1617
+ inclusive: !0,
1618
+ message: p.toString(e)
1619
+ });
1620
+ }
1621
+ multipleOf(e, t) {
1622
+ return this._addCheck({
1623
+ kind: "multipleOf",
1624
+ value: e,
1625
+ message: p.toString(t)
1626
+ });
1627
+ }
1628
+ finite(e) {
1629
+ return this._addCheck({
1630
+ kind: "finite",
1631
+ message: p.toString(e)
1632
+ });
1633
+ }
1634
+ safe(e) {
1635
+ return this._addCheck({
1636
+ kind: "min",
1637
+ inclusive: !0,
1638
+ value: Number.MIN_SAFE_INTEGER,
1639
+ message: p.toString(e)
1640
+ })._addCheck({
1641
+ kind: "max",
1642
+ inclusive: !0,
1643
+ value: Number.MAX_SAFE_INTEGER,
1644
+ message: p.toString(e)
1645
+ });
1646
+ }
1647
+ get minValue() {
1648
+ let e = null;
1649
+ for (const t of this._def.checks)
1650
+ t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1651
+ return e;
1652
+ }
1653
+ get maxValue() {
1654
+ let e = null;
1655
+ for (const t of this._def.checks)
1656
+ t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1657
+ return e;
1658
+ }
1659
+ get isInt() {
1660
+ return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && b.isInteger(e.value));
1661
+ }
1662
+ get isFinite() {
1663
+ let e = null, t = null;
1664
+ for (const n of this._def.checks) {
1665
+ if (n.kind === "finite" || n.kind === "int" || n.kind === "multipleOf")
1666
+ return !0;
1667
+ n.kind === "min" ? (t === null || n.value > t) && (t = n.value) : n.kind === "max" && (e === null || n.value < e) && (e = n.value);
1668
+ }
1669
+ return Number.isFinite(t) && Number.isFinite(e);
1670
+ }
1671
+ }
1672
+ V.create = (r) => new V({
1673
+ checks: [],
1674
+ typeName: h.ZodNumber,
1675
+ coerce: (r == null ? void 0 : r.coerce) || !1,
1676
+ ...v(r)
1677
+ });
1678
+ class P extends _ {
1679
+ constructor() {
1680
+ super(...arguments), this.min = this.gte, this.max = this.lte;
1681
+ }
1682
+ _parse(e) {
1683
+ if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== f.bigint) {
1684
+ const s = this._getOrReturnCtx(e);
1685
+ return u(s, {
1686
+ code: d.invalid_type,
1687
+ expected: f.bigint,
1688
+ received: s.parsedType
1689
+ }), y;
1690
+ }
1691
+ let n;
1692
+ const a = new k();
1693
+ for (const s of this._def.checks)
1694
+ s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1695
+ code: d.too_small,
1696
+ type: "bigint",
1697
+ minimum: s.value,
1698
+ inclusive: s.inclusive,
1699
+ message: s.message
1700
+ }), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1701
+ code: d.too_big,
1702
+ type: "bigint",
1703
+ maximum: s.value,
1704
+ inclusive: s.inclusive,
1705
+ message: s.message
1706
+ }), a.dirty()) : s.kind === "multipleOf" ? e.data % s.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
1707
+ code: d.not_multiple_of,
1708
+ multipleOf: s.value,
1709
+ message: s.message
1710
+ }), a.dirty()) : b.assertNever(s);
1711
+ return { status: a.value, value: e.data };
1712
+ }
1713
+ gte(e, t) {
1714
+ return this.setLimit("min", e, !0, p.toString(t));
1715
+ }
1716
+ gt(e, t) {
1717
+ return this.setLimit("min", e, !1, p.toString(t));
1718
+ }
1719
+ lte(e, t) {
1720
+ return this.setLimit("max", e, !0, p.toString(t));
1721
+ }
1722
+ lt(e, t) {
1723
+ return this.setLimit("max", e, !1, p.toString(t));
1724
+ }
1725
+ setLimit(e, t, n, a) {
1726
+ return new P({
1727
+ ...this._def,
1728
+ checks: [
1729
+ ...this._def.checks,
1730
+ {
1731
+ kind: e,
1732
+ value: t,
1733
+ inclusive: n,
1734
+ message: p.toString(a)
1735
+ }
1736
+ ]
1737
+ });
1738
+ }
1739
+ _addCheck(e) {
1740
+ return new P({
1741
+ ...this._def,
1742
+ checks: [...this._def.checks, e]
1743
+ });
1744
+ }
1745
+ positive(e) {
1746
+ return this._addCheck({
1747
+ kind: "min",
1748
+ value: BigInt(0),
1749
+ inclusive: !1,
1750
+ message: p.toString(e)
1751
+ });
1752
+ }
1753
+ negative(e) {
1754
+ return this._addCheck({
1755
+ kind: "max",
1756
+ value: BigInt(0),
1757
+ inclusive: !1,
1758
+ message: p.toString(e)
1759
+ });
1760
+ }
1761
+ nonpositive(e) {
1762
+ return this._addCheck({
1763
+ kind: "max",
1764
+ value: BigInt(0),
1765
+ inclusive: !0,
1766
+ message: p.toString(e)
1767
+ });
1768
+ }
1769
+ nonnegative(e) {
1770
+ return this._addCheck({
1771
+ kind: "min",
1772
+ value: BigInt(0),
1773
+ inclusive: !0,
1774
+ message: p.toString(e)
1775
+ });
1776
+ }
1777
+ multipleOf(e, t) {
1778
+ return this._addCheck({
1779
+ kind: "multipleOf",
1780
+ value: e,
1781
+ message: p.toString(t)
1782
+ });
1783
+ }
1784
+ get minValue() {
1785
+ let e = null;
1786
+ for (const t of this._def.checks)
1787
+ t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1788
+ return e;
1789
+ }
1790
+ get maxValue() {
1791
+ let e = null;
1792
+ for (const t of this._def.checks)
1793
+ t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1794
+ return e;
1795
+ }
1796
+ }
1797
+ P.create = (r) => {
1798
+ var e;
1799
+ return new P({
1800
+ checks: [],
1801
+ typeName: h.ZodBigInt,
1802
+ coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
1803
+ ...v(r)
1804
+ });
1805
+ };
1806
+ class re extends _ {
1807
+ _parse(e) {
1808
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== f.boolean) {
1809
+ const n = this._getOrReturnCtx(e);
1810
+ return u(n, {
1811
+ code: d.invalid_type,
1812
+ expected: f.boolean,
1813
+ received: n.parsedType
1814
+ }), y;
1815
+ }
1816
+ return T(e.data);
1817
+ }
1818
+ }
1819
+ re.create = (r) => new re({
1820
+ typeName: h.ZodBoolean,
1821
+ coerce: (r == null ? void 0 : r.coerce) || !1,
1822
+ ...v(r)
1823
+ });
1824
+ class F extends _ {
1825
+ _parse(e) {
1826
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== f.date) {
1827
+ const s = this._getOrReturnCtx(e);
1828
+ return u(s, {
1829
+ code: d.invalid_type,
1830
+ expected: f.date,
1831
+ received: s.parsedType
1832
+ }), y;
1833
+ }
1834
+ if (isNaN(e.data.getTime())) {
1835
+ const s = this._getOrReturnCtx(e);
1836
+ return u(s, {
1837
+ code: d.invalid_date
1838
+ }), y;
1839
+ }
1840
+ const n = new k();
1841
+ let a;
1842
+ for (const s of this._def.checks)
1843
+ s.kind === "min" ? e.data.getTime() < s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1844
+ code: d.too_small,
1845
+ message: s.message,
1846
+ inclusive: !0,
1847
+ exact: !1,
1848
+ minimum: s.value,
1849
+ type: "date"
1850
+ }), n.dirty()) : s.kind === "max" ? e.data.getTime() > s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1851
+ code: d.too_big,
1852
+ message: s.message,
1853
+ inclusive: !0,
1854
+ exact: !1,
1855
+ maximum: s.value,
1856
+ type: "date"
1857
+ }), n.dirty()) : b.assertNever(s);
1858
+ return {
1859
+ status: n.value,
1860
+ value: new Date(e.data.getTime())
1861
+ };
1862
+ }
1863
+ _addCheck(e) {
1864
+ return new F({
1865
+ ...this._def,
1866
+ checks: [...this._def.checks, e]
1867
+ });
1868
+ }
1869
+ min(e, t) {
1870
+ return this._addCheck({
1871
+ kind: "min",
1872
+ value: e.getTime(),
1873
+ message: p.toString(t)
1874
+ });
1875
+ }
1876
+ max(e, t) {
1877
+ return this._addCheck({
1878
+ kind: "max",
1879
+ value: e.getTime(),
1880
+ message: p.toString(t)
1881
+ });
1882
+ }
1883
+ get minDate() {
1884
+ let e = null;
1885
+ for (const t of this._def.checks)
1886
+ t.kind === "min" && (e === null || t.value > e) && (e = t.value);
1887
+ return e != null ? new Date(e) : null;
1888
+ }
1889
+ get maxDate() {
1890
+ let e = null;
1891
+ for (const t of this._def.checks)
1892
+ t.kind === "max" && (e === null || t.value < e) && (e = t.value);
1893
+ return e != null ? new Date(e) : null;
1894
+ }
1895
+ }
1896
+ F.create = (r) => new F({
1897
+ checks: [],
1898
+ coerce: (r == null ? void 0 : r.coerce) || !1,
1899
+ typeName: h.ZodDate,
1900
+ ...v(r)
1901
+ });
1902
+ class ke extends _ {
1903
+ _parse(e) {
1904
+ if (this._getType(e) !== f.symbol) {
1905
+ const n = this._getOrReturnCtx(e);
1906
+ return u(n, {
1907
+ code: d.invalid_type,
1908
+ expected: f.symbol,
1909
+ received: n.parsedType
1910
+ }), y;
1911
+ }
1912
+ return T(e.data);
1913
+ }
1914
+ }
1915
+ ke.create = (r) => new ke({
1916
+ typeName: h.ZodSymbol,
1917
+ ...v(r)
1918
+ });
1919
+ class ne extends _ {
1920
+ _parse(e) {
1921
+ if (this._getType(e) !== f.undefined) {
1922
+ const n = this._getOrReturnCtx(e);
1923
+ return u(n, {
1924
+ code: d.invalid_type,
1925
+ expected: f.undefined,
1926
+ received: n.parsedType
1927
+ }), y;
1928
+ }
1929
+ return T(e.data);
1930
+ }
1931
+ }
1932
+ ne.create = (r) => new ne({
1933
+ typeName: h.ZodUndefined,
1934
+ ...v(r)
1935
+ });
1936
+ class ae extends _ {
1937
+ _parse(e) {
1938
+ if (this._getType(e) !== f.null) {
1939
+ const n = this._getOrReturnCtx(e);
1940
+ return u(n, {
1941
+ code: d.invalid_type,
1942
+ expected: f.null,
1943
+ received: n.parsedType
1944
+ }), y;
1945
+ }
1946
+ return T(e.data);
1947
+ }
1948
+ }
1949
+ ae.create = (r) => new ae({
1950
+ typeName: h.ZodNull,
1951
+ ...v(r)
1952
+ });
1953
+ class Y extends _ {
1954
+ constructor() {
1955
+ super(...arguments), this._any = !0;
1956
+ }
1957
+ _parse(e) {
1958
+ return T(e.data);
1959
+ }
1960
+ }
1961
+ Y.create = (r) => new Y({
1962
+ typeName: h.ZodAny,
1963
+ ...v(r)
1964
+ });
1965
+ class U extends _ {
1966
+ constructor() {
1967
+ super(...arguments), this._unknown = !0;
1968
+ }
1969
+ _parse(e) {
1970
+ return T(e.data);
1971
+ }
1972
+ }
1973
+ U.create = (r) => new U({
1974
+ typeName: h.ZodUnknown,
1975
+ ...v(r)
1976
+ });
1977
+ class D extends _ {
1978
+ _parse(e) {
1979
+ const t = this._getOrReturnCtx(e);
1980
+ return u(t, {
1981
+ code: d.invalid_type,
1982
+ expected: f.never,
1983
+ received: t.parsedType
1984
+ }), y;
1985
+ }
1986
+ }
1987
+ D.create = (r) => new D({
1988
+ typeName: h.ZodNever,
1989
+ ...v(r)
1990
+ });
1991
+ class Te extends _ {
1992
+ _parse(e) {
1993
+ if (this._getType(e) !== f.undefined) {
1994
+ const n = this._getOrReturnCtx(e);
1995
+ return u(n, {
1996
+ code: d.invalid_type,
1997
+ expected: f.void,
1998
+ received: n.parsedType
1999
+ }), y;
2000
+ }
2001
+ return T(e.data);
2002
+ }
2003
+ }
2004
+ Te.create = (r) => new Te({
2005
+ typeName: h.ZodVoid,
2006
+ ...v(r)
2007
+ });
2008
+ class Z extends _ {
2009
+ _parse(e) {
2010
+ const { ctx: t, status: n } = this._processInputParams(e), a = this._def;
2011
+ if (t.parsedType !== f.array)
2012
+ return u(t, {
2013
+ code: d.invalid_type,
2014
+ expected: f.array,
2015
+ received: t.parsedType
2016
+ }), y;
2017
+ if (a.exactLength !== null) {
2018
+ const i = t.data.length > a.exactLength.value, o = t.data.length < a.exactLength.value;
2019
+ (i || o) && (u(t, {
2020
+ code: i ? d.too_big : d.too_small,
2021
+ minimum: o ? a.exactLength.value : void 0,
2022
+ maximum: i ? a.exactLength.value : void 0,
2023
+ type: "array",
2024
+ inclusive: !0,
2025
+ exact: !0,
2026
+ message: a.exactLength.message
2027
+ }), n.dirty());
2028
+ }
2029
+ if (a.minLength !== null && t.data.length < a.minLength.value && (u(t, {
2030
+ code: d.too_small,
2031
+ minimum: a.minLength.value,
2032
+ type: "array",
2033
+ inclusive: !0,
2034
+ exact: !1,
2035
+ message: a.minLength.message
2036
+ }), n.dirty()), a.maxLength !== null && t.data.length > a.maxLength.value && (u(t, {
2037
+ code: d.too_big,
2038
+ maximum: a.maxLength.value,
2039
+ type: "array",
2040
+ inclusive: !0,
2041
+ exact: !1,
2042
+ message: a.maxLength.message
2043
+ }), n.dirty()), t.common.async)
2044
+ return Promise.all([...t.data].map((i, o) => a.type._parseAsync(new O(t, i, t.path, o)))).then((i) => k.mergeArray(n, i));
2045
+ const s = [...t.data].map((i, o) => a.type._parseSync(new O(t, i, t.path, o)));
2046
+ return k.mergeArray(n, s);
2047
+ }
2048
+ get element() {
2049
+ return this._def.type;
2050
+ }
2051
+ min(e, t) {
2052
+ return new Z({
2053
+ ...this._def,
2054
+ minLength: { value: e, message: p.toString(t) }
2055
+ });
2056
+ }
2057
+ max(e, t) {
2058
+ return new Z({
2059
+ ...this._def,
2060
+ maxLength: { value: e, message: p.toString(t) }
2061
+ });
2062
+ }
2063
+ length(e, t) {
2064
+ return new Z({
2065
+ ...this._def,
2066
+ exactLength: { value: e, message: p.toString(t) }
2067
+ });
2068
+ }
2069
+ nonempty(e) {
2070
+ return this.min(1, e);
2071
+ }
2072
+ }
2073
+ Z.create = (r, e) => new Z({
2074
+ type: r,
2075
+ minLength: null,
2076
+ maxLength: null,
2077
+ exactLength: null,
2078
+ typeName: h.ZodArray,
2079
+ ...v(e)
2080
+ });
2081
+ function q(r) {
2082
+ if (r instanceof w) {
2083
+ const e = {};
2084
+ for (const t in r.shape) {
2085
+ const n = r.shape[t];
2086
+ e[t] = I.create(q(n));
2087
+ }
2088
+ return new w({
2089
+ ...r._def,
2090
+ shape: () => e
2091
+ });
2092
+ } else return r instanceof Z ? new Z({
2093
+ ...r._def,
2094
+ type: q(r.element)
2095
+ }) : r instanceof I ? I.create(q(r.unwrap())) : r instanceof B ? B.create(q(r.unwrap())) : r instanceof R ? R.create(r.items.map((e) => q(e))) : r;
2096
+ }
2097
+ class w extends _ {
2098
+ constructor() {
2099
+ super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
2100
+ }
2101
+ _getCached() {
2102
+ if (this._cached !== null)
2103
+ return this._cached;
2104
+ const e = this._def.shape(), t = b.objectKeys(e);
2105
+ return this._cached = { shape: e, keys: t };
2106
+ }
2107
+ _parse(e) {
2108
+ if (this._getType(e) !== f.object) {
2109
+ const l = this._getOrReturnCtx(e);
2110
+ return u(l, {
2111
+ code: d.invalid_type,
2112
+ expected: f.object,
2113
+ received: l.parsedType
2114
+ }), y;
2115
+ }
2116
+ const { status: n, ctx: a } = this._processInputParams(e), { shape: s, keys: i } = this._getCached(), o = [];
2117
+ if (!(this._def.catchall instanceof D && this._def.unknownKeys === "strip"))
2118
+ for (const l in a.data)
2119
+ i.includes(l) || o.push(l);
2120
+ const c = [];
2121
+ for (const l of i) {
2122
+ const m = s[l], C = a.data[l];
2123
+ c.push({
2124
+ key: { status: "valid", value: l },
2125
+ value: m._parse(new O(a, C, a.path, l)),
2126
+ alwaysSet: l in a.data
2127
+ });
2128
+ }
2129
+ if (this._def.catchall instanceof D) {
2130
+ const l = this._def.unknownKeys;
2131
+ if (l === "passthrough")
2132
+ for (const m of o)
2133
+ c.push({
2134
+ key: { status: "valid", value: m },
2135
+ value: { status: "valid", value: a.data[m] }
2136
+ });
2137
+ else if (l === "strict")
2138
+ o.length > 0 && (u(a, {
2139
+ code: d.unrecognized_keys,
2140
+ keys: o
2141
+ }), n.dirty());
2142
+ else if (l !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
2143
+ } else {
2144
+ const l = this._def.catchall;
2145
+ for (const m of o) {
2146
+ const C = a.data[m];
2147
+ c.push({
2148
+ key: { status: "valid", value: m },
2149
+ value: l._parse(
2150
+ new O(a, C, a.path, m)
2151
+ //, ctx.child(key), value, getParsedType(value)
2152
+ ),
2153
+ alwaysSet: m in a.data
2154
+ });
2155
+ }
2156
+ }
2157
+ return a.common.async ? Promise.resolve().then(async () => {
2158
+ const l = [];
2159
+ for (const m of c) {
2160
+ const C = await m.key, ye = await m.value;
2161
+ l.push({
2162
+ key: C,
2163
+ value: ye,
2164
+ alwaysSet: m.alwaysSet
2165
+ });
2166
+ }
2167
+ return l;
2168
+ }).then((l) => k.mergeObjectSync(n, l)) : k.mergeObjectSync(n, c);
2169
+ }
2170
+ get shape() {
2171
+ return this._def.shape();
2172
+ }
2173
+ strict(e) {
2174
+ return p.errToObj, new w({
2175
+ ...this._def,
2176
+ unknownKeys: "strict",
2177
+ ...e !== void 0 ? {
2178
+ errorMap: (t, n) => {
2179
+ var a, s, i, o;
2180
+ const c = (i = (s = (a = this._def).errorMap) === null || s === void 0 ? void 0 : s.call(a, t, n).message) !== null && i !== void 0 ? i : n.defaultError;
2181
+ return t.code === "unrecognized_keys" ? {
2182
+ message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : c
2183
+ } : {
2184
+ message: c
2185
+ };
2186
+ }
2187
+ } : {}
2188
+ });
2189
+ }
2190
+ strip() {
2191
+ return new w({
2192
+ ...this._def,
2193
+ unknownKeys: "strip"
2194
+ });
2195
+ }
2196
+ passthrough() {
2197
+ return new w({
2198
+ ...this._def,
2199
+ unknownKeys: "passthrough"
2200
+ });
2201
+ }
2202
+ // const AugmentFactory =
2203
+ // <Def extends ZodObjectDef>(def: Def) =>
2204
+ // <Augmentation extends ZodRawShape>(
2205
+ // augmentation: Augmentation
2206
+ // ): ZodObject<
2207
+ // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2208
+ // Def["unknownKeys"],
2209
+ // Def["catchall"]
2210
+ // > => {
2211
+ // return new ZodObject({
2212
+ // ...def,
2213
+ // shape: () => ({
2214
+ // ...def.shape(),
2215
+ // ...augmentation,
2216
+ // }),
2217
+ // }) as any;
2218
+ // };
2219
+ extend(e) {
2220
+ return new w({
2221
+ ...this._def,
2222
+ shape: () => ({
2223
+ ...this._def.shape(),
2224
+ ...e
2225
+ })
2226
+ });
2227
+ }
2228
+ /**
2229
+ * Prior to zod@1.0.12 there was a bug in the
2230
+ * inferred type of merged objects. Please
2231
+ * upgrade if you are experiencing issues.
2232
+ */
2233
+ merge(e) {
2234
+ return new w({
2235
+ unknownKeys: e._def.unknownKeys,
2236
+ catchall: e._def.catchall,
2237
+ shape: () => ({
2238
+ ...this._def.shape(),
2239
+ ...e._def.shape()
2240
+ }),
2241
+ typeName: h.ZodObject
2242
+ });
2243
+ }
2244
+ // merge<
2245
+ // Incoming extends AnyZodObject,
2246
+ // Augmentation extends Incoming["shape"],
2247
+ // NewOutput extends {
2248
+ // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2249
+ // ? Augmentation[k]["_output"]
2250
+ // : k extends keyof Output
2251
+ // ? Output[k]
2252
+ // : never;
2253
+ // },
2254
+ // NewInput extends {
2255
+ // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2256
+ // ? Augmentation[k]["_input"]
2257
+ // : k extends keyof Input
2258
+ // ? Input[k]
2259
+ // : never;
2260
+ // }
2261
+ // >(
2262
+ // merging: Incoming
2263
+ // ): ZodObject<
2264
+ // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2265
+ // Incoming["_def"]["unknownKeys"],
2266
+ // Incoming["_def"]["catchall"],
2267
+ // NewOutput,
2268
+ // NewInput
2269
+ // > {
2270
+ // const merged: any = new ZodObject({
2271
+ // unknownKeys: merging._def.unknownKeys,
2272
+ // catchall: merging._def.catchall,
2273
+ // shape: () =>
2274
+ // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2275
+ // typeName: ZodFirstPartyTypeKind.ZodObject,
2276
+ // }) as any;
2277
+ // return merged;
2278
+ // }
2279
+ setKey(e, t) {
2280
+ return this.augment({ [e]: t });
2281
+ }
2282
+ // merge<Incoming extends AnyZodObject>(
2283
+ // merging: Incoming
2284
+ // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2285
+ // ZodObject<
2286
+ // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2287
+ // Incoming["_def"]["unknownKeys"],
2288
+ // Incoming["_def"]["catchall"]
2289
+ // > {
2290
+ // // const mergedShape = objectUtil.mergeShapes(
2291
+ // // this._def.shape(),
2292
+ // // merging._def.shape()
2293
+ // // );
2294
+ // const merged: any = new ZodObject({
2295
+ // unknownKeys: merging._def.unknownKeys,
2296
+ // catchall: merging._def.catchall,
2297
+ // shape: () =>
2298
+ // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2299
+ // typeName: ZodFirstPartyTypeKind.ZodObject,
2300
+ // }) as any;
2301
+ // return merged;
2302
+ // }
2303
+ catchall(e) {
2304
+ return new w({
2305
+ ...this._def,
2306
+ catchall: e
2307
+ });
2308
+ }
2309
+ pick(e) {
2310
+ const t = {};
2311
+ return b.objectKeys(e).forEach((n) => {
2312
+ e[n] && this.shape[n] && (t[n] = this.shape[n]);
2313
+ }), new w({
2314
+ ...this._def,
2315
+ shape: () => t
2316
+ });
2317
+ }
2318
+ omit(e) {
2319
+ const t = {};
2320
+ return b.objectKeys(this.shape).forEach((n) => {
2321
+ e[n] || (t[n] = this.shape[n]);
2322
+ }), new w({
2323
+ ...this._def,
2324
+ shape: () => t
2325
+ });
2326
+ }
2327
+ /**
2328
+ * @deprecated
2329
+ */
2330
+ deepPartial() {
2331
+ return q(this);
2332
+ }
2333
+ partial(e) {
2334
+ const t = {};
2335
+ return b.objectKeys(this.shape).forEach((n) => {
2336
+ const a = this.shape[n];
2337
+ e && !e[n] ? t[n] = a : t[n] = a.optional();
2338
+ }), new w({
2339
+ ...this._def,
2340
+ shape: () => t
2341
+ });
2342
+ }
2343
+ required(e) {
2344
+ const t = {};
2345
+ return b.objectKeys(this.shape).forEach((n) => {
2346
+ if (e && !e[n])
2347
+ t[n] = this.shape[n];
2348
+ else {
2349
+ let s = this.shape[n];
2350
+ for (; s instanceof I; )
2351
+ s = s._def.innerType;
2352
+ t[n] = s;
2353
+ }
2354
+ }), new w({
2355
+ ...this._def,
2356
+ shape: () => t
2357
+ });
2358
+ }
2359
+ keyof() {
2360
+ return st(b.objectKeys(this.shape));
2361
+ }
2362
+ }
2363
+ w.create = (r, e) => new w({
2364
+ shape: () => r,
2365
+ unknownKeys: "strip",
2366
+ catchall: D.create(),
2367
+ typeName: h.ZodObject,
2368
+ ...v(e)
2369
+ });
2370
+ w.strictCreate = (r, e) => new w({
2371
+ shape: () => r,
2372
+ unknownKeys: "strict",
2373
+ catchall: D.create(),
2374
+ typeName: h.ZodObject,
2375
+ ...v(e)
2376
+ });
2377
+ w.lazycreate = (r, e) => new w({
2378
+ shape: r,
2379
+ unknownKeys: "strip",
2380
+ catchall: D.create(),
2381
+ typeName: h.ZodObject,
2382
+ ...v(e)
2383
+ });
2384
+ class se extends _ {
2385
+ _parse(e) {
2386
+ const { ctx: t } = this._processInputParams(e), n = this._def.options;
2387
+ function a(s) {
2388
+ for (const o of s)
2389
+ if (o.result.status === "valid")
2390
+ return o.result;
2391
+ for (const o of s)
2392
+ if (o.result.status === "dirty")
2393
+ return t.common.issues.push(...o.ctx.common.issues), o.result;
2394
+ const i = s.map((o) => new N(o.ctx.common.issues));
2395
+ return u(t, {
2396
+ code: d.invalid_union,
2397
+ unionErrors: i
2398
+ }), y;
2399
+ }
2400
+ if (t.common.async)
2401
+ return Promise.all(n.map(async (s) => {
2402
+ const i = {
2403
+ ...t,
2404
+ common: {
2405
+ ...t.common,
2406
+ issues: []
2407
+ },
2408
+ parent: null
2409
+ };
2410
+ return {
2411
+ result: await s._parseAsync({
2412
+ data: t.data,
2413
+ path: t.path,
2414
+ parent: i
2415
+ }),
2416
+ ctx: i
2417
+ };
2418
+ })).then(a);
2419
+ {
2420
+ let s;
2421
+ const i = [];
2422
+ for (const c of n) {
2423
+ const l = {
2424
+ ...t,
2425
+ common: {
2426
+ ...t.common,
2427
+ issues: []
2428
+ },
2429
+ parent: null
2430
+ }, m = c._parseSync({
2431
+ data: t.data,
2432
+ path: t.path,
2433
+ parent: l
2434
+ });
2435
+ if (m.status === "valid")
2436
+ return m;
2437
+ m.status === "dirty" && !s && (s = { result: m, ctx: l }), l.common.issues.length && i.push(l.common.issues);
2438
+ }
2439
+ if (s)
2440
+ return t.common.issues.push(...s.ctx.common.issues), s.result;
2441
+ const o = i.map((c) => new N(c));
2442
+ return u(t, {
2443
+ code: d.invalid_union,
2444
+ unionErrors: o
2445
+ }), y;
2446
+ }
2447
+ }
2448
+ get options() {
2449
+ return this._def.options;
2450
+ }
2451
+ }
2452
+ se.create = (r, e) => new se({
2453
+ options: r,
2454
+ typeName: h.ZodUnion,
2455
+ ...v(e)
2456
+ });
2457
+ const A = (r) => r instanceof de ? A(r.schema) : r instanceof S ? A(r.innerType()) : r instanceof le ? [r.value] : r instanceof z ? r.options : r instanceof ce ? b.objectValues(r.enum) : r instanceof ue ? A(r._def.innerType) : r instanceof ne ? [void 0] : r instanceof ae ? [null] : r instanceof I ? [void 0, ...A(r.unwrap())] : r instanceof B ? [null, ...A(r.unwrap())] : r instanceof $e || r instanceof pe ? A(r.unwrap()) : r instanceof fe ? A(r._def.innerType) : [];
2458
+ class Ze extends _ {
2459
+ _parse(e) {
2460
+ const { ctx: t } = this._processInputParams(e);
2461
+ if (t.parsedType !== f.object)
2462
+ return u(t, {
2463
+ code: d.invalid_type,
2464
+ expected: f.object,
2465
+ received: t.parsedType
2466
+ }), y;
2467
+ const n = this.discriminator, a = t.data[n], s = this.optionsMap.get(a);
2468
+ return s ? t.common.async ? s._parseAsync({
2469
+ data: t.data,
2470
+ path: t.path,
2471
+ parent: t
2472
+ }) : s._parseSync({
2473
+ data: t.data,
2474
+ path: t.path,
2475
+ parent: t
2476
+ }) : (u(t, {
2477
+ code: d.invalid_union_discriminator,
2478
+ options: Array.from(this.optionsMap.keys()),
2479
+ path: [n]
2480
+ }), y);
2481
+ }
2482
+ get discriminator() {
2483
+ return this._def.discriminator;
2484
+ }
2485
+ get options() {
2486
+ return this._def.options;
2487
+ }
2488
+ get optionsMap() {
2489
+ return this._def.optionsMap;
2490
+ }
2491
+ /**
2492
+ * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2493
+ * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2494
+ * have a different value for each object in the union.
2495
+ * @param discriminator the name of the discriminator property
2496
+ * @param types an array of object schemas
2497
+ * @param params
2498
+ */
2499
+ static create(e, t, n) {
2500
+ const a = /* @__PURE__ */ new Map();
2501
+ for (const s of t) {
2502
+ const i = A(s.shape[e]);
2503
+ if (!i.length)
2504
+ throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
2505
+ for (const o of i) {
2506
+ if (a.has(o))
2507
+ throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
2508
+ a.set(o, s);
2509
+ }
2510
+ }
2511
+ return new Ze({
2512
+ typeName: h.ZodDiscriminatedUnion,
2513
+ discriminator: e,
2514
+ options: t,
2515
+ optionsMap: a,
2516
+ ...v(n)
2517
+ });
2518
+ }
2519
+ }
2520
+ function Le(r, e) {
2521
+ const t = M(r), n = M(e);
2522
+ if (r === e)
2523
+ return { valid: !0, data: r };
2524
+ if (t === f.object && n === f.object) {
2525
+ const a = b.objectKeys(e), s = b.objectKeys(r).filter((o) => a.indexOf(o) !== -1), i = { ...r, ...e };
2526
+ for (const o of s) {
2527
+ const c = Le(r[o], e[o]);
2528
+ if (!c.valid)
2529
+ return { valid: !1 };
2530
+ i[o] = c.data;
2531
+ }
2532
+ return { valid: !0, data: i };
2533
+ } else if (t === f.array && n === f.array) {
2534
+ if (r.length !== e.length)
2535
+ return { valid: !1 };
2536
+ const a = [];
2537
+ for (let s = 0; s < r.length; s++) {
2538
+ const i = r[s], o = e[s], c = Le(i, o);
2539
+ if (!c.valid)
2540
+ return { valid: !1 };
2541
+ a.push(c.data);
2542
+ }
2543
+ return { valid: !0, data: a };
2544
+ } else return t === f.date && n === f.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
2545
+ }
2546
+ class ie extends _ {
2547
+ _parse(e) {
2548
+ const { status: t, ctx: n } = this._processInputParams(e), a = (s, i) => {
2549
+ if (Ae(s) || Ae(i))
2550
+ return y;
2551
+ const o = Le(s.value, i.value);
2552
+ return o.valid ? ((De(s) || De(i)) && t.dirty(), { status: t.value, value: o.data }) : (u(n, {
2553
+ code: d.invalid_intersection_types
2554
+ }), y);
2555
+ };
2556
+ return n.common.async ? Promise.all([
2557
+ this._def.left._parseAsync({
2558
+ data: n.data,
2559
+ path: n.path,
2560
+ parent: n
2561
+ }),
2562
+ this._def.right._parseAsync({
2563
+ data: n.data,
2564
+ path: n.path,
2565
+ parent: n
2566
+ })
2567
+ ]).then(([s, i]) => a(s, i)) : a(this._def.left._parseSync({
2568
+ data: n.data,
2569
+ path: n.path,
2570
+ parent: n
2571
+ }), this._def.right._parseSync({
2572
+ data: n.data,
2573
+ path: n.path,
2574
+ parent: n
2575
+ }));
2576
+ }
2577
+ }
2578
+ ie.create = (r, e, t) => new ie({
2579
+ left: r,
2580
+ right: e,
2581
+ typeName: h.ZodIntersection,
2582
+ ...v(t)
2583
+ });
2584
+ class R extends _ {
2585
+ _parse(e) {
2586
+ const { status: t, ctx: n } = this._processInputParams(e);
2587
+ if (n.parsedType !== f.array)
2588
+ return u(n, {
2589
+ code: d.invalid_type,
2590
+ expected: f.array,
2591
+ received: n.parsedType
2592
+ }), y;
2593
+ if (n.data.length < this._def.items.length)
2594
+ return u(n, {
2595
+ code: d.too_small,
2596
+ minimum: this._def.items.length,
2597
+ inclusive: !0,
2598
+ exact: !1,
2599
+ type: "array"
2600
+ }), y;
2601
+ !this._def.rest && n.data.length > this._def.items.length && (u(n, {
2602
+ code: d.too_big,
2603
+ maximum: this._def.items.length,
2604
+ inclusive: !0,
2605
+ exact: !1,
2606
+ type: "array"
2607
+ }), t.dirty());
2608
+ const s = [...n.data].map((i, o) => {
2609
+ const c = this._def.items[o] || this._def.rest;
2610
+ return c ? c._parse(new O(n, i, n.path, o)) : null;
2611
+ }).filter((i) => !!i);
2612
+ return n.common.async ? Promise.all(s).then((i) => k.mergeArray(t, i)) : k.mergeArray(t, s);
2613
+ }
2614
+ get items() {
2615
+ return this._def.items;
2616
+ }
2617
+ rest(e) {
2618
+ return new R({
2619
+ ...this._def,
2620
+ rest: e
2621
+ });
2622
+ }
2623
+ }
2624
+ R.create = (r, e) => {
2625
+ if (!Array.isArray(r))
2626
+ throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2627
+ return new R({
2628
+ items: r,
2629
+ typeName: h.ZodTuple,
2630
+ rest: null,
2631
+ ...v(e)
2632
+ });
2633
+ };
2634
+ class oe extends _ {
2635
+ get keySchema() {
2636
+ return this._def.keyType;
2637
+ }
2638
+ get valueSchema() {
2639
+ return this._def.valueType;
2640
+ }
2641
+ _parse(e) {
2642
+ const { status: t, ctx: n } = this._processInputParams(e);
2643
+ if (n.parsedType !== f.object)
2644
+ return u(n, {
2645
+ code: d.invalid_type,
2646
+ expected: f.object,
2647
+ received: n.parsedType
2648
+ }), y;
2649
+ const a = [], s = this._def.keyType, i = this._def.valueType;
2650
+ for (const o in n.data)
2651
+ a.push({
2652
+ key: s._parse(new O(n, o, n.path, o)),
2653
+ value: i._parse(new O(n, n.data[o], n.path, o)),
2654
+ alwaysSet: o in n.data
2655
+ });
2656
+ return n.common.async ? k.mergeObjectAsync(t, a) : k.mergeObjectSync(t, a);
2657
+ }
2658
+ get element() {
2659
+ return this._def.valueType;
2660
+ }
2661
+ static create(e, t, n) {
2662
+ return t instanceof _ ? new oe({
2663
+ keyType: e,
2664
+ valueType: t,
2665
+ typeName: h.ZodRecord,
2666
+ ...v(n)
2667
+ }) : new oe({
2668
+ keyType: E.create(),
2669
+ valueType: e,
2670
+ typeName: h.ZodRecord,
2671
+ ...v(t)
2672
+ });
2673
+ }
2674
+ }
2675
+ class Ce extends _ {
2676
+ get keySchema() {
2677
+ return this._def.keyType;
2678
+ }
2679
+ get valueSchema() {
2680
+ return this._def.valueType;
2681
+ }
2682
+ _parse(e) {
2683
+ const { status: t, ctx: n } = this._processInputParams(e);
2684
+ if (n.parsedType !== f.map)
2685
+ return u(n, {
2686
+ code: d.invalid_type,
2687
+ expected: f.map,
2688
+ received: n.parsedType
2689
+ }), y;
2690
+ const a = this._def.keyType, s = this._def.valueType, i = [...n.data.entries()].map(([o, c], l) => ({
2691
+ key: a._parse(new O(n, o, n.path, [l, "key"])),
2692
+ value: s._parse(new O(n, c, n.path, [l, "value"]))
2693
+ }));
2694
+ if (n.common.async) {
2695
+ const o = /* @__PURE__ */ new Map();
2696
+ return Promise.resolve().then(async () => {
2697
+ for (const c of i) {
2698
+ const l = await c.key, m = await c.value;
2699
+ if (l.status === "aborted" || m.status === "aborted")
2700
+ return y;
2701
+ (l.status === "dirty" || m.status === "dirty") && t.dirty(), o.set(l.value, m.value);
2702
+ }
2703
+ return { status: t.value, value: o };
2704
+ });
2705
+ } else {
2706
+ const o = /* @__PURE__ */ new Map();
2707
+ for (const c of i) {
2708
+ const l = c.key, m = c.value;
2709
+ if (l.status === "aborted" || m.status === "aborted")
2710
+ return y;
2711
+ (l.status === "dirty" || m.status === "dirty") && t.dirty(), o.set(l.value, m.value);
2712
+ }
2713
+ return { status: t.value, value: o };
2714
+ }
2715
+ }
2716
+ }
2717
+ Ce.create = (r, e, t) => new Ce({
2718
+ valueType: e,
2719
+ keyType: r,
2720
+ typeName: h.ZodMap,
2721
+ ...v(t)
2722
+ });
2723
+ class W extends _ {
2724
+ _parse(e) {
2725
+ const { status: t, ctx: n } = this._processInputParams(e);
2726
+ if (n.parsedType !== f.set)
2727
+ return u(n, {
2728
+ code: d.invalid_type,
2729
+ expected: f.set,
2730
+ received: n.parsedType
2731
+ }), y;
2732
+ const a = this._def;
2733
+ a.minSize !== null && n.data.size < a.minSize.value && (u(n, {
2734
+ code: d.too_small,
2735
+ minimum: a.minSize.value,
2736
+ type: "set",
2737
+ inclusive: !0,
2738
+ exact: !1,
2739
+ message: a.minSize.message
2740
+ }), t.dirty()), a.maxSize !== null && n.data.size > a.maxSize.value && (u(n, {
2741
+ code: d.too_big,
2742
+ maximum: a.maxSize.value,
2743
+ type: "set",
2744
+ inclusive: !0,
2745
+ exact: !1,
2746
+ message: a.maxSize.message
2747
+ }), t.dirty());
2748
+ const s = this._def.valueType;
2749
+ function i(c) {
2750
+ const l = /* @__PURE__ */ new Set();
2751
+ for (const m of c) {
2752
+ if (m.status === "aborted")
2753
+ return y;
2754
+ m.status === "dirty" && t.dirty(), l.add(m.value);
2755
+ }
2756
+ return { status: t.value, value: l };
2757
+ }
2758
+ const o = [...n.data.values()].map((c, l) => s._parse(new O(n, c, n.path, l)));
2759
+ return n.common.async ? Promise.all(o).then((c) => i(c)) : i(o);
2760
+ }
2761
+ min(e, t) {
2762
+ return new W({
2763
+ ...this._def,
2764
+ minSize: { value: e, message: p.toString(t) }
2765
+ });
2766
+ }
2767
+ max(e, t) {
2768
+ return new W({
2769
+ ...this._def,
2770
+ maxSize: { value: e, message: p.toString(t) }
2771
+ });
2772
+ }
2773
+ size(e, t) {
2774
+ return this.min(e, t).max(e, t);
2775
+ }
2776
+ nonempty(e) {
2777
+ return this.min(1, e);
2778
+ }
2779
+ }
2780
+ W.create = (r, e) => new W({
2781
+ valueType: r,
2782
+ minSize: null,
2783
+ maxSize: null,
2784
+ typeName: h.ZodSet,
2785
+ ...v(e)
2786
+ });
2787
+ class H extends _ {
2788
+ constructor() {
2789
+ super(...arguments), this.validate = this.implement;
2790
+ }
2791
+ _parse(e) {
2792
+ const { ctx: t } = this._processInputParams(e);
2793
+ if (t.parsedType !== f.function)
2794
+ return u(t, {
2795
+ code: d.invalid_type,
2796
+ expected: f.function,
2797
+ received: t.parsedType
2798
+ }), y;
2799
+ function n(o, c) {
2800
+ return be({
2801
+ data: o,
2802
+ path: t.path,
2803
+ errorMaps: [
2804
+ t.common.contextualErrorMap,
2805
+ t.schemaErrorMap,
2806
+ xe(),
2807
+ J
2808
+ ].filter((l) => !!l),
2809
+ issueData: {
2810
+ code: d.invalid_arguments,
2811
+ argumentsError: c
2812
+ }
2813
+ });
2814
+ }
2815
+ function a(o, c) {
2816
+ return be({
2817
+ data: o,
2818
+ path: t.path,
2819
+ errorMaps: [
2820
+ t.common.contextualErrorMap,
2821
+ t.schemaErrorMap,
2822
+ xe(),
2823
+ J
2824
+ ].filter((l) => !!l),
2825
+ issueData: {
2826
+ code: d.invalid_return_type,
2827
+ returnTypeError: c
2828
+ }
2829
+ });
2830
+ }
2831
+ const s = { errorMap: t.common.contextualErrorMap }, i = t.data;
2832
+ if (this._def.returns instanceof X) {
2833
+ const o = this;
2834
+ return T(async function(...c) {
2835
+ const l = new N([]), m = await o._def.args.parseAsync(c, s).catch((Se) => {
2836
+ throw l.addIssue(n(c, Se)), l;
2837
+ }), C = await Reflect.apply(i, this, m);
2838
+ return await o._def.returns._def.type.parseAsync(C, s).catch((Se) => {
2839
+ throw l.addIssue(a(C, Se)), l;
2840
+ });
2841
+ });
2842
+ } else {
2843
+ const o = this;
2844
+ return T(function(...c) {
2845
+ const l = o._def.args.safeParse(c, s);
2846
+ if (!l.success)
2847
+ throw new N([n(c, l.error)]);
2848
+ const m = Reflect.apply(i, this, l.data), C = o._def.returns.safeParse(m, s);
2849
+ if (!C.success)
2850
+ throw new N([a(m, C.error)]);
2851
+ return C.data;
2852
+ });
2853
+ }
2854
+ }
2855
+ parameters() {
2856
+ return this._def.args;
2857
+ }
2858
+ returnType() {
2859
+ return this._def.returns;
2860
+ }
2861
+ args(...e) {
2862
+ return new H({
2863
+ ...this._def,
2864
+ args: R.create(e).rest(U.create())
2865
+ });
2866
+ }
2867
+ returns(e) {
2868
+ return new H({
2869
+ ...this._def,
2870
+ returns: e
2871
+ });
2872
+ }
2873
+ implement(e) {
2874
+ return this.parse(e);
2875
+ }
2876
+ strictImplement(e) {
2877
+ return this.parse(e);
2878
+ }
2879
+ static create(e, t, n) {
2880
+ return new H({
2881
+ args: e || R.create([]).rest(U.create()),
2882
+ returns: t || U.create(),
2883
+ typeName: h.ZodFunction,
2884
+ ...v(n)
2885
+ });
2886
+ }
2887
+ }
2888
+ class de extends _ {
2889
+ get schema() {
2890
+ return this._def.getter();
2891
+ }
2892
+ _parse(e) {
2893
+ const { ctx: t } = this._processInputParams(e);
2894
+ return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
2895
+ }
2896
+ }
2897
+ de.create = (r, e) => new de({
2898
+ getter: r,
2899
+ typeName: h.ZodLazy,
2900
+ ...v(e)
2901
+ });
2902
+ class le extends _ {
2903
+ _parse(e) {
2904
+ if (e.data !== this._def.value) {
2905
+ const t = this._getOrReturnCtx(e);
2906
+ return u(t, {
2907
+ received: t.data,
2908
+ code: d.invalid_literal,
2909
+ expected: this._def.value
2910
+ }), y;
2911
+ }
2912
+ return { status: "valid", value: e.data };
2913
+ }
2914
+ get value() {
2915
+ return this._def.value;
2916
+ }
2917
+ }
2918
+ le.create = (r, e) => new le({
2919
+ value: r,
2920
+ typeName: h.ZodLiteral,
2921
+ ...v(e)
2922
+ });
2923
+ function st(r, e) {
2924
+ return new z({
2925
+ values: r,
2926
+ typeName: h.ZodEnum,
2927
+ ...v(e)
2928
+ });
2929
+ }
2930
+ class z extends _ {
2931
+ constructor() {
2932
+ super(...arguments), Q.set(this, void 0);
2933
+ }
2934
+ _parse(e) {
2935
+ if (typeof e.data != "string") {
2936
+ const t = this._getOrReturnCtx(e), n = this._def.values;
2937
+ return u(t, {
2938
+ expected: b.joinValues(n),
2939
+ received: t.parsedType,
2940
+ code: d.invalid_type
2941
+ }), y;
2942
+ }
2943
+ if (we(this, Q) || tt(this, Q, new Set(this._def.values)), !we(this, Q).has(e.data)) {
2944
+ const t = this._getOrReturnCtx(e), n = this._def.values;
2945
+ return u(t, {
2946
+ received: t.data,
2947
+ code: d.invalid_enum_value,
2948
+ options: n
2949
+ }), y;
2950
+ }
2951
+ return T(e.data);
2952
+ }
2953
+ get options() {
2954
+ return this._def.values;
2955
+ }
2956
+ get enum() {
2957
+ const e = {};
2958
+ for (const t of this._def.values)
2959
+ e[t] = t;
2960
+ return e;
2961
+ }
2962
+ get Values() {
2963
+ const e = {};
2964
+ for (const t of this._def.values)
2965
+ e[t] = t;
2966
+ return e;
2967
+ }
2968
+ get Enum() {
2969
+ const e = {};
2970
+ for (const t of this._def.values)
2971
+ e[t] = t;
2972
+ return e;
2973
+ }
2974
+ extract(e, t = this._def) {
2975
+ return z.create(e, {
2976
+ ...this._def,
2977
+ ...t
2978
+ });
2979
+ }
2980
+ exclude(e, t = this._def) {
2981
+ return z.create(this.options.filter((n) => !e.includes(n)), {
2982
+ ...this._def,
2983
+ ...t
2984
+ });
2985
+ }
2986
+ }
2987
+ Q = /* @__PURE__ */ new WeakMap();
2988
+ z.create = st;
2989
+ class ce extends _ {
2990
+ constructor() {
2991
+ super(...arguments), K.set(this, void 0);
2992
+ }
2993
+ _parse(e) {
2994
+ const t = b.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
2995
+ if (n.parsedType !== f.string && n.parsedType !== f.number) {
2996
+ const a = b.objectValues(t);
2997
+ return u(n, {
2998
+ expected: b.joinValues(a),
2999
+ received: n.parsedType,
3000
+ code: d.invalid_type
3001
+ }), y;
3002
+ }
3003
+ if (we(this, K) || tt(this, K, new Set(b.getValidEnumValues(this._def.values))), !we(this, K).has(e.data)) {
3004
+ const a = b.objectValues(t);
3005
+ return u(n, {
3006
+ received: n.data,
3007
+ code: d.invalid_enum_value,
3008
+ options: a
3009
+ }), y;
3010
+ }
3011
+ return T(e.data);
3012
+ }
3013
+ get enum() {
3014
+ return this._def.values;
3015
+ }
3016
+ }
3017
+ K = /* @__PURE__ */ new WeakMap();
3018
+ ce.create = (r, e) => new ce({
3019
+ values: r,
3020
+ typeName: h.ZodNativeEnum,
3021
+ ...v(e)
3022
+ });
3023
+ class X extends _ {
3024
+ unwrap() {
3025
+ return this._def.type;
3026
+ }
3027
+ _parse(e) {
3028
+ const { ctx: t } = this._processInputParams(e);
3029
+ if (t.parsedType !== f.promise && t.common.async === !1)
3030
+ return u(t, {
3031
+ code: d.invalid_type,
3032
+ expected: f.promise,
3033
+ received: t.parsedType
3034
+ }), y;
3035
+ const n = t.parsedType === f.promise ? t.data : Promise.resolve(t.data);
3036
+ return T(n.then((a) => this._def.type.parseAsync(a, {
3037
+ path: t.path,
3038
+ errorMap: t.common.contextualErrorMap
3039
+ })));
3040
+ }
3041
+ }
3042
+ X.create = (r, e) => new X({
3043
+ type: r,
3044
+ typeName: h.ZodPromise,
3045
+ ...v(e)
3046
+ });
3047
+ class S extends _ {
3048
+ innerType() {
3049
+ return this._def.schema;
3050
+ }
3051
+ sourceType() {
3052
+ return this._def.schema._def.typeName === h.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3053
+ }
3054
+ _parse(e) {
3055
+ const { status: t, ctx: n } = this._processInputParams(e), a = this._def.effect || null, s = {
3056
+ addIssue: (i) => {
3057
+ u(n, i), i.fatal ? t.abort() : t.dirty();
3058
+ },
3059
+ get path() {
3060
+ return n.path;
3061
+ }
3062
+ };
3063
+ if (s.addIssue = s.addIssue.bind(s), a.type === "preprocess") {
3064
+ const i = a.transform(n.data, s);
3065
+ if (n.common.async)
3066
+ return Promise.resolve(i).then(async (o) => {
3067
+ if (t.value === "aborted")
3068
+ return y;
3069
+ const c = await this._def.schema._parseAsync({
3070
+ data: o,
3071
+ path: n.path,
3072
+ parent: n
3073
+ });
3074
+ return c.status === "aborted" ? y : c.status === "dirty" || t.value === "dirty" ? G(c.value) : c;
3075
+ });
3076
+ {
3077
+ if (t.value === "aborted")
3078
+ return y;
3079
+ const o = this._def.schema._parseSync({
3080
+ data: i,
3081
+ path: n.path,
3082
+ parent: n
3083
+ });
3084
+ return o.status === "aborted" ? y : o.status === "dirty" || t.value === "dirty" ? G(o.value) : o;
3085
+ }
3086
+ }
3087
+ if (a.type === "refinement") {
3088
+ const i = (o) => {
3089
+ const c = a.refinement(o, s);
3090
+ if (n.common.async)
3091
+ return Promise.resolve(c);
3092
+ if (c instanceof Promise)
3093
+ throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3094
+ return o;
3095
+ };
3096
+ if (n.common.async === !1) {
3097
+ const o = this._def.schema._parseSync({
3098
+ data: n.data,
3099
+ path: n.path,
3100
+ parent: n
3101
+ });
3102
+ return o.status === "aborted" ? y : (o.status === "dirty" && t.dirty(), i(o.value), { status: t.value, value: o.value });
3103
+ } else
3104
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? y : (o.status === "dirty" && t.dirty(), i(o.value).then(() => ({ status: t.value, value: o.value }))));
3105
+ }
3106
+ if (a.type === "transform")
3107
+ if (n.common.async === !1) {
3108
+ const i = this._def.schema._parseSync({
3109
+ data: n.data,
3110
+ path: n.path,
3111
+ parent: n
3112
+ });
3113
+ if (!ee(i))
3114
+ return i;
3115
+ const o = a.transform(i.value, s);
3116
+ if (o instanceof Promise)
3117
+ throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
3118
+ return { status: t.value, value: o };
3119
+ } else
3120
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => ee(i) ? Promise.resolve(a.transform(i.value, s)).then((o) => ({ status: t.value, value: o })) : i);
3121
+ b.assertNever(a);
3122
+ }
3123
+ }
3124
+ S.create = (r, e, t) => new S({
3125
+ schema: r,
3126
+ typeName: h.ZodEffects,
3127
+ effect: e,
3128
+ ...v(t)
3129
+ });
3130
+ S.createWithPreprocess = (r, e, t) => new S({
3131
+ schema: e,
3132
+ effect: { type: "preprocess", transform: r },
3133
+ typeName: h.ZodEffects,
3134
+ ...v(t)
3135
+ });
3136
+ class I extends _ {
3137
+ _parse(e) {
3138
+ return this._getType(e) === f.undefined ? T(void 0) : this._def.innerType._parse(e);
3139
+ }
3140
+ unwrap() {
3141
+ return this._def.innerType;
3142
+ }
3143
+ }
3144
+ I.create = (r, e) => new I({
3145
+ innerType: r,
3146
+ typeName: h.ZodOptional,
3147
+ ...v(e)
3148
+ });
3149
+ class B extends _ {
3150
+ _parse(e) {
3151
+ return this._getType(e) === f.null ? T(null) : this._def.innerType._parse(e);
3152
+ }
3153
+ unwrap() {
3154
+ return this._def.innerType;
3155
+ }
3156
+ }
3157
+ B.create = (r, e) => new B({
3158
+ innerType: r,
3159
+ typeName: h.ZodNullable,
3160
+ ...v(e)
3161
+ });
3162
+ class ue extends _ {
3163
+ _parse(e) {
3164
+ const { ctx: t } = this._processInputParams(e);
3165
+ let n = t.data;
3166
+ return t.parsedType === f.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
3167
+ data: n,
3168
+ path: t.path,
3169
+ parent: t
3170
+ });
3171
+ }
3172
+ removeDefault() {
3173
+ return this._def.innerType;
3174
+ }
3175
+ }
3176
+ ue.create = (r, e) => new ue({
3177
+ innerType: r,
3178
+ typeName: h.ZodDefault,
3179
+ defaultValue: typeof e.default == "function" ? e.default : () => e.default,
3180
+ ...v(e)
3181
+ });
3182
+ class fe extends _ {
3183
+ _parse(e) {
3184
+ const { ctx: t } = this._processInputParams(e), n = {
3185
+ ...t,
3186
+ common: {
3187
+ ...t.common,
3188
+ issues: []
3189
+ }
3190
+ }, a = this._def.innerType._parse({
3191
+ data: n.data,
3192
+ path: n.path,
3193
+ parent: {
3194
+ ...n
3195
+ }
3196
+ });
3197
+ return te(a) ? a.then((s) => ({
3198
+ status: "valid",
3199
+ value: s.status === "valid" ? s.value : this._def.catchValue({
3200
+ get error() {
3201
+ return new N(n.common.issues);
3202
+ },
3203
+ input: n.data
3204
+ })
3205
+ })) : {
3206
+ status: "valid",
3207
+ value: a.status === "valid" ? a.value : this._def.catchValue({
3208
+ get error() {
3209
+ return new N(n.common.issues);
3210
+ },
3211
+ input: n.data
3212
+ })
3213
+ };
3214
+ }
3215
+ removeCatch() {
3216
+ return this._def.innerType;
3217
+ }
3218
+ }
3219
+ fe.create = (r, e) => new fe({
3220
+ innerType: r,
3221
+ typeName: h.ZodCatch,
3222
+ catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
3223
+ ...v(e)
3224
+ });
3225
+ class Ne extends _ {
3226
+ _parse(e) {
3227
+ if (this._getType(e) !== f.nan) {
3228
+ const n = this._getOrReturnCtx(e);
3229
+ return u(n, {
3230
+ code: d.invalid_type,
3231
+ expected: f.nan,
3232
+ received: n.parsedType
3233
+ }), y;
3234
+ }
3235
+ return { status: "valid", value: e.data };
3236
+ }
3237
+ }
3238
+ Ne.create = (r) => new Ne({
3239
+ typeName: h.ZodNaN,
3240
+ ...v(r)
3241
+ });
3242
+ const Yt = Symbol("zod_brand");
3243
+ class $e extends _ {
3244
+ _parse(e) {
3245
+ const { ctx: t } = this._processInputParams(e), n = t.data;
3246
+ return this._def.type._parse({
3247
+ data: n,
3248
+ path: t.path,
3249
+ parent: t
3250
+ });
3251
+ }
3252
+ unwrap() {
3253
+ return this._def.type;
3254
+ }
3255
+ }
3256
+ class he extends _ {
3257
+ _parse(e) {
3258
+ const { status: t, ctx: n } = this._processInputParams(e);
3259
+ if (n.common.async)
3260
+ return (async () => {
3261
+ const s = await this._def.in._parseAsync({
3262
+ data: n.data,
3263
+ path: n.path,
3264
+ parent: n
3265
+ });
3266
+ return s.status === "aborted" ? y : s.status === "dirty" ? (t.dirty(), G(s.value)) : this._def.out._parseAsync({
3267
+ data: s.value,
3268
+ path: n.path,
3269
+ parent: n
3270
+ });
3271
+ })();
3272
+ {
3273
+ const a = this._def.in._parseSync({
3274
+ data: n.data,
3275
+ path: n.path,
3276
+ parent: n
3277
+ });
3278
+ return a.status === "aborted" ? y : a.status === "dirty" ? (t.dirty(), {
3279
+ status: "dirty",
3280
+ value: a.value
3281
+ }) : this._def.out._parseSync({
3282
+ data: a.value,
3283
+ path: n.path,
3284
+ parent: n
3285
+ });
3286
+ }
3287
+ }
3288
+ static create(e, t) {
3289
+ return new he({
3290
+ in: e,
3291
+ out: t,
3292
+ typeName: h.ZodPipeline
3293
+ });
3294
+ }
3295
+ }
3296
+ class pe extends _ {
3297
+ _parse(e) {
3298
+ const t = this._def.innerType._parse(e), n = (a) => (ee(a) && (a.value = Object.freeze(a.value)), a);
3299
+ return te(t) ? t.then((a) => n(a)) : n(t);
3300
+ }
3301
+ unwrap() {
3302
+ return this._def.innerType;
3303
+ }
3304
+ }
3305
+ pe.create = (r, e) => new pe({
3306
+ innerType: r,
3307
+ typeName: h.ZodReadonly,
3308
+ ...v(e)
3309
+ });
3310
+ function it(r, e = {}, t) {
3311
+ return r ? Y.create().superRefine((n, a) => {
3312
+ var s, i;
3313
+ if (!r(n)) {
3314
+ const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, c = (i = (s = o.fatal) !== null && s !== void 0 ? s : t) !== null && i !== void 0 ? i : !0, l = typeof o == "string" ? { message: o } : o;
3315
+ a.addIssue({ code: "custom", ...l, fatal: c });
3316
+ }
3317
+ }) : Y.create();
3318
+ }
3319
+ const Xt = {
3320
+ object: w.lazycreate
3321
+ };
3322
+ var h;
3323
+ (function(r) {
3324
+ r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
3325
+ })(h || (h = {}));
3326
+ const Qt = (r, e = {
3327
+ message: `Input not instance of ${r.name}`
3328
+ }) => it((t) => t instanceof r, e), ot = E.create, dt = V.create, Kt = Ne.create, er = P.create, lt = re.create, tr = F.create, rr = ke.create, nr = ne.create, ar = ae.create, sr = Y.create, ir = U.create, or = D.create, dr = Te.create, lr = Z.create, cr = w.create, ur = w.strictCreate, fr = se.create, pr = Ze.create, mr = ie.create, hr = R.create, yr = oe.create, gr = Ce.create, vr = W.create, _r = H.create, xr = de.create, br = le.create, wr = z.create, kr = ce.create, Tr = X.create, ze = S.create, Cr = I.create, Nr = B.create, Er = S.createWithPreprocess, Zr = he.create, Sr = () => ot().optional(), jr = () => dt().optional(), Ir = () => lt().optional(), Or = {
3329
+ string: (r) => E.create({ ...r, coerce: !0 }),
3330
+ number: (r) => V.create({ ...r, coerce: !0 }),
3331
+ boolean: (r) => re.create({
3332
+ ...r,
3333
+ coerce: !0
3334
+ }),
3335
+ bigint: (r) => P.create({ ...r, coerce: !0 }),
3336
+ date: (r) => F.create({ ...r, coerce: !0 })
3337
+ }, Rr = y;
3338
+ var j = /* @__PURE__ */ Object.freeze({
3339
+ __proto__: null,
3340
+ defaultErrorMap: J,
3341
+ setErrorMap: Rt,
3342
+ getErrorMap: xe,
3343
+ makeIssue: be,
3344
+ EMPTY_PATH: At,
3345
+ addIssueToContext: u,
3346
+ ParseStatus: k,
3347
+ INVALID: y,
3348
+ DIRTY: G,
3349
+ OK: T,
3350
+ isAborted: Ae,
3351
+ isDirty: De,
3352
+ isValid: ee,
3353
+ isAsync: te,
3354
+ get util() {
3355
+ return b;
3356
+ },
3357
+ get objectUtil() {
3358
+ return Re;
3359
+ },
3360
+ ZodParsedType: f,
3361
+ getParsedType: M,
3362
+ ZodType: _,
3363
+ datetimeRegex: at,
3364
+ ZodString: E,
3365
+ ZodNumber: V,
3366
+ ZodBigInt: P,
3367
+ ZodBoolean: re,
3368
+ ZodDate: F,
3369
+ ZodSymbol: ke,
3370
+ ZodUndefined: ne,
3371
+ ZodNull: ae,
3372
+ ZodAny: Y,
3373
+ ZodUnknown: U,
3374
+ ZodNever: D,
3375
+ ZodVoid: Te,
3376
+ ZodArray: Z,
3377
+ ZodObject: w,
3378
+ ZodUnion: se,
3379
+ ZodDiscriminatedUnion: Ze,
3380
+ ZodIntersection: ie,
3381
+ ZodTuple: R,
3382
+ ZodRecord: oe,
3383
+ ZodMap: Ce,
3384
+ ZodSet: W,
3385
+ ZodFunction: H,
3386
+ ZodLazy: de,
3387
+ ZodLiteral: le,
3388
+ ZodEnum: z,
3389
+ ZodNativeEnum: ce,
3390
+ ZodPromise: X,
3391
+ ZodEffects: S,
3392
+ ZodTransformer: S,
3393
+ ZodOptional: I,
3394
+ ZodNullable: B,
3395
+ ZodDefault: ue,
3396
+ ZodCatch: fe,
3397
+ ZodNaN: Ne,
3398
+ BRAND: Yt,
3399
+ ZodBranded: $e,
3400
+ ZodPipeline: he,
3401
+ ZodReadonly: pe,
3402
+ custom: it,
3403
+ Schema: _,
3404
+ ZodSchema: _,
3405
+ late: Xt,
3406
+ get ZodFirstPartyTypeKind() {
3407
+ return h;
3408
+ },
3409
+ coerce: Or,
3410
+ any: sr,
3411
+ array: lr,
3412
+ bigint: er,
3413
+ boolean: lt,
3414
+ date: tr,
3415
+ discriminatedUnion: pr,
3416
+ effect: ze,
3417
+ enum: wr,
3418
+ function: _r,
3419
+ instanceof: Qt,
3420
+ intersection: mr,
3421
+ lazy: xr,
3422
+ literal: br,
3423
+ map: gr,
3424
+ nan: Kt,
3425
+ nativeEnum: kr,
3426
+ never: or,
3427
+ null: ar,
3428
+ nullable: Nr,
3429
+ number: dt,
3430
+ object: cr,
3431
+ oboolean: Ir,
3432
+ onumber: jr,
3433
+ optional: Cr,
3434
+ ostring: Sr,
3435
+ pipeline: Zr,
3436
+ preprocess: Er,
3437
+ promise: Tr,
3438
+ record: yr,
3439
+ set: vr,
3440
+ strictObject: ur,
3441
+ string: ot,
3442
+ symbol: rr,
3443
+ transformer: ze,
3444
+ tuple: hr,
3445
+ undefined: nr,
3446
+ union: fr,
3447
+ unknown: ir,
3448
+ void: dr,
3449
+ NEVER: Rr,
3450
+ ZodIssueCode: d,
3451
+ quotelessJson: Ot,
3452
+ ZodError: N
3453
+ });
3454
+ const Be = (r) => {
3455
+ const e = r.trim().replace(/\s+/g, " ").split(" "), [t, n, ...a] = e, s = a == null ? void 0 : a.join(" ");
3456
+ return {
3457
+ surname: t,
3458
+ name: n,
3459
+ patronymic: s
3460
+ };
3461
+ }, Yr = j.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((r, e) => {
3462
+ jt.test(r) || e.addIssue({
3463
+ code: j.ZodIssueCode.custom,
3464
+ message: "Должна быть только кириллица"
3465
+ });
3466
+ const { surname: t, name: n, patronymic: a } = Be(r);
3467
+ (!t || !n) && e.addIssue({
3468
+ code: j.ZodIssueCode.custom,
3469
+ message: "Введите имя и фамилию"
3470
+ }), Ve.test(n) || e.addIssue({
3471
+ code: j.ZodIssueCode.custom,
3472
+ message: "Неверно введено имя"
3473
+ }), Ve.test(t) || e.addIssue({
3474
+ code: j.ZodIssueCode.custom,
3475
+ message: "Неверно введена фамилия"
3476
+ }), a && (It.test(a) || e.addIssue({
3477
+ code: j.ZodIssueCode.custom,
3478
+ message: "Неверно введено отчество"
3479
+ }));
3480
+ }).transform((r) => {
3481
+ const { surname: e, name: t, patronymic: n } = Be(r);
3482
+ return {
3483
+ surname: je(e),
3484
+ name: je(t),
3485
+ patronymic: n ? je(n) : void 0
3486
+ };
3487
+ }), Xr = j.string().length(10, { message: ge.INVALID_DATE }).superRefine((r, e) => {
3488
+ const [t, n, a] = (r == null ? void 0 : r.split(".")) ?? "", s = Fe(`${t}/${n}/${a}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
3489
+ +a <= 1950 && e.addIssue({
3490
+ code: j.ZodIssueCode.custom,
3491
+ message: ge.INVALID_DATE
3492
+ }), yt(s) || e.addIssue({
3493
+ code: j.ZodIssueCode.custom,
3494
+ message: ge.INVALID_DATE
3495
+ }), (/* @__PURE__ */ new Date()).getTime() < new Date(s).getTime() && e.addIssue({
3496
+ code: j.ZodIssueCode.custom,
3497
+ message: ge.FUTURE_DATE_NOT_ALLOWED
3498
+ });
3499
+ });
3500
+ var ct = {}, ut = {};
3501
+ (function(r) {
3502
+ Object.defineProperty(r, "__esModule", {
3503
+ value: !0
3504
+ }), Object.defineProperty(r, "default", {
3505
+ enumerable: !0,
3506
+ get: function() {
3507
+ return t;
3508
+ }
3509
+ });
3510
+ function e(n, a) {
3511
+ return {
3512
+ handler: n,
3513
+ config: a
3514
+ };
3515
+ }
3516
+ e.withOptions = function(n, a = () => ({})) {
3517
+ const s = function(i) {
3518
+ return {
3519
+ __options: i,
3520
+ handler: n(i),
3521
+ config: a(i)
3522
+ };
3523
+ };
3524
+ return s.__isOptionsFunction = !0, s.__pluginFunction = n, s.__configFunction = a, s;
3525
+ };
3526
+ const t = e;
3527
+ })(ut);
3528
+ (function(r) {
3529
+ Object.defineProperty(r, "__esModule", {
3530
+ value: !0
3531
+ }), Object.defineProperty(r, "default", {
3532
+ enumerable: !0,
3533
+ get: function() {
3534
+ return n;
3535
+ }
3536
+ });
3537
+ const e = /* @__PURE__ */ t(ut);
3538
+ function t(a) {
3539
+ return a && a.__esModule ? a : {
3540
+ default: a
3541
+ };
3542
+ }
3543
+ const n = e.default;
3544
+ })(ct);
3545
+ let Oe = ct;
3546
+ var ft = (Oe.__esModule ? Oe : { default: Oe }).default;
3547
+ const Ee = /* @__PURE__ */ We(ft), Ar = ft;
3548
+ function Ue(r) {
3549
+ return Object.fromEntries(
3550
+ Object.entries(r).filter(([e]) => e !== "DEFAULT")
3551
+ );
3552
+ }
3553
+ var Dr = Ar(
3554
+ ({ addUtilities: r, matchUtilities: e, theme: t }) => {
3555
+ r({
3556
+ "@keyframes enter": t("keyframes.enter"),
3557
+ "@keyframes exit": t("keyframes.exit"),
3558
+ ".animate-in": {
3559
+ animationName: "enter",
3560
+ animationDuration: t("animationDuration.DEFAULT"),
3561
+ "--tw-enter-opacity": "initial",
3562
+ "--tw-enter-scale": "initial",
3563
+ "--tw-enter-rotate": "initial",
3564
+ "--tw-enter-translate-x": "initial",
3565
+ "--tw-enter-translate-y": "initial"
3566
+ },
3567
+ ".animate-out": {
3568
+ animationName: "exit",
3569
+ animationDuration: t("animationDuration.DEFAULT"),
3570
+ "--tw-exit-opacity": "initial",
3571
+ "--tw-exit-scale": "initial",
3572
+ "--tw-exit-rotate": "initial",
3573
+ "--tw-exit-translate-x": "initial",
3574
+ "--tw-exit-translate-y": "initial"
3575
+ }
3576
+ }), e(
3577
+ {
3578
+ "fade-in": (n) => ({ "--tw-enter-opacity": n }),
3579
+ "fade-out": (n) => ({ "--tw-exit-opacity": n })
3580
+ },
3581
+ { values: t("animationOpacity") }
3582
+ ), e(
3583
+ {
3584
+ "zoom-in": (n) => ({ "--tw-enter-scale": n }),
3585
+ "zoom-out": (n) => ({ "--tw-exit-scale": n })
3586
+ },
3587
+ { values: t("animationScale") }
3588
+ ), e(
3589
+ {
3590
+ "spin-in": (n) => ({ "--tw-enter-rotate": n }),
3591
+ "spin-out": (n) => ({ "--tw-exit-rotate": n })
3592
+ },
3593
+ { values: t("animationRotate") }
3594
+ ), e(
3595
+ {
3596
+ "slide-in-from-top": (n) => ({
3597
+ "--tw-enter-translate-y": `-${n}`
3598
+ }),
3599
+ "slide-in-from-bottom": (n) => ({
3600
+ "--tw-enter-translate-y": n
3601
+ }),
3602
+ "slide-in-from-left": (n) => ({
3603
+ "--tw-enter-translate-x": `-${n}`
3604
+ }),
3605
+ "slide-in-from-right": (n) => ({
3606
+ "--tw-enter-translate-x": n
3607
+ }),
3608
+ "slide-out-to-top": (n) => ({
3609
+ "--tw-exit-translate-y": `-${n}`
3610
+ }),
3611
+ "slide-out-to-bottom": (n) => ({
3612
+ "--tw-exit-translate-y": n
3613
+ }),
3614
+ "slide-out-to-left": (n) => ({
3615
+ "--tw-exit-translate-x": `-${n}`
3616
+ }),
3617
+ "slide-out-to-right": (n) => ({
3618
+ "--tw-exit-translate-x": n
3619
+ })
3620
+ },
3621
+ { values: t("animationTranslate") }
3622
+ ), e(
3623
+ { duration: (n) => ({ animationDuration: n }) },
3624
+ { values: Ue(t("animationDuration")) }
3625
+ ), e(
3626
+ { delay: (n) => ({ animationDelay: n }) },
3627
+ { values: t("animationDelay") }
3628
+ ), e(
3629
+ { ease: (n) => ({ animationTimingFunction: n }) },
3630
+ { values: Ue(t("animationTimingFunction")) }
3631
+ ), r({
3632
+ ".running": { animationPlayState: "running" },
3633
+ ".paused": { animationPlayState: "paused" }
3634
+ }), e(
3635
+ { "fill-mode": (n) => ({ animationFillMode: n }) },
3636
+ { values: t("animationFillMode") }
3637
+ ), e(
3638
+ { direction: (n) => ({ animationDirection: n }) },
3639
+ { values: t("animationDirection") }
3640
+ ), e(
3641
+ { repeat: (n) => ({ animationIterationCount: n }) },
3642
+ { values: t("animationRepeat") }
3643
+ );
3644
+ },
3645
+ {
3646
+ theme: {
3647
+ extend: {
3648
+ animationDelay: ({ theme: r }) => ({
3649
+ ...r("transitionDelay")
3650
+ }),
3651
+ animationDuration: ({ theme: r }) => ({
3652
+ 0: "0ms",
3653
+ ...r("transitionDuration")
3654
+ }),
3655
+ animationTimingFunction: ({ theme: r }) => ({
3656
+ ...r("transitionTimingFunction")
3657
+ }),
3658
+ animationFillMode: {
3659
+ none: "none",
3660
+ forwards: "forwards",
3661
+ backwards: "backwards",
3662
+ both: "both"
3663
+ },
3664
+ animationDirection: {
3665
+ normal: "normal",
3666
+ reverse: "reverse",
3667
+ alternate: "alternate",
3668
+ "alternate-reverse": "alternate-reverse"
3669
+ },
3670
+ animationOpacity: ({ theme: r }) => ({
3671
+ DEFAULT: 0,
3672
+ ...r("opacity")
3673
+ }),
3674
+ animationTranslate: ({ theme: r }) => ({
3675
+ DEFAULT: "100%",
3676
+ ...r("translate")
3677
+ }),
3678
+ animationScale: ({ theme: r }) => ({
3679
+ DEFAULT: 0,
3680
+ ...r("scale")
3681
+ }),
3682
+ animationRotate: ({ theme: r }) => ({
3683
+ DEFAULT: "30deg",
3684
+ ...r("rotate")
3685
+ }),
3686
+ animationRepeat: {
3687
+ 0: "0",
3688
+ 1: "1",
3689
+ infinite: "infinite"
3690
+ },
3691
+ keyframes: {
3692
+ enter: {
3693
+ from: {
3694
+ opacity: "var(--tw-enter-opacity, 1)",
3695
+ transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
3696
+ }
3697
+ },
3698
+ exit: {
3699
+ to: {
3700
+ opacity: "var(--tw-exit-opacity, 1)",
3701
+ transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
3702
+ }
3703
+ }
3704
+ }
3705
+ }
3706
+ }
3707
+ }
3708
+ );
3709
+ const pt = /* @__PURE__ */ We(Dr), Qr = {
3710
+ theme: {
3711
+ screens: {
3712
+ mobile: { max: "1187px" },
3713
+ desktop: "1188px"
3714
+ },
3715
+ backgroundColor: {
3716
+ color: ve,
3717
+ banner: He,
3718
+ icon: $
3719
+ },
3720
+ textColor: {
3721
+ icon: $,
3722
+ color: Ge
3723
+ },
3724
+ fill: $,
3725
+ stroke: $,
3726
+ borderColor: _e,
3727
+ outlineColor: _e,
3728
+ borderRadius: Je,
3729
+ fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
3730
+ fontSize: Xe,
3731
+ lineHeight: Qe,
3732
+ gradientColorStops: ve,
3733
+ boxShadow: {
3734
+ sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
3735
+ md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
3736
+ lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
3737
+ },
3738
+ extend: {
3739
+ bgGradientDeg: Ye,
3740
+ width: {
3741
+ "popper-content": "var(--radix-popover-content-available-width)",
3742
+ "popper-trigger": "var(--radix-popover-trigger-width)",
3743
+ "autocomplete-input": "var(--input-width)",
3744
+ "select-trigger": "var(--button-width)"
3745
+ },
3746
+ transitionDuration: {
3747
+ DEFAULT: "0.3s",
3748
+ 12: "0.12s",
3749
+ 15: "0.15s",
3750
+ 2: "2s"
3751
+ },
3752
+ transitionTimingFunction: {
3753
+ DEFAULT: "ease-in-out"
3754
+ },
3755
+ keyframes: {
3756
+ slideDown: {
3757
+ from: { height: "0px" },
3758
+ to: { height: "var(--radix-accordion-content-height)" }
3759
+ },
3760
+ slideUp: {
3761
+ from: { height: "var(--radix-accordion-content-height)" },
3762
+ to: { height: "0px" }
3763
+ },
3764
+ "scale-in": {
3765
+ from: { opacity: "0", scale: "0" },
3766
+ to: { opacity: "1", scale: "1" }
3767
+ },
3768
+ "progress-loader": {
3769
+ "100%": {
3770
+ backgroundPosition: "100% 100%"
3771
+ }
3772
+ }
3773
+ },
3774
+ animation: {
3775
+ slideDown: "slideDown 0.3s cubic-bezier(0.87, 0, 0.13, 1)",
3776
+ slideUp: "slideUp 0.3s cubic-bezier(0.87, 0, 0.13, 1)",
3777
+ "scale-in": "scale-in 0.3s ease-in-out",
3778
+ "progress-loader": "progress-loader 250s linear infinite"
3779
+ }
3780
+ }
3781
+ },
3782
+ plugins: [
3783
+ // eslint-disable-next-line global-require
3784
+ pt,
3785
+ Ee(({ addComponents: r }) => {
3786
+ r(Ke);
3787
+ }),
3788
+ Ee(function({ matchUtilities: r, theme: e }) {
3789
+ r(
3790
+ {
3791
+ "bg-deg-gradient": (t) => ({
3792
+ "background-image": `linear-gradient(${t}, var(--tw-gradient-stops))`
3793
+ })
3794
+ },
3795
+ {
3796
+ values: Object.assign(e("bgGradientDeg", {}), {})
3797
+ }
3798
+ );
3799
+ })
3800
+ ]
3801
+ }, Kr = {
3802
+ theme: {
3803
+ extend: {
3804
+ transitionDuration: {
3805
+ DEFAULT: "0.3s",
3806
+ 12: "0.12s",
3807
+ 15: "0.15s",
3808
+ 2: "2s",
3809
+ 333: "333s"
3810
+ },
3811
+ transitionTimingFunction: {
3812
+ DEFAULT: "ease-in-out"
3813
+ },
3814
+ keyframes: {
3815
+ slideDown: {
3816
+ from: { height: "0px" },
3817
+ to: { height: "var(--radix-accordion-content-height)" }
3818
+ },
3819
+ slideUp: {
3820
+ from: { height: "var(--radix-accordion-content-height)" },
3821
+ to: { height: "0px" }
3822
+ },
3823
+ "scale-in": {
3824
+ from: { opacity: "0", scale: "0" },
3825
+ to: { opacity: "1", scale: "1" }
3826
+ },
3827
+ "progress-loader": {
3828
+ "100%": {
3829
+ backgroundPosition: "100% 100%"
3830
+ }
3831
+ }
3832
+ },
3833
+ animation: {
3834
+ slideDown: "slideDown 0.3s cubic-bezier(0.87, 0, 0.13, 1)",
3835
+ slideUp: "slideUp 0.3s cubic-bezier(0.87, 0, 0.13, 1)",
3836
+ "scale-in": "scale-in 0.3s ease-in-out",
3837
+ "progress-loader": "progress-loader 250s linear infinite"
3838
+ }
3839
+ }
3840
+ }
3841
+ }, en = {
3842
+ theme: {
3843
+ screens: {
3844
+ mobile: { max: "1187px" },
3845
+ desktop: "1188px"
3846
+ },
3847
+ backgroundColor: {
3848
+ color: ve,
3849
+ banner: He,
3850
+ icon: $
3851
+ },
3852
+ textColor: {
3853
+ icon: $,
3854
+ color: Ge
3855
+ },
3856
+ fill: $,
3857
+ stroke: $,
3858
+ borderColor: _e,
3859
+ outlineColor: _e,
3860
+ borderRadius: Je,
3861
+ fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
3862
+ fontSize: Xe,
3863
+ lineHeight: Qe,
3864
+ gradientColorStops: ve,
3865
+ boxShadow: {
3866
+ sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
3867
+ md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
3868
+ lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
3869
+ },
3870
+ zIndex: St,
3871
+ extend: {
3872
+ bgGradientDeg: Ye
3873
+ }
3874
+ },
3875
+ plugins: [
3876
+ pt,
3877
+ Ee(({ addComponents: r }) => {
3878
+ r(Ke);
3879
+ }),
3880
+ Ee(function({ matchUtilities: r, theme: e }) {
3881
+ r(
3882
+ {
3883
+ "bg-deg-gradient": (t) => ({
3884
+ "background-image": `linear-gradient(${t}, var(--tw-gradient-stops))`
3885
+ })
3886
+ },
3887
+ {
3888
+ values: Object.assign(e("bgGradientDeg", {}), {})
3889
+ }
3890
+ );
3891
+ })
3892
+ ]
3893
+ };
3894
+ export {
3895
+ nn as Badge,
3896
+ Br as Breadcrumbs,
3897
+ Ur as Button,
3898
+ Fr as ButtonIcon,
3899
+ Wr as CustomLink,
3900
+ an as DADATA_BASE_CACHE_URL,
3901
+ sn as DADATA_BASE_CONSTANTS_URL,
3902
+ qr as Document,
3903
+ mt as Heading,
3904
+ Me as Icon,
3905
+ ht as Loader,
3906
+ on as Notification,
3907
+ Gr as PhoneView,
3908
+ Hr as ProgressBar,
3909
+ gt as ResponsiveContainer,
3910
+ Ve as RgxCheckForHyphen,
3911
+ It as RgxPatronymic,
3912
+ jt as RgxUnicode,
3913
+ Pr as Section,
3914
+ Jr as Skeleton,
3915
+ zr as Table,
3916
+ ge as VALIDATION_MESSAGES,
3917
+ ve as allowedBackgroundColors,
3918
+ Ye as allowedBackgroundDeg,
3919
+ He as allowedBannersBackgroundColors,
3920
+ Je as allowedBorderRadius,
3921
+ Xe as allowedFontSize,
3922
+ $ as allowedIconsColors,
3923
+ Qe as allowedLineHeight,
3924
+ _e as allowedStrokeColors,
3925
+ Ge as allowedTextColors,
3926
+ Ke as allowedTextStyles,
3927
+ St as allowedZIndex,
3928
+ je as capitalize,
3929
+ x as cn,
3930
+ $r as deepCompare,
3931
+ Kr as extendsPreset,
3932
+ Vr as formatToDate,
3933
+ dn as isClient,
3934
+ en as resetPreset,
3935
+ Qr as tailwindConfigBase,
3936
+ Xr as zodCalendarValidate,
3937
+ Yr as zodDadataFioValidate
3938
+ };
3939
+ //# sourceMappingURL=hybrid.js.map