@fairmint/ui 0.3.33 → 0.3.34
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.
- package/dist/_virtual/index3.cjs +3 -5
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +5 -3
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/components/BrandedLoadingScreen/BrandedLoadingScreen.d.ts +1 -1
- package/dist/components/BrandedLoadingScreen/BrandedLoadingScreen.d.ts.map +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.d.ts +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogo.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogo.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoGraphic.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoGraphic.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.d.ts.map +1 -1
- package/dist/components/FairmintProvider/FairmintNotifications.d.ts +1 -1
- package/dist/components/FairmintProvider/FairmintNotifications.d.ts.map +1 -1
- package/dist/components/FairmintProvider/FairmintProvider.d.ts +1 -1
- package/dist/components/FairmintProvider/FairmintProvider.d.ts.map +1 -1
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +1 -1
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/form/BirthdayDatePicker/BirthdayDatePicker.d.ts +1 -1
- package/dist/components/form/BirthdayDatePicker/BirthdayDatePicker.d.ts.map +1 -1
- package/dist/components/form/EmailField.d.ts +1 -1
- package/dist/components/form/EmailField.d.ts.map +1 -1
- package/dist/components/form/EthereumAddressField/EthereumAddressField.d.ts +1 -1
- package/dist/components/form/EthereumAddressField/EthereumAddressField.d.ts.map +1 -1
- package/dist/components/form/Form.d.ts +1 -1
- package/dist/components/form/Form.d.ts.map +1 -1
- package/dist/components/form/FormField.d.ts +1 -1
- package/dist/components/form/FormField.d.ts.map +1 -1
- package/dist/components/form/PasswordField.d.ts +1 -1
- package/dist/components/form/PasswordField.d.ts.map +1 -1
- package/dist/components/form/PhoneField.d.ts +2 -1
- package/dist/components/form/PhoneField.d.ts.map +1 -1
- package/dist/components/form/SignatureNameField/SignatureNameField.d.ts +1 -1
- package/dist/components/form/SignatureNameField/SignatureNameField.d.ts.map +1 -1
- package/dist/components/form/USStateField/USStateField.d.ts +1 -1
- package/dist/components/form/USStateField/USStateField.d.ts.map +1 -1
- package/dist/components/form/ZipField/ZipField.d.ts +1 -1
- package/dist/components/form/ZipField/ZipField.d.ts.map +1 -1
- package/dist/components/generic/AgentSuggestion/AgentSuggestion.d.ts +2 -2
- package/dist/components/generic/AgentSuggestion/AgentSuggestion.d.ts.map +1 -1
- package/dist/components/generic/AnimateIn/AnimateIn.d.ts +1 -1
- package/dist/components/generic/AnimateIn/AnimateIn.d.ts.map +1 -1
- package/dist/components/generic/Banner/Banner.d.ts +1 -1
- package/dist/components/generic/Banner/Banner.d.ts.map +1 -1
- package/dist/components/generic/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/components/generic/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/components/generic/ClickableCard/ClickableCard.d.ts +1 -1
- package/dist/components/generic/ClickableCard/ClickableCard.d.ts.map +1 -1
- package/dist/components/generic/ColorDot/ColorDot.d.ts +1 -1
- package/dist/components/generic/ColorDot/ColorDot.d.ts.map +1 -1
- package/dist/components/generic/CompanyBanner/CompanyBanner.d.ts +1 -1
- package/dist/components/generic/CompanyBanner/CompanyBanner.d.ts.map +1 -1
- package/dist/components/generic/ConfidentialityBanner/ConfidentialityBanner.d.ts +1 -1
- package/dist/components/generic/ConfidentialityBanner/ConfidentialityBanner.d.ts.map +1 -1
- package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts +1 -1
- package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/generic/Currency/Currency.d.ts +2 -1
- package/dist/components/generic/Currency/Currency.d.ts.map +1 -1
- package/dist/components/generic/DataRow/DataRow.d.ts +3 -3
- package/dist/components/generic/DataRow/DataRow.d.ts.map +1 -1
- package/dist/components/generic/DataTable/DataTable.d.ts +1 -1
- package/dist/components/generic/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/generic/DateDisplay/DateDisplay.d.ts +1 -1
- package/dist/components/generic/DateDisplay/DateDisplay.d.ts.map +1 -1
- package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts +1 -1
- package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts.map +1 -1
- package/dist/components/generic/DocumentRow/DocumentRow.d.ts +1 -1
- package/dist/components/generic/DocumentRow/DocumentRow.d.ts.map +1 -1
- package/dist/components/generic/EditableSection/EditableSection.d.ts +1 -1
- package/dist/components/generic/EditableSection/EditableSection.d.ts.map +1 -1
- package/dist/components/generic/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/generic/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/generic/ErrorPage/ErrorPage.d.ts +1 -1
- package/dist/components/generic/ErrorPage/ErrorPage.d.ts.map +1 -1
- package/dist/components/generic/Eyebrow/Eyebrow.d.ts +1 -1
- package/dist/components/generic/Eyebrow/Eyebrow.d.ts.map +1 -1
- package/dist/components/generic/FileDropzone/FileDropzone.d.ts +1 -1
- package/dist/components/generic/FileDropzone/FileDropzone.d.ts.map +1 -1
- package/dist/components/generic/ListRow/ListRow.d.ts +1 -1
- package/dist/components/generic/ListRow/ListRow.d.ts.map +1 -1
- package/dist/components/generic/NotificationRow/NotificationRow.d.ts +1 -1
- package/dist/components/generic/NotificationRow/NotificationRow.d.ts.map +1 -1
- package/dist/components/generic/Percent/Percent.d.ts +1 -1
- package/dist/components/generic/Percent/Percent.d.ts.map +1 -1
- package/dist/components/generic/PhotoCropModal/PhotoCropModal.d.ts +1 -1
- package/dist/components/generic/PhotoCropModal/PhotoCropModal.d.ts.map +1 -1
- package/dist/components/generic/ProcessingState/ProcessingState.d.ts +1 -1
- package/dist/components/generic/ProcessingState/ProcessingState.d.ts.map +1 -1
- package/dist/components/generic/RadioCard/RadioCard.d.ts +1 -1
- package/dist/components/generic/RadioCard/RadioCard.d.ts.map +1 -1
- package/dist/components/generic/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/generic/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/generic/StatCard/StatCard.d.ts +1 -1
- package/dist/components/generic/StatCard/StatCard.d.ts.map +1 -1
- package/dist/components/generic/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/components/generic/StatusBadge/StatusBadge.d.ts.map +1 -1
- package/dist/components/generic/StepCard/StepCard.d.ts +1 -1
- package/dist/components/generic/StepCard/StepCard.d.ts.map +1 -1
- package/dist/components/generic/StepFlow/StepFlow.d.ts +1 -1
- package/dist/components/generic/StepFlow/StepFlow.d.ts.map +1 -1
- package/dist/components/generic/StepProgress/StepProgress.d.ts +1 -1
- package/dist/components/generic/StepProgress/StepProgress.d.ts.map +1 -1
- package/dist/components/generic/TablePagination/TablePagination.d.ts +1 -1
- package/dist/components/generic/TablePagination/TablePagination.d.ts.map +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.d.ts +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.d.ts.map +1 -1
- package/dist/components/generic/TaskRow/TaskRow.d.ts +1 -1
- package/dist/components/generic/TaskRow/TaskRow.d.ts.map +1 -1
- package/dist/components/generic/ValidationWarning/ValidationWarning.d.ts +1 -1
- package/dist/components/generic/ValidationWarning/ValidationWarning.d.ts.map +1 -1
- package/dist/components/layout/AccountSheet/AccountSheet.d.ts +1 -1
- package/dist/components/layout/AccountSheet/AccountSheet.d.ts.map +1 -1
- package/dist/components/layout/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/layout/AppHeader/AppHeader.d.ts.map +1 -1
- package/dist/components/layout/MobileNav/MobileNav.d.ts +1 -1
- package/dist/components/layout/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/components/layout/PageHeader/PageHeader.d.ts +1 -1
- package/dist/components/layout/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/layout/SideNav/SideNav.d.ts +1 -1
- package/dist/components/layout/SideNav/SideNav.d.ts.map +1 -1
- package/dist/components/layout/UserMenu/UserMenu.d.ts +1 -1
- package/dist/components/layout/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/primitives/Alert/Alert.d.ts +1 -1
- package/dist/components/primitives/Alert/Alert.d.ts.map +1 -1
- package/dist/components/primitives/Drawer/Drawer.d.ts +1 -1
- package/dist/components/primitives/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/primitives/Loader/Loader.d.ts +1 -1
- package/dist/components/primitives/Loader/Loader.d.ts.map +1 -1
- package/dist/components/primitives/Menu/Menu.d.ts +1 -1
- package/dist/components/primitives/Menu/Menu.d.ts.map +1 -1
- package/dist/components/primitives/Modal/Modal.d.ts +1 -1
- package/dist/components/primitives/Modal/Modal.d.ts.map +1 -1
- package/dist/components/primitives/Pdf/Pdf.d.ts +2 -2
- package/dist/components/primitives/Pdf/Pdf.d.ts.map +1 -1
- package/dist/components/primitives/Popover/Popover.d.ts +1 -1
- package/dist/components/primitives/Popover/Popover.d.ts.map +1 -1
- package/dist/components/primitives/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/primitives/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/primitives/Table/Table.d.ts +1 -1
- package/dist/components/primitives/Table/Table.d.ts.map +1 -1
- package/dist/components/primitives/Tabs/Tabs.d.ts +3 -3
- package/dist/components/primitives/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/primitives/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/primitives/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/primitives/layout.d.ts +8 -8
- package/dist/components/primitives/layout.d.ts.map +1 -1
- package/dist/components/primitives/muiCompat.cjs.map +1 -1
- package/dist/components/primitives/muiCompat.d.ts +41 -42
- package/dist/components/primitives/muiCompat.d.ts.map +1 -1
- package/dist/components/primitives/muiCompat.js.map +1 -1
- package/dist/components/specific/DocumentRow/DocumentRow.d.ts +1 -1
- package/dist/components/specific/DocumentRow/DocumentRow.d.ts.map +1 -1
- package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts +1 -1
- package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts.map +1 -1
- package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts +1 -1
- package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts.map +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts.map +1 -1
- package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts +1 -1
- package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts.map +1 -1
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts +1 -1
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts.map +1 -1
- package/dist/components/specific/WalletList/WalletList.d.ts +1 -1
- package/dist/components/specific/WalletList/WalletList.d.ts.map +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.d.ts +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.d.ts.map +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.cjs +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.js +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconActivity.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconActivity.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsExchange.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsExchange.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsMaximize.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsMaximize.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAward.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAward.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBell.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBell.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandFacebook.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandFacebook.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandInstagram.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandInstagram.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandLinkedin.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandLinkedin.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandX.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandX.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandYoutube.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandYoutube.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBriefcase.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBriefcase.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuilding.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuilding.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuildingBank.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuildingBank.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendarEvent.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendarEvent.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCashBanknote.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCashBanknote.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCategory.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCategory.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCertificate.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCertificate.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartBar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartBar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartDots.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartDots.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartPie.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartPie.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleOff.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleOff.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClipboardCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClipboardCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClock.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClock.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFile.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFile.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileDownload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileDownload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypePdf.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypePdf.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHourglass.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHourglass.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLanguage.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLanguage.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftCollapse.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftCollapse.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftExpand.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftExpand.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMail.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMail.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMapPin.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMapPin.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconNews.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconNews.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPause.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPause.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlay.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlay.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconReload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconReload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRocket.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRocket.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSend.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSend.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldDollar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldDollar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldOff.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldOff.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSitemap.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSitemap.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbDown.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbDown.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbUp.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbUp.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTimeline.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTimeline.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingUp.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingUp.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrophy.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrophy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersGroup.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersGroup.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconX.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js.map +1 -1
- package/dist/node_modules/dayjs/dayjs.min.cjs +4 -4
- package/dist/node_modules/dayjs/dayjs.min.cjs.map +1 -1
- package/dist/node_modules/dayjs/dayjs.min.js +4 -4
- package/dist/node_modules/dayjs/dayjs.min.js.map +1 -1
- package/dist/node_modules/prop-types/index.cjs +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/zod/v4/classic/checks.cjs +0 -1
- package/dist/node_modules/zod/v4/classic/checks.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/checks.js +0 -1
- package/dist/node_modules/zod/v4/classic/checks.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/coerce.cjs +1 -2
- package/dist/node_modules/zod/v4/classic/coerce.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/coerce.js +1 -2
- package/dist/node_modules/zod/v4/classic/coerce.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/compat.cjs +0 -1
- package/dist/node_modules/zod/v4/classic/compat.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/compat.js +0 -1
- package/dist/node_modules/zod/v4/classic/compat.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/errors.cjs +4 -5
- package/dist/node_modules/zod/v4/classic/errors.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/errors.js +4 -5
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/external.cjs +2 -0
- package/dist/node_modules/zod/v4/classic/external.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/external.js +3 -1
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +16 -10
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/from-json-schema.js +16 -10
- package/dist/node_modules/zod/v4/classic/from-json-schema.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/iso.cjs +2 -3
- package/dist/node_modules/zod/v4/classic/iso.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/iso.js +2 -3
- package/dist/node_modules/zod/v4/classic/iso.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/parse.cjs +1 -2
- package/dist/node_modules/zod/v4/classic/parse.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/parse.js +1 -2
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/schemas.cjs +325 -112
- package/dist/node_modules/zod/v4/classic/schemas.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +327 -114
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/api.cjs +2 -2
- package/dist/node_modules/zod/v4/core/api.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/api.js +2 -2
- package/dist/node_modules/zod/v4/core/api.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.cjs +6 -4
- package/dist/node_modules/zod/v4/core/core.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +6 -4
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/errors.cjs +24 -21
- package/dist/node_modules/zod/v4/core/errors.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/errors.js +24 -21
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/index.cjs +1 -0
- package/dist/node_modules/zod/v4/core/index.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/index.js +2 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +15 -22
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +15 -22
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/parse.cjs +7 -7
- package/dist/node_modules/zod/v4/core/parse.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/parse.js +7 -7
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -1
- package/dist/node_modules/zod/v4/core/regexes.cjs +3 -1
- package/dist/node_modules/zod/v4/core/regexes.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/regexes.js +3 -1
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
- package/dist/node_modules/zod/v4/core/schemas.cjs +176 -53
- package/dist/node_modules/zod/v4/core/schemas.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/schemas.js +178 -55
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +8 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +8 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -1
- package/dist/node_modules/zod/v4/core/util.cjs +45 -27
- package/dist/node_modules/zod/v4/core/util.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/util.js +45 -27
- package/dist/node_modules/zod/v4/core/util.js.map +1 -1
- package/dist/node_modules/zod/v4/core/versions.cjs +2 -2
- package/dist/node_modules/zod/v4/core/versions.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/versions.js +2 -2
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/el.cjs +112 -0
- package/dist/node_modules/zod/v4/locales/el.cjs.map +1 -0
- package/dist/node_modules/zod/v4/locales/el.js +113 -0
- package/dist/node_modules/zod/v4/locales/el.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +4 -0
- package/dist/node_modules/zod/v4/locales/en.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/en.js +4 -0
- package/dist/node_modules/zod/v4/locales/en.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/fr.cjs +25 -8
- package/dist/node_modules/zod/v4/locales/fr.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/fr.js +25 -8
- package/dist/node_modules/zod/v4/locales/fr.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/hr.cjs +125 -0
- package/dist/node_modules/zod/v4/locales/hr.cjs.map +1 -0
- package/dist/node_modules/zod/v4/locales/hr.js +126 -0
- package/dist/node_modules/zod/v4/locales/hr.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +6 -0
- package/dist/node_modules/zod/v4/locales/index.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/index.js +88 -82
- package/dist/node_modules/zod/v4/locales/index.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/it.cjs +1 -1
- package/dist/node_modules/zod/v4/locales/it.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/it.js +1 -1
- package/dist/node_modules/zod/v4/locales/it.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/ka.cjs +8 -8
- package/dist/node_modules/zod/v4/locales/ka.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/ka.js +8 -8
- package/dist/node_modules/zod/v4/locales/ka.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/ro.cjs +122 -0
- package/dist/node_modules/zod/v4/locales/ro.cjs.map +1 -0
- package/dist/node_modules/zod/v4/locales/ro.js +123 -0
- package/dist/node_modules/zod/v4/locales/ro.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/uz.cjs +2 -1
- package/dist/node_modules/zod/v4/locales/uz.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/uz.js +2 -1
- package/dist/node_modules/zod/v4/locales/uz.js.map +1 -1
- package/package.json +22 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexes.js","sources":["../../../../../node_modules/zod/v4/core/regexes.js"],"sourcesContent":["import * as util from \"./util.js\";\nexport const cuid = /^[cC][^\\s-]{8,}$/;\nexport const cuid2 = /^[0-9a-z]+$/;\nexport const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;\nexport const xid = /^[0-9a-vA-V]{20}$/;\nexport const ksuid = /^[A-Za-z0-9]{27}$/;\nexport const nanoid = /^[a-zA-Z0-9_-]{21}$/;\n/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */\nexport const duration = /^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/;\n/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */\nexport const extendedDuration = /^[-+]?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)?)??$/;\n/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */\nexport const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;\n/** Returns a regex for validating an RFC 9562/4122 UUID.\n *\n * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */\nexport const uuid = (version) => {\n if (!version)\n return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;\n return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);\n};\nexport const uuid4 = /*@__PURE__*/ uuid(4);\nexport const uuid6 = /*@__PURE__*/ uuid(6);\nexport const uuid7 = /*@__PURE__*/ uuid(7);\n/** Practical email validation */\nexport const email = /^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/;\n/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */\nexport const html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n/** The classic emailregex.com regex for RFC 5322-compliant emails */\nexport const rfc5322Email = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */\nexport const unicodeEmail = /^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u;\nexport const idnEmail = unicodeEmail;\nexport const browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emoji = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nexport function emoji() {\n return new RegExp(_emoji, \"u\");\n}\nexport const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nexport const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;\nexport const mac = (delimiter) => {\n const escapedDelim = util.escapeRegex(delimiter ?? \":\");\n return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);\n};\nexport const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/;\nexport const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nexport const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;\nexport const base64url = /^[A-Za-z0-9_-]*$/;\n// based on https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address\n// export const hostname: RegExp = /^([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+$/;\nexport const hostname = /^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/;\nexport const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/;\n// https://blog.stevenlevithan.com/archives/validate-phone-number#r4-3 (regex sans spaces)\n// E.164: leading digit must be 1-9; total digits (excluding '+') between 7-15\nexport const e164 = /^\\+[1-9]\\d{6,14}$/;\n// const dateSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateSource = `(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`;\nexport const date = /*@__PURE__*/ new RegExp(`^${dateSource}$`);\nfunction timeSource(args) {\n const hhmm = `(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;\n const regex = typeof args.precision === \"number\"\n ? args.precision === -1\n ? `${hhmm}`\n : args.precision === 0\n ? `${hhmm}:[0-5]\\\\d`\n : `${hhmm}:[0-5]\\\\d\\\\.\\\\d{${args.precision}}`\n : `${hhmm}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`;\n return regex;\n}\nexport function time(args) {\n return new RegExp(`^${timeSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nexport function datetime(args) {\n const time = timeSource({ precision: args.precision });\n const opts = [\"Z\"];\n if (args.local)\n opts.push(\"\");\n // if (args.offset) opts.push(`([+-]\\\\d{2}:\\\\d{2})`);\n if (args.offset)\n opts.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);\n const timeRegex = `${time}(?:${opts.join(\"|\")})`;\n return new RegExp(`^${dateSource}T(?:${timeRegex})$`);\n}\nexport const string = (params) => {\n const regex = params ? `[\\\\s\\\\S]{${params?.minimum ?? 0},${params?.maximum ?? \"\"}}` : `[\\\\s\\\\S]*`;\n return new RegExp(`^${regex}$`);\n};\nexport const bigint = /^-?\\d+n?$/;\nexport const integer = /^-?\\d+$/;\nexport const number = /^-?\\d+(?:\\.\\d+)?$/;\nexport const boolean = /^(?:true|false)$/i;\nconst _null = /^null$/i;\nexport { _null as null };\nconst _undefined = /^undefined$/i;\nexport { _undefined as undefined };\n// regex for string with no uppercase letters\nexport const lowercase = /^[^A-Z]*$/;\n// regex for string with no lowercase letters\nexport const uppercase = /^[^a-z]*$/;\n// regex for hexadecimal strings (any length)\nexport const hex = /^[0-9a-fA-F]*$/;\n// Hash regexes for different algorithms and encodings\n// Helper function to create base64 regex with exact length and padding\nfunction fixedBase64(bodyLength, padding) {\n return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`);\n}\n// Helper function to create base64url regex with exact length (no padding)\nfunction fixedBase64url(length) {\n return new RegExp(`^[A-Za-z0-9_-]{${length}}$`);\n}\n// MD5 (16 bytes): base64 = 24 chars total (22 + \"==\")\nexport const md5_hex = /^[0-9a-fA-F]{32}$/;\nexport const md5_base64 = /*@__PURE__*/ fixedBase64(22, \"==\");\nexport const md5_base64url = /*@__PURE__*/ fixedBase64url(22);\n// SHA1 (20 bytes): base64 = 28 chars total (27 + \"=\")\nexport const sha1_hex = /^[0-9a-fA-F]{40}$/;\nexport const sha1_base64 = /*@__PURE__*/ fixedBase64(27, \"=\");\nexport const sha1_base64url = /*@__PURE__*/ fixedBase64url(27);\n// SHA256 (32 bytes): base64 = 44 chars total (43 + \"=\")\nexport const sha256_hex = /^[0-9a-fA-F]{64}$/;\nexport const sha256_base64 = /*@__PURE__*/ fixedBase64(43, \"=\");\nexport const sha256_base64url = /*@__PURE__*/ fixedBase64url(43);\n// SHA384 (48 bytes): base64 = 64 chars total (no padding)\nexport const sha384_hex = /^[0-9a-fA-F]{96}$/;\nexport const sha384_base64 = /*@__PURE__*/ fixedBase64(64, \"\");\nexport const sha384_base64url = /*@__PURE__*/ fixedBase64url(64);\n// SHA512 (64 bytes): base64 = 88 chars total (86 + \"==\")\nexport const sha512_hex = /^[0-9a-fA-F]{128}$/;\nexport const sha512_base64 = /*@__PURE__*/ fixedBase64(86, \"==\");\nexport const sha512_base64url = /*@__PURE__*/ fixedBase64url(86);\n"],"names":["util.escapeRegex","time"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"regexes.js","sources":["../../../../../node_modules/zod/v4/core/regexes.js"],"sourcesContent":["import * as util from \"./util.js\";\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link cuid2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const cuid = /^[cC][0-9a-z]{6,}$/;\nexport const cuid2 = /^[0-9a-z]+$/;\nexport const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;\nexport const xid = /^[0-9a-vA-V]{20}$/;\nexport const ksuid = /^[A-Za-z0-9]{27}$/;\nexport const nanoid = /^[a-zA-Z0-9_-]{21}$/;\n/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */\nexport const duration = /^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/;\n/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */\nexport const extendedDuration = /^[-+]?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)?)??$/;\n/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */\nexport const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;\n/** Returns a regex for validating an RFC 9562/4122 UUID.\n *\n * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */\nexport const uuid = (version) => {\n if (!version)\n return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;\n return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);\n};\nexport const uuid4 = /*@__PURE__*/ uuid(4);\nexport const uuid6 = /*@__PURE__*/ uuid(6);\nexport const uuid7 = /*@__PURE__*/ uuid(7);\n/** Practical email validation */\nexport const email = /^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/;\n/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */\nexport const html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n/** The classic emailregex.com regex for RFC 5322-compliant emails */\nexport const rfc5322Email = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */\nexport const unicodeEmail = /^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u;\nexport const idnEmail = unicodeEmail;\nexport const browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emoji = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nexport function emoji() {\n return new RegExp(_emoji, \"u\");\n}\nexport const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nexport const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;\nexport const mac = (delimiter) => {\n const escapedDelim = util.escapeRegex(delimiter ?? \":\");\n return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);\n};\nexport const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/;\nexport const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nexport const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;\nexport const base64url = /^[A-Za-z0-9_-]*$/;\n// based on https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address\n// export const hostname: RegExp = /^([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+$/;\nexport const hostname = /^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/;\nexport const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/;\nexport const httpProtocol = /^https?$/;\n// https://blog.stevenlevithan.com/archives/validate-phone-number#r4-3 (regex sans spaces)\n// E.164: leading digit must be 1-9; total digits (excluding '+') between 7-15\nexport const e164 = /^\\+[1-9]\\d{6,14}$/;\n// const dateSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateSource = `(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`;\nexport const date = /*@__PURE__*/ new RegExp(`^${dateSource}$`);\nfunction timeSource(args) {\n const hhmm = `(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;\n const regex = typeof args.precision === \"number\"\n ? args.precision === -1\n ? `${hhmm}`\n : args.precision === 0\n ? `${hhmm}:[0-5]\\\\d`\n : `${hhmm}:[0-5]\\\\d\\\\.\\\\d{${args.precision}}`\n : `${hhmm}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`;\n return regex;\n}\nexport function time(args) {\n return new RegExp(`^${timeSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nexport function datetime(args) {\n const time = timeSource({ precision: args.precision });\n const opts = [\"Z\"];\n if (args.local)\n opts.push(\"\");\n // if (args.offset) opts.push(`([+-]\\\\d{2}:\\\\d{2})`);\n if (args.offset)\n opts.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);\n const timeRegex = `${time}(?:${opts.join(\"|\")})`;\n return new RegExp(`^${dateSource}T(?:${timeRegex})$`);\n}\nexport const string = (params) => {\n const regex = params ? `[\\\\s\\\\S]{${params?.minimum ?? 0},${params?.maximum ?? \"\"}}` : `[\\\\s\\\\S]*`;\n return new RegExp(`^${regex}$`);\n};\nexport const bigint = /^-?\\d+n?$/;\nexport const integer = /^-?\\d+$/;\nexport const number = /^-?\\d+(?:\\.\\d+)?$/;\nexport const boolean = /^(?:true|false)$/i;\nconst _null = /^null$/i;\nexport { _null as null };\nconst _undefined = /^undefined$/i;\nexport { _undefined as undefined };\n// regex for string with no uppercase letters\nexport const lowercase = /^[^A-Z]*$/;\n// regex for string with no lowercase letters\nexport const uppercase = /^[^a-z]*$/;\n// regex for hexadecimal strings (any length)\nexport const hex = /^[0-9a-fA-F]*$/;\n// Hash regexes for different algorithms and encodings\n// Helper function to create base64 regex with exact length and padding\nfunction fixedBase64(bodyLength, padding) {\n return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`);\n}\n// Helper function to create base64url regex with exact length (no padding)\nfunction fixedBase64url(length) {\n return new RegExp(`^[A-Za-z0-9_-]{${length}}$`);\n}\n// MD5 (16 bytes): base64 = 24 chars total (22 + \"==\")\nexport const md5_hex = /^[0-9a-fA-F]{32}$/;\nexport const md5_base64 = /*@__PURE__*/ fixedBase64(22, \"==\");\nexport const md5_base64url = /*@__PURE__*/ fixedBase64url(22);\n// SHA1 (20 bytes): base64 = 28 chars total (27 + \"=\")\nexport const sha1_hex = /^[0-9a-fA-F]{40}$/;\nexport const sha1_base64 = /*@__PURE__*/ fixedBase64(27, \"=\");\nexport const sha1_base64url = /*@__PURE__*/ fixedBase64url(27);\n// SHA256 (32 bytes): base64 = 44 chars total (43 + \"=\")\nexport const sha256_hex = /^[0-9a-fA-F]{64}$/;\nexport const sha256_base64 = /*@__PURE__*/ fixedBase64(43, \"=\");\nexport const sha256_base64url = /*@__PURE__*/ fixedBase64url(43);\n// SHA384 (48 bytes): base64 = 64 chars total (no padding)\nexport const sha384_hex = /^[0-9a-fA-F]{96}$/;\nexport const sha384_base64 = /*@__PURE__*/ fixedBase64(64, \"\");\nexport const sha384_base64url = /*@__PURE__*/ fixedBase64url(64);\n// SHA512 (64 bytes): base64 = 88 chars total (86 + \"==\")\nexport const sha512_hex = /^[0-9a-fA-F]{128}$/;\nexport const sha512_base64 = /*@__PURE__*/ fixedBase64(86, \"==\");\nexport const sha512_base64url = /*@__PURE__*/ fixedBase64url(86);\n"],"names":["util.escapeRegex","time"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -33,6 +33,8 @@ const $ZodType = /* @__PURE__ */ core.$constructor("$ZodType", (inst, def) => {
|
|
|
33
33
|
let asyncResult;
|
|
34
34
|
for (const ch of checks3) {
|
|
35
35
|
if (ch._zod.def.when) {
|
|
36
|
+
if (util.explicitlyAborted(payload))
|
|
37
|
+
continue;
|
|
36
38
|
const shouldRun = ch._zod.def.when(payload);
|
|
37
39
|
if (!shouldRun)
|
|
38
40
|
continue;
|
|
@@ -173,6 +175,19 @@ const $ZodURL = /* @__PURE__ */ core.$constructor("$ZodURL", (inst, def) => {
|
|
|
173
175
|
inst._zod.check = (payload) => {
|
|
174
176
|
try {
|
|
175
177
|
const trimmed = payload.value.trim();
|
|
178
|
+
if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source) {
|
|
179
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
180
|
+
payload.issues.push({
|
|
181
|
+
code: "invalid_format",
|
|
182
|
+
format: "url",
|
|
183
|
+
note: "Invalid URL format",
|
|
184
|
+
input: payload.value,
|
|
185
|
+
inst,
|
|
186
|
+
continue: !def.abort
|
|
187
|
+
});
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
176
191
|
const url = new URL(trimmed);
|
|
177
192
|
if (def.hostname) {
|
|
178
193
|
def.hostname.lastIndex = 0;
|
|
@@ -326,6 +341,8 @@ const $ZodCIDRv6 = /* @__PURE__ */ core.$constructor("$ZodCIDRv6", (inst, def) =
|
|
|
326
341
|
function isValidBase64(data) {
|
|
327
342
|
if (data === "")
|
|
328
343
|
return true;
|
|
344
|
+
if (/\s/.test(data))
|
|
345
|
+
return false;
|
|
329
346
|
if (data.length % 4 !== 0)
|
|
330
347
|
return false;
|
|
331
348
|
try {
|
|
@@ -518,8 +535,6 @@ const $ZodUndefined = /* @__PURE__ */ core.$constructor("$ZodUndefined", (inst,
|
|
|
518
535
|
$ZodType.init(inst, def);
|
|
519
536
|
inst._zod.pattern = regexes.undefined;
|
|
520
537
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
521
|
-
inst._zod.optin = "optional";
|
|
522
|
-
inst._zod.optout = "optional";
|
|
523
538
|
inst._zod.parse = (payload, _ctx) => {
|
|
524
539
|
const input = payload.value;
|
|
525
540
|
if (typeof input === "undefined")
|
|
@@ -648,15 +663,27 @@ const $ZodArray = /* @__PURE__ */ core.$constructor("$ZodArray", (inst, def) =>
|
|
|
648
663
|
return payload;
|
|
649
664
|
};
|
|
650
665
|
});
|
|
651
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
666
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
667
|
+
const isPresent = key in input;
|
|
652
668
|
if (result.issues.length) {
|
|
653
|
-
if (isOptionalOut && !
|
|
669
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
654
670
|
return;
|
|
655
671
|
}
|
|
656
672
|
final.issues.push(...util.prefixIssues(key, result.issues));
|
|
657
673
|
}
|
|
674
|
+
if (!isPresent && !isOptionalIn) {
|
|
675
|
+
if (!result.issues.length) {
|
|
676
|
+
final.issues.push({
|
|
677
|
+
code: "invalid_type",
|
|
678
|
+
expected: "nonoptional",
|
|
679
|
+
input: void 0,
|
|
680
|
+
path: [key]
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
658
685
|
if (result.value === void 0) {
|
|
659
|
-
if (
|
|
686
|
+
if (isPresent) {
|
|
660
687
|
final.value[key] = void 0;
|
|
661
688
|
}
|
|
662
689
|
} else {
|
|
@@ -684,8 +711,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
684
711
|
const keySet = def.keySet;
|
|
685
712
|
const _catchall = def.catchall._zod;
|
|
686
713
|
const t = _catchall.def.type;
|
|
714
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
687
715
|
const isOptionalOut = _catchall.optout === "optional";
|
|
688
716
|
for (const key in input) {
|
|
717
|
+
if (key === "__proto__")
|
|
718
|
+
continue;
|
|
689
719
|
if (keySet.has(key))
|
|
690
720
|
continue;
|
|
691
721
|
if (t === "never") {
|
|
@@ -694,9 +724,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
694
724
|
}
|
|
695
725
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
696
726
|
if (r instanceof Promise) {
|
|
697
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
727
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
698
728
|
} else {
|
|
699
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
729
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
700
730
|
}
|
|
701
731
|
}
|
|
702
732
|
if (unrecognized.length) {
|
|
@@ -762,12 +792,13 @@ const $ZodObject = /* @__PURE__ */ core.$constructor("$ZodObject", (inst, def) =
|
|
|
762
792
|
const shape = value.shape;
|
|
763
793
|
for (const key of value.keys) {
|
|
764
794
|
const el = shape[key];
|
|
795
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
765
796
|
const isOptionalOut = el._zod.optout === "optional";
|
|
766
797
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
767
798
|
if (r instanceof Promise) {
|
|
768
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
799
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
769
800
|
} else {
|
|
770
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
801
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
771
802
|
}
|
|
772
803
|
}
|
|
773
804
|
if (!catchall) {
|
|
@@ -798,9 +829,10 @@ const $ZodObjectJIT = /* @__PURE__ */ core.$constructor("$ZodObjectJIT", (inst,
|
|
|
798
829
|
const id = ids[key];
|
|
799
830
|
const k = util.esc(key);
|
|
800
831
|
const schema = shape[key];
|
|
832
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
801
833
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
802
834
|
doc$1.write(`const ${id} = ${parseStr(key)};`);
|
|
803
|
-
if (isOptionalOut) {
|
|
835
|
+
if (isOptionalIn && isOptionalOut) {
|
|
804
836
|
doc$1.write(`
|
|
805
837
|
if (${id}.issues.length) {
|
|
806
838
|
if (${k} in input) {
|
|
@@ -819,6 +851,33 @@ const $ZodObjectJIT = /* @__PURE__ */ core.$constructor("$ZodObjectJIT", (inst,
|
|
|
819
851
|
newResult[${k}] = ${id}.value;
|
|
820
852
|
}
|
|
821
853
|
|
|
854
|
+
`);
|
|
855
|
+
} else if (!isOptionalIn) {
|
|
856
|
+
doc$1.write(`
|
|
857
|
+
const ${id}_present = ${k} in input;
|
|
858
|
+
if (${id}.issues.length) {
|
|
859
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
860
|
+
...iss,
|
|
861
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
862
|
+
})));
|
|
863
|
+
}
|
|
864
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
865
|
+
payload.issues.push({
|
|
866
|
+
code: "invalid_type",
|
|
867
|
+
expected: "nonoptional",
|
|
868
|
+
input: undefined,
|
|
869
|
+
path: [${k}]
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
if (${id}_present) {
|
|
874
|
+
if (${id}.value === undefined) {
|
|
875
|
+
newResult[${k}] = undefined;
|
|
876
|
+
} else {
|
|
877
|
+
newResult[${k}] = ${id}.value;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
|
|
822
881
|
`);
|
|
823
882
|
} else {
|
|
824
883
|
doc$1.write(`
|
|
@@ -912,10 +971,9 @@ const $ZodUnion = /* @__PURE__ */ core.$constructor("$ZodUnion", (inst, def) =>
|
|
|
912
971
|
}
|
|
913
972
|
return void 0;
|
|
914
973
|
});
|
|
915
|
-
const
|
|
916
|
-
const first = def.options[0]._zod.run;
|
|
974
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
917
975
|
inst._zod.parse = (payload, ctx) => {
|
|
918
|
-
if (
|
|
976
|
+
if (first) {
|
|
919
977
|
return first(payload, ctx);
|
|
920
978
|
}
|
|
921
979
|
let async = false;
|
|
@@ -968,10 +1026,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
968
1026
|
const $ZodXor = /* @__PURE__ */ core.$constructor("$ZodXor", (inst, def) => {
|
|
969
1027
|
$ZodUnion.init(inst, def);
|
|
970
1028
|
def.inclusive = false;
|
|
971
|
-
const
|
|
972
|
-
const first = def.options[0]._zod.run;
|
|
1029
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
973
1030
|
inst._zod.parse = (payload, ctx) => {
|
|
974
|
-
if (
|
|
1031
|
+
if (first) {
|
|
975
1032
|
return first(payload, ctx);
|
|
976
1033
|
}
|
|
977
1034
|
let async = false;
|
|
@@ -1046,7 +1103,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ core.$constructor("$ZodDiscrimina
|
|
|
1046
1103
|
if (opt) {
|
|
1047
1104
|
return opt._zod.run(payload, ctx);
|
|
1048
1105
|
}
|
|
1049
|
-
if (def.unionFallback) {
|
|
1106
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
1050
1107
|
return _super(payload, ctx);
|
|
1051
1108
|
}
|
|
1052
1109
|
payload.issues.push({
|
|
@@ -1054,6 +1111,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ core.$constructor("$ZodDiscrimina
|
|
|
1054
1111
|
errors: [],
|
|
1055
1112
|
note: "No matching discriminator",
|
|
1056
1113
|
discriminator: def.discriminator,
|
|
1114
|
+
options: Array.from(disc.value.keys()),
|
|
1057
1115
|
input,
|
|
1058
1116
|
path: [def.discriminator],
|
|
1059
1117
|
inst
|
|
@@ -1175,64 +1233,96 @@ const $ZodTuple = /* @__PURE__ */ core.$constructor("$ZodTuple", (inst, def) =>
|
|
|
1175
1233
|
}
|
|
1176
1234
|
payload.value = [];
|
|
1177
1235
|
const proms = [];
|
|
1178
|
-
const
|
|
1179
|
-
const
|
|
1236
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
1237
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
1180
1238
|
if (!def.rest) {
|
|
1181
|
-
|
|
1182
|
-
const tooSmall = input.length < optStart - 1;
|
|
1183
|
-
if (tooBig || tooSmall) {
|
|
1239
|
+
if (input.length < optinStart) {
|
|
1184
1240
|
payload.issues.push({
|
|
1185
|
-
|
|
1241
|
+
code: "too_small",
|
|
1242
|
+
minimum: optinStart,
|
|
1243
|
+
inclusive: true,
|
|
1186
1244
|
input,
|
|
1187
1245
|
inst,
|
|
1188
1246
|
origin: "array"
|
|
1189
1247
|
});
|
|
1190
1248
|
return payload;
|
|
1191
1249
|
}
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1250
|
+
if (input.length > items.length) {
|
|
1251
|
+
payload.issues.push({
|
|
1252
|
+
code: "too_big",
|
|
1253
|
+
maximum: items.length,
|
|
1254
|
+
inclusive: true,
|
|
1255
|
+
input,
|
|
1256
|
+
inst,
|
|
1257
|
+
origin: "array"
|
|
1258
|
+
});
|
|
1199
1259
|
}
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}, ctx);
|
|
1204
|
-
if (
|
|
1205
|
-
proms.push(
|
|
1260
|
+
}
|
|
1261
|
+
const itemResults = new Array(items.length);
|
|
1262
|
+
for (let i = 0; i < items.length; i++) {
|
|
1263
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
1264
|
+
if (r instanceof Promise) {
|
|
1265
|
+
proms.push(r.then((rr) => {
|
|
1266
|
+
itemResults[i] = rr;
|
|
1267
|
+
}));
|
|
1206
1268
|
} else {
|
|
1207
|
-
|
|
1269
|
+
itemResults[i] = r;
|
|
1208
1270
|
}
|
|
1209
1271
|
}
|
|
1210
1272
|
if (def.rest) {
|
|
1273
|
+
let i = items.length - 1;
|
|
1211
1274
|
const rest = input.slice(items.length);
|
|
1212
1275
|
for (const el of rest) {
|
|
1213
1276
|
i++;
|
|
1214
|
-
const result = def.rest._zod.run({
|
|
1215
|
-
value: el,
|
|
1216
|
-
issues: []
|
|
1217
|
-
}, ctx);
|
|
1277
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
1218
1278
|
if (result instanceof Promise) {
|
|
1219
|
-
proms.push(result.then((
|
|
1279
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
1220
1280
|
} else {
|
|
1221
1281
|
handleTupleResult(result, payload, i);
|
|
1222
1282
|
}
|
|
1223
1283
|
}
|
|
1224
1284
|
}
|
|
1225
|
-
if (proms.length)
|
|
1226
|
-
return Promise.all(proms).then(() => payload);
|
|
1227
|
-
|
|
1285
|
+
if (proms.length) {
|
|
1286
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
1287
|
+
}
|
|
1288
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
1228
1289
|
};
|
|
1229
1290
|
});
|
|
1291
|
+
function getTupleOptStart(items, key) {
|
|
1292
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
1293
|
+
if (items[i]._zod[key] !== "optional")
|
|
1294
|
+
return i + 1;
|
|
1295
|
+
}
|
|
1296
|
+
return 0;
|
|
1297
|
+
}
|
|
1230
1298
|
function handleTupleResult(result, final, index) {
|
|
1231
1299
|
if (result.issues.length) {
|
|
1232
1300
|
final.issues.push(...util.prefixIssues(index, result.issues));
|
|
1233
1301
|
}
|
|
1234
1302
|
final.value[index] = result.value;
|
|
1235
1303
|
}
|
|
1304
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
1305
|
+
for (let i = 0; i < items.length; i++) {
|
|
1306
|
+
const r = itemResults[i];
|
|
1307
|
+
const isPresent = i < input.length;
|
|
1308
|
+
if (r.issues.length) {
|
|
1309
|
+
if (!isPresent && i >= optoutStart) {
|
|
1310
|
+
final.value.length = i;
|
|
1311
|
+
break;
|
|
1312
|
+
}
|
|
1313
|
+
final.issues.push(...util.prefixIssues(i, r.issues));
|
|
1314
|
+
}
|
|
1315
|
+
final.value[i] = r.value;
|
|
1316
|
+
}
|
|
1317
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
1318
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
1319
|
+
final.value.length = i;
|
|
1320
|
+
} else {
|
|
1321
|
+
break;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
return final;
|
|
1325
|
+
}
|
|
1236
1326
|
const $ZodRecord = /* @__PURE__ */ core.$constructor("$ZodRecord", (inst, def) => {
|
|
1237
1327
|
$ZodType.init(inst, def);
|
|
1238
1328
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1254,19 +1344,35 @@ const $ZodRecord = /* @__PURE__ */ core.$constructor("$ZodRecord", (inst, def) =
|
|
|
1254
1344
|
for (const key of values) {
|
|
1255
1345
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
1256
1346
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
1347
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1348
|
+
if (keyResult instanceof Promise) {
|
|
1349
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
1350
|
+
}
|
|
1351
|
+
if (keyResult.issues.length) {
|
|
1352
|
+
payload.issues.push({
|
|
1353
|
+
code: "invalid_key",
|
|
1354
|
+
origin: "record",
|
|
1355
|
+
issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
|
|
1356
|
+
input: key,
|
|
1357
|
+
path: [key],
|
|
1358
|
+
inst
|
|
1359
|
+
});
|
|
1360
|
+
continue;
|
|
1361
|
+
}
|
|
1362
|
+
const outKey = keyResult.value;
|
|
1257
1363
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1258
1364
|
if (result instanceof Promise) {
|
|
1259
1365
|
proms.push(result.then((result2) => {
|
|
1260
1366
|
if (result2.issues.length) {
|
|
1261
1367
|
payload.issues.push(...util.prefixIssues(key, result2.issues));
|
|
1262
1368
|
}
|
|
1263
|
-
payload.value[
|
|
1369
|
+
payload.value[outKey] = result2.value;
|
|
1264
1370
|
}));
|
|
1265
1371
|
} else {
|
|
1266
1372
|
if (result.issues.length) {
|
|
1267
1373
|
payload.issues.push(...util.prefixIssues(key, result.issues));
|
|
1268
1374
|
}
|
|
1269
|
-
payload.value[
|
|
1375
|
+
payload.value[outKey] = result.value;
|
|
1270
1376
|
}
|
|
1271
1377
|
}
|
|
1272
1378
|
}
|
|
@@ -1290,6 +1396,8 @@ const $ZodRecord = /* @__PURE__ */ core.$constructor("$ZodRecord", (inst, def) =
|
|
|
1290
1396
|
for (const key of Reflect.ownKeys(input)) {
|
|
1291
1397
|
if (key === "__proto__")
|
|
1292
1398
|
continue;
|
|
1399
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
1400
|
+
continue;
|
|
1293
1401
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
1294
1402
|
if (keyResult instanceof Promise) {
|
|
1295
1403
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -1494,6 +1602,7 @@ const $ZodFile = /* @__PURE__ */ core.$constructor("$ZodFile", (inst, def) => {
|
|
|
1494
1602
|
});
|
|
1495
1603
|
const $ZodTransform = /* @__PURE__ */ core.$constructor("$ZodTransform", (inst, def) => {
|
|
1496
1604
|
$ZodType.init(inst, def);
|
|
1605
|
+
inst._zod.optin = "optional";
|
|
1497
1606
|
inst._zod.parse = (payload, ctx) => {
|
|
1498
1607
|
if (ctx.direction === "backward") {
|
|
1499
1608
|
throw new core.$ZodEncodeError(inst.constructor.name);
|
|
@@ -1503,6 +1612,7 @@ const $ZodTransform = /* @__PURE__ */ core.$constructor("$ZodTransform", (inst,
|
|
|
1503
1612
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
1504
1613
|
return output.then((output2) => {
|
|
1505
1614
|
payload.value = output2;
|
|
1615
|
+
payload.fallback = true;
|
|
1506
1616
|
return payload;
|
|
1507
1617
|
});
|
|
1508
1618
|
}
|
|
@@ -1510,11 +1620,12 @@ const $ZodTransform = /* @__PURE__ */ core.$constructor("$ZodTransform", (inst,
|
|
|
1510
1620
|
throw new core.$ZodAsyncError();
|
|
1511
1621
|
}
|
|
1512
1622
|
payload.value = _out;
|
|
1623
|
+
payload.fallback = true;
|
|
1513
1624
|
return payload;
|
|
1514
1625
|
};
|
|
1515
1626
|
});
|
|
1516
1627
|
function handleOptionalResult(result, input) {
|
|
1517
|
-
if (result.issues.length
|
|
1628
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
1518
1629
|
return { issues: [], value: void 0 };
|
|
1519
1630
|
}
|
|
1520
1631
|
return result;
|
|
@@ -1532,10 +1643,11 @@ const $ZodOptional = /* @__PURE__ */ core.$constructor("$ZodOptional", (inst, de
|
|
|
1532
1643
|
});
|
|
1533
1644
|
inst._zod.parse = (payload, ctx) => {
|
|
1534
1645
|
if (def.innerType._zod.optin === "optional") {
|
|
1646
|
+
const input = payload.value;
|
|
1535
1647
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1536
1648
|
if (result instanceof Promise)
|
|
1537
|
-
return result.then((r) => handleOptionalResult(r,
|
|
1538
|
-
return handleOptionalResult(result,
|
|
1649
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
1650
|
+
return handleOptionalResult(result, input);
|
|
1539
1651
|
}
|
|
1540
1652
|
if (payload.value === void 0) {
|
|
1541
1653
|
return payload;
|
|
@@ -1651,7 +1763,7 @@ const $ZodSuccess = /* @__PURE__ */ core.$constructor("$ZodSuccess", (inst, def)
|
|
|
1651
1763
|
});
|
|
1652
1764
|
const $ZodCatch = /* @__PURE__ */ core.$constructor("$ZodCatch", (inst, def) => {
|
|
1653
1765
|
$ZodType.init(inst, def);
|
|
1654
|
-
|
|
1766
|
+
inst._zod.optin = "optional";
|
|
1655
1767
|
util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1656
1768
|
util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1657
1769
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -1671,6 +1783,7 @@ const $ZodCatch = /* @__PURE__ */ core.$constructor("$ZodCatch", (inst, def) =>
|
|
|
1671
1783
|
input: payload.value
|
|
1672
1784
|
});
|
|
1673
1785
|
payload.issues = [];
|
|
1786
|
+
payload.fallback = true;
|
|
1674
1787
|
}
|
|
1675
1788
|
return payload;
|
|
1676
1789
|
});
|
|
@@ -1685,6 +1798,7 @@ const $ZodCatch = /* @__PURE__ */ core.$constructor("$ZodCatch", (inst, def) =>
|
|
|
1685
1798
|
input: payload.value
|
|
1686
1799
|
});
|
|
1687
1800
|
payload.issues = [];
|
|
1801
|
+
payload.fallback = true;
|
|
1688
1802
|
}
|
|
1689
1803
|
return payload;
|
|
1690
1804
|
};
|
|
@@ -1730,7 +1844,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
1730
1844
|
left.aborted = true;
|
|
1731
1845
|
return left;
|
|
1732
1846
|
}
|
|
1733
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
1847
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
1734
1848
|
}
|
|
1735
1849
|
const $ZodCodec = /* @__PURE__ */ core.$constructor("$ZodCodec", (inst, def) => {
|
|
1736
1850
|
$ZodType.init(inst, def);
|
|
@@ -1782,6 +1896,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
1782
1896
|
}
|
|
1783
1897
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
1784
1898
|
}
|
|
1899
|
+
const $ZodPreprocess = /* @__PURE__ */ core.$constructor("$ZodPreprocess", (inst, def) => {
|
|
1900
|
+
$ZodPipe.init(inst, def);
|
|
1901
|
+
});
|
|
1785
1902
|
const $ZodReadonly = /* @__PURE__ */ core.$constructor("$ZodReadonly", (inst, def) => {
|
|
1786
1903
|
$ZodType.init(inst, def);
|
|
1787
1904
|
util.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -1933,7 +2050,12 @@ const $ZodPromise = /* @__PURE__ */ core.$constructor("$ZodPromise", (inst, def)
|
|
|
1933
2050
|
});
|
|
1934
2051
|
const $ZodLazy = /* @__PURE__ */ core.$constructor("$ZodLazy", (inst, def) => {
|
|
1935
2052
|
$ZodType.init(inst, def);
|
|
1936
|
-
util.defineLazy(inst._zod, "innerType", () =>
|
|
2053
|
+
util.defineLazy(inst._zod, "innerType", () => {
|
|
2054
|
+
const d = def;
|
|
2055
|
+
if (!d._cachedInner)
|
|
2056
|
+
d._cachedInner = def.getter();
|
|
2057
|
+
return d._cachedInner;
|
|
2058
|
+
});
|
|
1937
2059
|
util.defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
1938
2060
|
util.defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
1939
2061
|
util.defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -2029,6 +2151,7 @@ exports.$ZodObjectJIT = $ZodObjectJIT;
|
|
|
2029
2151
|
exports.$ZodOptional = $ZodOptional;
|
|
2030
2152
|
exports.$ZodPipe = $ZodPipe;
|
|
2031
2153
|
exports.$ZodPrefault = $ZodPrefault;
|
|
2154
|
+
exports.$ZodPreprocess = $ZodPreprocess;
|
|
2032
2155
|
exports.$ZodPromise = $ZodPromise;
|
|
2033
2156
|
exports.$ZodReadonly = $ZodReadonly;
|
|
2034
2157
|
exports.$ZodRecord = $ZodRecord;
|