@unchainedshop/admin-ui 5.0.0-alpha.3 → 5.0.0-alpha.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.
- package/README.md +92 -35
- package/dist/chunk-45H2WVIC.js +51 -0
- package/dist/chunk-4VNS5WPM.js +37 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-6TXD4TA7.js +1196 -0
- package/dist/chunk-BGCKJQGS.js +58 -0
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -0
- package/dist/chunk-IAQPLRXZ.js +16 -0
- package/dist/chunk-ILYPJE4N.js +57 -0
- package/dist/chunk-IXBMHOB5.js +13 -0
- package/dist/chunk-KH5MK6ZW.js +18 -0
- package/dist/chunk-NT7RB7AK.js +70 -0
- package/dist/chunk-OKGJ6HDE.js +26 -0
- package/dist/chunk-Q6S3LBUF.js +180 -0
- package/dist/chunk-QNLGYFV7.js +22 -0
- package/dist/chunk-RAQV2GYF.js +70 -0
- package/dist/chunk-RHUFQVKL.js +514 -0
- package/dist/chunk-RVG6IOFC.js +11 -0
- package/dist/chunk-SRAAKMWY.js +39 -0
- package/dist/chunk-UFYR5WZT.js +165 -0
- package/dist/chunk-UXG7EYHC.js +614 -0
- package/dist/chunk-VDKQGOMV.js +840 -0
- package/dist/chunk-XHOCXPD5.js +9 -0
- package/dist/chunk-XJBPMIC4.js +284 -0
- package/dist/chunk-YO6PT7KD.js +13 -0
- package/dist/chunk-YSKZE2KN.js +652 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/ui/ActiveInActive.d.ts +10 -0
- package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
- package/dist/components/ui/AnimatedCounter.d.ts +7 -0
- package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/ui/Badge.d.ts +10 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/BreadCrumbs.d.ts +7 -0
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +36 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/CopyableText.d.ts +5 -0
- package/dist/components/ui/CopyableText.d.ts.map +1 -0
- package/dist/components/ui/DateInput.d.ts +15 -0
- package/dist/components/ui/DateInput.d.ts.map +1 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
- package/dist/components/ui/DetailHeader.d.ts +6 -0
- package/dist/components/ui/DetailHeader.d.ts.map +1 -0
- package/dist/components/ui/DraggableIcon.d.ts +3 -0
- package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorFallback.d.ts +6 -0
- package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
- package/dist/components/ui/HelpText.d.ts +11 -0
- package/dist/components/ui/HelpText.d.ts.map +1 -0
- package/dist/components/ui/ImageWithFallback.d.ts +7 -0
- package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
- package/dist/components/ui/InfoTextBanner.d.ts +6 -0
- package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
- package/dist/components/ui/JSONView.d.ts +6 -0
- package/dist/components/ui/JSONView.d.ts.map +1 -0
- package/dist/components/ui/ListHeader.d.ts +6 -0
- package/dist/components/ui/ListHeader.d.ts.map +1 -0
- package/dist/components/ui/Loading.d.ts +3 -0
- package/dist/components/ui/Loading.d.ts.map +1 -0
- package/dist/components/ui/NoData.d.ts +7 -0
- package/dist/components/ui/NoData.d.ts.map +1 -0
- package/dist/components/ui/NoImage.d.ts +7 -0
- package/dist/components/ui/NoImage.d.ts.map +1 -0
- package/dist/components/ui/NoImageSvg.d.ts +8 -0
- package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.d.ts +11 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/Pagination.d.ts +8 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
- package/dist/components/ui/SearchField.d.ts +7 -0
- package/dist/components/ui/SearchField.d.ts.map +1 -0
- package/dist/components/ui/Tab.d.ts +18 -0
- package/dist/components/ui/Tab.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagInput.d.ts +14 -0
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagList.d.ts +8 -0
- package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
- package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
- package/dist/components/ui/Toggle.d.ts +11 -0
- package/dist/components/ui/Toggle.d.ts.map +1 -0
- package/dist/components/ui/ToolTip.d.ts +7 -0
- package/dist/components/ui/ToolTip.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +42 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form/CheckboxField.d.ts +4 -0
- package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
- package/dist/components/ui/form/ChoicesField.d.ts +12 -0
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
- package/dist/components/ui/form/Combobox.d.ts +20 -0
- package/dist/components/ui/form/Combobox.d.ts.map +1 -0
- package/dist/components/ui/form/DatePickerField.d.ts +4 -0
- package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
- package/dist/components/ui/form/EmailField.d.ts +7 -0
- package/dist/components/ui/form/EmailField.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
- package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/FormErrors.d.ts +6 -0
- package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
- package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
- package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/PasswordField.d.ts +3 -0
- package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
- package/dist/components/ui/form/SelectField.d.ts +11 -0
- package/dist/components/ui/form/SelectField.d.ts.map +1 -0
- package/dist/components/ui/form/SubmitButton.d.ts +9 -0
- package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/ui/form/TagInputField.d.ts +6 -0
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
- package/dist/components/ui/form/TextAreaField.d.ts +8 -0
- package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/TextField.d.ts +10 -0
- package/dist/components/ui/form/TextField.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +17 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +4 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +41 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/form.js +30077 -0
- package/dist/gql/types.d.ts +17209 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +41 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +114 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
- package/dist/modules/accounts.js +1013 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
- package/dist/modules/assortment.js +1121 -0
- package/dist/modules/common/components/AppContext.d.ts +18 -0
- package/dist/modules/common/components/AppContext.d.ts.map +1 -0
- package/dist/modules/common/components/FormWrapper.d.ts +8 -0
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
- package/dist/modules/common/data/iso-codes.d.ts +4 -0
- package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts +51 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +11 -0
- package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/modules/common/hooks/usePortal.d.ts +20 -0
- package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
- package/dist/modules/common/hooks/useTheme.d.ts +7 -0
- package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
- package/dist/modules/common/utils/deBounce.d.ts +3 -0
- package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
- package/dist/modules/common/utils/formatUsername.d.ts +3 -0
- package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
- package/dist/modules/common/utils/utils.d.ts +21 -0
- package/dist/modules/common/utils/utils.d.ts.map +1 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
- package/dist/modules/country/hooks/useCountries.d.ts +22 -0
- package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
- package/dist/modules/country.js +108 -0
- package/dist/modules/currency.js +119 -0
- package/dist/modules/delivery-provider.js +269 -0
- package/dist/modules/enrollment.js +353 -0
- package/dist/modules/event.js +123 -0
- package/dist/modules/filter.js +448 -0
- package/dist/modules/forms/components/Form.d.ts +8 -0
- package/dist/modules/forms/components/Form.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useField.d.ts +35 -0
- package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useForm.d.ts +44 -0
- package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/FormContext.d.ts +13 -0
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/clean.d.ts +3 -0
- package/dist/modules/forms/lib/clean.d.ts.map +1 -0
- package/dist/modules/forms/lib/validators.d.ts +20 -0
- package/dist/modules/forms/lib/validators.d.ts.map +1 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
- package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
- package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
- package/dist/modules/language.js +106 -0
- package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
- package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/Modal.d.ts +10 -0
- package/dist/modules/modal/components/Modal.d.ts.map +1 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
- package/dist/modules/modal/hooks/useModal.d.ts +7 -0
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
- package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
- package/dist/modules/order/hooks/useOrders.d.ts +46 -0
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
- package/dist/modules/order.js +563 -0
- package/dist/modules/payment-providers.js +206 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
- package/dist/modules/product-review.js +251 -0
- package/dist/modules/product.js +1929 -0
- package/dist/modules/quotation.js +297 -0
- package/dist/modules/token.js +143 -0
- package/dist/modules/warehousing-providers.js +206 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
- package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
- package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
- package/dist/modules/work/hooks/useWork.d.ts +32 -0
- package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
- package/dist/modules/work.js +308 -0
- package/dist/plugins.js +8 -0
- package/dist/providers.js +6 -0
- package/dist/sdk/hooks.d.ts +9 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/modal.d.ts +7 -0
- package/dist/sdk/modal.d.ts.map +1 -0
- package/dist/sdk/plugins.d.ts +67 -0
- package/dist/sdk/plugins.d.ts.map +1 -0
- package/dist/sdk/providers.d.ts +5 -0
- package/dist/sdk/providers.d.ts.map +1 -0
- package/dist/sdk/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +21527 -0
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/0-p8a6-okjx49.js +15 -0
- package/out/_next/static/chunks/0-u5tid26i8-3.js +188 -0
- package/out/_next/static/chunks/008hxgil51owu.js +234 -0
- package/out/_next/static/chunks/026k3ys50h91u.js +15 -0
- package/out/_next/static/chunks/02aa23atze2y4.js +119 -0
- package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
- package/out/_next/static/chunks/03f0hv23abn4a.js +12 -0
- package/out/_next/static/chunks/03p0xulfluyqm.js +15 -0
- package/out/_next/static/chunks/044dmimivt13x.js +233 -0
- package/out/_next/static/chunks/047gokoblz-qy.js +16 -0
- package/out/_next/static/chunks/04yroykjly9ni.js +15 -0
- package/out/_next/static/chunks/05h2_5y4i_fe4.js +12 -0
- package/out/_next/static/chunks/0641gh6yb6tnd.js +3 -0
- package/out/_next/static/chunks/06bsql5zgjpaj.js +315 -0
- package/out/_next/static/chunks/06jtnxd7wr712.js +1 -0
- package/out/_next/static/chunks/070wy1qe-7-uf.js +242 -0
- package/out/_next/static/chunks/07l1vdt21xneu.js +14 -0
- package/out/_next/static/chunks/07q8ufsdxo1tx.js +1 -0
- package/out/_next/static/chunks/087a2d-0e1pvn.js +1 -0
- package/out/_next/static/chunks/09pees0w94cvm.js +1 -0
- package/out/_next/static/chunks/0_wmk0z5r9thu.js +95 -0
- package/out/_next/static/chunks/0ab_-095b34n5.js +90 -0
- package/out/_next/static/chunks/0aom8abciz-yf.js +1 -0
- package/out/_next/static/chunks/0cdcsn87u-tzw.js +1 -0
- package/out/_next/static/chunks/0cu-wqc76z_w6.js +1 -0
- package/out/_next/static/chunks/0dnzfqa8el54j.js +135 -0
- package/out/_next/static/chunks/0f-hhcgpd3kjt.js +5 -0
- package/out/_next/static/chunks/0gdriupdpmq28.js +14 -0
- package/out/_next/static/chunks/0hm6-xlqw4vmr.js +1 -0
- package/out/_next/static/chunks/0hmdmxkzhdtjx.js +155 -0
- package/out/_next/static/chunks/0hpirq7m-gjle.js +23 -0
- package/out/_next/static/chunks/0hup5ovc9v_-h.js +58 -0
- package/out/_next/static/chunks/0hxsdaxwhc3z4.js +110 -0
- package/out/_next/static/chunks/0j-yonuwgtg0k.js +22 -0
- package/out/_next/static/chunks/0jo3ujn_icmb9.js +28 -0
- package/out/_next/static/chunks/0mayhrft9-4hw.js +13 -0
- package/out/_next/static/chunks/0mdh4qszx-qw8.js +1 -0
- package/out/_next/static/chunks/0nyu34hvyz9_k.js +103 -0
- package/out/_next/static/chunks/0nz8nqr7k7pni.js +61 -0
- package/out/_next/static/chunks/0pjv94c771817.js +13 -0
- package/out/_next/static/chunks/0qrepe4aqal8_.js +2 -0
- package/out/_next/static/chunks/0qtbb-w9hs2i_.js +1 -0
- package/out/_next/static/chunks/0r0l1vs8bls6y.js +1 -0
- package/out/_next/static/chunks/0r2v5se5riad_.js +227 -0
- package/out/_next/static/chunks/0s3aax3no2y3_.js +54 -0
- package/out/_next/static/chunks/0sys36fl1uhl-.js +18 -0
- package/out/_next/static/chunks/0u-md-qpvyccn.js +149 -0
- package/out/_next/static/chunks/0ukobsq85_to1.js +135 -0
- package/out/_next/static/chunks/0vcn7yqzt3qlc.js +10 -0
- package/out/_next/static/chunks/0wl_oo549tgsw.js +14 -0
- package/out/_next/static/chunks/0wm5atnhe2mjs.js +119 -0
- package/out/_next/static/chunks/0wpmgf2-hr2iv.js +1 -0
- package/out/_next/static/chunks/0wthf9v7cuwqf.js +3 -0
- package/out/_next/static/chunks/0xcxmgeevaadl.js +8 -0
- package/out/_next/static/chunks/0xoerh23zk-pj.js +44 -0
- package/out/_next/static/chunks/0xvoojz5c4j32.js +14 -0
- package/out/_next/static/chunks/0ykc9b-l7rcv9.js +18 -0
- package/out/_next/static/chunks/0zb8qwy33hihq.js +142 -0
- package/out/_next/static/chunks/0zgu8kiokvsjz.js +1 -0
- package/out/_next/static/chunks/0zk0s8hqsf5tg.js +18 -0
- package/out/_next/static/chunks/0zl6mu89n1_wq.js +1 -0
- package/out/_next/static/chunks/0zntg6ltu_fk3.js +14 -0
- package/out/_next/static/chunks/10996osm11rxi.js +327 -0
- package/out/_next/static/chunks/10q9_f1ss9afd.js +8 -0
- package/out/_next/static/chunks/110vhftkm53lj.js +111 -0
- package/out/_next/static/chunks/113_jsmrqky1h.js +130 -0
- package/out/_next/static/chunks/11fqypagzye_v.js +43 -0
- package/out/_next/static/chunks/137522d4_apiu.js +166 -0
- package/out/_next/static/chunks/13ml43jv3bxh1.js +1 -0
- package/out/_next/static/chunks/16ad724tleody.js +13 -0
- package/out/_next/static/chunks/16r_t7quts1w0.js +289 -0
- package/out/_next/static/chunks/16yomp2b55xod.js +30 -0
- package/out/_next/static/chunks/17jd_42ijblk-.js +15 -0
- package/out/_next/static/chunks/17xseq9yxu638.js +1 -0
- package/out/_next/static/chunks/18yznjdgjug5c.js +7 -0
- package/out/_next/static/chunks/19i-cq0_2t00g.js +60 -0
- package/out/_next/static/chunks/19ppkss30jscq.js +13 -0
- package/out/_next/static/chunks/1_ov-8bomgh6c.js +54 -0
- package/out/_next/static/chunks/1b9l0n8vz64x7.js +233 -0
- package/out/_next/static/chunks/1cn3pe6lxja9e.js +44 -0
- package/out/_next/static/chunks/1dsjo02ozub3p.js +342 -0
- package/out/_next/static/chunks/1dut2ep8qfdv4.js +14 -0
- package/out/_next/static/chunks/1eqs_86cqpxcx.js +138 -0
- package/out/_next/static/chunks/1exlzd6w18o_b.js +8 -0
- package/out/_next/static/chunks/1f04wea7zvjf5.js +2 -0
- package/out/_next/static/chunks/1fqsykinbg1d_.js +12 -0
- package/out/_next/static/chunks/1g5l7e7du4p25.js +1 -0
- package/out/_next/static/chunks/1hokoliuqn63p.js +17 -0
- package/out/_next/static/chunks/1ihjqvn68cj5e.js +36 -0
- package/out/_next/static/chunks/1k798vpov34v6.js +12 -0
- package/out/_next/static/chunks/1lewut00m9sq1.js +1 -0
- package/out/_next/static/chunks/1lwiflo8v2d93.js +1 -0
- package/out/_next/static/chunks/1ng9tsm1f8e_a.js +1 -0
- package/out/_next/static/chunks/1nvy3y5qe_igv.js +233 -0
- package/out/_next/static/chunks/1osrrozfse5jn.js +190 -0
- package/out/_next/static/chunks/1ozaatz-b_-as.js +41 -0
- package/out/_next/static/chunks/1paq5rkj25r88.js +1 -0
- package/out/_next/static/chunks/1q2l02eq094zc.js +147 -0
- package/out/_next/static/chunks/1q8zx2rmluekr.js +13 -0
- package/out/_next/static/chunks/1qnuk3631sd6i.js +807 -0
- package/out/_next/static/chunks/1r0aluuzu5vw7.js +13 -0
- package/out/_next/static/chunks/1rgwj4dr0k4_b.js +5 -0
- package/out/_next/static/chunks/1sgv26vi42stl.js +13 -0
- package/out/_next/static/chunks/1t80pe40g73fh.js +82 -0
- package/out/_next/static/chunks/1u6jfjnf14knz.js +124 -0
- package/out/_next/static/chunks/1vnvinjvn78t3.js +1 -0
- package/out/_next/static/chunks/1xg3ey2rrdxfx.js +1 -0
- package/out/_next/static/chunks/1xx6ie3yh2hbk.js +235 -0
- package/out/_next/static/chunks/1y-vwb0-v5xv0.js +304 -0
- package/out/_next/static/chunks/2-8-i_m-82mjh.js +43 -0
- package/out/_next/static/chunks/2-s6g5_cyahx8.js +1 -0
- package/out/_next/static/chunks/20ndjd4r5l6vk.js +1 -0
- package/out/_next/static/chunks/20v019mj-zi94.js +13 -0
- package/out/_next/static/chunks/21w-hkh4_w1kl.js +19 -0
- package/out/_next/static/chunks/226ya3lbz_55w.js +19 -0
- package/out/_next/static/chunks/22az81pi-bqjb.js +1 -0
- package/out/_next/static/chunks/22get2_2lcba-.js +21 -0
- package/out/_next/static/chunks/22l-2aehes9lx.js +153 -0
- package/out/_next/static/chunks/23y9nin7qo-xy.js +17 -0
- package/out/_next/static/chunks/25t23h8zbmzh-.js +12 -0
- package/out/_next/static/chunks/273zh05aw6uz2.js +13 -0
- package/out/_next/static/chunks/28o-5560g4bwk.js +7 -0
- package/out/_next/static/chunks/28zahy_uqar2t.js +12 -0
- package/out/_next/static/chunks/29dylunjhn4te.js +34 -0
- package/out/_next/static/chunks/2_3qu55ddb4jo.js +3 -0
- package/out/_next/static/chunks/2_7z1veshuiiw.js +10 -0
- package/out/_next/static/chunks/2_ztj391g9yzt.js +226 -0
- package/out/_next/static/chunks/2a9z_gm1vn39c.js +173 -0
- package/out/_next/static/chunks/2a_46b7_7ml_y.js +1 -0
- package/out/_next/static/chunks/2b8nhs_3rpawc.js +1 -0
- package/out/_next/static/chunks/2biyd1hzgc2sv.js +339 -0
- package/out/_next/static/chunks/2c2vssolfspzg.js +50 -0
- package/out/_next/static/chunks/2dbrybnhe5thu.css +1 -0
- package/out/_next/static/chunks/2diqy5aehqe8j.js +58 -0
- package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
- package/out/_next/static/chunks/2dq4d-ey-16cq.js +1 -0
- package/out/_next/static/chunks/2dyysegkbptw8.js +11 -0
- package/out/_next/static/chunks/2ei1rfxsl3q65.js +31 -0
- package/out/_next/static/chunks/2fazxtc5_9tgo.js +52 -0
- package/out/_next/static/chunks/2fzc9bsweg7nf.js +807 -0
- package/out/_next/static/chunks/2h5-bnhry6wzl.js +14 -0
- package/out/_next/static/chunks/2hmtn1okhj6zz.js +234 -0
- package/out/_next/static/chunks/2htrbj6g7da-e.js +12 -0
- package/out/_next/static/chunks/2j0apwnxuaeox.js +14 -0
- package/out/_next/static/chunks/2j51l4ukmrn7j.js +17 -0
- package/out/_next/static/chunks/2k4cusvrm93cp.js +39 -0
- package/out/_next/static/chunks/2ldks6pel2wcp.js +31 -0
- package/out/_next/static/chunks/2loz6t7f69t0c.js +1 -0
- package/out/_next/static/chunks/2onfts3kpe9d8.js +1 -0
- package/out/_next/static/chunks/2p9aozkdq_z13.js +329 -0
- package/out/_next/static/chunks/2pz2u5us_0jme.js +5 -0
- package/out/_next/static/chunks/2qaf44ypuy_4z.js +1 -0
- package/out/_next/static/chunks/2r1-eyf6hic-m.js +1 -0
- package/out/_next/static/chunks/2ritd1boot22-.js +32 -0
- package/out/_next/static/chunks/2s1__k407zn6n.js +1 -0
- package/out/_next/static/chunks/2s6qkrjh7-b6s.js +1 -0
- package/out/_next/static/chunks/2t70ji9pnllxh.js +81 -0
- package/out/_next/static/chunks/2tc6lgajxmo78.js +3 -0
- package/out/_next/static/chunks/2twd9trj9horc.js +61 -0
- package/out/_next/static/chunks/2ua7-skz9vm4r.js +13 -0
- package/out/_next/static/chunks/2vjkcd8g_hh68.js +46 -0
- package/out/_next/static/chunks/2w1twpn4nui6h.js +807 -0
- package/out/_next/static/chunks/2x4vo24qfe0mr.js +1 -0
- package/out/_next/static/chunks/2zm-d0-e0sxgo.js +23 -0
- package/out/_next/static/chunks/3-u1dp82vzyt9.js +1 -0
- package/out/_next/static/chunks/30iz3jszdu04d.js +11 -0
- package/out/_next/static/chunks/30jmh-3cp5wcg.js +12 -0
- package/out/_next/static/chunks/3178a_a_i-e-q.js +16 -0
- package/out/_next/static/chunks/317qzy7r8meg_.js +1 -0
- package/out/_next/static/chunks/32nwqfli0ne57.js +1 -0
- package/out/_next/static/chunks/33c-rzkj2k2v1.js +14 -0
- package/out/_next/static/chunks/33g91_yljnpiw.js +807 -0
- package/out/_next/static/chunks/34dhtdp_8idgm.js +658 -0
- package/out/_next/static/chunks/34ybf-w3bdlw8.js +13 -0
- package/out/_next/static/chunks/35-vqjhcep-zw.js +60 -0
- package/out/_next/static/chunks/358r9pdxbk-fv.js +39 -0
- package/out/_next/static/chunks/35a6ymsh4q0-o.js +14 -0
- package/out/_next/static/chunks/36yrxjq9zbvpx.js +13 -0
- package/out/_next/static/chunks/377ho63k7qphg.js +14 -0
- package/out/_next/static/chunks/37bs69urhjdz5.js +24 -0
- package/out/_next/static/chunks/37mpnb5qztb_g.js +15 -0
- package/out/_next/static/chunks/3827hqe9_anr7.js +24 -0
- package/out/_next/static/chunks/3a0_vzfa54k35.js +7 -0
- package/out/_next/static/chunks/3a8a8fpl7-ndf.js +1 -0
- package/out/_next/static/chunks/3b6hct2rk2wu9.js +24 -0
- package/out/_next/static/chunks/3czsj6bdmobbd.js +24 -0
- package/out/_next/static/chunks/3d0ic2ovyeue7.js +2 -0
- package/out/_next/static/chunks/3eq1b2m2xkkmp.js +1 -0
- package/out/_next/static/chunks/3f2ue6ut-mwka.js +2 -0
- package/out/_next/static/chunks/3g67xtrp0vv4m.js +1 -0
- package/out/_next/static/chunks/3iepyd4rzl-tt.js +13 -0
- package/out/_next/static/chunks/3j6p-522fcsnj.js +1 -0
- package/out/_next/static/chunks/3kle_yukf5aux.js +809 -0
- package/out/_next/static/chunks/3l_nx7eopgh02.js +1 -0
- package/out/_next/static/chunks/3mk-cv2ocv93u.js +50 -0
- package/out/_next/static/chunks/3n5290qcigwpc.js +13 -0
- package/out/_next/static/chunks/3nl02jbknvx4p.js +14 -0
- package/out/_next/static/chunks/3o5a5qn0dnq04.js +3 -0
- package/out/_next/static/chunks/3o5kwvdgt_t9z.js +73 -0
- package/out/_next/static/chunks/3qamj8gt1ijdz.js +12 -0
- package/out/_next/static/chunks/3rlrwz262rpw0.js +1 -0
- package/out/_next/static/chunks/3s3v9n_ob4m24.js +18 -0
- package/out/_next/static/chunks/3s47qr8fn6h4j.js +8 -0
- package/out/_next/static/chunks/3slzhmkeoggpm.js +66 -0
- package/out/_next/static/chunks/3tv9csz53av-5.js +1 -0
- package/out/_next/static/chunks/3uec1_7irpl71.js +16 -0
- package/out/_next/static/chunks/3uo1w1gaj7tsx.js +117 -0
- package/out/_next/static/chunks/3uwev5xyub_j1.js +7 -0
- package/out/_next/static/chunks/3w450c1xmh550.js +12 -0
- package/out/_next/static/chunks/3x8aami6-3l79.js +31 -0
- package/out/_next/static/chunks/3xhogi6_bbwh7.js +10 -0
- package/out/_next/static/chunks/3y62dz45ticve.js +1 -0
- package/out/_next/static/chunks/3yjzk_udmhv3i.js +1 -0
- package/out/_next/static/chunks/3z6v84zof80bt.js +1 -0
- package/out/_next/static/chunks/3zncjth-kop8p.js +1 -0
- package/out/_next/static/chunks/3zp4iedgev460.js +35 -0
- package/out/_next/static/chunks/413qu_x6yky1e.js +1 -0
- package/out/_next/static/chunks/41j8mb2ztwydi.js +14 -0
- package/out/_next/static/chunks/41pc5_e25bhgd.js +1 -0
- package/out/_next/static/chunks/424z-zudpy3n0.js +39 -0
- package/out/_next/static/chunks/42o6t6-v2qi37.js +29 -0
- package/out/_next/static/chunks/434iz38padke2.js +1 -0
- package/out/_next/static/chunks/43pb7hjetp965.js +1 -0
- package/out/_next/static/chunks/44rharl5hvsw-.js +22 -0
- package/out/_next/static/chunks/45ac68ug7hcoc.js +13 -0
- package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +1 -0
- package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +1 -0
- package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +1 -0
- package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +1 -0
- package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +1 -0
- package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +1 -0
- package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +1 -0
- package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +1 -0
- package/out/_next/static/chunks/turbopack-0g9gjb70ob0rb.js +1 -0
- package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +1 -0
- package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +1 -0
- package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +1 -0
- package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +1 -0
- package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +1 -0
- package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +1 -0
- package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +1 -0
- package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +1 -0
- package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +1 -0
- package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +1 -0
- package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +1 -0
- package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +1 -0
- package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +1 -0
- package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +1 -0
- package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +1 -0
- package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +1 -0
- package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +1 -0
- package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +1 -0
- package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +1 -0
- package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +1 -0
- package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +1 -0
- package/out/_next/static/chunks/turbopack-280jnadydykur.js +1 -0
- package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +1 -0
- package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +1 -0
- package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +1 -0
- package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +1 -0
- package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +1 -0
- package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +1 -0
- package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +1 -0
- package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +1 -0
- package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +1 -0
- package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +1 -0
- package/out/_next/static/chunks/turbopack-33v049epa0erx.js +1 -0
- package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +1 -0
- package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +1 -0
- package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +1 -0
- package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +1 -0
- package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +1 -0
- package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +1 -0
- package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +1 -0
- package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +1 -0
- package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +1 -0
- package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +1 -0
- package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +1 -0
- package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +1 -0
- package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +1 -0
- package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +1 -0
- package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +1 -0
- package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +1 -0
- package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +1 -0
- package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +1 -0
- package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +1 -0
- package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +1 -0
- package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +1 -0
- package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +1 -0
- package/out/_next/static/mgojmR_4GNqJNutDR9oFi/_buildManifest.js +262 -0
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/ext/[[...slug]]/index.html +11 -0
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/manifest.json +48 -0
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +104 -13
- package/src/modules/accounts/index.ts +34 -0
- package/src/modules/assortment/index.ts +29 -0
- package/src/modules/copilot/index.ts +4 -0
- package/src/modules/country/index.ts +5 -0
- package/src/modules/currency/index.ts +5 -0
- package/src/modules/delivery-provider/index.ts +7 -0
- package/src/modules/enrollment/index.ts +6 -0
- package/src/modules/event/index.ts +3 -0
- package/src/modules/filter/index.ts +13 -0
- package/src/modules/language/index.ts +5 -0
- package/src/modules/order/index.ts +8 -0
- package/src/modules/payment-providers/index.ts +7 -0
- package/src/modules/product/index.ts +47 -0
- package/src/modules/product-review/index.ts +6 -0
- package/src/modules/quotation/index.ts +6 -0
- package/src/modules/token/index.ts +3 -0
- package/src/modules/warehousing-providers/index.ts +7 -0
- package/src/modules/work/index.ts +7 -0
- package/src/sdk/hooks.ts +11 -0
- package/src/sdk/modal.ts +6 -0
- package/src/sdk/plugin-build.mjs +112 -0
- package/src/sdk/plugin-build.test.mjs +11 -0
- package/src/sdk/plugins.ts +88 -0
- package/src/sdk/providers.ts +4 -0
- package/src/sdk/tailwind-preset.mjs +94 -0
- package/src/sdk/theme.ts +61 -0
- package/src/styles/globals.css +291 -0
- package/out/_next/static/chunks/0-beu4vu82jrh.js +0 -1
- package/out/_next/static/chunks/0-l8x8k72-b3i.js +0 -173
- package/out/_next/static/chunks/0-v2_9sc~l3._.js +0 -1
- package/out/_next/static/chunks/0.b6lj.zfgeh7.js +0 -807
- package/out/_next/static/chunks/0.jjzw42mzofa.js +0 -18
- package/out/_next/static/chunks/0.ubb4bvs288f.js +0 -193
- package/out/_next/static/chunks/00c-9lviyc08t.js +0 -16
- package/out/_next/static/chunks/00svmiwah8ghd.js +0 -177
- package/out/_next/static/chunks/00w.kj6uow_p1.js +0 -1
- package/out/_next/static/chunks/00zf52snz2696.js +0 -81
- package/out/_next/static/chunks/0126hh69s1hoo.js +0 -20
- package/out/_next/static/chunks/017~qlhsonz-s.js +0 -13
- package/out/_next/static/chunks/01id70ruu9sh_.js +0 -12
- package/out/_next/static/chunks/01m-zxw6aa~7o.js +0 -61
- package/out/_next/static/chunks/01ysagjr-k~86.js +0 -1
- package/out/_next/static/chunks/023vppfa5lmsd.js +0 -101
- package/out/_next/static/chunks/023zn3balilgv.js +0 -5
- package/out/_next/static/chunks/028eszr30ru.w.js +0 -12
- package/out/_next/static/chunks/02_yal0ces9jz.js +0 -1
- package/out/_next/static/chunks/02dcbva7h6wk9.js +0 -5
- package/out/_next/static/chunks/02lgka7~ifqqk.js +0 -1
- package/out/_next/static/chunks/02ndocqxudfh0.js +0 -22
- package/out/_next/static/chunks/02x1c3t9oyfks.js +0 -119
- package/out/_next/static/chunks/039laq217w5af.js +0 -1
- package/out/_next/static/chunks/03hx8y-tzfrw6.js +0 -1
- package/out/_next/static/chunks/03in_nfvncouz.js +0 -1
- package/out/_next/static/chunks/041tlotwv9m5t.js +0 -453
- package/out/_next/static/chunks/04aykq1~5oirm.js +0 -51
- package/out/_next/static/chunks/04b5k~na~95by.js +0 -46
- package/out/_next/static/chunks/04f091-bji_n_.js +0 -7
- package/out/_next/static/chunks/05ooekd_aohh9.js +0 -23
- package/out/_next/static/chunks/05rt.5mp24nl~.js +0 -13
- package/out/_next/static/chunks/05xkbw-s9zm4v.js +0 -1
- package/out/_next/static/chunks/05zsgso1ahpy8.js +0 -1
- package/out/_next/static/chunks/06ersyx7hvzq1.js +0 -1
- package/out/_next/static/chunks/06gd8resd2.0_.js +0 -9
- package/out/_next/static/chunks/06v745r0yfx2h.js +0 -14
- package/out/_next/static/chunks/073ao37i9gvu-.js +0 -324
- package/out/_next/static/chunks/07l.kk7q4.zh_.js +0 -46
- package/out/_next/static/chunks/07t_6bb3~hkt5.js +0 -15
- package/out/_next/static/chunks/0831dsm.9c1xz.js +0 -15
- package/out/_next/static/chunks/087eh6vsk6_bc.js +0 -43
- package/out/_next/static/chunks/08i6ja.9lua9i.js +0 -286
- package/out/_next/static/chunks/08znjfem0b_of.js +0 -21
- package/out/_next/static/chunks/09_9z~x1_3-1m.js +0 -13
- package/out/_next/static/chunks/09n.y.scb-.st.js +0 -46
- package/out/_next/static/chunks/09p_6hs26lbin.js +0 -31
- package/out/_next/static/chunks/0_77~m-d~ywyj.js +0 -3
- package/out/_next/static/chunks/0_b2f-s77.vbq.js +0 -217
- package/out/_next/static/chunks/0_ikmdl.vzsxi.js +0 -16
- package/out/_next/static/chunks/0_tmrtwx_w001.js +0 -1
- package/out/_next/static/chunks/0_z350k96nua5.js +0 -14
- package/out/_next/static/chunks/0ajirl~6u8vk7.js +0 -384
- package/out/_next/static/chunks/0apih1f_pg7x5.js +0 -22
- package/out/_next/static/chunks/0aqdc68pqu1yc.js +0 -90
- package/out/_next/static/chunks/0aqhw_0u56sd_.js +0 -13
- package/out/_next/static/chunks/0av.mpk52l~sj.js +0 -78
- package/out/_next/static/chunks/0b6~~7c3s-__r.js +0 -2
- package/out/_next/static/chunks/0b_7pbsfo~250.js +0 -224
- package/out/_next/static/chunks/0bgpq4k~.1ow~.js +0 -1
- package/out/_next/static/chunks/0cd47wcv36ymf.js +0 -14
- package/out/_next/static/chunks/0cy-p_9pru_18.js +0 -13
- package/out/_next/static/chunks/0dhkgg675.w3e.js +0 -8
- package/out/_next/static/chunks/0dm~u98d.uay9.js +0 -807
- package/out/_next/static/chunks/0e82nep-emmqv.js +0 -22
- package/out/_next/static/chunks/0ekar8mz4g5.z.js +0 -188
- package/out/_next/static/chunks/0eqvk8uoluycv.js +0 -1
- package/out/_next/static/chunks/0ett.ps-ssh3m.js +0 -1
- package/out/_next/static/chunks/0f4j14khj0-nb.js +0 -13
- package/out/_next/static/chunks/0fq.42f6~eau3.js +0 -110
- package/out/_next/static/chunks/0fv65thyl.pzd.js +0 -137
- package/out/_next/static/chunks/0fvye09yb7vxo.js +0 -1
- package/out/_next/static/chunks/0g4z-lcj831re.js +0 -22
- package/out/_next/static/chunks/0gcrw01taxxl6.js +0 -1
- package/out/_next/static/chunks/0gex7d5-6_u7w.js +0 -15
- package/out/_next/static/chunks/0gmu_zxzdk79-.js +0 -36
- package/out/_next/static/chunks/0gp0s~altxh1r.js +0 -16
- package/out/_next/static/chunks/0gw21r~kskkbu.js +0 -8
- package/out/_next/static/chunks/0h.yfartl.0w2.js +0 -13
- package/out/_next/static/chunks/0hvsgrhdl9vxu.js +0 -87
- package/out/_next/static/chunks/0hxa2hw0bx6p9.js +0 -31
- package/out/_next/static/chunks/0idm_1owz2~do.js +0 -147
- package/out/_next/static/chunks/0if0kxk_fvctv.js +0 -807
- package/out/_next/static/chunks/0ipga2yl6f8s2.js +0 -1
- package/out/_next/static/chunks/0irir.4f~3vjv.js +0 -1
- package/out/_next/static/chunks/0iz~...y5_a2o.js +0 -58
- package/out/_next/static/chunks/0j0-6c41tk-jn.js +0 -227
- package/out/_next/static/chunks/0j3oxwqbdm1~u.js +0 -32
- package/out/_next/static/chunks/0j8g1ir4-2kf-.js +0 -1
- package/out/_next/static/chunks/0je-l.-3mmyx0.js +0 -7
- package/out/_next/static/chunks/0jsponpskt26n.js +0 -15
- package/out/_next/static/chunks/0jwk3hxdqma6f.js +0 -44
- package/out/_next/static/chunks/0k4hc0roxks1w.js +0 -135
- package/out/_next/static/chunks/0kd-elup-.5rv.js +0 -92
- package/out/_next/static/chunks/0kdk1jnxow07e.js +0 -51
- package/out/_next/static/chunks/0kjwfgi7qnsh8.js +0 -60
- package/out/_next/static/chunks/0kpbcc6kx92ab.js +0 -1
- package/out/_next/static/chunks/0kpqfcm6kz1pz.js +0 -5
- package/out/_next/static/chunks/0kuj3je3qjyj~.js +0 -13
- package/out/_next/static/chunks/0kwdvew2~wd8o.js +0 -16
- package/out/_next/static/chunks/0kwir-xluvjdw.js +0 -144
- package/out/_next/static/chunks/0l.811sicmaw3.js +0 -1
- package/out/_next/static/chunks/0l8ujxmk7702g.js +0 -1
- package/out/_next/static/chunks/0lazwl9790oz5.js +0 -1
- package/out/_next/static/chunks/0lp3vsoi498i1.js +0 -19
- package/out/_next/static/chunks/0lp40p3~dgcgl.js +0 -14
- package/out/_next/static/chunks/0lq9yvo7q3obl.js +0 -1
- package/out/_next/static/chunks/0m.jl7so.pr8k.js +0 -15
- package/out/_next/static/chunks/0m0k6lhn2y-9n.js +0 -137
- package/out/_next/static/chunks/0m3laiqi73_uc.js +0 -1
- package/out/_next/static/chunks/0m96ugd3gm4zy.js +0 -142
- package/out/_next/static/chunks/0mbkvr03aynms.js +0 -905
- package/out/_next/static/chunks/0mfaeit11.hmn.js +0 -13
- package/out/_next/static/chunks/0mmgf1.wzjj~j.js +0 -596
- package/out/_next/static/chunks/0mwaae8fl0y07.js +0 -807
- package/out/_next/static/chunks/0n1tw5ikfuhds.js +0 -16
- package/out/_next/static/chunks/0n4htvg-_prjp.js +0 -807
- package/out/_next/static/chunks/0ndis8ndh2iq6.js +0 -1
- package/out/_next/static/chunks/0nkzmsf-n62ak.js +0 -227
- package/out/_next/static/chunks/0nq0y4cmw5~iw.js +0 -8
- package/out/_next/static/chunks/0nr5eu5.o4kyn.js +0 -31
- package/out/_next/static/chunks/0o24k-4924ut6.js +0 -5
- package/out/_next/static/chunks/0o6k207dwsp67.js +0 -14
- package/out/_next/static/chunks/0o6szwcbqvtk..js +0 -1
- package/out/_next/static/chunks/0ohaa_f5cdywx.js +0 -73
- package/out/_next/static/chunks/0p8yhpuvsglyl.js +0 -384
- package/out/_next/static/chunks/0pnn8a_3nqu6z.js +0 -11
- package/out/_next/static/chunks/0ptzf1t7-yymm.js +0 -17
- package/out/_next/static/chunks/0q7qj_8wmc2.r.js +0 -10
- package/out/_next/static/chunks/0qb6blqhb13kr.js +0 -41
- package/out/_next/static/chunks/0qf0ui_m--1gr.js +0 -288
- package/out/_next/static/chunks/0qrbj_o2k5__o.js +0 -209
- package/out/_next/static/chunks/0qtz0k64e56-8.js +0 -50
- package/out/_next/static/chunks/0s-elr_ninnzu.js +0 -10
- package/out/_next/static/chunks/0s-v1dmb~vwtm.js +0 -836
- package/out/_next/static/chunks/0s.q6152jflhg.js +0 -26
- package/out/_next/static/chunks/0s44-81m.~5uf.js +0 -596
- package/out/_next/static/chunks/0sgimuwisx~sc.js +0 -119
- package/out/_next/static/chunks/0skmedjn4kgal.js +0 -61
- package/out/_next/static/chunks/0skt87s6mdt1v.js +0 -13
- package/out/_next/static/chunks/0s~fz~1tqbwxx.js +0 -15
- package/out/_next/static/chunks/0te-i~~io16.x.js +0 -1
- package/out/_next/static/chunks/0tiq-41ao4ozn.js +0 -12
- package/out/_next/static/chunks/0tw8x4rwyovtl.js +0 -12
- package/out/_next/static/chunks/0twk9-d7g9_tx.css +0 -1
- package/out/_next/static/chunks/0ty2puez_pg34.js +0 -12
- package/out/_next/static/chunks/0ty8.e8ooes0x.js +0 -13
- package/out/_next/static/chunks/0u0zlnx_0uuo~.js +0 -1
- package/out/_next/static/chunks/0u_o5uefzj2zl.js +0 -43
- package/out/_next/static/chunks/0v3s~myflio0y.js +0 -66
- package/out/_next/static/chunks/0ve6lde6hlxfm.js +0 -200
- package/out/_next/static/chunks/0ve_2hka8ooxb.js +0 -14
- package/out/_next/static/chunks/0wcjo4p-9_fzj.js +0 -1
- package/out/_next/static/chunks/0wr~ux~6rivnb.js +0 -73
- package/out/_next/static/chunks/0wt4fkc59wtk~.js +0 -1
- package/out/_next/static/chunks/0wy8jj1craipe.js +0 -291
- package/out/_next/static/chunks/0x0ro0p0oede-.js +0 -1
- package/out/_next/static/chunks/0x5~rk9ckvkzm.js +0 -5
- package/out/_next/static/chunks/0xcd1022~mejo.js +0 -1
- package/out/_next/static/chunks/0xdixvy3ojk~v.js +0 -807
- package/out/_next/static/chunks/0xwzq2hc7bd08.js +0 -7
- package/out/_next/static/chunks/0xyni.oufvih2.js +0 -13
- package/out/_next/static/chunks/0y6_n9b46qlk8.js +0 -12
- package/out/_next/static/chunks/0y_16b~8cbo3_.js +0 -1
- package/out/_next/static/chunks/0ygzo.kyf038-.js +0 -13
- package/out/_next/static/chunks/0ykdba2inps4f.js +0 -807
- package/out/_next/static/chunks/0yngqzk8t1rtm.js +0 -20
- package/out/_next/static/chunks/0yrhd0tul9js9.js +0 -1
- package/out/_next/static/chunks/0yygs3qclomm0.js +0 -44
- package/out/_next/static/chunks/0zpzrlqi93rji.js +0 -1
- package/out/_next/static/chunks/0zsyxlnrzl578.js +0 -807
- package/out/_next/static/chunks/0z~lvtnl1p.em.js +0 -78
- package/out/_next/static/chunks/0~.g3kh69ma7-.js +0 -54
- package/out/_next/static/chunks/0~9p1dp25tvbh.js +0 -8
- package/out/_next/static/chunks/0~h6h6qs_rmma.js +0 -15
- package/out/_next/static/chunks/0~io-hb50ji.1.js +0 -1
- package/out/_next/static/chunks/10.uqlra33~68.js +0 -13
- package/out/_next/static/chunks/105z5t998s_em.js +0 -12
- package/out/_next/static/chunks/10gbxo~.o9bhy.js +0 -23
- package/out/_next/static/chunks/10k9cn.xj6r3q.js +0 -342
- package/out/_next/static/chunks/10z4bl1p0z6o_.js +0 -13
- package/out/_next/static/chunks/1116oyd686cub.js +0 -10
- package/out/_next/static/chunks/1187u08o~yuqn.js +0 -132
- package/out/_next/static/chunks/11g5r9hgxgp0m.js +0 -101
- package/out/_next/static/chunks/11idnn6maksef.js +0 -188
- package/out/_next/static/chunks/11mfm9s-fl7sy.js +0 -807
- package/out/_next/static/chunks/129nouv3ip29r.js +0 -14
- package/out/_next/static/chunks/12_5sds1suvhm.js +0 -13
- package/out/_next/static/chunks/12pk_ybj.re6m.js +0 -328
- package/out/_next/static/chunks/12r0j7wb2hlew.js +0 -1
- package/out/_next/static/chunks/12uy~d.q~freq.js +0 -26
- package/out/_next/static/chunks/130ts0c-i4pcp.js +0 -807
- package/out/_next/static/chunks/13zg7v-cyej8_.js +0 -288
- package/out/_next/static/chunks/145f2hwc~qcac.js +0 -14
- package/out/_next/static/chunks/145sa8d1hfzds.js +0 -13
- package/out/_next/static/chunks/149u.0yx9zdjc.js +0 -342
- package/out/_next/static/chunks/14lo~e60fjur5.js +0 -1
- package/out/_next/static/chunks/14p.v8friz9is.js +0 -12
- package/out/_next/static/chunks/152ayjjud~_te.js +0 -807
- package/out/_next/static/chunks/154maz1~0c85~.js +0 -12
- package/out/_next/static/chunks/15_oqickjmgpk.js +0 -3
- package/out/_next/static/chunks/15iepxopx3xb4.js +0 -1
- package/out/_next/static/chunks/15m115xl2x-fo.js +0 -807
- package/out/_next/static/chunks/15y9tbfvyqnu_.js +0 -1
- package/out/_next/static/chunks/15z98mla-wqnl.js +0 -108
- package/out/_next/static/chunks/16375mdx_~6.q.js +0 -16
- package/out/_next/static/chunks/16x1-2emxpzpg.js +0 -1
- package/out/_next/static/chunks/16zrr8jq99f4~.js +0 -59
- package/out/_next/static/chunks/179__8pe9.c7-.js +0 -12
- package/out/_next/static/chunks/17d~emxcdob_i.js +0 -1
- package/out/_next/static/chunks/17i0kbnunaw-a.js +0 -1
- package/out/_next/static/chunks/17kkbb-qkkoid.js +0 -15
- package/out/_next/static/chunks/182r6jub~m5uu.js +0 -14
- package/out/_next/static/chunks/1830j6n5zjzkx.js +0 -14
- package/out/_next/static/chunks/18dqga.-f~nfy.js +0 -1
- package/out/_next/static/chunks/18du6p5wd4ech.js +0 -138
- package/out/_next/static/chunks/turbopack-0-2jlgexa52kn.js +0 -1
- package/out/_next/static/chunks/turbopack-0.sytbe8-q.f0.js +0 -1
- package/out/_next/static/chunks/turbopack-01xsh_3mc57...js +0 -1
- package/out/_next/static/chunks/turbopack-021nw61gt0smw.js +0 -1
- package/out/_next/static/chunks/turbopack-02c.fwas2lwst.js +0 -1
- package/out/_next/static/chunks/turbopack-03nzzz4-vv3_m.js +0 -1
- package/out/_next/static/chunks/turbopack-03xl_fg-w0wwe.js +0 -1
- package/out/_next/static/chunks/turbopack-04_73x1691200.js +0 -1
- package/out/_next/static/chunks/turbopack-04ketb_5rfe.-.js +0 -1
- package/out/_next/static/chunks/turbopack-05iepmw2pln-b.js +0 -1
- package/out/_next/static/chunks/turbopack-05vk0jzu2gu4r.js +0 -1
- package/out/_next/static/chunks/turbopack-06ibu8u~exvbh.js +0 -1
- package/out/_next/static/chunks/turbopack-06r069z7bpvmx.js +0 -1
- package/out/_next/static/chunks/turbopack-07607.63_f~q4.js +0 -1
- package/out/_next/static/chunks/turbopack-080mpit40zsn0.js +0 -1
- package/out/_next/static/chunks/turbopack-08vg-gc5.lk.w.js +0 -1
- package/out/_next/static/chunks/turbopack-09ynj6f1~2qvg.js +0 -1
- package/out/_next/static/chunks/turbopack-0am8m57rd7ue~.js +0 -1
- package/out/_next/static/chunks/turbopack-0flgs.l7-jwep.js +0 -1
- package/out/_next/static/chunks/turbopack-0ga2ytjk4irgm.js +0 -1
- package/out/_next/static/chunks/turbopack-0gv1w2-walrwj.js +0 -1
- package/out/_next/static/chunks/turbopack-0h8qtpk9zxc5w.js +0 -1
- package/out/_next/static/chunks/turbopack-0hn82ceuofjtz.js +0 -1
- package/out/_next/static/chunks/turbopack-0jyinuljzkzme.js +0 -1
- package/out/_next/static/chunks/turbopack-0kbw2bixmq-i6.js +0 -1
- package/out/_next/static/chunks/turbopack-0ln3og1r-_32i.js +0 -1
- package/out/_next/static/chunks/turbopack-0mdx764wtb9__.js +0 -1
- package/out/_next/static/chunks/turbopack-0mpncz8905-~_.js +0 -1
- package/out/_next/static/chunks/turbopack-0nl4bu~hrwg_c.js +0 -1
- package/out/_next/static/chunks/turbopack-0nno9lji-zzl..js +0 -1
- package/out/_next/static/chunks/turbopack-0o78sdharqtil.js +0 -1
- package/out/_next/static/chunks/turbopack-0oe-f.~p1jg8n.js +0 -1
- package/out/_next/static/chunks/turbopack-0ofu5~yiw_1_h.js +0 -1
- package/out/_next/static/chunks/turbopack-0p7o~ji.qdun9.js +0 -1
- package/out/_next/static/chunks/turbopack-0p_ojxb-55myx.js +0 -1
- package/out/_next/static/chunks/turbopack-0pv4teocze3x9.js +0 -1
- package/out/_next/static/chunks/turbopack-0rqw5r0qcrf2z.js +0 -1
- package/out/_next/static/chunks/turbopack-0rrj08a25.mep.js +0 -1
- package/out/_next/static/chunks/turbopack-0r~0nmphiorfn.js +0 -1
- package/out/_next/static/chunks/turbopack-0s.6f50ntkcs9.js +0 -1
- package/out/_next/static/chunks/turbopack-0s0ulq6q87y_x.js +0 -1
- package/out/_next/static/chunks/turbopack-0sdfu3q0v0q5h.js +0 -1
- package/out/_next/static/chunks/turbopack-0sjqqk57lmjnz.js +0 -1
- package/out/_next/static/chunks/turbopack-0svf~53uzg0yz.js +0 -1
- package/out/_next/static/chunks/turbopack-0t2n3t16.jt5-.js +0 -1
- package/out/_next/static/chunks/turbopack-0uhwk8kptpcof.js +0 -1
- package/out/_next/static/chunks/turbopack-0v0px_ggnszwk.js +0 -1
- package/out/_next/static/chunks/turbopack-0vpfmiii_t_hk.js +0 -1
- package/out/_next/static/chunks/turbopack-0x-fi_n3na5.e.js +0 -1
- package/out/_next/static/chunks/turbopack-0yq6qjplbghh8.js +0 -1
- package/out/_next/static/chunks/turbopack-0z3yqbd6ngf3r.js +0 -1
- package/out/_next/static/chunks/turbopack-0zo3lj078ff73.js +0 -1
- package/out/_next/static/chunks/turbopack-10ikru0-tgde5.js +0 -1
- package/out/_next/static/chunks/turbopack-10my3_6508i9s.js +0 -1
- package/out/_next/static/chunks/turbopack-11fd3~ckkb1az.js +0 -1
- package/out/_next/static/chunks/turbopack-12635pttd8mwo.js +0 -1
- package/out/_next/static/chunks/turbopack-12tv~faaane2m.js +0 -1
- package/out/_next/static/chunks/turbopack-133ooe_tc74fx.js +0 -1
- package/out/_next/static/chunks/turbopack-13xywrs0tr14-.js +0 -1
- package/out/_next/static/chunks/turbopack-14c20trqh_v2z.js +0 -1
- package/out/_next/static/chunks/turbopack-164kkr2_jziv1.js +0 -1
- package/out/_next/static/chunks/turbopack-16zy~wq_5~ah~.js +0 -1
- package/out/_next/static/chunks/turbopack-17ag.mp331nmd.js +0 -1
- package/out/_next/static/pFqjC0hy-zIBRbr8wLP_l/_buildManifest.js +0 -258
- package/out/admin-ui-permissions.js +0 -129
- /package/out/_next/static/chunks/{0a1flay6uksa2.js → 0wooaklx8_14q.js} +0 -0
- /package/out/_next/static/chunks/{0htfk2vj7m.9j.js → 1jqnrnw0p9tw5.js} +0 -0
- /package/out/_next/static/{pFqjC0hy-zIBRbr8wLP_l → mgojmR_4GNqJNutDR9oFi}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{pFqjC0hy-zIBRbr8wLP_l → mgojmR_4GNqJNutDR9oFi}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95377,16717,e=>{"use strict";let t,r;var n,i,a,o,s,l,u,d,c,p,f,m,h,g,v,y,b,_,$,x,k,w,I,S,E,O,j,Z,z,T,U,A,N,P,C,D,R,M,L,F,B,J,V,W,q,G,K,H,Y,X,Q,ee,et,er,en,ei,ea,eo,es,el,eu,ed,ec,ep,ef=e.i(91398),em=e.i(91788),eh=e.i(50461),eg=e.i(21168),ev="vercel.ai.error",ey=Symbol.for(ev),eb=class e extends(c=Error,d=ey,c){constructor({name:e,message:t,cause:r}){super(t),this[d]=!0,this.name=e,this.cause=r}static isInstance(t){return e.hasMarker(t,ev)}static hasMarker(e,t){let r=Symbol.for(t);return null!=e&&"object"==typeof e&&r in e&&"boolean"==typeof e[r]&&!0===e[r]}},e_="AI_APICallError",e$=`vercel.ai.error.${e_}`,ex=Symbol.for(e$),ek=class extends(f=eb,p=ex,f){constructor({message:e,url:t,requestBodyValues:r,statusCode:n,responseHeaders:i,responseBody:a,cause:o,isRetryable:s=null!=n&&(408===n||409===n||429===n||n>=500),data:l}){super({name:e_,message:e,cause:o}),this[p]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=n,this.responseHeaders=i,this.responseBody=a,this.isRetryable=s,this.data=l}static isInstance(e){return eb.hasMarker(e,e$)}},ew="AI_EmptyResponseBodyError",eI=`vercel.ai.error.${ew}`,eS=Symbol.for(eI),eE=class extends(h=eb,m=eS,h){constructor({message:e="Empty response body"}={}){super({name:ew,message:e}),this[m]=!0}static isInstance(e){return eb.hasMarker(e,eI)}};function eO(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var ej="AI_InvalidArgumentError",eZ=`vercel.ai.error.${ej}`,ez=Symbol.for(eZ),eT=class extends(v=eb,g=ez,v){constructor({message:e,cause:t,argument:r}){super({name:ej,message:e,cause:t}),this[g]=!0,this.argument=r}static isInstance(e){return eb.hasMarker(e,eZ)}},eU=Symbol.for("vercel.ai.error.AI_InvalidPromptError");Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var eA="AI_JSONParseError",eN=`vercel.ai.error.${eA}`,eP=Symbol.for(eN),eC=class extends(b=eb,y=eP,b){constructor({text:e,cause:t}){super({name:eA,message:`JSON parsing failed: Text: ${e}.
|
|
2
|
+
Error message: ${eO(t)}`,cause:t}),this[y]=!0,this.text=e}static isInstance(e){return eb.hasMarker(e,eN)}},eD=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError");Symbol.for("vercel.ai.error.AI_LoadSettingError");Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");Symbol.for("vercel.ai.error.AI_NoSuchModelError");Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var eR="AI_TypeValidationError",eM=`vercel.ai.error.${eR}`,eL=Symbol.for(eM),eF=class e extends($=eb,_=eL,$){constructor({value:e,cause:t,context:r}){let n="Type validation failed";if((null==r?void 0:r.field)&&(n+=` for ${r.field}`),(null==r?void 0:r.entityName)||(null==r?void 0:r.entityId)){n+=" (";const e=[];r.entityName&&e.push(r.entityName),r.entityId&&e.push(`id: "${r.entityId}"`),n+=e.join(", "),n+=")"}super({name:eR,message:`${n}: Value: ${JSON.stringify(e)}.
|
|
3
|
+
Error message: ${eO(t)}`,cause:t}),this[_]=!0,this.value=e,this.context=r}static isInstance(e){return eb.hasMarker(e,eM)}static wrap({value:t,cause:r,context:n}){var i,a,o;return e.isInstance(r)&&r.value===t&&(null==(i=r.context)?void 0:i.field)===(null==n?void 0:n.field)&&(null==(a=r.context)?void 0:a.entityName)===(null==n?void 0:n.entityName)&&(null==(o=r.context)?void 0:o.entityId)===(null==n?void 0:n.entityId)?r:new e({value:t,cause:r,context:n})}},eB=Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");let eJ=Object.freeze({status:"aborted"});function eV(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:o,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in r||(r[t]=i[t].bind(r))}}let i=r?.Parent??Object;class a extends i{}function o(e){var t;let i=r?.Parent?new a:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let eW=Symbol("zod_brand");class eq extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eG extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(x=globalThis).__zod_globalConfig??(x.__zod_globalConfig={});let eK=globalThis.__zod_globalConfig;function eH(e){return e&&Object.assign(eK,e),eK}function eY(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function eX(e,t="|"){return e.map(e=>td(e)).join(t)}function eQ(e,t){return"bigint"==typeof t?t.toString():t}function e0(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function e1(e){return null==e}function e2(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function e4(e,t){let r=e/t,n=Math.round(r),i=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-n)<i?0:r-n}e.s(["$ZodAsyncError",0,eq,"$ZodEncodeError",0,eG,"$brand",0,eW,"$constructor",0,eV,"NEVER",0,eJ,"config",0,eH,"globalConfig",0,eK],16696);let e6=Symbol("evaluating");function e5(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==e6)return void 0===n&&(n=e6,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function e9(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function e3(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function e7(e){return JSON.stringify(e)}function e8(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let te="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function tt(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let tr=e0(()=>{if(eK.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function tn(e){if(!1===tt(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==tt(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function ti(e){return tn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let ta=new Set(["string","number","symbol"]),to=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ts(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tl(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function tu(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function td(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function tc(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let tp={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tm(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function th(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function tg(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function tv(e){return"string"==typeof e?e:e?.message}function ty(e,t,r){let n=e.message?e.message:tv(e.inst?._zod.def?.error?.(e))??tv(t?.error?.(e))??tv(r.customError?.(e))??tv(r.localeError?.(e))??"Invalid input",{inst:i,continue:a,input:o,...s}=e;return s.path??(s.path=[]),s.message=n,t?.reportInput&&(s.input=o),s}function tb(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function t_(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function t$(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function tx(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}function tk(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function tw(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}e.s(["BIGINT_FORMAT_RANGES",0,tf,"Class",0,class{constructor(...e){}},"NUMBER_FORMAT_RANGES",0,tp,"aborted",0,tm,"allowsEval",0,tr,"assert",0,function(e){},"assertEqual",0,function(e){return e},"assertIs",0,function(e){},"assertNever",0,function(e){throw Error("Unexpected value in exhaustive check")},"assertNotEqual",0,function(e){return e},"assignProp",0,e9,"base64ToUint8Array",0,tk,"base64urlToUint8Array",0,function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return tk(t+r)},"cached",0,e0,"captureStackTrace",0,te,"cleanEnum",0,function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},"cleanRegex",0,e2,"clone",0,tl,"cloneDef",0,function(e){return e3(e._zod.def)},"createTransparentProxy",0,function(e){let t;return new Proxy({},{get:(r,n,i)=>(t??(t=e()),Reflect.get(t,n,i)),set:(r,n,i,a)=>(t??(t=e()),Reflect.set(t,n,i,a)),has:(r,n)=>(t??(t=e()),Reflect.has(t,n)),deleteProperty:(r,n)=>(t??(t=e()),Reflect.deleteProperty(t,n)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,n)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)),defineProperty:(r,n,i)=>(t??(t=e()),Reflect.defineProperty(t,n,i))})},"defineLazy",0,e5,"esc",0,e7,"escapeRegex",0,ts,"explicitlyAborted",0,th,"extend",0,function(e,t){if(!tn(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=e3(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return e9(this,"shape",r),r}});return tl(e,n)},"finalizeIssue",0,ty,"floatSafeRemainder",0,e4,"getElementAtPath",0,function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},"getEnumValues",0,eY,"getLengthableOrigin",0,t_,"getParsedType",0,e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},"getSizableOrigin",0,tb,"hexToUint8Array",0,function(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r},"isObject",0,tt,"isPlainObject",0,tn,"issue",0,tx,"joinValues",0,eX,"jsonStringifyReplacer",0,eQ,"merge",0,function(e,t){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=e3(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return e9(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return tl(e,r)},"mergeDefs",0,e3,"normalizeParams",0,tu,"nullish",0,e1,"numKeys",0,function(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t},"objectClone",0,function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},"omit",0,function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=e3(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return e9(this,"shape",n),n},checks:[]});return tl(e,i)},"optionalKeys",0,tc,"parsedType",0,t$,"partial",0,function(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=e3(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return e9(this,"shape",i),i},checks:[]});return tl(t,i)},"pick",0,function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=e3(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return e9(this,"shape",e),e},checks:[]});return tl(e,i)},"prefixIssues",0,tg,"primitiveTypes",0,to,"promiseAllObject",0,function(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=e[n];return r})},"propertyKeyTypes",0,ta,"randomString",0,function(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r},"required",0,function(e,t,r){let n=e3(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return e9(this,"shape",i),i}});return tl(t,n)},"safeExtend",0,function(e,t){if(!tn(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=e3(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return e9(this,"shape",r),r}});return tl(e,r)},"shallowClone",0,ti,"slugify",0,e8,"stringifyPrimitive",0,td,"uint8ArrayToBase64",0,tw,"uint8ArrayToBase64url",0,function(e){return tw(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},"uint8ArrayToHex",0,function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},"unwrapMessage",0,tv],39604);let tI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,eQ,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tS=eV("$ZodError",tI),tE=eV("$ZodError",tI,{Parent:Error});function tO(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function tj(e,t=e=>e.message){let r={_errors:[]},n=(e,i=[])=>{for(let a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>n({issues:e},[...i,...a.path]));else if("invalid_key"===a.code)n({issues:a.issues},[...i,...a.path]);else if("invalid_element"===a.code)n({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(0===e.length)r._errors.push(t(a));else{let n=r,i=0;for(;i<e.length;){let r=e[i];i===e.length-1?(n[r]=n[r]||{_errors:[]},n[r]._errors.push(t(a))):n[r]=n[r]||{_errors:[]},n=n[r],i++}}}};return n(e),r}function tZ(e,t=e=>e.message){let r={errors:[]},n=(e,i=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>n({issues:e},[...i,...s.path]));else if("invalid_key"===s.code)n({issues:s.issues},[...i,...s.path]);else if("invalid_element"===s.code)n({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(0===e.length){r.errors.push(t(s));continue}let n=r,l=0;for(;l<e.length;){let r=e[l],i=l===e.length-1;"string"==typeof r?(n.properties??(n.properties={}),(a=n.properties)[r]??(a[r]={errors:[]}),n=n.properties[r]):(n.items??(n.items=[]),(o=n.items)[r]??(o[r]={errors:[]}),n=n.items[r]),i&&n.errors.push(t(s)),l++}}};return n(e),r}function tz(e){let t=[];for(let r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function tT(e){let t=[];for(let r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${r.message}`),r.path?.length&&t.push(` → at ${tz(r.path)}`);return t.join("\n")}e.s(["$ZodError",0,tS,"$ZodRealError",0,tE,"flattenError",0,tO,"formatError",0,tj,"prettifyError",0,tT,"toDotPath",0,tz,"treeifyError",0,tZ],36582);let tU=e=>(t,r,n,i)=>{let a=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new eq;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ty(e,a,eH())));throw te(t,i?.callee),t}return o.value},tA=tU(tE),tN=e=>async(t,r,n,i)=>{let a=n?{...n,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ty(e,a,eH())));throw te(t,i?.callee),t}return o.value},tP=tN(tE),tC=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new eq;return a.issues.length?{success:!1,error:new(e??tS)(a.issues.map(e=>ty(e,i,eH())))}:{success:!0,data:a.value}},tD=tC(tE),tR=e=>async(t,r,n)=>{let i=n?{...n,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ty(e,i,eH())))}:{success:!0,data:a.value}},tM=tR(tE),tL=e=>(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return tU(e)(t,r,i)},tF=tL(tE),tB=e=>(t,r,n)=>tU(e)(t,r,n),tJ=tB(tE),tV=e=>async(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return tN(e)(t,r,i)},tW=tV(tE),tq=e=>async(t,r,n)=>tN(e)(t,r,n),tG=tq(tE),tK=e=>(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return tC(e)(t,r,i)},tH=tK(tE),tY=e=>(t,r,n)=>tC(e)(t,r,n),tX=tY(tE),tQ=e=>async(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return tR(e)(t,r,i)},t0=tQ(tE),t1=e=>async(t,r,n)=>tR(e)(t,r,n),t2=t1(tE);e.s(["_decode",0,tB,"_decodeAsync",0,tq,"_encode",0,tL,"_encodeAsync",0,tV,"_parse",0,tU,"_parseAsync",0,tN,"_safeDecode",0,tY,"_safeDecodeAsync",0,t1,"_safeEncode",0,tK,"_safeEncodeAsync",0,tQ,"_safeParse",0,tC,"_safeParseAsync",0,tR,"decode",0,tJ,"decodeAsync",0,tG,"encode",0,tF,"encodeAsync",0,tW,"parse",0,tA,"parseAsync",0,tP,"safeDecode",0,tX,"safeDecodeAsync",0,t2,"safeEncode",0,tH,"safeEncodeAsync",0,t0,"safeParse",0,tD,"safeParseAsync",0,tM],35571);let t4=(e,t)=>{tS.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>tj(e,t)},flatten:{value:t=>tO(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,eQ,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,eQ,2)}},isEmpty:{get:()=>0===e.issues.length}})},t6=eV("ZodError",t4),t5=eV("ZodError",t4,{Parent:Error});e.s(["ZodError",0,t6,"ZodRealError",0,t5],96223);let t9=tU(t5),t3=tN(t5),t7=tC(t5),t8=tR(t5),re=tL(t5),rt=tB(t5),rr=tV(t5),rn=tq(t5),ri=tK(t5),ra=tY(t5),ro=tQ(t5),rs=t1(t5);e.s(["decode",0,rt,"decodeAsync",0,rn,"encode",0,re,"encodeAsync",0,rr,"parse",0,t9,"parseAsync",0,t3,"safeDecode",0,ra,"safeDecodeAsync",0,rs,"safeEncode",0,ri,"safeEncodeAsync",0,ro,"safeParse",0,t7,"safeParseAsync",0,t8],84029);let rl=Symbol("ZodOutput"),ru=Symbol("ZodInput");class rd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function rc(){return new rd}(k=globalThis).__zod_globalRegistry??(k.__zod_globalRegistry=rc());let rp=globalThis.__zod_globalRegistry;function rf(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??rp,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function rm(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,n);else{let r=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,r,n)}let a=e._zod.parent;a&&(o.ref||(o.ref=a),rm(a,t,n),t.seen.get(a).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),"input"===t.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,n);if("set"===i.type)return e(i.valueType,n);if("lazy"===i.type)return e(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,n);if("intersection"===i.type)return e(i.left,n)||e(i.right,n);if("record"===i.type||"map"===i.type)return e(i.keyType,n)||e(i.valueType,n);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,n)||e(i.out,n);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,n))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0}return!1}(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&"_prefault"in o.schema&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function rh(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=n.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(r,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:i,defId:a}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(r)return{ref:i(r)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i("__shared")}#/${n}/${a}`}}if(t[1]===r)return{ref:"#"};let i=`#/${n}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}})(t);n.def={...n.schema},a&&(n.defId=a);let o=n.schema;for(let e in o)delete o[e];o.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
|
|
4
|
+
|
|
5
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let n=r[1];if(t===r[0]){i(r);continue}if(e.external){let n=e.external.registry.get(r[0])?.id;if(t!==r[0]&&n){i(r);continue}}if(e.metadataRegistry.get(r[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){i(r);continue}}}function rg(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t);if(null===r.ref)return;let i=r.def??r.schema,a={...i},o=r.ref;if(r.ref=null,o){n(o);let r=e.seen.get(o),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in a||delete i[e]);if(s.$ref&&r.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(i[e])===JSON.stringify(r.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){n(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(r)}Object.assign(i,r.def??r.schema);let a=e.metadataRegistry.get(t)?.id;void 0!==a&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?i.$defs=o:i.definitions=o);try{let r=JSON.parse(JSON.stringify(i));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:ry(t,"input",e.processors),output:ry(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}e.s(["$ZodRegistry",0,rd,"$input",0,ru,"$output",0,rl,"globalRegistry",0,rp,"registry",0,rc],68808);let rv=(e,t={})=>r=>{let n=rf({...r,processors:t});return rm(e,n),rh(n,e),rg(n,e)},ry=(e,t,r={})=>n=>{let{libraryOptions:i,target:a}=n??{},o=rf({...i??{},target:a,io:t,processors:r});return rm(e,o),rh(o,e),rg(o,e)};e.s(["createStandardJSONSchemaMethod",0,ry,"createToJSONSchemaMethod",0,rv,"extractDefs",0,rh,"finalize",0,rg,"initializeContext",0,rf,"process",0,rm],87434);let rb={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},r_=(e,t,r,n)=>{r.type="string";let{minimum:i,maximum:a,format:o,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(r.minLength=i),"number"==typeof a&&(r.maxLength=a),o&&(r.format=rb[o]??o,""===r.format&&delete r.format,"time"===o&&delete r.format),l&&(r.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},r$=(e,t,r,n)=>{let{minimum:i,maximum:a,format:o,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof o&&o.includes("int")?r.type="integer":r.type="number";let d="number"==typeof u&&u>=(i??-1/0),c="number"==typeof l&&l<=(a??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;d?p?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:"number"==typeof i&&(r.minimum=i),c?p?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:"number"==typeof a&&(r.maximum=a),"number"==typeof s&&(r.multipleOf=s)},rx=(e,t,r,n)=>{r.type="boolean"},rk=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},rw=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},rI=(e,t,r,n)=>{"openapi-3.0"===t.target?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},rS=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},rE=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},rO=(e,t,r,n)=>{r.not={}},rj=(e,t,r,n)=>{},rZ=(e,t,r,n)=>{},rz=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},rT=(e,t,r,n)=>{let i=eY(e._zod.def.entries);i.every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=i},rU=(e,t,r,n)=>{let i=e._zod.def,a=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else a.every(e=>"number"==typeof e)&&(r.type="number"),a.every(e=>"string"==typeof e)&&(r.type="string"),a.every(e=>"boolean"==typeof e)&&(r.type="boolean"),a.every(e=>null===e)&&(r.type="null"),r.enum=a},rA=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},rN=(e,t,r,n)=>{let i=e._zod.pattern;if(!i)throw Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},rP=(e,t,r,n)=>{let i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:o,mime:s}=e._zod.bag;void 0!==a&&(i.minLength=a),void 0!==o&&(i.maxLength=o),s?1===s.length?(i.contentMediaType=s[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=s.map(e=>({contentMediaType:e}))):Object.assign(r,i)},rC=(e,t,r,n)=>{r.type="boolean"},rD=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},rR=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},rM=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},rL=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},rF=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},rB=(e,t,r,n)=>{let i=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;"number"==typeof a&&(r.minItems=a),"number"==typeof o&&(r.maxItems=o),r.type="array",r.items=rm(i.element,t,{...n,path:[...n.path,"items"]})},rJ=(e,t,r,n)=>{let i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let e in a)r.properties[e]=rm(a[e],t,{...n,path:[...n.path,"properties",e]});let o=new Set([...new Set(Object.keys(a))].filter(e=>{let r=i.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));o.size>0&&(r.required=Array.from(o)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=rm(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)},rV=(e,t,r,n)=>{let i=e._zod.def,a=!1===i.inclusive,o=i.options.map((e,r)=>rm(e,t,{...n,path:[...n.path,a?"oneOf":"anyOf",r]}));a?r.oneOf=o:r.anyOf=o},rW=(e,t,r,n)=>{let i=e._zod.def,a=rm(i.left,t,{...n,path:[...n.path,"allOf",0]}),o=rm(i.right,t,{...n,path:[...n.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;r.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},rq=(e,t,r,n)=>{let i=e._zod.def;r.type="array";let a="draft-2020-12"===t.target?"prefixItems":"items",o="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",s=i.items.map((e,r)=>rm(e,t,{...n,path:[...n.path,a,r]})),l=i.rest?rm(i.rest,t,{...n,path:[...n.path,o,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(r.prefixItems=s,l&&(r.items=l)):"openapi-3.0"===t.target?(r.items={anyOf:s},l&&r.items.anyOf.push(l),r.minItems=s.length,l||(r.maxItems=s.length)):(r.items=s,l&&(r.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;"number"==typeof u&&(r.minItems=u),"number"==typeof d&&(r.maxItems=d)},rG=(e,t,r,n)=>{let i=e._zod.def;r.type="object";let a=i.keyType,o=a._zod.bag,s=o?.patterns;if("loose"===i.mode&&s&&s.size>0){let e=rm(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});for(let t of(r.patternProperties={},s))r.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(r.propertyNames=rm(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=rm(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let l=a._zod.values;if(l){let e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(r.required=e)}},rK=(e,t,r,n)=>{let i=e._zod.def,a=rm(i.innerType,t,n),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},rH=(e,t,r,n)=>{let i=e._zod.def;rm(i.innerType,t,n),t.seen.get(e).ref=i.innerType},rY=(e,t,r,n)=>{let i=e._zod.def;rm(i.innerType,t,n),t.seen.get(e).ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},rX=(e,t,r,n)=>{let i=e._zod.def;rm(i.innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},rQ=(e,t,r,n)=>{let i,a=e._zod.def;rm(a.innerType,t,n),t.seen.get(e).ref=a.innerType;try{i=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},r0=(e,t,r,n)=>{let i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),o="input"===t.io?a?i.out:i.in:i.out;rm(o,t,n),t.seen.get(e).ref=o},r1=(e,t,r,n)=>{let i=e._zod.def;rm(i.innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},r2=(e,t,r,n)=>{let i=e._zod.def;rm(i.innerType,t,n),t.seen.get(e).ref=i.innerType},r4=(e,t,r,n)=>{let i=e._zod.def;rm(i.innerType,t,n),t.seen.get(e).ref=i.innerType},r6=(e,t,r,n)=>{let i=e._zod.innerType;rm(i,t,n),t.seen.get(e).ref=i},r5={string:r_,number:r$,boolean:rx,bigint:rk,symbol:rw,null:rI,undefined:rS,void:rE,never:rO,any:rj,unknown:rZ,date:rz,enum:rT,literal:rU,nan:rA,template_literal:rN,file:rP,success:rC,custom:rD,function:rR,transform:rM,map:rL,set:rF,array:rB,object:rJ,union:rV,intersection:rW,tuple:rq,record:rG,nullable:rK,nonoptional:rH,default:rY,prefault:rX,catch:rQ,pipe:r0,readonly:r1,promise:r2,optional:r4,lazy:r6};function r9(e,t){if("_idmap"in e){let r=rf({...t,processors:r5}),n={};for(let t of e._idmap.entries()){let[e,n]=t;rm(n,r)}let i={};for(let a of(r.external={registry:e,uri:t?.uri,defs:n},e._idmap.entries())){let[e,t]=a;rh(r,t),i[e]=rg(r,t)}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:n}),{schemas:i}}let r=rf({...t,processors:r5});return rm(e,r),rh(r,e),rg(r,e)}(i=w||(w={})).assertEqual=e=>{},i.assertIs=function(e){},i.assertNever=function(e){throw Error()},i.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},i.getValidEnumValues=e=>{let t=i.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return i.objectValues(r)},i.objectValues=e=>i.objectKeys(e).map(function(t){return e[t]}),i.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},i.find=(e,t)=>{for(let r of e)if(t(r))return r},i.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,i.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},i.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(I||(I={})).mergeShapes=(e,t)=>({...e,...t});let r3=w.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),r7=e=>{switch(typeof e){case"undefined":return r3.undefined;case"string":return r3.string;case"number":return Number.isNaN(e)?r3.nan:r3.number;case"boolean":return r3.boolean;case"function":return r3.function;case"bigint":return r3.bigint;case"symbol":return r3.symbol;case"object":if(Array.isArray(e))return r3.array;if(null===e)return r3.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r3.promise;if("u">typeof Map&&e instanceof Map)return r3.map;if("u">typeof Set&&e instanceof Set)return r3.set;if("u">typeof Date&&e instanceof Date)return r3.date;return r3.object;default:return r3.unknown}},r8=w.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ne extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof ne))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,w.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t=Object.create(null),r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}ne.create=e=>new ne(e);let nt=(e,t)=>{let r;switch(e.code){case r8.invalid_type:r=e.received===r3.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r8.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,w.jsonStringifyReplacer)}`;break;case r8.unrecognized_keys:r=`Unrecognized key(s) in object: ${w.joinValues(e.keys,", ")}`;break;case r8.invalid_union:r="Invalid input";break;case r8.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${w.joinValues(e.options)}`;break;case r8.invalid_enum_value:r=`Invalid enum value. Expected ${w.joinValues(e.options)}, received '${e.received}'`;break;case r8.invalid_arguments:r="Invalid function arguments";break;case r8.invalid_return_type:r="Invalid function return type";break;case r8.invalid_date:r="Invalid date";break;case r8.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:w.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r8.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r8.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r8.custom:r="Invalid input";break;case r8.invalid_intersection_types:r="Intersection results could not be merged";break;case r8.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case r8.not_finite:r="Number must be finite";break;default:r=t.defaultError,w.assertNever(e)}return{message:r}};(a=S||(S={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},a.toString=e=>"string"==typeof e?e:e?.message;function nr(e,t){let r=(e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,nt,void 0].filter(e=>!!e)});e.common.issues.push(r)}class nn{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return ni;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return nn.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return ni;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let ni=Object.freeze({status:"aborted"}),na=e=>({status:"dirty",value:e}),no=e=>({status:"valid",value:e}),ns=e=>"u">typeof Promise&&e instanceof Promise;class nl{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let nu=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new ne(e.common.issues);return this._error=t,this._error}}};function nd(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class nc{get description(){return this._def.description}_getType(e){return r7(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:r7(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new nn,ctx:{common:e.parent.common,data:e.data,parsedType:r7(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ns(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r7(e)},n=this._parseSync({data:e,path:r.path,parent:r});return nu(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r7(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r7(e)},n=this._parse({data:e,path:r.path,parent:r});return nu(r,await (ns(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:r8.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new n0({schema:this,typeName:E.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return n1.create(this,this._def)}nullable(){return n2.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return nL.create(this)}promise(){return nQ.create(this,this._def)}or(e){return nB.create([this,e],this._def)}and(e){return nJ.create(this,e,this._def)}transform(e){return new n0({...nd(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new n4({...nd(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:E.ZodDefault})}brand(){return new n9({typeName:E.ZodBranded,type:this,...nd(this._def)})}catch(e){return new n6({...nd(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:E.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return n3.create(this,e)}readonly(){return n7.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let np=/^c[^\s-]{8,}$/i,nf=/^[0-9a-z]+$/,nm=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nh=/^[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,ng=/^[a-z0-9_-]{21}$/i,nv=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ny=/^[-+]?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)?)??$/,nb=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,n_=/^(?:(?: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])$/,n$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,nx=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nS="((\\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])))",nE=RegExp(`^${nS}$`);function nO(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class nj extends nc{_parse(e){var r,n,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r3.string){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.string,received:t.parsedType}),ni}let s=new nn;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(nr(o=this._getOrReturnCtx(e,o),{code:r8.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("max"===l.kind)e.data.length>l.value&&(nr(o=this._getOrReturnCtx(e,o),{code:r8.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("length"===l.kind){let t=e.data.length>l.value,r=e.data.length<l.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?nr(o,{code:r8.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):r&&nr(o,{code:r8.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),s.dirty())}else if("email"===l.kind)nb.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"email",code:r8.invalid_string,message:l.message}),s.dirty());else if("emoji"===l.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:r8.invalid_string,message:l.message}),s.dirty());else if("uuid"===l.kind)nh.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:r8.invalid_string,message:l.message}),s.dirty());else if("nanoid"===l.kind)ng.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:r8.invalid_string,message:l.message}),s.dirty());else if("cuid"===l.kind)np.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:r8.invalid_string,message:l.message}),s.dirty());else if("cuid2"===l.kind)nf.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:r8.invalid_string,message:l.message}),s.dirty());else if("ulid"===l.kind)nm.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:r8.invalid_string,message:l.message}),s.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{nr(o=this._getOrReturnCtx(e,o),{validation:"url",code:r8.invalid_string,message:l.message}),s.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"regex",code:r8.invalid_string,message:l.message}),s.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(nr(o=this._getOrReturnCtx(e,o),{code:r8.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),s.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(nr(o=this._getOrReturnCtx(e,o),{code:r8.invalid_string,validation:{startsWith:l.value},message:l.message}),s.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(nr(o=this._getOrReturnCtx(e,o),{code:r8.invalid_string,validation:{endsWith:l.value},message:l.message}),s.dirty()):"datetime"===l.kind?(function(e){let t=`${nS}T${nO(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{code:r8.invalid_string,validation:"datetime",message:l.message}),s.dirty()):"date"===l.kind?nE.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{code:r8.invalid_string,validation:"date",message:l.message}),s.dirty()):"time"===l.kind?RegExp(`^${nO(l)}$`).test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{code:r8.invalid_string,validation:"time",message:l.message}),s.dirty()):"duration"===l.kind?ny.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"duration",code:r8.invalid_string,message:l.message}),s.dirty()):"ip"===l.kind?(r=e.data,!(("v4"===(n=l.version)||!n)&&n_.test(r)||("v6"===n||!n)&&nx.test(r))&&1&&(nr(o=this._getOrReturnCtx(e,o),{validation:"ip",code:r8.invalid_string,message:l.message}),s.dirty())):"jwt"===l.kind?!function(e,t){if(!nv.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(nr(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:r8.invalid_string,message:l.message}),s.dirty()):"cidr"===l.kind?(i=e.data,!(("v4"===(a=l.version)||!a)&&n$.test(i)||("v6"===a||!a)&&nk.test(i))&&1&&(nr(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:r8.invalid_string,message:l.message}),s.dirty())):"base64"===l.kind?nw.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"base64",code:r8.invalid_string,message:l.message}),s.dirty()):"base64url"===l.kind?nI.test(e.data)||(nr(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:r8.invalid_string,message:l.message}),s.dirty()):w.assertNever(l);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:r8.invalid_string,...S.errToObj(r)})}_addCheck(e){return new nj({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...S.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...S.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...S.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new nj({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new nj({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new nj({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}nj.create=e=>new nj({checks:[],typeName:E.ZodString,coerce:e?.coerce??!1,...nd(e)});class nZ extends nc{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r3.number){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.number,received:t.parsedType}),ni}let r=new nn;for(let n of this._def.checks)"int"===n.kind?w.isInteger(e.data)||(nr(t=this._getOrReturnCtx(e,t),{code:r8.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(nr(t=this._getOrReturnCtx(e,t),{code:r8.not_finite,message:n.message}),r.dirty()):w.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,r,n){return new nZ({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:S.toString(n)}]})}_addCheck(e){return new nZ({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&w.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}nZ.create=e=>new nZ({checks:[],typeName:E.ZodNumber,coerce:e?.coerce||!1,...nd(e)});class nz extends nc{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==r3.bigint)return this._getInvalidInput(e);let r=new nn;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):w.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.bigint,received:t.parsedType}),ni}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,r,n){return new nz({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:S.toString(n)}]})}_addCheck(e){return new nz({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}nz.create=e=>new nz({checks:[],typeName:E.ZodBigInt,coerce:e?.coerce??!1,...nd(e)});class nT extends nc{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r3.boolean){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.boolean,received:t.parsedType}),ni}return no(e.data)}}nT.create=e=>new nT({typeName:E.ZodBoolean,coerce:e?.coerce||!1,...nd(e)});class nU extends nc{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r3.date){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.date,received:t.parsedType}),ni}if(Number.isNaN(e.data.getTime()))return nr(this._getOrReturnCtx(e),{code:r8.invalid_date}),ni;let r=new nn;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(nr(t=this._getOrReturnCtx(e,t),{code:r8.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):w.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new nU({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}nU.create=e=>new nU({checks:[],coerce:e?.coerce||!1,typeName:E.ZodDate,...nd(e)});class nA extends nc{_parse(e){if(this._getType(e)!==r3.symbol){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.symbol,received:t.parsedType}),ni}return no(e.data)}}nA.create=e=>new nA({typeName:E.ZodSymbol,...nd(e)});class nN extends nc{_parse(e){if(this._getType(e)!==r3.undefined){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.undefined,received:t.parsedType}),ni}return no(e.data)}}nN.create=e=>new nN({typeName:E.ZodUndefined,...nd(e)});class nP extends nc{_parse(e){if(this._getType(e)!==r3.null){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.null,received:t.parsedType}),ni}return no(e.data)}}nP.create=e=>new nP({typeName:E.ZodNull,...nd(e)});class nC extends nc{constructor(){super(...arguments),this._any=!0}_parse(e){return no(e.data)}}nC.create=e=>new nC({typeName:E.ZodAny,...nd(e)});class nD extends nc{constructor(){super(...arguments),this._unknown=!0}_parse(e){return no(e.data)}}nD.create=e=>new nD({typeName:E.ZodUnknown,...nd(e)});class nR extends nc{_parse(e){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.never,received:t.parsedType}),ni}}nR.create=e=>new nR({typeName:E.ZodNever,...nd(e)});class nM extends nc{_parse(e){if(this._getType(e)!==r3.undefined){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.void,received:t.parsedType}),ni}return no(e.data)}}nM.create=e=>new nM({typeName:E.ZodVoid,...nd(e)});class nL extends nc{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==r3.array)return nr(t,{code:r8.invalid_type,expected:r3.array,received:t.parsedType}),ni;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(nr(t,{code:e?r8.too_big:r8.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(nr(t,{code:r8.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(nr(t,{code:r8.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new nl(t,e,t.path,r)))).then(e=>nn.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new nl(t,e,t.path,r)));return nn.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new nL({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new nL({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new nL({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}nL.create=(e,t)=>new nL({type:e,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...nd(t)});class nF extends nc{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=w.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==r3.object){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.object,received:t.parsedType}),ni}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof nR&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=n[e],i=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new nl(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof nR){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(nr(r,{code:r8.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new nl(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>nn.mergeObjectSync(t,e)):nn.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new nF({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:S.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new nF({...this._def,unknownKeys:"strip"})}passthrough(){return new nF({...this._def,unknownKeys:"passthrough"})}extend(e){return new nF({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new nF({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new nF({...this._def,catchall:e})}pick(e){let t={};for(let r of w.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new nF({...this._def,shape:()=>t})}omit(e){let t={};for(let r of w.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new nF({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof nF){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=n1.create(e(i))}return new nF({...t._def,shape:()=>r})}if(t instanceof nL)return new nL({...t._def,type:e(t.element)});if(t instanceof n1)return n1.create(e(t.unwrap()));if(t instanceof n2)return n2.create(e(t.unwrap()));if(t instanceof nV)return nV.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of w.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new nF({...this._def,shape:()=>t})}required(e){let t={};for(let r of w.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof n1;)e=e._def.innerType;t[r]=e}return new nF({...this._def,shape:()=>t})}keyof(){return nH(w.objectKeys(this.shape))}}nF.create=(e,t)=>new nF({shape:()=>e,unknownKeys:"strip",catchall:nR.create(),typeName:E.ZodObject,...nd(t)}),nF.strictCreate=(e,t)=>new nF({shape:()=>e,unknownKeys:"strict",catchall:nR.create(),typeName:E.ZodObject,...nd(t)}),nF.lazycreate=(e,t)=>new nF({shape:e,unknownKeys:"strip",catchall:nR.create(),typeName:E.ZodObject,...nd(t)});class nB extends nc{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new ne(e.ctx.common.issues));return nr(t,{code:r8.invalid_union,unionErrors:r}),ni});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new ne(e));return nr(t,{code:r8.invalid_union,unionErrors:i}),ni}}get options(){return this._def.options}}nB.create=(e,t)=>new nB({options:e,typeName:E.ZodUnion,...nd(t)});class nJ extends nc{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return ni;let i=function e(t,r){let n=r7(t),i=r7(r);if(t===r)return{valid:!0,data:t};if(n===r3.object&&i===r3.object){let n=w.objectKeys(r),i=w.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===r3.array&&i===r3.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===r3.date&&i===r3.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(nr(r,{code:r8.invalid_intersection_types}),ni)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}nJ.create=(e,t,r)=>new nJ({left:e,right:t,typeName:E.ZodIntersection,...nd(r)});class nV extends nc{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==r3.array)return nr(r,{code:r8.invalid_type,expected:r3.array,received:r.parsedType}),ni;if(r.data.length<this._def.items.length)return nr(r,{code:r8.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ni;!this._def.rest&&r.data.length>this._def.items.length&&(nr(r,{code:r8.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new nl(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>nn.mergeArray(t,e)):nn.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new nV({...this._def,rest:e})}}nV.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new nV({items:e,typeName:E.ZodTuple,rest:null,...nd(t)})};class nW extends nc{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==r3.map)return nr(r,{code:r8.invalid_type,expected:r3.map,received:r.parsedType}),ni;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new nl(r,e,r.path,[a,"key"])),value:i._parse(new nl(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return ni;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return ni;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}nW.create=(e,t,r)=>new nW({valueType:t,keyType:e,typeName:E.ZodMap,...nd(r)});class nq extends nc{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==r3.set)return nr(r,{code:r8.invalid_type,expected:r3.set,received:r.parsedType}),ni;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(nr(r,{code:r8.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(nr(r,{code:r8.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return ni;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let o=[...r.data.values()].map((e,t)=>i._parse(new nl(r,e,r.path,t)));return r.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new nq({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new nq({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}nq.create=(e,t)=>new nq({valueType:e,minSize:null,maxSize:null,typeName:E.ZodSet,...nd(t)});class nG extends nc{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}nG.create=(e,t)=>new nG({getter:e,typeName:E.ZodLazy,...nd(t)});class nK extends nc{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return nr(t,{received:t.data,code:r8.invalid_literal,expected:this._def.value}),ni}return{status:"valid",value:e.data}}get value(){return this._def.value}}function nH(e,t){return new nY({values:e,typeName:E.ZodEnum,...nd(t)})}nK.create=(e,t)=>new nK({value:e,typeName:E.ZodLiteral,...nd(t)});class nY extends nc{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return nr(t,{expected:w.joinValues(r),received:t.parsedType,code:r8.invalid_type}),ni}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return nr(t,{received:t.data,code:r8.invalid_enum_value,options:r}),ni}return no(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return nY.create(e,{...this._def,...t})}exclude(e,t=this._def){return nY.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}nY.create=nH;class nX extends nc{_parse(e){let t=w.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==r3.string&&r.parsedType!==r3.number){let e=w.objectValues(t);return nr(r,{expected:w.joinValues(e),received:r.parsedType,code:r8.invalid_type}),ni}if(this._cache||(this._cache=new Set(w.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=w.objectValues(t);return nr(r,{received:r.data,code:r8.invalid_enum_value,options:e}),ni}return no(e.data)}get enum(){return this._def.values}}nX.create=(e,t)=>new nX({values:e,typeName:E.ZodNativeEnum,...nd(t)});class nQ extends nc{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r3.promise&&!1===t.common.async?(nr(t,{code:r8.invalid_type,expected:r3.promise,received:t.parsedType}),ni):no((t.parsedType===r3.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}nQ.create=(e,t)=>new nQ({type:e,typeName:E.ZodPromise,...nd(t)});class n0 extends nc{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{nr(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return ni;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?ni:"dirty"===n.status||"dirty"===t.value?na(n.value):n});{if("aborted"===t.value)return ni;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?ni:"dirty"===n.status||"dirty"===t.value?na(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?ni:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?ni:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?ni:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return ni;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}w.assertNever(n)}}n0.create=(e,t,r)=>new n0({schema:e,typeName:E.ZodEffects,effect:t,...nd(r)}),n0.createWithPreprocess=(e,t,r)=>new n0({schema:t,effect:{type:"preprocess",transform:e},typeName:E.ZodEffects,...nd(r)});class n1 extends nc{_parse(e){return this._getType(e)===r3.undefined?no(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}n1.create=(e,t)=>new n1({innerType:e,typeName:E.ZodOptional,...nd(t)});class n2 extends nc{_parse(e){return this._getType(e)===r3.null?no(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}n2.create=(e,t)=>new n2({innerType:e,typeName:E.ZodNullable,...nd(t)});class n4 extends nc{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===r3.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}n4.create=(e,t)=>new n4({innerType:e,typeName:E.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...nd(t)});class n6 extends nc{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ns(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ne(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new ne(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}n6.create=(e,t)=>new n6({innerType:e,typeName:E.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...nd(t)});class n5 extends nc{_parse(e){if(this._getType(e)!==r3.nan){let t=this._getOrReturnCtx(e);return nr(t,{code:r8.invalid_type,expected:r3.nan,received:t.parsedType}),ni}return{status:"valid",value:e.data}}}n5.create=e=>new n5({typeName:E.ZodNaN,...nd(e)}),Symbol("zod_brand");class n9 extends nc{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class n3 extends nc{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?ni:"dirty"===e.status?(t.dirty(),na(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?ni:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new n3({in:e,out:t,typeName:E.ZodPipeline})}}class n7 extends nc{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return ns(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}n7.create=(e,t)=>new n7({innerType:e,typeName:E.ZodReadonly,...nd(t)}),nF.lazycreate,(o=E||(E={})).ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly",nj.create,nZ.create,n5.create,nz.create,nT.create,nU.create,nA.create,nN.create,nP.create,nC.create,nD.create,nR.create,nM.create,nL.create,nF.create,nF.strictCreate,nB.create,nJ.create,nV.create,nW.create,nq.create,nG.create,nK.create,nY.create,nX.create,nQ.create,n0.create,n1.create,n2.create,n0.createWithPreprocess,n3.create;class n8 extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function ie(e){}function it(e,t,r){return 100===r&&97===e.charCodeAt(t+1)&&116===e.charCodeAt(t+2)&&97===e.charCodeAt(t+3)&&58===e.charCodeAt(t+4)}function ir(e,t,r){return 101===r&&118===e.charCodeAt(t+1)&&101===e.charCodeAt(t+2)&&110===e.charCodeAt(t+3)&&116===e.charCodeAt(t+4)&&58===e.charCodeAt(t+5)}class ii extends TransformStream{constructor({onError:e,onRetry:t,onComment:r,maxBufferSize:n}={}){let i;super({start(a){i=function(e){if("function"==typeof e)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=ie,onError:r=ie,onRetry:n=ie,onComment:i,maxBufferSize:a}=e,o=[],s=0,l=!0,u,d="",c=0,p,f=!1;function m(){void 0!==a&&(s+d.length<=a||(f=!0,o.length=0,s=0,u=void 0,d="",c=0,p=void 0,r(new n8(`Buffered data exceeded max buffer size of ${a} characters`,{type:"max-buffer-size-exceeded"}))))}function h(e){let r=0;if(-1===e.indexOf("\r")){let n=e.indexOf(`
|
|
6
|
+
`,r);for(;-1!==n;){if(r===n){c>0&&t({id:u,event:p,data:d}),u=void 0,d="",c=0,p=void 0,r=n+1,n=e.indexOf(`
|
|
7
|
+
`,r);continue}let i=e.charCodeAt(r);if(it(e,r,i)){let i=32===e.charCodeAt(r+5)?r+6:r+5,a=e.slice(i,n);if(0===c&&10===e.charCodeAt(n+1)){t({id:u,event:p,data:a}),u=void 0,d="",p=void 0,r=n+2,n=e.indexOf(`
|
|
8
|
+
`,r);continue}d=0===c?a:`${d}
|
|
9
|
+
${a}`,c++}else ir(e,r,i)?p=e.slice(32===e.charCodeAt(r+6)?r+7:r+6,n)||void 0:g(e,r,n);r=n+1,n=e.indexOf(`
|
|
10
|
+
`,r)}return e.slice(r)}for(;r<e.length;){let t=e.indexOf("\r",r),n=e.indexOf(`
|
|
11
|
+
`,r),i=-1;if(-1!==t&&-1!==n?i=t<n?t:n:-1!==t?i=t===e.length-1?-1:t:-1!==n&&(i=n),-1===i)break;g(e,r,i),r=i+1,13===e.charCodeAt(r-1)&&10===e.charCodeAt(r)&&r++}return e.slice(r)}function g(e,r,n){if(r===n)return void(c>0&&t({id:u,event:p,data:d}),u=void 0,d="",c=0,p=void 0);let a=e.charCodeAt(r);if(it(e,r,a)){let t=32===e.charCodeAt(r+5)?r+6:r+5,i=e.slice(t,n);d=0===c?i:`${d}
|
|
12
|
+
${i}`,c++;return}if(ir(e,r,a)){p=e.slice(32===e.charCodeAt(r+6)?r+7:r+6,n)||void 0;return}if(105===a&&100===e.charCodeAt(r+1)&&58===e.charCodeAt(r+2)){let t=e.slice(32===e.charCodeAt(r+3)?r+4:r+3,n);t.includes("\0")||(u=t);return}if(58===a){i&&i(e.slice(r,n).slice(32===e.charCodeAt(r+1)?2:1));return}let o=e.slice(r,n),s=o.indexOf(":");if(-1===s)return void v(o,"",o);let l=o.slice(0,s),f=32===o.charCodeAt(s+1)?2:1;v(l,o.slice(s+f),o)}function v(e,t,i){switch(e){case"event":p=t||void 0;break;case"data":d=0===c?t:`${d}
|
|
13
|
+
${t}`,c++;break;case"id":t.includes("\0")||(u=t);break;case"retry":/^\d+$/.test(t)?n(parseInt(t,10)):r(new n8(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:r(new n8(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){if(f)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(l&&(l=!1,239===e.charCodeAt(0)&&187===e.charCodeAt(1)&&191===e.charCodeAt(2)&&(e=e.slice(3))),0===o.length){let t=h(e);""!==t&&(o.push(t),s=t.length),m();return}if(-1===e.indexOf(`
|
|
14
|
+
`)&&-1===e.indexOf("\r")){o.push(e),s+=e.length,m();return}o.push(e);let t=o.join("");o.length=0,s=0;let r=h(t);""!==r&&(o.push(r),s=r.length),m()},reset:function(e={}){if(e.consume&&o.length>0){let e=o.join("");g(e,0,e.length)}l=!0,u=void 0,d="",c=0,p=void 0,o.length=0,s=0,f=!1}}}({onEvent:e=>{a.enqueue(e)},onError(t){"function"==typeof e&&e(t),("terminate"===e||"max-buffer-size-exceeded"===t.type)&&a.error(t)},onRetry:t,onComment:r,maxBufferSize:n})},transform(e){i.feed(e)}})}}function ia(...e){return e.reduce((e,t)=>({...e,...null!=t?t:{}}),{})}function io(e){return Object.fromEntries([...e.headers])}var{btoa:is,atob:il}=globalThis;function iu(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCodePoint(e[r]);return is(t)}async function id(e){var t;try{await (null==(t=e.body)?void 0:t.cancel())}catch(e){}}var ic="AI_DownloadError",ip=`vercel.ai.error.${ic}`,im=Symbol.for(ip),ih=class extends(j=eb,O=im,j){constructor({url:e,statusCode:t,statusText:r,cause:n,message:i=null==n?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${n}`}){super({name:ic,message:i,cause:n}),this[O]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return eb.hasMarker(e,ip)}};function ig(e){let t=e.split(".");return 4===t.length&&t.every(e=>{let t=Number(e);return Number.isInteger(t)&&t>=0&&t<=255&&String(t)===e})}function iv(e){let[t,r,n]=e.split(".").map(Number);return 0===t||10===t||100===t&&r>=64&&r<=127||127===t||169===t&&254===r||172===t&&r>=16&&r<=31||192===t&&0===r&&0===n||192===t&&168===r||198===t&&(18===r||19===r)||t>=240||!1}function iy(e){let t=function(e){let t=e.toLowerCase(),r=t.indexOf("%");-1!==r&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=e=>{if(""===e)return[];let t=[],r=e.split(":");for(let e=0;e<r.length;e++){let n=r[e];if(n.includes(".")){if(e!==r.length-1||!ig(n))return null;let[i,a,o,s]=n.split(".").map(Number);t.push(i<<8|a,o<<8|s);continue}if(!/^[0-9a-f]{1,4}$/.test(n))return null;t.push(parseInt(n,16))}return t},a=i(n[0]);if(null===a)return null;if(2===n.length){let e=i(n[1]);if(null===e)return null;let t=8-a.length-e.length;return t<0?null:[...a,...Array(t).fill(0),...e]}return 8===a.length?a:null}(e);if(null===t)return!0;let r=e=>t.slice(0,e).every(e=>0===e);if(r(7)&&(0===t[7]||1===t[7])||(65024&t[0])==64512||(65472&t[0])==65152||(65472&t[0])==65216||(65280&t[0])==65280)return!0;if(r(6)||r(5)&&65535===t[5]||r(4)&&65535===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&1===t[2]){let e=t[6]>>8&255,r=255&t[6],n=t[7]>>8&255,i=255&t[7];return iv(`${e}.${r}.${n}.${i}`)}return!1}var ib=globalThis.fetch,i_=(n=ib,(r=Function.prototype.toString.call(n)).includes("internal/deps/undici")||r.includes("lazy loading of undici"));async function i$(){var e,t;let r;return(null==(e=null==(r=globalThis.process)?void 0:r.release)?void 0:e.name)==="node"&&(null==(t=r.versions)?void 0:t.bun)==null&&i_&&globalThis.fetch===ib?null!=Z?Z:Z=ix():globalThis.fetch}async function ix(){let[{createRequire:e},{lookup:t}]=await Promise.all([ik("node:module"),ik("node:dns")]),{Agent:r,fetch:n}=e(function e(){let t=Error.prepareStackTrace;try{Error.prepareStackTrace=(e,t)=>t;let t=Error("Capture current module path");Error.captureStackTrace(t,e);let[r]=t.stack,n=null==r?void 0:r.getFileName();if(null==n)throw Error("Unable to determine the current module path");return n}finally{Error.prepareStackTrace=t}}())("undici"),i=new r({connect:{lookup:(e,r,n)=>{t(e,{...r,all:!0},(t,i)=>{if(t)return void n(t);try{let[t]=i;if(null==t)throw Error(`Hostname ${e} did not resolve to an address`);for(let{address:t,family:r}of i)!function({address:e,family:t,hostname:r}){if(4===t?!ig(e)||iv(e):6!==t||iy(e))throw new ih({url:r,message:`Hostname ${r} resolved to disallowed IP address ${e}`})}({address:t,family:r,hostname:e});!0===r.all?n(null,i):n(null,t.address,t.family)}catch(e){n(e instanceof Error?e:Error(String(e)))}})}}});return(e,t)=>n(e,{...t,dispatcher:i})}async function ik(e){var t;let r=globalThis.process,n=null==(t=null==r?void 0:r.getBuiltinModule)?void 0:t.call(r,e);if(null==n)throw Error(`Node.js built-in module ${e} is unavailable`);return n}async function iw({url:e,headers:t,abortSignal:r,maxRedirects:n=10}){let i={signal:r};void 0!==t&&(i.headers=t);let a=e;for(let t=0;t<=n;t++){!function(e){let t;try{t=new URL(e)}catch(t){throw new ih({url:e,message:`Invalid URL: ${e}`})}if("data:"===t.protocol)return;if("http:"!==t.protocol&&"https:"!==t.protocol)throw new ih({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new ih({url:e,message:"URL must have a hostname"});if("localhost"===r||r.endsWith(".local")||r.endsWith(".localhost"))throw new ih({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){if(iy(r.slice(1,-1)))throw new ih({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(ig(r)&&iv(r))throw new ih({url:e,message:`URL with IP address ${r} is not allowed`})}(a);let t=await i$(),r=await t(a,{...i,redirect:"manual"});if("opaqueredirect"===r.type){if(!function(e=globalThis){return null!=e.window}())throw new ih({url:e,message:`Redirect from ${a} could not be validated and was blocked`});return await t(a,{...i,redirect:"follow"})}let n=r.headers.get("location");if(r.status>=300&&r.status<400&&n){await id(r),a=new URL(n,a).toString();continue}return r}throw new ih({url:e,message:`Too many redirects (max ${n})`})}async function iI({response:e,url:t,maxBytes:r=0x80000000}){let n=e.headers.get("content-length");if(null!=n){let i=parseInt(n,10);if(!isNaN(i)&&i>r)throw await id(e),new ih({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${i}).`})}let i=e.body;if(null==i)return new Uint8Array(0);let a=i.getReader(),o=[],s=0;try{for(;;){let{done:e,value:n}=await a.read();if(e)break;if((s+=n.length)>r)throw new ih({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});o.push(n)}}finally{try{await a.cancel()}catch(e){}finally{a.releaseLock()}}let l=new Uint8Array(s),u=0;for(let e of o)l.set(e,u),u+=e.length;return l}var iS=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let i=()=>{let e=r.length,n=Array(t);for(let i=0;i<t;i++)n[i]=r[Math.random()*e|0];return n.join("")};if(null==e)return i;if(r.includes(n))throw new eT({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${r}".`});return()=>`${e}${n}${i()}`},iE=iS();function iO(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}function ij(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var iZ=["fetch failed","failed to fetch"],iz=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function iT({error:e,url:t,requestBodyValues:r}){if(ij(e))return e;if(e instanceof TypeError&&iZ.includes(e.message.toLowerCase())){let n=e.cause;if(null!=n)return new ek({message:`Cannot connect to API: ${n.message}`,cause:n,url:t,requestBodyValues:r,isRetryable:!0})}return!function(e){if(!(e instanceof Error))return!1;let t=e.code;return!!("string"==typeof t&&iz.includes(t))}(e)?e:new ek({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:r,isRetryable:!0})}function iU(e=globalThis){var t,r,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(r=e.process)?void 0:r.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function iA(e){if(null==e)return{};let t={};if(e instanceof Headers)e.forEach((e,r)=>{t[r.toLowerCase()]=e});else for(let[r,n]of(Array.isArray(e)||(e=Object.entries(e)),e))null!=n&&(t[r.toLowerCase()]=n);return t}function iN(e,...t){let r=new Headers(iA(e)),n=r.get("user-agent")||"";return r.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var iP="4.0.45",iC=()=>globalThis.fetch,iD=async({url:e,headers:t={},successfulResponseHandler:r,failedResponseHandler:n,abortSignal:i,fetch:a=iC()})=>{try{let o=await a(e,{method:"GET",headers:iN(t,`ai-sdk/provider-utils/${iP}`,iU()),signal:i}),s=io(o);if(!o.ok){let t;try{t=await n({response:o,url:e,requestBodyValues:{}})}catch(t){if(ij(t)||ek.isInstance(t))throw t;throw new ek({message:"Failed to process error response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}throw t.value}try{return await r({response:o,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(ij(t)||ek.isInstance(t)))throw t;throw new ek({message:"Failed to process successful response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}}catch(t){throw iT({error:t,url:e,requestBodyValues:{}})}};function iR({settingValue:e,environmentVariableName:t}){return"string"==typeof e?e:null!=e||void 0===eh.default?void 0:null!=(e=eh.default.env[t])&&"string"==typeof e?e:void 0}var iM=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,iL=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function iF(e){let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===iM.test(e)&&!1===iL.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let r of(t=[],e)){if(Object.prototype.hasOwnProperty.call(r,"__proto__")||Object.prototype.hasOwnProperty.call(r,"constructor")&&null!==r.constructor&&"object"==typeof r.constructor&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in r){let n=r[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function iB(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return iF(e)}try{return iF(e)}finally{Error.stackTraceLimit=t}}function iJ(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=iV(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(iV):iV(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(iV)),null!=e.allOf&&(e.allOf=e.allOf.map(iV)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(iV));let{definitions:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=iV(t[e]);return e}function iV(e){return"boolean"==typeof e?e:iJ(e)}var iW=Symbol("Let zodToJsonSchema decide on which parser to use"),iq={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function iG(e,t){return aa(e.type._def,t)}var iK=void 0,iH=/^[cC][^\s-]{8,}$/,iY=/^[0-9a-z]+$/,iX=/^[0-9A-HJKMNP-TV-Z]{26}$/,iQ=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,i0=()=>(void 0===iK&&(iK=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),iK),i1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,i2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,i4=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,i6=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,i5=/^[a-zA-Z0-9_-]{21}$/,i9=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function i3(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value;break;case"max":r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":ae(r,"email",n.message,t);break;case"format:idn-email":ae(r,"idn-email",n.message,t);break;case"pattern:zod":at(r,iQ,n.message,t)}break;case"url":ae(r,"uri",n.message,t);break;case"uuid":ae(r,"uuid",n.message,t);break;case"regex":at(r,n.regex,n.message,t);break;case"cuid":at(r,iH,n.message,t);break;case"cuid2":at(r,iY,n.message,t);break;case"startsWith":at(r,RegExp(`^${i7(n.value,t)}`),n.message,t);break;case"endsWith":at(r,RegExp(`${i7(n.value,t)}$`),n.message,t);break;case"datetime":ae(r,"date-time",n.message,t);break;case"date":ae(r,"date",n.message,t);break;case"time":ae(r,"time",n.message,t);break;case"duration":ae(r,"duration",n.message,t);break;case"length":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value,r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"includes":at(r,RegExp(i7(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&&ae(r,"ipv4",n.message,t),"v4"!==n.version&&ae(r,"ipv6",n.message,t);break;case"base64url":at(r,i6,n.message,t);break;case"jwt":at(r,i9,n.message,t);break;case"cidr":"v6"!==n.version&&at(r,i1,n.message,t),"v4"!==n.version&&at(r,i2,n.message,t);break;case"emoji":at(r,i0(),n.message,t);break;case"ulid":at(r,iX,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":ae(r,"binary",n.message,t);break;case"contentEncoding:base64":r.contentEncoding="base64";break;case"pattern:zod":at(r,i4,n.message,t)}break;case"nanoid":at(r,i5,n.message,t)}return r}function i7(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let r=0;r<e.length;r++)i8.has(e[r])||(t+="\\"),t+=e[r];return t}(e):e}var i8=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ae(e,t,r,n){var i;e.format||(null==(i=e.anyOf)?void 0:i.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function at(e,t,r,n){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:ar(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=ar(t,n)}function ar(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=n.i?e.source.toLowerCase():e.source,a="",o=!1,s=!1,l=!1;for(let e=0;e<i.length;e++){if(o){a+=i[e],o=!1;continue}if(n.i){if(s){if(i[e].match(/[a-z]/)){l?(a+=i[e],a+=`${i[e-2]}-${i[e]}`.toUpperCase(),l=!1):"-"===i[e+1]&&(null==(r=i[e+2])?void 0:r.match(/[a-z]/))?(a+=i[e],l=!0):a+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){a+=`[${i[e]}${i[e].toUpperCase()}]`;continue}}if(n.m){if("^"===i[e]){a+=`(^|(?<=[\r
|
|
15
|
+
]))`;continue}else if("$"===i[e]){a+=`($|(?=[\r
|
|
16
|
+
]))`;continue}}if(n.s&&"."===i[e]){a+=s?`${i[e]}\r
|
|
17
|
+
`:`[${i[e]}\r
|
|
18
|
+
]`;continue}a+=i[e],"\\"===i[e]?o=!0:s&&"]"===i[e]?s=!1:s||"["!==i[e]||(s=!0)}try{new RegExp(a)}catch(r){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function an(e,t){var r,n,i,a,o,s;let l={type:"object",additionalProperties:null!=(r=aa(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?r:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===E.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){let{type:r,...n}=i3(e.keyType._def,t);return{...l,propertyNames:n}}if((null==(a=e.keyType)?void 0:a._def.typeName)===E.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(o=e.keyType)?void 0:o._def.typeName)===E.ZodBranded&&e.keyType._def.type._def.typeName===E.ZodString&&(null==(s=e.keyType._def.type._def.checks)?void 0:s.length)){let{type:r,...n}=iG(e.keyType._def,t);return{...l,propertyNames:n}}return l}var ai={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function aa(e,t,r=!1){var n;let i=t.seen.get(e);if(t.override){let a=null==(n=t.override)?void 0:n.call(t,e,t,i,r);if(a!==iW)return a}if(i&&!r){let e=ao(i,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let o=((e,t,r)=>{var n,i,a,o,s,l;switch(t){case E.ZodString:return i3(e,r);case E.ZodNumber:let u={type:"number"};if(!e.checks)return u;for(let t of e.checks)switch(t.kind){case"int":u.type="integer";break;case"min":t.inclusive?u.minimum=t.value:u.exclusiveMinimum=t.value;break;case"max":t.inclusive?u.maximum=t.value:u.exclusiveMaximum=t.value;break;case"multipleOf":u.multipleOf=t.value}return u;case E.ZodObject:return function(e,t){let r={type:"object",properties:{}},n=[],i=e.shape();for(let e in i){let a=i[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch(e){return!0}}(a),s=aa(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==s&&(r.properties[e]=s,o||n.push(e))}n.length&&(r.required=n);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return aa(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,r);case E.ZodBigInt:let d={type:"integer",format:"int64"};if(!e.checks)return d;for(let t of e.checks)switch(t.kind){case"min":t.inclusive?d.minimum=t.value:d.exclusiveMinimum=t.value;break;case"max":t.inclusive?d.maximum=t.value:d.exclusiveMaximum=t.value;break;case"multipleOf":d.multipleOf=t.value}return d;case E.ZodBoolean:return{type:"boolean"};case E.ZodDate:return function e(t,r,n){let i=null!=n?n:r.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,i)=>e(t,r,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t;let o={type:"integer",format:"unix-time"};for(let e of a.checks)switch(e.kind){case"min":o.minimum=e.value;break;case"max":o.maximum=e.value}return o}}(e,r);case E.ZodUndefined:return{not:{}};case E.ZodNull:return{type:"null"};case E.ZodArray:let c;return c={type:"array"},(null==(a=e.type)?void 0:a._def)&&(null==(s=null==(o=e.type)?void 0:o._def)?void 0:s.typeName)!==E.ZodAny&&(c.items=aa(e.type._def,{...r,currentPath:[...r.currentPath,"items"]})),e.minLength&&(c.minItems=e.minLength.value),e.maxLength&&(c.maxItems=e.maxLength.value),e.exactLength&&(c.minItems=e.exactLength.value,c.maxItems=e.exactLength.value),c;case E.ZodUnion:case E.ZodDiscriminatedUnion:let p,f=e.options instanceof Map?Array.from(e.options.values()):e.options;if(f.every(e=>e._def.typeName in ai&&(!e._def.checks||!e._def.checks.length))){let e=f.reduce((e,t)=>{let r=ai[t._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(f.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=f.reduce((e,t)=>{let r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===f.length){let t=e.filter((e,t,r)=>r.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:f.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(f.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:f.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return n=e,i=r,(p=(n.options instanceof Map?Array.from(n.options.values()):n.options).map((e,t)=>aa(e._def,{...i,currentPath:[...i.currentPath,"anyOf",`${t}`]})).filter(e=>!!e&&(!i.strictUnions||"object"==typeof e&&Object.keys(e).length>0))).length?{anyOf:p}:void 0;case E.ZodIntersection:let m,h;return m=[aa(e.left._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),aa(e.right._def,{...r,currentPath:[...r.currentPath,"allOf","1"]})].filter(e=>!!e),h=[],m.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)h.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:r,...n}=e;t=n}h.push(t)}}),h.length?{allOf:h}:void 0;case E.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>aa(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:aa(e.rest._def,{...r,currentPath:[...r.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>aa(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case E.ZodRecord:return an(e,r);case E.ZodLiteral:let g;return"bigint"!=(g=typeof e.value)&&"number"!==g&&"boolean"!==g&&"string"!==g?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===g?"integer":g,const:e.value};case E.ZodEnum:return{type:"string",enum:Array.from(e.values)};case E.ZodNativeEnum:let v,y,b;return v=e.values,{type:1===(b=Array.from(new Set((y=Object.keys(e.values).filter(e=>"number"!=typeof v[v[e]]).map(e=>v[e])).map(e=>typeof e)))).length?"string"===b[0]?"string":"number":["string","number"],enum:y};case E.ZodNullable:if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[ai[e.innerType._def.typeName],"null"]};let _=aa(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","0"]});return _&&{anyOf:[_,{type:"null"}]};case E.ZodOptional:if(r.currentPath.toString()===(null==(l=r.propertyPath)?void 0:l.toString()))return aa(e.innerType._def,r);let $=aa(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","1"]});return $?{anyOf:[{not:{}},$]}:{};case E.ZodMap:if("record"===r.mapStrategy)return an(e,r);return{type:"array",maxItems:125,items:{type:"array",items:[aa(e.keyType._def,{...r,currentPath:[...r.currentPath,"items","items","0"]})||{},aa(e.valueType._def,{...r,currentPath:[...r.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case E.ZodSet:let x;return x={type:"array",uniqueItems:!0,items:aa(e.valueType._def,{...r,currentPath:[...r.currentPath,"items"]})},e.minSize&&(x.minItems=e.minSize.value),e.maxSize&&(x.maxItems=e.maxSize.value),x;case E.ZodLazy:return()=>e.getter()._def;case E.ZodPromise:return aa(e.type._def,r);case E.ZodNaN:case E.ZodNever:return{not:{}};case E.ZodEffects:return"input"===r.effectStrategy?aa(e.schema._def,r):{};case E.ZodAny:case E.ZodUnknown:return{};case E.ZodDefault:return{...aa(e.innerType._def,r),default:e.defaultValue()};case E.ZodBranded:return iG(e,r);case E.ZodReadonly:case E.ZodCatch:return aa(e.innerType._def,r);case E.ZodPipeline:if("input"===r.pipeStrategy)return aa(e.in._def,r);if("output"===r.pipeStrategy)return aa(e.out._def,r);let k=aa(e.in._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),w=aa(e.out._def,{...r,currentPath:[...r.currentPath,"allOf",k?"1":"0"]});return{allOf:[k,w].filter(e=>void 0!==e)};case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:default:return}})(e,e.typeName,t),s="function"==typeof o?aa(o(),t):o;if(s&&as(e,t,s),t.postProcess){let r=t.postProcess(s,e,t);return a.jsonSchema=s,r}return a.jsonSchema=s,s}var ao=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:((e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")})(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,r)=>t.currentPath[r]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},as=(e,t,r)=>(e.description&&(r.description=e.description),r),al=Symbol.for("vercel.ai.schema");function au(e){let t;return()=>(null==t&&(t=e()),t)}function ad(e,{validate:t}={}){return{[al]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function ac(e){var t;return null==e?ad({type:"object",properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&al in e&&!0===e[al]&&"jsonSchema"in e&&"validate"in e?e:"~standard"in e?"zod"===e["~standard"].vendor?ap(e):(t=e,ad(()=>{if(null==t["~standard"].jsonSchema)throw Error(`Standard schema vendor '${t["~standard"].vendor}' does not support JSON Schema conversion.`);return iJ(t["~standard"].jsonSchema.input({target:"draft-07"}))},{validate:async e=>{let r=await t["~standard"].validate(e);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new eF({value:e,cause:r.issues})}}})):e()}function ap(e,t){var r,n;let i;if("_zod"in e){let n;return n=null!=(r=null==t?void 0:t.useReferences)&&r,ad(()=>iJ(r9(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async t=>{let r=await t8(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}return i=null!=(n=null==t?void 0:t.useReferences)&&n,ad(()=>((e,t)=>{var r;let n,i,a=(i=void 0!==(n="string"==typeof t?{...iq,name:t}:{...iq,...t}).name?[...n.basePath,n.definitionPath,n.name]:n.basePath,{...n,currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,e],jsonSchema:void 0}]))}),o="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var n;return{...e,[t]:null!=(n=aa(r._def,{...a,currentPath:[...a.basePath,a.definitionPath,t]},!0))?n:{}}},{}):void 0,s="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,l=null!=(r=aa(e._def,void 0===s?a:{...a,currentPath:[...a.basePath,a.definitionPath,s]},!1))?r:{},u="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==u&&(l.title=u);let d=void 0===s?o?{...l,[a.definitionPath]:o}:l:{$ref:[..."relative"===a.$refStrategy?[]:a.basePath,a.definitionPath,s].join("/"),[a.definitionPath]:{...o,[s]:l}};return d.$schema="http://json-schema.org/draft-07/schema#",d})(e,{$refStrategy:i?"root":"none"}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}async function af({value:e,schema:t,context:r}){let n=await am({value:e,schema:t,context:r});if(!n.success)throw eF.wrap({value:e,cause:n.error,context:r});return n.value}async function am({value:e,schema:t,context:r}){let n=ac(t);try{if(null==n.validate)return{success:!0,value:e,rawValue:e};let t=await n.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:eF.wrap({value:e,cause:t.error,context:r}),rawValue:e}}catch(t){return{success:!1,error:eF.wrap({value:e,cause:t,context:r}),rawValue:e}}}async function ah({text:e,schema:t}){try{let r=iB(e);if(null==t)return r;return af({value:r,schema:t})}catch(t){if(eC.isInstance(t)||eF.isInstance(t))throw t;throw new eC({text:e,cause:t})}}async function ag({text:e,schema:t}){try{let r=iB(e);if(null==t)return{success:!0,value:r,rawValue:r};return await am({value:r,schema:t})}catch(t){return{success:!1,error:eC.isInstance(t)?t:new eC({text:e,cause:t}),rawValue:void 0}}}function av({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new ii).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await ag({text:e,schema:t}))}}))}var ay=()=>globalThis.fetch,ab=async({url:e,headers:t,body:r,failedResponseHandler:n,successfulResponseHandler:i,abortSignal:a,fetch:o})=>a_({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(r),values:r},failedResponseHandler:n,successfulResponseHandler:i,abortSignal:a,fetch:o}),a_=async({url:e,headers:t={},body:r,successfulResponseHandler:n,failedResponseHandler:i,abortSignal:a,fetch:o=ay()})=>{try{let s=await o(e,{method:"POST",headers:iN(t,`ai-sdk/provider-utils/${iP}`,iU()),body:r.content,signal:a}),l=io(s);if(!s.ok){let t;try{t=await i({response:s,url:e,requestBodyValues:r.values})}catch(t){if(ij(t)||ek.isInstance(t))throw t;throw new ek({message:"Failed to process error response",cause:t,statusCode:s.status,url:e,responseHeaders:l,requestBodyValues:r.values})}throw t.value}try{return await n({response:s,url:e,requestBodyValues:r.values})}catch(t){if(t instanceof Error&&(ij(t)||ek.isInstance(t)))throw t;throw new ek({message:"Failed to process successful response",cause:t,statusCode:s.status,url:e,responseHeaders:l,requestBodyValues:r.values})}}catch(t){throw iT({error:t,url:e,requestBodyValues:r.values})}};function a$({id:e,inputSchema:t,outputSchema:r,supportsDeferredResults:n}){return({execute:i,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:l,onInputAvailable:u,...d})=>({type:"provider",id:e,args:d,inputSchema:t,outputSchema:r,execute:i,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:l,onInputAvailable:u,supportsDeferredResults:n})}async function ax(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var ak=new TextDecoder;async function aw({response:e,url:t}){return ak.decode(await iI({response:e,url:t}))}var aI=({errorSchema:e,errorToMessage:t,isRetryable:r})=>async({response:n,url:i,requestBodyValues:a})=>{let o=await aw({response:n,url:i}),s=io(n);if(""===o.trim())return{responseHeaders:s,value:new ek({message:n.statusText,url:i,requestBodyValues:a,statusCode:n.status,responseHeaders:s,responseBody:o,isRetryable:null==r?void 0:r(n)})};try{let l=await ah({text:o,schema:e});return{responseHeaders:s,value:new ek({message:t(l),url:i,requestBodyValues:a,statusCode:n.status,responseHeaders:s,responseBody:o,data:l,isRetryable:null==r?void 0:r(n,l)})}}catch(e){return{responseHeaders:s,value:new ek({message:n.statusText,url:i,requestBodyValues:a,statusCode:n.status,responseHeaders:s,responseBody:o,isRetryable:null==r?void 0:r(n)})}}},aS=e=>async({response:t,url:r,requestBodyValues:n})=>{let i=await aw({response:t,url:r}),a=await ag({text:i,schema:e}),o=io(t);if(!a.success)throw new ek({message:"Invalid JSON response",cause:a.error,statusCode:t.status,responseHeaders:o,responseBody:i,url:r,requestBodyValues:n});return{responseHeaders:o,value:a.value,rawValue:a.rawValue}};function aE(){let e,t,r;return{localeError:(e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;return`Invalid input: expected ${e}, received ${i}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${td(n.values[0])}`;return`Invalid option: expected one of ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Too big: expected ${n.origin??"value"} to have ${t}${n.maximum.toString()} ${r.unit??"elements"}`;return`Too big: expected ${n.origin??"value"} to be ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Too small: expected ${n.origin} to have ${t}${n.minimum.toString()} ${r.unit}`;return`Too small: expected ${n.origin} to be ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Invalid string: must start with "${n.prefix}"`;if("ends_with"===n.format)return`Invalid string: must end with "${n.suffix}"`;if("includes"===n.format)return`Invalid string: must include "${n.includes}"`;if("regex"===n.format)return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":if(n.options&&Array.isArray(n.options)&&n.options.length>0){let e=n.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}})}}eH(aE()),e.s([],45574),e.i(45574),e.s([],47129),e.i(47129),e.i(16696),e.i(35571),e.i(36582);let aO=/^[cC][0-9a-z]{6,}$/,aj=/^[0-9a-z]+$/,aZ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,az=/^[0-9a-vA-V]{20}$/,aT=/^[A-Za-z0-9]{27}$/,aU=/^[a-zA-Z0-9_-]{21}$/,aA=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,aN=/^([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})$/,aP=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([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)$/,aC=aP(4),aD=aP(6),aR=aP(7),aM=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aL=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u;function aF(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let aB=/^(?:(?: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])$/,aJ=/^(([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}|:))$/,aV=e=>{let t=ts(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},aW=/^((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])$/,aq=/^(([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])$/,aG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aK=/^[A-Za-z0-9_-]*$/,aH=/^https?$/,aY=/^\+[1-9]\d{6,14}$/,aX="(?:(?:\\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])))",aQ=RegExp(`^${aX}$`);function a0(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function a1(e){return RegExp(`^${a0(e)}$`)}function a2(e){let t=a0({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${aX}T(?:${n})$`)}let a4=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},a6=/^-?\d+n?$/,a5=/^-?\d+$/,a9=/^-?\d+(?:\.\d+)?$/,a3=/^(?:true|false)$/i,a7=/^null$/i,a8=/^undefined$/i,oe=/^[^A-Z]*$/,ot=/^[^a-z]*$/;function or(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function on(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let oi=or(22,"=="),oa=on(22),oo=or(27,"="),os=on(27),ol=or(43,"="),ou=on(43),od=or(64,""),oc=on(64),op=or(86,"=="),of=on(86);e.s(["base64",0,aG,"base64url",0,aK,"bigint",0,a6,"boolean",0,a3,"browserEmail",0,/^[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])?)*$/,"cidrv4",0,aW,"cidrv6",0,aq,"cuid",0,aO,"cuid2",0,aj,"date",0,aQ,"datetime",0,a2,"domain",0,/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,"duration",0,aA,"e164",0,aY,"email",0,aM,"emoji",0,aF,"extendedDuration",0,/^[-+]?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)?)??$/,"guid",0,aN,"hex",0,/^[0-9a-fA-F]*$/,"hostname",0,/^(?=.{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])?)*\.?$/,"html5Email",0,/^[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])?)*$/,"httpProtocol",0,aH,"idnEmail",0,aL,"integer",0,a5,"ipv4",0,aB,"ipv6",0,aJ,"ksuid",0,aT,"lowercase",0,oe,"mac",0,aV,"md5_base64",0,oi,"md5_base64url",0,oa,"md5_hex",0,/^[0-9a-fA-F]{32}$/,"nanoid",0,aU,"null",0,a7,"number",0,a9,"rfc5322Email",0,/^(([^<>()\[\]\\.,;:\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,}))$/,"sha1_base64",0,oo,"sha1_base64url",0,os,"sha1_hex",0,/^[0-9a-fA-F]{40}$/,"sha256_base64",0,ol,"sha256_base64url",0,ou,"sha256_hex",0,/^[0-9a-fA-F]{64}$/,"sha384_base64",0,od,"sha384_base64url",0,oc,"sha384_hex",0,/^[0-9a-fA-F]{96}$/,"sha512_base64",0,op,"sha512_base64url",0,of,"sha512_hex",0,/^[0-9a-fA-F]{128}$/,"string",0,a4,"time",0,a1,"ulid",0,aZ,"undefined",0,a8,"unicodeEmail",0,aL,"uppercase",0,ot,"uuid",0,aP,"uuid4",0,aC,"uuid6",0,aD,"uuid7",0,aR,"xid",0,az],59217);let om=eV("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),oh={number:"number",bigint:"bigint",object:"date"},og=eV("$ZodCheckLessThan",(e,t)=>{om.init(e,t);let r=oh[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ov=eV("$ZodCheckGreaterThan",(e,t)=>{om.init(e,t);let r=oh[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oy=eV("$ZodCheckMultipleOf",(e,t)=>{om.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===e4(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ob=eV("$ZodCheckNumberFormat",(e,t)=>{om.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,a]=tp[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=a,r&&(n.pattern=a5)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),o_=eV("$ZodCheckBigIntFormat",(e,t)=>{om.init(e,t);let[r,n]=tf[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=i=>{let a=i.value;a<r&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>n&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),o$=eV("$ZodCheckMaxSize",(e,t)=>{var r;om.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e1(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;n.size<=t.maximum||r.issues.push({origin:tb(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ox=eV("$ZodCheckMinSize",(e,t)=>{var r;om.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e1(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;n.size>=t.minimum||r.issues.push({origin:tb(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ok=eV("$ZodCheckSizeEquals",(e,t)=>{var r;om.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e1(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let n=r.value,i=n.size;if(i===t.size)return;let a=i>t.size;r.issues.push({origin:tb(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ow=eV("$ZodCheckMaxLength",(e,t)=>{var r;om.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e1(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=t_(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),oI=eV("$ZodCheckMinLength",(e,t)=>{var r;om.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e1(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=t_(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),oS=eV("$ZodCheckLengthEquals",(e,t)=>{var r;om.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e1(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let a=t_(n),o=i>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),oE=eV("$ZodCheckStringFormat",(e,t)=>{var r,n;om.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),oO=eV("$ZodCheckRegex",(e,t)=>{oE.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),oj=eV("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=oe),oE.init(e,t)}),oZ=eV("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ot),oE.init(e,t)}),oz=eV("$ZodCheckIncludes",(e,t)=>{om.init(e,t);let r=ts(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),oT=eV("$ZodCheckStartsWith",(e,t)=>{om.init(e,t);let r=RegExp(`^${ts(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),oU=eV("$ZodCheckEndsWith",(e,t)=>{om.init(e,t);let r=RegExp(`.*${ts(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function oA(e,t,r){e.issues.length&&t.issues.push(...tg(r,e.issues))}let oN=eV("$ZodCheckProperty",(e,t)=>{om.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>oA(r,e,t.property));oA(r,e,t.property)}}),oP=eV("$ZodCheckMimeType",(e,t)=>{om.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),oC=eV("$ZodCheckOverwrite",(e,t)=>{om.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,om,"$ZodCheckBigIntFormat",0,o_,"$ZodCheckEndsWith",0,oU,"$ZodCheckGreaterThan",0,ov,"$ZodCheckIncludes",0,oz,"$ZodCheckLengthEquals",0,oS,"$ZodCheckLessThan",0,og,"$ZodCheckLowerCase",0,oj,"$ZodCheckMaxLength",0,ow,"$ZodCheckMaxSize",0,o$,"$ZodCheckMimeType",0,oP,"$ZodCheckMinLength",0,oI,"$ZodCheckMinSize",0,ox,"$ZodCheckMultipleOf",0,oy,"$ZodCheckNumberFormat",0,ob,"$ZodCheckOverwrite",0,oC,"$ZodCheckProperty",0,oN,"$ZodCheckRegex",0,oO,"$ZodCheckSizeEquals",0,ok,"$ZodCheckStartsWith",0,oT,"$ZodCheckStringFormat",0,oE,"$ZodCheckUpperCase",0,oZ],70012);class oD{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}e.s(["Doc",0,oD],34861);let oR={major:4,minor:4,patch:3};e.s(["version",0,oR],88606);let oM=eV("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=oR;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=tm(e);for(let a of t){if(a._zod.def.when){if(th(e)||!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&r?.async===!1)throw new eq;if(n||o instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(i||(i=tm(e,t)))});else{if(e.issues.length===t)continue;i||(i=tm(e,t))}}return n?n.then(()=>e):e},r=(r,i,a)=>{if(tm(r))return r.aborted=!0,r;let o=t(i,n,a);if(o instanceof Promise){if(!1===a.async)throw new eq;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,a)):r(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(!1===a.async)throw new eq;return o.then(e=>t(e,n,a))}return t(o,n,a)}}e5(e,"~standard",()=>({validate:t=>{try{let r=tD(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return tM(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),oL=eV("$ZodString",(e,t)=>{oM.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??a4(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),oF=eV("$ZodStringFormat",(e,t)=>{oE.init(e,t),oL.init(e,t)}),oB=eV("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=aN),oF.init(e,t)}),oJ=eV("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=aP(e))}else t.pattern??(t.pattern=aP());oF.init(e,t)}),oV=eV("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=aM),oF.init(e,t)}),oW=eV("$ZodURL",(e,t)=>{oF.init(e,t),e._zod.check=r=>{try{let n=r.value.trim();if(!t.normalize&&t.protocol?.source===aH.source&&!/^https?:\/\//i.test(n))return void r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});let i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),oq=eV("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=aF()),oF.init(e,t)}),oG=eV("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=aU),oF.init(e,t)}),oK=eV("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=aO),oF.init(e,t)}),oH=eV("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=aj),oF.init(e,t)}),oY=eV("$ZodULID",(e,t)=>{t.pattern??(t.pattern=aZ),oF.init(e,t)}),oX=eV("$ZodXID",(e,t)=>{t.pattern??(t.pattern=az),oF.init(e,t)}),oQ=eV("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=aT),oF.init(e,t)}),o0=eV("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=a2(t)),oF.init(e,t)}),o1=eV("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=aQ),oF.init(e,t)}),o2=eV("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=a1(t)),oF.init(e,t)}),o4=eV("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=aA),oF.init(e,t)}),o6=eV("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=aB),oF.init(e,t),e._zod.bag.format="ipv4"}),o5=eV("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=aJ),oF.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),o9=eV("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=aV(t.delimiter)),oF.init(e,t),e._zod.bag.format="mac"}),o3=eV("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=aW),oF.init(e,t)}),o7=eV("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=aq),oF.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function o8(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let se=eV("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=aG),oF.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{o8(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function st(e){if(!aK.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return o8(t.padEnd(4*Math.ceil(t.length/4),"="))}let sr=eV("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=aK),oF.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{st(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),sn=eV("$ZodE164",(e,t)=>{t.pattern??(t.pattern=aY),oF.init(e,t)});function si(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let sa=eV("$ZodJWT",(e,t)=>{oF.init(e,t),e._zod.check=r=>{si(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),so=eV("$ZodCustomStringFormat",(e,t)=>{oF.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),ss=eV("$ZodNumber",(e,t)=>{oM.init(e,t),e._zod.pattern=e._zod.bag.pattern??a9,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),sl=eV("$ZodNumberFormat",(e,t)=>{ob.init(e,t),ss.init(e,t)}),su=eV("$ZodBoolean",(e,t)=>{oM.init(e,t),e._zod.pattern=a3,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),sd=eV("$ZodBigInt",(e,t)=>{oM.init(e,t),e._zod.pattern=a6,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),sc=eV("$ZodBigIntFormat",(e,t)=>{o_.init(e,t),sd.init(e,t)}),sp=eV("$ZodSymbol",(e,t)=>{oM.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return"symbol"==typeof n||t.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),t}}),sf=eV("$ZodUndefined",(e,t)=>{oM.init(e,t),e._zod.pattern=a8,e._zod.values=new Set([void 0]),e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}}),sm=eV("$ZodNull",(e,t)=>{oM.init(e,t),e._zod.pattern=a7,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),sh=eV("$ZodAny",(e,t)=>{oM.init(e,t),e._zod.parse=e=>e}),sg=eV("$ZodUnknown",(e,t)=>{oM.init(e,t),e._zod.parse=e=>e}),sv=eV("$ZodNever",(e,t)=>{oM.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),sy=eV("$ZodVoid",(e,t)=>{oM.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}}),sb=eV("$ZodDate",(e,t)=>{oM.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let i=r.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),r}});function s_(e,t,r){e.issues.length&&t.issues.push(...tg(r,e.issues)),t.value[r]=e.value}let s$=eV("$ZodArray",(e,t)=>{oM.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},n);s instanceof Promise?a.push(s.then(t=>s_(t,r,e))):s_(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function sx(e,t,r,n,i,a){let o=r in n;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...tg(r,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}void 0===e.value?o&&(t.value[r]=void 0):t.value[r]=e.value}function sk(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=tc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function sw(e,t,r,n,i,a){let o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,d="optional"===l.optin,c="optional"===l.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===u){o.push(i);continue}let a=l.run({value:t[i],issues:[]},n);a instanceof Promise?e.push(a.then(e=>sx(e,r,i,t,d,c))):sx(a,r,i,t,d,c)}return(o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length)?Promise.all(e).then(()=>r):r}let sI=eV("$ZodObject",(e,t)=>{let r;oM.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let i=e0(()=>sk(t));e5(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let a=t.catchall;e._zod.parse=(t,n)=>{r??(r=i.value);let o=t.value;if(!tt(o))return t.issues.push({expected:"object",code:"invalid_type",input:o,inst:e}),t;t.value={};let s=[],l=r.shape;for(let e of r.keys){let r=l[e],i="optional"===r._zod.optin,a="optional"===r._zod.optout,u=r._zod.run({value:o[e],issues:[]},n);u instanceof Promise?s.push(u.then(r=>sx(r,t,e,o,i,a))):sx(u,t,e,o,i,a)}return a?sw(s,o,t,n,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),sS=eV("$ZodObjectJIT",(e,t)=>{let r,n;sI.init(e,t);let i=e._zod.parse,a=e0(()=>sk(t)),o=!eK.jitless,s=o&&tr.value,l=t.catchall;e._zod.parse=(u,d)=>{n??(n=a.value);let c=u.value;return tt(c)?o&&s&&d?.async===!1&&!0!==d.jitless?(r||(r=(e=>{let t=new oD(["shape","payload","ctx"]),r=a.value,n=e=>{let t=e7(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of r.keys)i[e]=`key_${o++}`;for(let a of(t.write("const newResult = {};"),r.keys)){let r=i[a],o=e7(a),s=e[a],l=s?._zod?.optin==="optional",u=s?._zod?.optout==="optional";t.write(`const ${r} = ${n(a)};`),l&&u?t.write(`
|
|
19
|
+
if (${r}.issues.length) {
|
|
20
|
+
if (${o} in input) {
|
|
21
|
+
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
22
|
+
...iss,
|
|
23
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
24
|
+
})));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (${r}.value === undefined) {
|
|
29
|
+
if (${o} in input) {
|
|
30
|
+
newResult[${o}] = undefined;
|
|
31
|
+
}
|
|
32
|
+
} else {
|
|
33
|
+
newResult[${o}] = ${r}.value;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
`):l?t.write(`
|
|
37
|
+
if (${r}.issues.length) {
|
|
38
|
+
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
39
|
+
...iss,
|
|
40
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
41
|
+
})));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (${r}.value === undefined) {
|
|
45
|
+
if (${o} in input) {
|
|
46
|
+
newResult[${o}] = undefined;
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
newResult[${o}] = ${r}.value;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
`):t.write(`
|
|
53
|
+
const ${r}_present = ${o} in input;
|
|
54
|
+
if (${r}.issues.length) {
|
|
55
|
+
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
56
|
+
...iss,
|
|
57
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
58
|
+
})));
|
|
59
|
+
}
|
|
60
|
+
if (!${r}_present && !${r}.issues.length) {
|
|
61
|
+
payload.issues.push({
|
|
62
|
+
code: "invalid_type",
|
|
63
|
+
expected: "nonoptional",
|
|
64
|
+
input: undefined,
|
|
65
|
+
path: [${o}]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (${r}_present) {
|
|
70
|
+
if (${r}.value === undefined) {
|
|
71
|
+
newResult[${o}] = undefined;
|
|
72
|
+
} else {
|
|
73
|
+
newResult[${o}] = ${r}.value;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),u=r(u,d),l)?sw([],c,u,d,n,e):u:i(u,d):(u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u)}});function sE(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!tm(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ty(e,n,eH())))}),t)}let sO=eV("$ZodUnion",(e,t)=>{oM.init(e,t),e5(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),e5(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),e5(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),e5(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>e2(e.source)).join("|")})$`)}});let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(0===t.issues.length)return t;o.push(t)}}return a?Promise.all(o).then(t=>sE(t,n,e,i)):sE(o,n,e,i)}});function sj(e,t,r,n){let i=e.filter(e=>0===e.issues.length);return 1===i.length?t.value=i[0].value:0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ty(e,n,eH())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t}let sZ=eV("$ZodXor",(e,t)=>{sO.init(e,t),t.inclusive=!1;let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>sj(t,n,e,i)):sj(o,n,e,i)}}),sz=eV("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sO.init(e,t);let r=e._zod.parse;e5(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=e0(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,a)=>{let o=i.value;if(!tt(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=n.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||"backward"===a.direction?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(n.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),sT=eV("$ZodIntersection",(e,t)=>{oM.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,r])=>sU(e,t,r)):sU(e,i,a)}});function sU(e,t,r){let n,i=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(n??(n=r),r.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let a=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&n&&e.issues.push({...n,keys:a}),tm(e))return e;let o=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(tn(t)&&tn(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let sA=eV("$ZodTuple",(e,t)=>{oM.init(e,t);let r=t.items;e._zod.parse=(n,i)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let o=[],s=sN(r,"optin"),l=sN(r,"optout");if(!t.rest){if(a.length<s)return n.issues.push({code:"too_small",minimum:s,inclusive:!0,input:a,inst:e,origin:"array"}),n;a.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=Array(r.length);for(let e=0;e<r.length;e++){let t=r[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{u[e]=t})):u[e]=t}if(t.rest){let e=r.length-1;for(let s of a.slice(r.length)){e++;let r=t.rest._zod.run({value:s,issues:[]},i);r instanceof Promise?o.push(r.then(t=>sP(t,n,e))):sP(r,n,e)}}return o.length?Promise.all(o).then(()=>sC(u,n,r,a,l)):sC(u,n,r,a,l)}});function sN(e,t){for(let r=e.length-1;r>=0;r--)if("optional"!==e[r]._zod[t])return r+1;return 0}function sP(e,t,r){e.issues.length&&t.issues.push(...tg(r,e.issues)),t.value[r]=e.value}function sC(e,t,r,n,i){for(let a=0;a<r.length;a++){let r=e[a],o=a<n.length;if(r.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...tg(a,r.issues))}t.value[a]=r.value}for(let e=t.value.length-1;e>=n.length;e--)if("optional"===r[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}let sD=eV("$ZodRecord",(e,t)=>{oM.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!tn(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){let s;r.value={};let l=new Set;for(let s of o)if("string"==typeof s||"number"==typeof s||"symbol"==typeof s){l.add("number"==typeof s?s.toString():s);let o=t.keyType._zod.run({value:s,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>ty(e,n,eH())),input:s,path:[s],inst:e});continue}let u=o.value,d=t.valueType._zod.run({value:i[s],issues:[]},n);d instanceof Promise?a.push(d.then(e=>{e.issues.length&&r.issues.push(...tg(s,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...tg(s,d.issues)),r.value[u]=d.value)}for(let e in i)l.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let o of(r.value={},Reflect.ownKeys(i))){if("__proto__"===o||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},n);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof o&&a9.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},n);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?r.value[o]=i[o]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>ty(e,n,eH())),input:o,path:[o],inst:e});continue}let l=t.valueType._zod.run({value:i[o],issues:[]},n);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...tg(o,e.issues)),r.value[s.value]=e.value})):(l.issues.length&&r.issues.push(...tg(o,l.issues)),r.value[s.value]=l.value)}return a.length?Promise.all(a).then(()=>r):r}}),sR=eV("$ZodMap",(e,t)=>{oM.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let a=[];for(let[o,s]of(r.value=new Map,i)){let l=t.keyType._zod.run({value:o,issues:[]},n),u=t.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([t,a])=>{sM(t,a,r,o,i,e,n)})):sM(l,u,r,o,i,e,n)}return a.length?Promise.all(a).then(()=>r):r}});function sM(e,t,r,n,i,a,o){e.issues.length&&(ta.has(typeof n)?r.issues.push(...tg(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(e=>ty(e,o,eH()))})),t.issues.length&&(ta.has(typeof n)?r.issues.push(...tg(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map(e=>ty(e,o,eH()))})),r.value.set(e.value,t.value)}let sL=eV("$ZodSet",(e,t)=>{oM.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let e of(r.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},n);i instanceof Promise?a.push(i.then(e=>sF(e,r))):sF(i,r)}return a.length?Promise.all(a).then(()=>r):r}});function sF(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let sB=eV("$ZodEnum",(e,t)=>{oM.init(e,t);let r=eY(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>ta.has(typeof e)).map(e=>"string"==typeof e?ts(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return n.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),sJ=eV("$ZodLiteral",(e,t)=>{if(oM.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?ts(e):e?ts(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}}),sV=eV("$ZodFile",(e,t)=>{oM.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return n instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),t}}),sW=eV("$ZodTransform",(e,t)=>{oM.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new eG(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r.fallback=!0,r));if(i instanceof Promise)throw new eq;return r.value=i,r.fallback=!0,r}});function sq(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let sG=eV("$ZodOptional",(e,t)=>{oM.init(e,t),e._zod.optin="optional",e._zod.optout="optional",e5(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),e5(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${e2(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=e.value,i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>sq(e,n)):sq(i,n)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),sK=eV("$ZodExactOptional",(e,t)=>{sG.init(e,t),e5(e._zod,"values",()=>t.innerType._zod.values),e5(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),sH=eV("$ZodNullable",(e,t)=>{oM.init(e,t),e5(e._zod,"optin",()=>t.innerType._zod.optin),e5(e._zod,"optout",()=>t.innerType._zod.optout),e5(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${e2(e.source)}|null)$`):void 0}),e5(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),sY=eV("$ZodDefault",(e,t)=>{oM.init(e,t),e._zod.optin="optional",e5(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>sX(e,t)):sX(n,t)}});function sX(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let sQ=eV("$ZodPrefault",(e,t)=>{oM.init(e,t),e._zod.optin="optional",e5(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),s0=eV("$ZodNonOptional",(e,t)=>{oM.init(e,t),e5(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>s1(t,e)):s1(i,e)}});function s1(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let s2=eV("$ZodSuccess",(e,t)=>{oM.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new eG("ZodSuccess");let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===n.issues.length,e)}}),s4=eV("$ZodCatch",(e,t)=>{oM.init(e,t),e._zod.optin="optional",e5(e._zod,"optout",()=>t.innerType._zod.optout),e5(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ty(e,r,eH()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ty(e,r,eH()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),s6=eV("$ZodNaN",(e,t)=>{oM.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),s5=eV("$ZodPipe",(e,t)=>{oM.init(e,t),e5(e._zod,"values",()=>t.in._zod.values),e5(e._zod,"optin",()=>t.in._zod.optin),e5(e._zod,"optout",()=>t.out._zod.optout),e5(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>s9(e,t.in,r)):s9(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>s9(e,t.out,r)):s9(n,t.out,r)}});function s9(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}let s3=eV("$ZodCodec",(e,t)=>{oM.init(e,t),e5(e._zod,"values",()=>t.in._zod.values),e5(e._zod,"optin",()=>t.in._zod.optin),e5(e._zod,"optout",()=>t.out._zod.optout),e5(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>s7(e,t,r)):s7(n,t,r)}{let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>s7(e,t,r)):s7(n,t,r)}}});function s7(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let n=t.transform(e.value,e);return n instanceof Promise?n.then(n=>s8(e,n,t.out,r)):s8(e,n,t.out,r)}{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(n=>s8(e,n,t.in,r)):s8(e,n,t.in,r)}}function s8(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}let le=eV("$ZodPreprocess",(e,t)=>{s5.init(e,t)}),lt=eV("$ZodReadonly",(e,t)=>{oM.init(e,t),e5(e._zod,"propValues",()=>t.innerType._zod.propValues),e5(e._zod,"values",()=>t.innerType._zod.values),e5(e._zod,"optin",()=>t.innerType?._zod?.optin),e5(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(lr):lr(n)}});function lr(e){return e.value=Object.freeze(e.value),e}let ln=eV("$ZodTemplateLiteral",(e,t)=>{oM.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let n=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,i))}else if(null===e||to.has(typeof e))r.push(ts(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(r,n)=>("string"!=typeof r.value?r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),r)}),li=eV("$ZodFunction",(e,t)=>(oM.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let n=Reflect.apply(t,this,e._def.input?tA(e._def.input,r):r);return e._def.output?tA(e._def.output,n):n}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let n=e._def.input?await tP(e._def.input,r):r,i=await Reflect.apply(t,this,n);return e._def.output?await tP(e._def.output,i):i}},e._zod.parse=(t,r)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return new r(Array.isArray(t[0])?{type:"function",input:new sA({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),la=eV("$ZodPromise",(e,t)=>{oM.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),lo=eV("$ZodLazy",(e,t)=>{oM.init(e,t),e5(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),e5(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),e5(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),e5(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),e5(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),ls=eV("$ZodCustom",(e,t)=>{om.init(e,t),oM.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>ll(t,r,n,e));ll(i,r,n,e)}});function ll(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(tx(e))}}e.s(["$ZodAny",0,sh,"$ZodArray",0,s$,"$ZodBase64",0,se,"$ZodBase64URL",0,sr,"$ZodBigInt",0,sd,"$ZodBigIntFormat",0,sc,"$ZodBoolean",0,su,"$ZodCIDRv4",0,o3,"$ZodCIDRv6",0,o7,"$ZodCUID",0,oK,"$ZodCUID2",0,oH,"$ZodCatch",0,s4,"$ZodCodec",0,s3,"$ZodCustom",0,ls,"$ZodCustomStringFormat",0,so,"$ZodDate",0,sb,"$ZodDefault",0,sY,"$ZodDiscriminatedUnion",0,sz,"$ZodE164",0,sn,"$ZodEmail",0,oV,"$ZodEmoji",0,oq,"$ZodEnum",0,sB,"$ZodExactOptional",0,sK,"$ZodFile",0,sV,"$ZodFunction",0,li,"$ZodGUID",0,oB,"$ZodIPv4",0,o6,"$ZodIPv6",0,o5,"$ZodISODate",0,o1,"$ZodISODateTime",0,o0,"$ZodISODuration",0,o4,"$ZodISOTime",0,o2,"$ZodIntersection",0,sT,"$ZodJWT",0,sa,"$ZodKSUID",0,oQ,"$ZodLazy",0,lo,"$ZodLiteral",0,sJ,"$ZodMAC",0,o9,"$ZodMap",0,sR,"$ZodNaN",0,s6,"$ZodNanoID",0,oG,"$ZodNever",0,sv,"$ZodNonOptional",0,s0,"$ZodNull",0,sm,"$ZodNullable",0,sH,"$ZodNumber",0,ss,"$ZodNumberFormat",0,sl,"$ZodObject",0,sI,"$ZodObjectJIT",0,sS,"$ZodOptional",0,sG,"$ZodPipe",0,s5,"$ZodPrefault",0,sQ,"$ZodPreprocess",0,le,"$ZodPromise",0,la,"$ZodReadonly",0,lt,"$ZodRecord",0,sD,"$ZodSet",0,sL,"$ZodString",0,oL,"$ZodStringFormat",0,oF,"$ZodSuccess",0,s2,"$ZodSymbol",0,sp,"$ZodTemplateLiteral",0,ln,"$ZodTransform",0,sW,"$ZodTuple",0,sA,"$ZodType",0,oM,"$ZodULID",0,oY,"$ZodURL",0,oW,"$ZodUUID",0,oJ,"$ZodUndefined",0,sf,"$ZodUnion",0,sO,"$ZodUnknown",0,sg,"$ZodVoid",0,sy,"$ZodXID",0,oX,"$ZodXor",0,sZ,"isValidBase64",0,o8,"isValidBase64URL",0,st,"isValidJWT",0,si],21169),e.i(21169),e.s(["$ZodAny",0,sh,"$ZodArray",0,s$,"$ZodBase64",0,se,"$ZodBase64URL",0,sr,"$ZodBigInt",0,sd,"$ZodBigIntFormat",0,sc,"$ZodBoolean",0,su,"$ZodCIDRv4",0,o3,"$ZodCIDRv6",0,o7,"$ZodCUID",0,oK,"$ZodCUID2",0,oH,"$ZodCatch",0,s4,"$ZodCodec",0,s3,"$ZodCustom",0,ls,"$ZodCustomStringFormat",0,so,"$ZodDate",0,sb,"$ZodDefault",0,sY,"$ZodDiscriminatedUnion",0,sz,"$ZodE164",0,sn,"$ZodEmail",0,oV,"$ZodEmoji",0,oq,"$ZodEnum",0,sB,"$ZodExactOptional",0,sK,"$ZodFile",0,sV,"$ZodFunction",0,li,"$ZodGUID",0,oB,"$ZodIPv4",0,o6,"$ZodIPv6",0,o5,"$ZodISODate",0,o1,"$ZodISODateTime",0,o0,"$ZodISODuration",0,o4,"$ZodISOTime",0,o2,"$ZodIntersection",0,sT,"$ZodJWT",0,sa,"$ZodKSUID",0,oQ,"$ZodLazy",0,lo,"$ZodLiteral",0,sJ,"$ZodMAC",0,o9,"$ZodMap",0,sR,"$ZodNaN",0,s6,"$ZodNanoID",0,oG,"$ZodNever",0,sv,"$ZodNonOptional",0,s0,"$ZodNull",0,sm,"$ZodNullable",0,sH,"$ZodNumber",0,ss,"$ZodNumberFormat",0,sl,"$ZodObject",0,sI,"$ZodObjectJIT",0,sS,"$ZodOptional",0,sG,"$ZodPipe",0,s5,"$ZodPrefault",0,sQ,"$ZodPreprocess",0,le,"$ZodPromise",0,la,"$ZodReadonly",0,lt,"$ZodRecord",0,sD,"$ZodSet",0,sL,"$ZodString",0,oL,"$ZodStringFormat",0,oF,"$ZodSuccess",0,s2,"$ZodSymbol",0,sp,"$ZodTemplateLiteral",0,ln,"$ZodTransform",0,sW,"$ZodTuple",0,sA,"$ZodType",0,oM,"$ZodULID",0,oY,"$ZodURL",0,oW,"$ZodUUID",0,oJ,"$ZodUndefined",0,sf,"$ZodUnion",0,sO,"$ZodUnknown",0,sg,"$ZodVoid",0,sy,"$ZodXID",0,oX,"$ZodXor",0,sZ,"clone",0,tl,"isValidBase64",0,o8,"isValidBase64URL",0,st,"isValidJWT",0,si],3682),e.i(3682),e.i(70012),e.i(88606);var lu=e.i(39604),ld=e.i(59217);function lc(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:1===a?t:a>=2&&a<=4?r:n}function lp(e,t,r){return 1===Math.abs(e)?t:r}function lf(e){if(!e)return"";let t=e[e.length-1];return e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")}function lm(){let e,t,r;return{localeError:(e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}},t={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},r={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${i}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e} ប៉ុន្តែទទួលបាន ${i}`}case"invalid_value":if(1===n.values.length)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${td(n.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${t} ${n.maximum.toString()} ${r.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`តូចពេក៖ ត្រូវការ ${n.origin} ${t} ${n.minimum.toString()} ${r.unit}`;return`តូចពេក៖ ត្រូវការ ${n.origin} ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${n.prefix}"`;if("ends_with"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${n.suffix}"`;if("includes"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${n.includes}"`;if("regex"===n.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${n.pattern}`;return`មិនត្រឹមត្រូវ៖ ${t[n.format]??n.format}`;case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${eX(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`}})}}e.s([],92021),e.i(92021);let lh=e=>e.charAt(0).toUpperCase()+e.slice(1);function lg(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||0===r?"many":1===r?"one":"few"}function lv(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:1===a?t:a>=2&&a<=4?r:n}function ly(){let e,t,r;return{localeError:(e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}},t={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},r={nan:"NaN",number:"число",array:"масив"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${i}`;return`Неправильні вхідні дані: очікується ${e}, отримано ${i}`}case"invalid_value":if(1===n.values.length)return`Неправильні вхідні дані: очікується ${td(n.values[0])}`;return`Неправильна опція: очікується одне з ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Занадто велике: очікується, що ${n.origin??"значення"} ${r.verb} ${t}${n.maximum.toString()} ${r.unit??"елементів"}`;return`Занадто велике: очікується, що ${n.origin??"значення"} буде ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Занадто мале: очікується, що ${n.origin} ${r.verb} ${t}${n.minimum.toString()} ${r.unit}`;return`Занадто мале: очікується, що ${n.origin} буде ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Неправильний рядок: повинен починатися з "${n.prefix}"`;if("ends_with"===n.format)return`Неправильний рядок: повинен закінчуватися на "${n.suffix}"`;if("includes"===n.format)return`Неправильний рядок: повинен містити "${n.includes}"`;if("regex"===n.format)return`Неправильний рядок: повинен відповідати шаблону ${n.pattern}`;return`Неправильний ${t[n.format]??n.format}`;case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`}})}}e.s(["ar",0,function(){let e,t,r;return{localeError:(e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}},t={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${i}`;return`مدخلات غير مقبولة: يفترض إدخال ${e}، ولكن تم إدخال ${i}`}case"invalid_value":if(1===n.values.length)return`مدخلات غير مقبولة: يفترض إدخال ${td(n.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${t} ${n.maximum.toString()} ${r.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${t} ${n.minimum.toString()} ${r.unit}`;return`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`;if("ends_with"===n.format)return`نَص غير مقبول: يجب أن ينتهي بـ "${n.suffix}"`;if("includes"===n.format)return`نَص غير مقبول: يجب أن يتضمَّن "${n.includes}"`;if("regex"===n.format)return`نَص غير مقبول: يجب أن يطابق النمط ${n.pattern}`;return`${t[n.format]??n.format} غير مقبول`;case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${eX(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`}})}},"az",0,function(){let e,t,r;return{localeError:(e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Yanlış dəyər: g\xf6zlənilən instanceof ${n.expected}, daxil olan ${i}`;return`Yanlış dəyər: g\xf6zlənilən ${e}, daxil olan ${i}`}case"invalid_value":if(1===n.values.length)return`Yanlış dəyər: g\xf6zlənilən ${td(n.values[0])}`;return`Yanlış se\xe7im: aşağıdakılardan biri olmalıdır: ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${n.origin??"dəyər"} ${t}${n.maximum.toString()} ${r.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${n.origin??"dəyər"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`\xc7ox ki\xe7ik: g\xf6zlənilən ${n.origin} ${t}${n.minimum.toString()} ${r.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlənilən ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Yanlış mətn: "${n.prefix}" ilə başlamalıdır`;if("ends_with"===n.format)return`Yanlış mətn: "${n.suffix}" ilə bitməlidir`;if("includes"===n.format)return`Yanlış mətn: "${n.includes}" daxil olmalıdır`;if("regex"===n.format)return`Yanlış mətn: ${n.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${t[n.format]??n.format}`;case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə b\xf6l\xfcnə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${n.keys.length>1?"lar":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış a\xe7ar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`}})}},"be",0,function(){let e,t,r;return{localeError:(e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}},t={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},r={nan:"NaN",number:"лік",array:"масіў"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${i}`;return`Няправільны ўвод: чакаўся ${e}, атрымана ${i}`}case"invalid_value":if(1===n.values.length)return`Няправільны ўвод: чакалася ${td(n.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r){let e=lc(Number(n.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${r.verb} ${t}${n.maximum.toString()} ${e}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r){let e=lc(Number(n.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${r.verb} ${t}${n.minimum.toString()} ${e}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Няправільны радок: павінен пачынацца з "${n.prefix}"`;if("ends_with"===n.format)return`Няправільны радок: павінен заканчвацца на "${n.suffix}"`;if("includes"===n.format)return`Няправільны радок: павінен змяшчаць "${n.includes}"`;if("regex"===n.format)return`Няправільны радок: павінен адпавядаць шаблону ${n.pattern}`;return`Няправільны ${t[n.format]??n.format}`;case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`}})}},"bg",0,function(){let e,t,r;return{localeError:(e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}},t={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},r={nan:"NaN",number:"число",array:"масив"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Невалиден вход: очакван instanceof ${n.expected}, получен ${i}`;return`Невалиден вход: очакван ${e}, получен ${i}`}case"invalid_value":if(1===n.values.length)return`Невалиден вход: очакван ${td(n.values[0])}`;return`Невалидна опция: очаквано едно от ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${t}${n.maximum.toString()} ${r.unit??"елемента"}`;return`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Твърде малко: очаква се ${n.origin} да съдържа ${t}${n.minimum.toString()} ${r.unit}`;return`Твърде малко: очаква се ${n.origin} да бъде ${t}${n.minimum.toString()}`}case"invalid_format":{if("starts_with"===n.format)return`Невалиден низ: трябва да започва с "${n.prefix}"`;if("ends_with"===n.format)return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if("includes"===n.format)return`Невалиден низ: трябва да включва "${n.includes}"`;if("regex"===n.format)return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let e="Невалиден";return"emoji"===n.format&&(e="Невалидно"),"datetime"===n.format&&(e="Невалидно"),"date"===n.format&&(e="Невалидна"),"time"===n.format&&(e="Невалидно"),"duration"===n.format&&(e="Невалидна"),`${e} ${t[n.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`}})}},"ca",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${i}`;return`Tipus inv\xe0lid: s'esperava ${e}, s'ha rebut ${i}`}case"invalid_value":if(1===n.values.length)return`Valor inv\xe0lid: s'esperava ${td(n.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${eX(n.values," o ")}`;case"too_big":{let t=n.inclusive?"com a màxim":"menys de",r=e[n.origin]??null;if(r)return`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xe9s ${t} ${n.maximum.toString()} ${r.unit??"elements"}`;return`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?"com a mínim":"més de",r=e[n.origin]??null;if(r)return`Massa petit: s'esperava que ${n.origin} contingu\xe9s ${t} ${n.minimum.toString()} ${r.unit}`;return`Massa petit: s'esperava que ${n.origin} fos ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${n.prefix}"`;if("ends_with"===n.format)return`Format inv\xe0lid: ha d'acabar amb "${n.suffix}"`;if("includes"===n.format)return`Format inv\xe0lid: ha d'incloure "${n.includes}"`;if("regex"===n.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${n.pattern}`;return`Format inv\xe0lid per a ${t[n.format]??n.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${n.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element inv\xe0lid a ${n.origin}`}})}},"cs",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}},t={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Neplatn\xfd vstup: oček\xe1v\xe1no instanceof ${n.expected}, obdrženo ${i}`;return`Neplatn\xfd vstup: oček\xe1v\xe1no ${e}, obdrženo ${i}`}case"invalid_value":if(1===n.values.length)return`Neplatn\xfd vstup: oček\xe1v\xe1no ${td(n.values[0])}`;return`Neplatn\xe1 možnost: oček\xe1v\xe1na jedna z hodnot ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Hodnota je př\xedliš velk\xe1: ${n.origin??"hodnota"} mus\xed m\xedt ${t}${n.maximum.toString()} ${r.unit??"prvků"}`;return`Hodnota je př\xedliš velk\xe1: ${n.origin??"hodnota"} mus\xed b\xfdt ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Hodnota je př\xedliš mal\xe1: ${n.origin??"hodnota"} mus\xed m\xedt ${t}${n.minimum.toString()} ${r.unit??"prvků"}`;return`Hodnota je př\xedliš mal\xe1: ${n.origin??"hodnota"} mus\xed b\xfdt ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Neplatn\xfd řetězec: mus\xed zač\xednat na "${n.prefix}"`;if("ends_with"===n.format)return`Neplatn\xfd řetězec: mus\xed končit na "${n.suffix}"`;if("includes"===n.format)return`Neplatn\xfd řetězec: mus\xed obsahovat "${n.includes}"`;if("regex"===n.format)return`Neplatn\xfd řetězec: mus\xed odpov\xeddat vzoru ${n.pattern}`;return`Neplatn\xfd form\xe1t ${t[n.format]??n.format}`;case"not_multiple_of":return`Neplatn\xe9 č\xedslo: mus\xed b\xfdt n\xe1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedče: ${eX(n.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedč v ${n.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${n.origin}`}})}},"da",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Ugyldigt input: forventede instanceof ${n.expected}, fik ${i}`;return`Ugyldigt input: forventede ${e}, fik ${i}`}case"invalid_value":if(1===n.values.length)return`Ugyldig v\xe6rdi: forventede ${td(n.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null,a=r[n.origin]??n.origin;if(i)return`For stor: forventede ${a??"value"} ${i.verb} ${t} ${n.maximum.toString()} ${i.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null,a=r[n.origin]??n.origin;if(i)return`For lille: forventede ${a} ${i.verb} ${t} ${n.minimum.toString()} ${i.unit}`;return`For lille: forventede ${a} havde ${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ugyldig streng: skal starte med "${n.prefix}"`;if("ends_with"===n.format)return`Ugyldig streng: skal ende med "${n.suffix}"`;if("includes"===n.format)return`Ugyldig streng: skal indeholde "${n.includes}"`;if("regex"===n.format)return`Ugyldig streng: skal matche m\xf8nsteret ${n.pattern}`;return`Ugyldig ${t[n.format]??n.format}`;case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${n.origin}`;default:return"Ugyldigt input"}})}},"de",0,function(){let e,t,r;return{localeError:(e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}},t={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${i}`;return`Ung\xfcltige Eingabe: erwartet ${e}, erhalten ${i}`}case"invalid_value":if(1===n.values.length)return`Ung\xfcltige Eingabe: erwartet ${td(n.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Zu gro\xdf: erwartet, dass ${n.origin??"Wert"} ${t}${n.maximum.toString()} ${r.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${n.origin??"Wert"} ${t}${n.maximum.toString()} ist`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Zu klein: erwartet, dass ${n.origin} ${t}${n.minimum.toString()} ${r.unit} hat`;return`Zu klein: erwartet, dass ${n.origin} ${t}${n.minimum.toString()} ist`}case"invalid_format":if("starts_with"===n.format)return`Ung\xfcltiger String: muss mit "${n.prefix}" beginnen`;if("ends_with"===n.format)return`Ung\xfcltiger String: muss mit "${n.suffix}" enden`;if("includes"===n.format)return`Ung\xfcltiger String: muss "${n.includes}" enthalten`;if("regex"===n.format)return`Ung\xfcltiger String: muss dem Muster ${n.pattern} entsprechen`;return`Ung\xfcltig: ${t[n.format]??n.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${n.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${n.origin}`}})}},"el",0,function(){let e,t,r;return{localeError:(e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}},t={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if("string"==typeof n.expected&&/^[A-Z]/.test(n.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${i}`;return`Μη έγκυρη είσοδος: αναμενόταν ${e}, λήφθηκε ${i}`}case"invalid_value":if(1===n.values.length)return`Μη έγκυρη είσοδος: αναμενόταν ${td(n.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να έχει ${t}${n.maximum.toString()} ${r.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να είναι ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${t}${n.minimum.toString()} ${r.unit}`;return`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${n.prefix}"`;if("ends_with"===n.format)return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${n.suffix}"`;if("includes"===n.format)return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${n.includes}"`;if("regex"===n.format)return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${n.pattern}`;return`Μη έγκυρο: ${t[n.format]??n.format}`;case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case"unrecognized_keys":return`Άγνωστ${n.keys.length>1?"α":"ο"} κλειδ${n.keys.length>1?"ιά":"ί"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${n.origin}`;case"invalid_union":default:return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${n.origin}`}})}},"en",0,aE,"eo",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${i}`;return`Nevalida enigo: atendiĝis ${e}, riceviĝis ${i}`}case"invalid_value":if(1===n.values.length)return`Nevalida enigo: atendiĝis ${td(n.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${t}${n.maximum.toString()} ${r.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Tro malgranda: atendiĝis ke ${n.origin} havu ${t}${n.minimum.toString()} ${r.unit}`;return`Tro malgranda: atendiĝis ke ${n.origin} estu ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`;if("ends_with"===n.format)return`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`;if("includes"===n.format)return`Nevalida karaktraro: devas inkluzivi "${n.includes}"`;if("regex"===n.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`;return`Nevalida ${t[n.format]??n.format}`;case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} ŝlosilo${n.keys.length>1?"j":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`}})}},"es",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${n.expected}, recibido ${i}`;return`Entrada inv\xe1lida: se esperaba ${e}, recibido ${i}`}case"invalid_value":if(1===n.values.length)return`Entrada inv\xe1lida: se esperaba ${td(n.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null,a=r[n.origin]??n.origin;if(i)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${t}${n.maximum.toString()} ${i.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null,a=r[n.origin]??n.origin;if(i)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${t}${n.minimum.toString()} ${i.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Cadena inv\xe1lida: debe comenzar con "${n.prefix}"`;if("ends_with"===n.format)return`Cadena inv\xe1lida: debe terminar en "${n.suffix}"`;if("includes"===n.format)return`Cadena inv\xe1lida: debe incluir "${n.includes}"`;if("regex"===n.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${n.pattern}`;return`Inv\xe1lido ${t[n.format]??n.format}`;case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${r[n.origin]??n.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido en ${r[n.origin]??n.origin}`}})}},"fa",0,function(){let e,t,r;return{localeError:(e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}},t={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},r={nan:"NaN",number:"عدد",array:"آرایه"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`ورودی نامعتبر: میبایست instanceof ${n.expected} میبود، ${i} دریافت شد`;return`ورودی نامعتبر: میبایست ${e} میبود، ${i} دریافت شد`}case"invalid_value":if(1===n.values.length)return`ورودی نامعتبر: میبایست ${td(n.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${eX(n.values,"|")} میبود`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`خیلی بزرگ: ${n.origin??"مقدار"} باید ${t}${n.maximum.toString()} ${r.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${n.origin??"مقدار"} باید ${t}${n.maximum.toString()} باشد`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`خیلی کوچک: ${n.origin} باید ${t}${n.minimum.toString()} ${r.unit} باشد`;return`خیلی کوچک: ${n.origin} باید ${t}${n.minimum.toString()} باشد`}case"invalid_format":if("starts_with"===n.format)return`رشته نامعتبر: باید با "${n.prefix}" شروع شود`;if("ends_with"===n.format)return`رشته نامعتبر: باید با "${n.suffix}" تمام شود`;if("includes"===n.format)return`رشته نامعتبر: باید شامل "${n.includes}" باشد`;if("regex"===n.format)return`رشته نامعتبر: باید با الگوی ${n.pattern} مطابقت داشته باشد`;return`${t[n.format]??n.format} نامعتبر`;case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${eX(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`}})}},"fi",0,function(){let e,t,r;return{localeError:(e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}},t={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${i}`;return`Virheellinen tyyppi: odotettiin ${e}, oli ${i}`}case"invalid_value":if(1===n.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${td(n.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Liian suuri: ${r.subject} t\xe4ytyy olla ${t}${n.maximum.toString()} ${r.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Liian pieni: ${r.subject} t\xe4ytyy olla ${t}${n.minimum.toString()} ${r.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${n.prefix}"`;if("ends_with"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${n.suffix}"`;if("includes"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${n.includes}"`;if("regex"===n.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${n.pattern}`;return`Virheellinen ${t[n.format]??n.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${eX(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}})}},"fr",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Entr\xe9e invalide : instanceof ${n.expected} attendu, ${i} re\xe7u`;return`Entr\xe9e invalide : ${e} attendu, ${i} re\xe7u`}case"invalid_value":if(1===n.values.length)return`Entr\xe9e invalide : ${td(n.values[0])} attendu`;return`Option invalide : une valeur parmi ${eX(n.values,"|")} attendue`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null;if(i)return`Trop grand : ${r[n.origin]??"valeur"} doit ${i.verb} ${t}${n.maximum.toString()} ${i.unit??"élément(s)"}`;return`Trop grand : ${r[n.origin]??"valeur"} doit \xeatre ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null;if(i)return`Trop petit : ${r[n.origin]??"valeur"} doit ${i.verb} ${t}${n.minimum.toString()} ${i.unit}`;return`Trop petit : ${r[n.origin]??"valeur"} doit \xeatre ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Cha\xeene invalide : doit commencer par "${n.prefix}"`;if("ends_with"===n.format)return`Cha\xeene invalide : doit se terminer par "${n.suffix}"`;if("includes"===n.format)return`Cha\xeene invalide : doit inclure "${n.includes}"`;if("regex"===n.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${n.pattern}`;return`${t[n.format]??n.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xe9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${eX(n.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${n.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`}})}},"frCA",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Entr\xe9e invalide : attendu instanceof ${n.expected}, re\xe7u ${i}`;return`Entr\xe9e invalide : attendu ${e}, re\xe7u ${i}`}case"invalid_value":if(1===n.values.length)return`Entr\xe9e invalide : attendu ${td(n.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"≤":"<",r=e[n.origin]??null;if(r)return`Trop grand : attendu que ${n.origin??"la valeur"} ait ${t}${n.maximum.toString()} ${r.unit}`;return`Trop grand : attendu que ${n.origin??"la valeur"} soit ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?"≥":">",r=e[n.origin]??null;if(r)return`Trop petit : attendu que ${n.origin} ait ${t}${n.minimum.toString()} ${r.unit}`;return`Trop petit : attendu que ${n.origin} soit ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Cha\xeene invalide : doit commencer par "${n.prefix}"`;if("ends_with"===n.format)return`Cha\xeene invalide : doit se terminer par "${n.suffix}"`;if("includes"===n.format)return`Cha\xeene invalide : doit inclure "${n.includes}"`;if("regex"===n.format)return`Cha\xeene invalide : doit correspondre au motif ${n.pattern}`;return`${t[n.format]??n.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xe9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${eX(n.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${n.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`}})}},"he",0,function(){let e,t,r,n,i,a,o,s,l;return{localeError:(e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=t=>t?e[t]:void 0,n=t=>{let n=r(t);return n?n.label:t??e.unknown.label},i=e=>`ה${n(e)}`,a=e=>{let t=r(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},o=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},l={nan:"NaN"},t=>{switch(t.code){case"invalid_type":{let r=t.expected,i=l[r??""]??n(r),a=t$(t.input),o=l[a]??e[a]?.label??a;if(/^[A-Z]/.test(t.expected))return`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`;return`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${td(t.values[0])}`;let e=t.values.map(e=>td(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let r=e[e.length-1],n=e.slice(0,-1).join(", ");return`ערך לא תקין: האפשרויות המתאימות הן ${n} או ${r}`}case"too_big":{let e=o(t.origin),r=i(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${r} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){let e=t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`;return`גדול מדי: ${r} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let n="set"===t.origin?"צריכה":"צריך",i=t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`;return`גדול מדי: ${r} ${n} להכיל ${i}`.trim()}let n=t.inclusive?"<=":"<",s=a(t.origin??"value");if(e?.unit)return`${e.longLabel} מדי: ${r} ${s} ${n}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"גדול"} מדי: ${r} ${s} ${n}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),r=i(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${r} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){let e=t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`;return`קטן מדי: ${r} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let n="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){let e=(t.origin,"לפחות פריט אחד");return`קטן מדי: ${r} ${n} להכיל ${e}`}let i=t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`;return`קטן מדי: ${r} ${n} להכיל ${i}`.trim()}let n=t.inclusive?">=":">",s=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} מדי: ${r} ${s} ${n}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"קטן"} מדי: ${r} ${s} ${n}${t.minimum.toString()}`}case"invalid_format":{if("starts_with"===t.format)return`המחרוזת חייבת להתחיל ב "${t.prefix}"`;if("ends_with"===t.format)return`המחרוזת חייבת להסתיים ב "${t.suffix}"`;if("includes"===t.format)return`המחרוזת חייבת לכלול "${t.includes}"`;if("regex"===t.format)return`המחרוזת חייבת להתאים לתבנית ${t.pattern}`;let e=s[t.format],r=e?.label??t.format,n=e?.gender??"m";return`${r} לא ${"f"===n?"תקינה":"תקין"}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${eX(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":{let e=i(t.origin??"array");return`ערך לא תקין ב${e}`}}})}},"hr",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}},t={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},r={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${i}`;return`Neispravan unos: očekuje se ${e}, a primljeno je ${i}`}case"invalid_value":if(1===n.values.length)return`Neispravna vrijednost: očekivano ${td(n.values[0])}`;return`Neispravna opcija: očekivano jedno od ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",i=e[n.origin]??null,a=r[n.origin]??n.origin;if(i)return`Preveliko: očekivano da ${a??"vrijednost"} ima ${t}${n.maximum.toString()} ${i.unit??"elemenata"}`;return`Preveliko: očekivano da ${a??"vrijednost"} bude ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",i=e[n.origin]??null,a=r[n.origin]??n.origin;if(i)return`Premalo: očekivano da ${a} ima ${t}${n.minimum.toString()} ${i.unit}`;return`Premalo: očekivano da ${a} bude ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Neispravan tekst: mora započinjati s "${n.prefix}"`;if("ends_with"===n.format)return`Neispravan tekst: mora završavati s "${n.suffix}"`;if("includes"===n.format)return`Neispravan tekst: mora sadržavati "${n.includes}"`;if("regex"===n.format)return`Neispravan tekst: mora odgovarati uzorku ${n.pattern}`;return`Neispravna ${t[n.format]??n.format}`;case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i ključevi":" ključ"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${r[n.origin]??n.origin}`;case"invalid_union":default:return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${r[n.origin]??n.origin}`}})}},"hu",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"szám",array:"tömb"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${n.expected}, a kapott \xe9rt\xe9k ${i}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${e}, a kapott \xe9rt\xe9k ${i}`}case"invalid_value":if(1===n.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${td(n.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`T\xfal nagy: ${n.origin??"érték"} m\xe9rete t\xfal nagy ${t}${n.maximum.toString()} ${r.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${n.origin??"érték"} t\xfal nagy: ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${n.origin} m\xe9rete t\xfal kicsi ${t}${n.minimum.toString()} ${r.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${n.origin} t\xfal kicsi ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`\xc9rv\xe9nytelen string: "${n.prefix}" \xe9rt\xe9kkel kell kezdődnie`;if("ends_with"===n.format)return`\xc9rv\xe9nytelen string: "${n.suffix}" \xe9rt\xe9kkel kell v\xe9gződnie`;if("includes"===n.format)return`\xc9rv\xe9nytelen string: "${n.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===n.format)return`\xc9rv\xe9nytelen string: ${n.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[n.format]??n.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${n.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${n.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${n.origin}`}})}},"hy",0,function(){let e,t,r;return{localeError:(e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}},t={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},r={nan:"NaN",number:"թիվ",array:"զանգված"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${i}`;return`Սխալ մուտքագրում․ սպասվում էր ${e}, ստացվել է ${i}`}case"invalid_value":if(1===n.values.length)return`Սխալ մուտքագրում․ սպասվում էր ${td(n.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r){let e=lp(Number(n.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${lf(n.origin??"արժեք")} կունենա ${t}${n.maximum.toString()} ${e}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${lf(n.origin??"արժեք")} լինի ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r){let e=lp(Number(n.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${lf(n.origin)} կունենա ${t}${n.minimum.toString()} ${e}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${lf(n.origin)} լինի ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Սխալ տող․ պետք է սկսվի "${n.prefix}"-ով`;if("ends_with"===n.format)return`Սխալ տող․ պետք է ավարտվի "${n.suffix}"-ով`;if("includes"===n.format)return`Սխալ տող․ պետք է պարունակի "${n.includes}"`;if("regex"===n.format)return`Սխալ տող․ պետք է համապատասխանի ${n.pattern} ձևաչափին`;return`Սխալ ${t[n.format]??n.format}`;case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${eX(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${lf(n.origin)}-ում`;case"invalid_union":default:return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${lf(n.origin)}-ում`}})}},"id",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${i}`;return`Input tidak valid: diharapkan ${e}, diterima ${i}`}case"invalid_value":if(1===n.values.length)return`Input tidak valid: diharapkan ${td(n.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${t}${n.maximum.toString()} ${r.unit??"elemen"}`;return`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Terlalu kecil: diharapkan ${n.origin} memiliki ${t}${n.minimum.toString()} ${r.unit}`;return`Terlalu kecil: diharapkan ${n.origin} menjadi ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`String tidak valid: harus dimulai dengan "${n.prefix}"`;if("ends_with"===n.format)return`String tidak valid: harus berakhir dengan "${n.suffix}"`;if("includes"===n.format)return`String tidak valid: harus menyertakan "${n.includes}"`;if("regex"===n.format)return`String tidak valid: harus sesuai pola ${n.pattern}`;return`${t[n.format]??n.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`}})}},"is",0,function(){let e,t,r;return{localeError:(e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}},t={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"númer",array:"fylki"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${i} \xfear sem \xe1 a\xf0 vera instanceof ${n.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${i} \xfear sem \xe1 a\xf0 vera ${e}`}case"invalid_value":if(1===n.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${td(n.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin??"gildi"} hafi ${t}${n.maximum.toString()} ${r.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin??"gildi"} s\xe9 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin} hafi ${t}${n.minimum.toString()} ${r.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${n.origin} s\xe9 ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${n.prefix}"`;if("ends_with"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${n.suffix}"`;if("includes"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${n.includes}"`;if("regex"===n.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${n.pattern}`;return`Rangt ${t[n.format]??n.format}`;case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${n.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${n.origin}`}})}},"it",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Input non valido: atteso instanceof ${n.expected}, ricevuto ${i}`;return`Input non valido: atteso ${e}, ricevuto ${i}`}case"invalid_value":if(1===n.values.length)return`Input non valido: atteso ${td(n.values[0])}`;return`Opzione non valida: atteso uno tra ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Troppo grande: ${n.origin??"valore"} deve avere ${t}${n.maximum.toString()} ${r.unit??"elementi"}`;return`Troppo grande: ${n.origin??"valore"} deve essere ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Troppo piccolo: ${n.origin} deve avere ${t}${n.minimum.toString()} ${r.unit}`;return`Troppo piccolo: ${n.origin} deve essere ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Stringa non valida: deve iniziare con "${n.prefix}"`;if("ends_with"===n.format)return`Stringa non valida: deve terminare con "${n.suffix}"`;if("includes"===n.format)return`Stringa non valida: deve includere "${n.includes}"`;if("regex"===n.format)return`Stringa non valida: deve corrispondere al pattern ${n.pattern}`;return`Input non valido: ${t[n.format]??n.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`}})}},"ja",0,function(){let e,t,r;return{localeError:(e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}},t={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},r={nan:"NaN",number:"数値",array:"配列"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`無効な入力: instanceof ${n.expected}が期待されましたが、${i}が入力されました`;return`無効な入力: ${e}が期待されましたが、${i}が入力されました`}case"invalid_value":if(1===n.values.length)return`無効な入力: ${td(n.values[0])}が期待されました`;return`無効な選択: ${eX(n.values,"、")}のいずれかである必要があります`;case"too_big":{let t=n.inclusive?"以下である":"より小さい",r=e[n.origin]??null;if(r)return`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${r.unit??"要素"}${t}必要があります`;return`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${t}必要があります`}case"too_small":{let t=n.inclusive?"以上である":"より大きい",r=e[n.origin]??null;if(r)return`小さすぎる値: ${n.origin}は${n.minimum.toString()}${r.unit}${t}必要があります`;return`小さすぎる値: ${n.origin}は${n.minimum.toString()}${t}必要があります`}case"invalid_format":if("starts_with"===n.format)return`無効な文字列: "${n.prefix}"で始まる必要があります`;if("ends_with"===n.format)return`無効な文字列: "${n.suffix}"で終わる必要があります`;if("includes"===n.format)return`無効な文字列: "${n.includes}"を含む必要があります`;if("regex"===n.format)return`無効な文字列: パターン${n.pattern}に一致する必要があります`;return`無効な${t[n.format]??n.format}`;case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${eX(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`}})}},"ka",0,function(){let e,t,r;return{localeError:(e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}},t={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},r={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${i}`;return`არასწორი შეყვანა: მოსალოდნელი ${e}, მიღებული ${i}`}case"invalid_value":if(1===n.values.length)return`არასწორი შეყვანა: მოსალოდნელი ${td(n.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${eX(n.values,"|")}-დან`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${r.verb} ${t}${n.maximum.toString()} ${r.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${r.verb} ${t}${n.minimum.toString()} ${r.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`არასწორი ველი: უნდა იწყებოდეს "${n.prefix}"-ით`;if("ends_with"===n.format)return`არასწორი ველი: უნდა მთავრდებოდეს "${n.suffix}"-ით`;if("includes"===n.format)return`არასწორი ველი: უნდა შეიცავდეს "${n.includes}"-ს`;if("regex"===n.format)return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`;return`არასწორი ${t[n.format]??n.format}`;case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${eX(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`}})}},"kh",0,function(){return lm()},"km",0,lm,"ko",0,function(){let e,t,r;return{localeError:(e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}},t={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${i}입니다`;return`잘못된 입력: 예상 타입은 ${e}, 받은 타입은 ${i}입니다`}case"invalid_value":if(1===n.values.length)return`잘못된 입력: 값은 ${td(n.values[0])} 이어야 합니다`;return`잘못된 옵션: ${eX(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let t=n.inclusive?"이하":"미만",r="미만"===t?"이어야 합니다":"여야 합니다",i=e[n.origin]??null,a=i?.unit??"요소";if(i)return`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${a} ${t}${r}`;return`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${t}${r}`}case"too_small":{let t=n.inclusive?"이상":"초과",r="이상"===t?"이어야 합니다":"여야 합니다",i=e[n.origin]??null,a=i?.unit??"요소";if(i)return`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${a} ${t}${r}`;return`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${t}${r}`}case"invalid_format":if("starts_with"===n.format)return`잘못된 문자열: "${n.prefix}"(으)로 시작해야 합니다`;if("ends_with"===n.format)return`잘못된 문자열: "${n.suffix}"(으)로 끝나야 합니다`;if("includes"===n.format)return`잘못된 문자열: "${n.includes}"을(를) 포함해야 합니다`;if("regex"===n.format)return`잘못된 문자열: 정규식 ${n.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${t[n.format]??n.format}`;case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${eX(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`}})}},"lt",0,function(){return{localeError:(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,r,n,i){let a=e[t]??null;return null===a?a:{unit:a.unit[r],verb:a.verb[i][n?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},n={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{let t=n[e.expected]??e.expected,r=t$(e.input),i=n[r]??r;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`;return`Gautas tipas ${i}, o tikėtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo būti ${td(e.values[0])}`;return`Privalo būti vienas iš ${eX(e.values,"|")} pasirinkimų`;case"too_big":{let r=n[e.origin]??e.origin,i=t(e.origin,lg(Number(e.maximum)),e.inclusive??!1,"smaller");if(i?.verb)return`${lh(r??e.origin??"reikšmė")} ${i.verb} ${e.maximum.toString()} ${i.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${lh(r??e.origin??"reikšmė")} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case"too_small":{let r=n[e.origin]??e.origin,i=t(e.origin,lg(Number(e.minimum)),e.inclusive??!1,"bigger");if(i?.verb)return`${lh(r??e.origin??"reikšmė")} ${i.verb} ${e.minimum.toString()} ${i.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${lh(r??e.origin??"reikšmė")} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case"invalid_format":if("starts_with"===e.format)return`Eilutė privalo prasidėti "${e.prefix}"`;if("ends_with"===e.format)return`Eilutė privalo pasibaigti "${e.suffix}"`;if("includes"===e.format)return`Eilutė privalo įtraukti "${e.includes}"`;if("regex"===e.format)return`Eilutė privalo atitikti ${e.pattern}`;return`Neteisingas ${r[e.format]??e.format}`;case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${eX(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=n[e.origin]??e.origin;return`${lh(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}})()}},"mk",0,function(){let e,t,r;return{localeError:(e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}},t={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},r={nan:"NaN",number:"број",array:"низа"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Грешен внес: се очекува instanceof ${n.expected}, примено ${i}`;return`Грешен внес: се очекува ${e}, примено ${i}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${td(n.values[0])}`;return`Грешана опција: се очекува една ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${t}${n.maximum.toString()} ${r.unit??"елементи"}`;return`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Премногу мал: се очекува ${n.origin} да има ${t}${n.minimum.toString()} ${r.unit}`;return`Премногу мал: се очекува ${n.origin} да биде ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Неважечка низа: мора да започнува со "${n.prefix}"`;if("ends_with"===n.format)return`Неважечка низа: мора да завршува со "${n.suffix}"`;if("includes"===n.format)return`Неважечка низа: мора да вклучува "${n.includes}"`;if("regex"===n.format)return`Неважечка низа: мора да одгоара на патернот ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`}})}},"ms",0,function(){let e,t,r;return{localeError:(e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${i}`;return`Input tidak sah: dijangka ${e}, diterima ${i}`}case"invalid_value":if(1===n.values.length)return`Input tidak sah: dijangka ${td(n.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Terlalu besar: dijangka ${n.origin??"nilai"} ${r.verb} ${t}${n.maximum.toString()} ${r.unit??"elemen"}`;return`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Terlalu kecil: dijangka ${n.origin} ${r.verb} ${t}${n.minimum.toString()} ${r.unit}`;return`Terlalu kecil: dijangka ${n.origin} adalah ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`String tidak sah: mesti bermula dengan "${n.prefix}"`;if("ends_with"===n.format)return`String tidak sah: mesti berakhir dengan "${n.suffix}"`;if("includes"===n.format)return`String tidak sah: mesti mengandungi "${n.includes}"`;if("regex"===n.format)return`String tidak sah: mesti sepadan dengan corak ${n.pattern}`;return`${t[n.format]??n.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${eX(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`}})}},"nl",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}},t={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${i}`;return`Ongeldige invoer: verwacht ${e}, ontving ${i}`}case"invalid_value":if(1===n.values.length)return`Ongeldige invoer: verwacht ${td(n.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null,i="date"===n.origin?"laat":"string"===n.origin?"lang":"groot";if(r)return`Te ${i}: verwacht dat ${n.origin??"waarde"} ${t}${n.maximum.toString()} ${r.unit??"elementen"} ${r.verb}`;return`Te ${i}: verwacht dat ${n.origin??"waarde"} ${t}${n.maximum.toString()} is`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null,i="date"===n.origin?"vroeg":"string"===n.origin?"kort":"klein";if(r)return`Te ${i}: verwacht dat ${n.origin} ${t}${n.minimum.toString()} ${r.unit} ${r.verb}`;return`Te ${i}: verwacht dat ${n.origin} ${t}${n.minimum.toString()} is`}case"invalid_format":if("starts_with"===n.format)return`Ongeldige tekst: moet met "${n.prefix}" beginnen`;if("ends_with"===n.format)return`Ongeldige tekst: moet op "${n.suffix}" eindigen`;if("includes"===n.format)return`Ongeldige tekst: moet "${n.includes}" bevatten`;if("regex"===n.format)return`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`;return`Ongeldig: ${t[n.format]??n.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`}})}},"no",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}},t={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Ugyldig input: forventet instanceof ${n.expected}, fikk ${i}`;return`Ugyldig input: forventet ${e}, fikk ${i}`}case"invalid_value":if(1===n.values.length)return`Ugyldig verdi: forventet ${td(n.values[0])}`;return`Ugyldig valg: forventet en av ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`For stor(t): forventet ${n.origin??"value"} til \xe5 ha ${t}${n.maximum.toString()} ${r.unit??"elementer"}`;return`For stor(t): forventet ${n.origin??"value"} til \xe5 ha ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`For lite(n): forventet ${n.origin} til \xe5 ha ${t}${n.minimum.toString()} ${r.unit}`;return`For lite(n): forventet ${n.origin} til \xe5 ha ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ugyldig streng: m\xe5 starte med "${n.prefix}"`;if("ends_with"===n.format)return`Ugyldig streng: m\xe5 ende med "${n.suffix}"`;if("includes"===n.format)return`Ugyldig streng: m\xe5 inneholde "${n.includes}"`;if("regex"===n.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${n.pattern}`;return`Ugyldig ${t[n.format]??n.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${n.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`}})}},"ota",0,function(){let e,t,r;return{localeError:(e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`F\xe2sit giren: umulan instanceof ${n.expected}, alınan ${i}`;return`F\xe2sit giren: umulan ${e}, alınan ${i}`}case"invalid_value":if(1===n.values.length)return`F\xe2sit giren: umulan ${td(n.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Fazla b\xfcy\xfck: ${n.origin??"value"}, ${t}${n.maximum.toString()} ${r.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${n.origin??"value"}, ${t}${n.maximum.toString()} olmalıydı.`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Fazla k\xfc\xe7\xfck: ${n.origin}, ${t}${n.minimum.toString()} ${r.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${n.origin}, ${t}${n.minimum.toString()} olmalıydı.`}case"invalid_format":if("starts_with"===n.format)return`F\xe2sit metin: "${n.prefix}" ile başlamalı.`;if("ends_with"===n.format)return`F\xe2sit metin: "${n.suffix}" ile bitmeli.`;if("includes"===n.format)return`F\xe2sit metin: "${n.includes}" ihtiv\xe2 etmeli.`;if("regex"===n.format)return`F\xe2sit metin: ${n.pattern} nakşına uymalı.`;return`F\xe2sit ${t[n.format]??n.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}})}},"pl",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}},t={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},r={nan:"NaN",number:"liczba",array:"tablica"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${i}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${e}, otrzymano ${i}`}case"invalid_value":if(1===n.values.length)return`Nieprawidłowe dane wejściowe: oczekiwano ${td(n.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${t}${n.maximum.toString()} ${r.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${t}${n.minimum.toString()} ${r.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi zaczynać się od "${n.prefix}"`;if("ends_with"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi kończyć się na "${n.suffix}"`;if("includes"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi zawierać "${n.includes}"`;if("regex"===n.format)return`Nieprawidłowy ciąg znak\xf3w: musi odpowiadać wzorcowi ${n.pattern}`;return`Nieprawidłow(y/a/e) ${t[n.format]??n.format}`;case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`}})}},"ps",0,function(){let e,t,r;return{localeError:(e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}},t={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},r={nan:"NaN",number:"عدد",array:"ارې"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${i} ترلاسه شو`;return`ناسم ورودي: باید ${e} وای, مګر ${i} ترلاسه شو`}case"invalid_value":if(1===n.values.length)return`ناسم ورودي: باید ${td(n.values[0])} وای`;return`ناسم انتخاب: باید یو له ${eX(n.values,"|")} څخه وای`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`ډیر لوی: ${n.origin??"ارزښت"} باید ${t}${n.maximum.toString()} ${r.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${n.origin??"ارزښت"} باید ${t}${n.maximum.toString()} وي`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`ډیر کوچنی: ${n.origin} باید ${t}${n.minimum.toString()} ${r.unit} ولري`;return`ډیر کوچنی: ${n.origin} باید ${t}${n.minimum.toString()} وي`}case"invalid_format":if("starts_with"===n.format)return`ناسم متن: باید د "${n.prefix}" سره پیل شي`;if("ends_with"===n.format)return`ناسم متن: باید د "${n.suffix}" سره پای ته ورسيږي`;if("includes"===n.format)return`ناسم متن: باید "${n.includes}" ولري`;if("regex"===n.format)return`ناسم متن: باید د ${n.pattern} سره مطابقت ولري`;return`${t[n.format]??n.format} ناسم دی`;case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${eX(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`}})}},"pt",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"número",null:"nulo"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Tipo inv\xe1lido: esperado instanceof ${n.expected}, recebido ${i}`;return`Tipo inv\xe1lido: esperado ${e}, recebido ${i}`}case"invalid_value":if(1===n.values.length)return`Entrada inv\xe1lida: esperado ${td(n.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Muito grande: esperado que ${n.origin??"valor"} tivesse ${t}${n.maximum.toString()} ${r.unit??"elementos"}`;return`Muito grande: esperado que ${n.origin??"valor"} fosse ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Muito pequeno: esperado que ${n.origin} tivesse ${t}${n.minimum.toString()} ${r.unit}`;return`Muito pequeno: esperado que ${n.origin} fosse ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Texto inv\xe1lido: deve come\xe7ar com "${n.prefix}"`;if("ends_with"===n.format)return`Texto inv\xe1lido: deve terminar com "${n.suffix}"`;if("includes"===n.format)return`Texto inv\xe1lido: deve incluir "${n.includes}"`;if("regex"===n.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${n.pattern}`;return`${t[n.format]??n.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido em ${n.origin}`;default:return"Campo inválido"}})}},"ro",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}},t={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},r={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;return`Intrare invalidă: așteptat ${e}, primit ${i}`}case"invalid_value":if(1===n.values.length)return`Intrare invalidă: așteptat ${td(n.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Prea mare: așteptat ca ${n.origin??"valoarea"} ${r.verb} ${t}${n.maximum.toString()} ${r.unit??"elemente"}`;return`Prea mare: așteptat ca ${n.origin??"valoarea"} să fie ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Prea mic: așteptat ca ${n.origin} ${r.verb} ${t}${n.minimum.toString()} ${r.unit}`;return`Prea mic: așteptat ca ${n.origin} să fie ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Șir invalid: trebuie să \xeenceapă cu "${n.prefix}"`;if("ends_with"===n.format)return`Șir invalid: trebuie să se termine cu "${n.suffix}"`;if("includes"===n.format)return`Șir invalid: trebuie să includă "${n.includes}"`;if("regex"===n.format)return`Șir invalid: trebuie să se potrivească cu modelul ${n.pattern}`;return`Format invalid: ${t[n.format]??n.format}`;case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${eX(n.keys,", ")}`;case"invalid_key":return`Cheie invalidă \xeen ${n.origin}`;case"invalid_union":default:return"Intrare invalidă";case"invalid_element":return`Valoare invalidă \xeen ${n.origin}`}})}},"ru",0,function(){let e,t,r;return{localeError:(e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}},t={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},r={nan:"NaN",number:"число",array:"массив"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${i}`;return`Неверный ввод: ожидалось ${e}, получено ${i}`}case"invalid_value":if(1===n.values.length)return`Неверный ввод: ожидалось ${td(n.values[0])}`;return`Неверный вариант: ожидалось одно из ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r){let e=lv(Number(n.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${t}${n.maximum.toString()} ${e}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r){let e=lv(Number(n.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${t}${n.minimum.toString()} ${e}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Неверная строка: должна начинаться с "${n.prefix}"`;if("ends_with"===n.format)return`Неверная строка: должна заканчиваться на "${n.suffix}"`;if("includes"===n.format)return`Неверная строка: должна содержать "${n.includes}"`;if("regex"===n.format)return`Неверная строка: должна соответствовать шаблону ${n.pattern}`;return`Неверный ${t[n.format]??n.format}`;case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`}})}},"sl",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"število",array:"tabela"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${i}`;return`Neveljaven vnos: pričakovano ${e}, prejeto ${i}`}case"invalid_value":if(1===n.values.length)return`Neveljaven vnos: pričakovano ${td(n.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${t}${n.maximum.toString()} ${r.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Premajhno: pričakovano, da bo ${n.origin} imelo ${t}${n.minimum.toString()} ${r.unit}`;return`Premajhno: pričakovano, da bo ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Neveljaven niz: mora se začeti z "${n.prefix}"`;if("ends_with"===n.format)return`Neveljaven niz: mora se končati z "${n.suffix}"`;if("includes"===n.format)return`Neveljaven niz: mora vsebovati "${n.includes}"`;if("regex"===n.format)return`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`;return`Neveljaven ${t[n.format]??n.format}`;case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`}})}},"sv",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}},t={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${n.expected}, fick ${i}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${e}, fick ${i}`}case"invalid_value":if(1===n.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${td(n.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${n.origin??"värdet"} att ha ${t}${n.maximum.toString()} ${r.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${n.origin??"värdet"} att ha ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${n.origin??"värdet"} att ha ${t}${n.minimum.toString()} ${r.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${n.origin??"värdet"} att ha ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${n.prefix}"`;if("ends_with"===n.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${n.suffix}"`;if("includes"===n.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${n.includes}"`;if("regex"===n.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${n.pattern}"`;return`Ogiltig(t) ${t[n.format]??n.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${eX(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${n.origin??"värdet"}`}})}},"ta",0,function(){let e,t,r;return{localeError:(e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}},t={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${i}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${e}, பெறப்பட்டது ${i}`}case"invalid_value":if(1===n.values.length)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${td(n.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${eX(n.values,"|")} இல் ஒன்று`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${t}${n.maximum.toString()} ${r.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${t}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${t}${n.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${t}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":if("starts_with"===n.format)return`தவறான சரம்: "${n.prefix}" இல் தொடங்க வேண்டும்`;if("ends_with"===n.format)return`தவறான சரம்: "${n.suffix}" இல் முடிவடைய வேண்டும்`;if("includes"===n.format)return`தவறான சரம்: "${n.includes}" ஐ உள்ளடக்க வேண்டும்`;if("regex"===n.format)return`தவறான சரம்: ${n.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${t[n.format]??n.format}`;case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`}})}},"th",0,function(){let e,t,r;return{localeError:(e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}},t={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},r={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${i}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${e} แต่ได้รับ ${i}`}case"invalid_value":if(1===n.values.length)return`ค่าไม่ถูกต้อง: ควรเป็น ${td(n.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"ไม่เกิน":"น้อยกว่า",r=e[n.origin]??null;if(r)return`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${t} ${n.maximum.toString()} ${r.unit??"รายการ"}`;return`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${t} ${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?"อย่างน้อย":"มากกว่า",r=e[n.origin]??null;if(r)return`น้อยกว่ากำหนด: ${n.origin} ควรมี${t} ${n.minimum.toString()} ${r.unit}`;return`น้อยกว่ากำหนด: ${n.origin} ควรมี${t} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${n.prefix}"`;if("ends_with"===n.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${n.suffix}"`;if("includes"===n.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${n.includes}" อยู่ในข้อความ`;if("regex"===n.format)return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${n.pattern}`;return`รูปแบบไม่ถูกต้อง: ${t[n.format]??n.format}`;case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${eX(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}})}},"tr",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}},t={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Ge\xe7ersiz değer: beklenen instanceof ${n.expected}, alınan ${i}`;return`Ge\xe7ersiz değer: beklenen ${e}, alınan ${i}`}case"invalid_value":if(1===n.values.length)return`Ge\xe7ersiz değer: beklenen ${td(n.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aşağıdakilerden biri olmalı: ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`\xc7ok b\xfcy\xfck: beklenen ${n.origin??"değer"} ${t}${n.maximum.toString()} ${r.unit??"öğe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${n.origin??"değer"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`\xc7ok k\xfc\xe7\xfck: beklenen ${n.origin} ${t}${n.minimum.toString()} ${r.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ge\xe7ersiz metin: "${n.prefix}" ile başlamalı`;if("ends_with"===n.format)return`Ge\xe7ersiz metin: "${n.suffix}" ile bitmeli`;if("includes"===n.format)return`Ge\xe7ersiz metin: "${n.includes}" i\xe7ermeli`;if("regex"===n.format)return`Ge\xe7ersiz metin: ${n.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[n.format]??n.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${n.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${n.origin} i\xe7inde ge\xe7ersiz değer`}})}},"ua",0,function(){return ly()},"uk",0,ly,"ur",0,function(){let e,t,r;return{localeError:(e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}},t={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},r={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${i} موصول ہوا`;return`غلط ان پٹ: ${e} متوقع تھا، ${i} موصول ہوا`}case"invalid_value":if(1===n.values.length)return`غلط ان پٹ: ${td(n.values[0])} متوقع تھا`;return`غلط آپشن: ${eX(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`بہت بڑا: ${n.origin??"ویلیو"} کے ${t}${n.maximum.toString()} ${r.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${n.origin??"ویلیو"} کا ${t}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`بہت چھوٹا: ${n.origin} کے ${t}${n.minimum.toString()} ${r.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${n.origin} کا ${t}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":if("starts_with"===n.format)return`غلط سٹرنگ: "${n.prefix}" سے شروع ہونا چاہیے`;if("ends_with"===n.format)return`غلط سٹرنگ: "${n.suffix}" پر ختم ہونا چاہیے`;if("includes"===n.format)return`غلط سٹرنگ: "${n.includes}" شامل ہونا چاہیے`;if("regex"===n.format)return`غلط سٹرنگ: پیٹرن ${n.pattern} سے میچ ہونا چاہیے`;return`غلط ${t[n.format]??n.format}`;case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${eX(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`}})}},"uz",0,function(){let e,t,r;return{localeError:(e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}},t={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${i}`;return`Noto‘g‘ri kirish: kutilgan ${e}, qabul qilingan ${i}`}case"invalid_value":if(1===n.values.length)return`Noto‘g‘ri kirish: kutilgan ${td(n.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Juda katta: kutilgan ${n.origin??"qiymat"} ${t}${n.maximum.toString()} ${r.unit} ${r.verb}`;return`Juda katta: kutilgan ${n.origin??"qiymat"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Juda kichik: kutilgan ${n.origin} ${t}${n.minimum.toString()} ${r.unit} ${r.verb}`;return`Juda kichik: kutilgan ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Noto‘g‘ri satr: "${n.prefix}" bilan boshlanishi kerak`;if("ends_with"===n.format)return`Noto‘g‘ri satr: "${n.suffix}" bilan tugashi kerak`;if("includes"===n.format)return`Noto‘g‘ri satr: "${n.includes}" ni o‘z ichiga olishi kerak`;if("regex"===n.format)return`Noto‘g‘ri satr: ${n.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${t[n.format]??n.format}`;case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${eX(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":default:return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`}})}},"vi",0,function(){let e,t,r;return{localeError:(e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}},t={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},r={nan:"NaN",number:"số",array:"mảng"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${i}`;return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${e}, nhận được ${i}`}case"invalid_value":if(1===n.values.length)return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${td(n.values[0])}`;return`T\xf9y chọn kh\xf4ng hợp lệ: mong đợi một trong c\xe1c gi\xe1 trị ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Qu\xe1 lớn: mong đợi ${n.origin??"giá trị"} ${r.verb} ${t}${n.maximum.toString()} ${r.unit??"phần tử"}`;return`Qu\xe1 lớn: mong đợi ${n.origin??"giá trị"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Qu\xe1 nhỏ: mong đợi ${n.origin} ${r.verb} ${t}${n.minimum.toString()} ${r.unit}`;return`Qu\xe1 nhỏ: mong đợi ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải bắt đầu bằng "${n.prefix}"`;if("ends_with"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải kết th\xfac bằng "${n.suffix}"`;if("includes"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải bao gồm "${n.includes}"`;if("regex"===n.format)return`Chuỗi kh\xf4ng hợp lệ: phải khớp với mẫu ${n.pattern}`;return`${t[n.format]??n.format} kh\xf4ng hợp lệ`;case"not_multiple_of":return`Số kh\xf4ng hợp lệ: phải l\xe0 bội số của ${n.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng được nhận dạng: ${eX(n.keys,", ")}`;case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lệ trong ${n.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Gi\xe1 trị kh\xf4ng hợp lệ trong ${n.origin}`}})}},"yo",0,function(){let e,t,r;return{localeError:(e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}},t={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},r={nan:"NaN",number:"nọ́mbà",array:"akopọ"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi instanceof ${n.expected}, \xe0mọ̀ a r\xed ${i}`;return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${e}, \xe0mọ̀ a r\xed ${i}`}case"invalid_value":if(1===n.values.length)return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${td(n.values[0])}`;return`\xc0ṣ\xe0y\xe0n aṣ\xecṣe: yan ọ̀kan l\xe1ra ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ p\xe9 ${n.origin??"iye"} ${r.verb} ${t}${n.maximum} ${r.unit}`;return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ ${t}${n.maximum}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ p\xe9 ${n.origin} ${r.verb} ${t}${n.minimum} ${r.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ ${t}${n.minimum}`}case"invalid_format":if("starts_with"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀l\xfa "${n.prefix}"`;if("ends_with"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ par\xed pẹ̀l\xfa "${n.suffix}"`;if("includes"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ n\xed "${n.includes}"`;if("regex"===n.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ b\xe1 \xe0pẹẹrẹ mu ${n.pattern}`;return`Aṣ\xecṣe: ${t[n.format]??n.format}`;case"not_multiple_of":return`Nọ́mb\xe0 aṣ\xecṣe: gbọ́dọ̀ jẹ́ \xe8y\xe0 p\xedp\xedn ti ${n.divisor}`;case"unrecognized_keys":return`Bọt\xecn\xec \xe0\xecmọ̀: ${eX(n.keys,", ")}`;case"invalid_key":return`Bọt\xecn\xec aṣ\xecṣe n\xedn\xfa ${n.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣ\xecṣe n\xedn\xfa ${n.origin}`}})}},"zhCN",0,function(){let e,t,r;return{localeError:(e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}},t={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},r={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`无效输入:期望 instanceof ${n.expected},实际接收 ${i}`;return`无效输入:期望 ${e},实际接收 ${i}`}case"invalid_value":if(1===n.values.length)return`无效输入:期望 ${td(n.values[0])}`;return`无效选项:期望以下之一 ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`数值过大:期望 ${n.origin??"值"} ${t}${n.maximum.toString()} ${r.unit??"个元素"}`;return`数值过大:期望 ${n.origin??"值"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`数值过小:期望 ${n.origin} ${t}${n.minimum.toString()} ${r.unit}`;return`数值过小:期望 ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`无效字符串:必须以 "${n.prefix}" 开头`;if("ends_with"===n.format)return`无效字符串:必须以 "${n.suffix}" 结尾`;if("includes"===n.format)return`无效字符串:必须包含 "${n.includes}"`;if("regex"===n.format)return`无效字符串:必须满足正则表达式 ${n.pattern}`;return`无效${t[n.format]??n.format}`;case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${eX(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`}})}},"zhTW",0,function(){let e,t,r;return{localeError:(e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}},t={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},r={nan:"NaN"},n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=t$(n.input),i=r[t]??t;if(/^[A-Z]/.test(n.expected))return`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${i}`;return`無效的輸入值:預期為 ${e},但收到 ${i}`}case"invalid_value":if(1===n.values.length)return`無效的輸入值:預期為 ${td(n.values[0])}`;return`無效的選項:預期為以下其中之一 ${eX(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`數值過大:預期 ${n.origin??"值"} 應為 ${t}${n.maximum.toString()} ${r.unit??"個元素"}`;return`數值過大:預期 ${n.origin??"值"} 應為 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`數值過小:預期 ${n.origin} 應為 ${t}${n.minimum.toString()} ${r.unit}`;return`數值過小:預期 ${n.origin} 應為 ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`無效的字串:必須以 "${n.prefix}" 開頭`;if("ends_with"===n.format)return`無效的字串:必須以 "${n.suffix}" 結尾`;if("includes"===n.format)return`無效的字串:必須包含 "${n.includes}"`;if("regex"===n.format)return`無效的字串:必須符合格式 ${n.pattern}`;return`無效的 ${t[n.format]??n.format}`;case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${eX(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`}})}}],42625);var lb=e.i(42625);function l_(e,t){return new e({type:"string",...tu(t)})}function l$(e,t){return new e({type:"string",coerce:!0,...tu(t)})}function lx(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...tu(t)})}function lk(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...tu(t)})}function lw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...tu(t)})}function lI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...tu(t)})}function lS(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...tu(t)})}function lE(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...tu(t)})}function lO(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...tu(t)})}function lj(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...tu(t)})}function lZ(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...tu(t)})}function lz(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...tu(t)})}function lT(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...tu(t)})}function lU(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...tu(t)})}function lA(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...tu(t)})}function lN(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...tu(t)})}function lP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...tu(t)})}function lC(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...tu(t)})}function lD(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...tu(t)})}function lR(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...tu(t)})}function lM(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...tu(t)})}function lL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...tu(t)})}function lF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...tu(t)})}function lB(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...tu(t)})}function lJ(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...tu(t)})}e.i(68808),e.i(34861);let lV={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function lW(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...tu(t)})}function lq(e,t){return new e({type:"string",format:"date",check:"string_format",...tu(t)})}function lG(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...tu(t)})}function lK(e,t){return new e({type:"string",format:"duration",check:"string_format",...tu(t)})}function lH(e,t){return new e({type:"number",checks:[],...tu(t)})}function lY(e,t){return new e({type:"number",coerce:!0,checks:[],...tu(t)})}function lX(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...tu(t)})}function lQ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...tu(t)})}function l0(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...tu(t)})}function l1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...tu(t)})}function l2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...tu(t)})}function l4(e,t){return new e({type:"boolean",...tu(t)})}function l6(e,t){return new e({type:"boolean",coerce:!0,...tu(t)})}function l5(e,t){return new e({type:"bigint",...tu(t)})}function l9(e,t){return new e({type:"bigint",coerce:!0,...tu(t)})}function l3(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...tu(t)})}function l7(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...tu(t)})}function l8(e,t){return new e({type:"symbol",...tu(t)})}function ue(e,t){return new e({type:"undefined",...tu(t)})}function ut(e,t){return new e({type:"null",...tu(t)})}function ur(e){return new e({type:"any"})}function un(e){return new e({type:"unknown"})}function ui(e,t){return new e({type:"never",...tu(t)})}function ua(e,t){return new e({type:"void",...tu(t)})}function uo(e,t){return new e({type:"date",...tu(t)})}function us(e,t){return new e({type:"date",coerce:!0,...tu(t)})}function ul(e,t){return new e({type:"nan",...tu(t)})}function uu(e,t){return new og({check:"less_than",...tu(t),value:e,inclusive:!1})}function ud(e,t){return new og({check:"less_than",...tu(t),value:e,inclusive:!0})}function uc(e,t){return new ov({check:"greater_than",...tu(t),value:e,inclusive:!1})}function up(e,t){return new ov({check:"greater_than",...tu(t),value:e,inclusive:!0})}function uf(e){return uc(0,e)}function um(e){return uu(0,e)}function uh(e){return ud(0,e)}function ug(e){return up(0,e)}function uv(e,t){return new oy({check:"multiple_of",...tu(t),value:e})}function uy(e,t){return new o$({check:"max_size",...tu(t),maximum:e})}function ub(e,t){return new ox({check:"min_size",...tu(t),minimum:e})}function u_(e,t){return new ok({check:"size_equals",...tu(t),size:e})}function u$(e,t){return new ow({check:"max_length",...tu(t),maximum:e})}function ux(e,t){return new oI({check:"min_length",...tu(t),minimum:e})}function uk(e,t){return new oS({check:"length_equals",...tu(t),length:e})}function uw(e,t){return new oO({check:"string_format",format:"regex",...tu(t),pattern:e})}function uI(e){return new oj({check:"string_format",format:"lowercase",...tu(e)})}function uS(e){return new oZ({check:"string_format",format:"uppercase",...tu(e)})}function uE(e,t){return new oz({check:"string_format",format:"includes",...tu(t),includes:e})}function uO(e,t){return new oT({check:"string_format",format:"starts_with",...tu(t),prefix:e})}function uj(e,t){return new oU({check:"string_format",format:"ends_with",...tu(t),suffix:e})}function uZ(e,t,r){return new oN({check:"property",property:e,schema:t,...tu(r)})}function uz(e,t){return new oP({check:"mime_type",mime:e,...tu(t)})}function uT(e){return new oC({check:"overwrite",tx:e})}function uU(e){return uT(t=>t.normalize(e))}function uA(){return uT(e=>e.trim())}function uN(){return uT(e=>e.toLowerCase())}function uP(){return uT(e=>e.toUpperCase())}function uC(){return uT(e=>e8(e))}function uD(e,t,r){return new e({type:"array",element:t,...tu(r)})}function uR(e,t,r){return new e({type:"union",options:t,...tu(r)})}function uM(e,t,r){return new e({type:"union",options:t,inclusive:!1,...tu(r)})}function uL(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...tu(n)})}function uF(e,t,r){return new e({type:"intersection",left:t,right:r})}function uB(e,t,r,n){let i=r instanceof oM,a=i?n:r;return new e({type:"tuple",items:t,rest:i?r:null,...tu(a)})}function uJ(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...tu(n)})}function uV(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...tu(n)})}function uW(e,t,r){return new e({type:"set",valueType:t,...tu(r)})}function uq(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...tu(r)})}function uG(e,t,r){return new e({type:"enum",entries:t,...tu(r)})}function uK(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...tu(r)})}function uH(e,t){return new e({type:"file",...tu(t)})}function uY(e,t){return new e({type:"transform",transform:t})}function uX(e,t){return new e({type:"optional",innerType:t})}function uQ(e,t){return new e({type:"nullable",innerType:t})}function u0(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():ti(r)}})}function u1(e,t,r){return new e({type:"nonoptional",innerType:t,...tu(r)})}function u2(e,t){return new e({type:"success",innerType:t})}function u4(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function u6(e,t,r){return new e({type:"pipe",in:t,out:r})}function u5(e,t){return new e({type:"readonly",innerType:t})}function u9(e,t,r){return new e({type:"template_literal",parts:t,...tu(r)})}function u3(e,t){return new e({type:"lazy",getter:t})}function u7(e,t){return new e({type:"promise",innerType:t})}function u8(e,t,r){let n=tu(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function de(e,t,r){return new e({type:"custom",check:"custom",fn:t,...tu(r)})}function dt(e,t){let r=dr(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(tx(e,t.value,r._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(tx(e)))},e(t.value,t)),t);return r}function dr(e,t){let r=new om({check:"custom",...tu(t)});return r._zod.check=e,r}function dn(e){let t=new om({check:"describe"});return t._zod.onattach=[t=>{let r=rp.get(t)??{};rp.add(t,{...r,description:e})}],t._zod.check=()=>{},t}function di(e){let t=new om({check:"meta"});return t._zod.onattach=[t=>{let r=rp.get(t)??{};rp.add(t,{...r,...e})}],t._zod.check=()=>{},t}function da(e,t){let r=tu(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(n=n.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(n),o=new Set(i),s=e.Codec??s3,l=e.Boolean??su,u=new s({type:"pipe",in:new(e.String??oL)({type:"string",error:r.error}),out:new l({type:"boolean",error:r.error}),transform:(e,t)=>{let n=e;return"sensitive"!==r.case&&(n=n.toLowerCase()),!!a.has(n)||!o.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?n[0]||"true":i[0]||"false",error:r.error});return u}function ds(e,t,r,n={}){let i=tu(n),a={...tu(n),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...i};return r instanceof RegExp&&(a.pattern=r),new e(a)}e.s(["TimePrecision",0,lV,"_any",0,ur,"_array",0,uD,"_base64",0,lL,"_base64url",0,lF,"_bigint",0,l5,"_boolean",0,l4,"_catch",0,u4,"_check",0,dr,"_cidrv4",0,lR,"_cidrv6",0,lM,"_coercedBigint",0,l9,"_coercedBoolean",0,l6,"_coercedDate",0,us,"_coercedNumber",0,lY,"_coercedString",0,l$,"_cuid",0,lz,"_cuid2",0,lT,"_custom",0,u8,"_date",0,uo,"_default",0,u0,"_discriminatedUnion",0,uL,"_e164",0,lB,"_email",0,lx,"_emoji",0,lj,"_endsWith",0,uj,"_enum",0,uq,"_file",0,uH,"_float32",0,lQ,"_float64",0,l0,"_gt",0,uc,"_gte",0,up,"_guid",0,lk,"_includes",0,uE,"_int",0,lX,"_int32",0,l1,"_int64",0,l3,"_intersection",0,uF,"_ipv4",0,lP,"_ipv6",0,lC,"_isoDate",0,lq,"_isoDateTime",0,lW,"_isoDuration",0,lK,"_isoTime",0,lG,"_jwt",0,lJ,"_ksuid",0,lN,"_lazy",0,u3,"_length",0,uk,"_literal",0,uK,"_lowercase",0,uI,"_lt",0,uu,"_lte",0,ud,"_mac",0,lD,"_map",0,uV,"_max",0,ud,"_maxLength",0,u$,"_maxSize",0,uy,"_mime",0,uz,"_min",0,up,"_minLength",0,ux,"_minSize",0,ub,"_multipleOf",0,uv,"_nan",0,ul,"_nanoid",0,lZ,"_nativeEnum",0,uG,"_negative",0,um,"_never",0,ui,"_nonnegative",0,ug,"_nonoptional",0,u1,"_nonpositive",0,uh,"_normalize",0,uU,"_null",0,ut,"_nullable",0,uQ,"_number",0,lH,"_optional",0,uX,"_overwrite",0,uT,"_pipe",0,u6,"_positive",0,uf,"_promise",0,u7,"_property",0,uZ,"_readonly",0,u5,"_record",0,uJ,"_refine",0,de,"_regex",0,uw,"_set",0,uW,"_size",0,u_,"_slugify",0,uC,"_startsWith",0,uO,"_string",0,l_,"_stringFormat",0,ds,"_stringbool",0,da,"_success",0,u2,"_superRefine",0,dt,"_symbol",0,l8,"_templateLiteral",0,u9,"_toLowerCase",0,uN,"_toUpperCase",0,uP,"_transform",0,uY,"_trim",0,uA,"_tuple",0,uB,"_uint32",0,l2,"_uint64",0,l7,"_ulid",0,lU,"_undefined",0,ue,"_union",0,uR,"_unknown",0,un,"_uppercase",0,uS,"_url",0,lO,"_uuid",0,lw,"_uuidv4",0,lI,"_uuidv6",0,lS,"_uuidv7",0,lE,"_void",0,ua,"_xid",0,lA,"_xor",0,uM,"describe",0,dn,"meta",0,di],95732),e.i(95732),e.i(87434),e.s([],94440);var dl=e.i(94440);e.s(["$ZodAny",0,sh,"$ZodArray",0,s$,"$ZodAsyncError",0,eq,"$ZodBase64",0,se,"$ZodBase64URL",0,sr,"$ZodBigInt",0,sd,"$ZodBigIntFormat",0,sc,"$ZodBoolean",0,su,"$ZodCIDRv4",0,o3,"$ZodCIDRv6",0,o7,"$ZodCUID",0,oK,"$ZodCUID2",0,oH,"$ZodCatch",0,s4,"$ZodCheck",0,om,"$ZodCheckBigIntFormat",0,o_,"$ZodCheckEndsWith",0,oU,"$ZodCheckGreaterThan",0,ov,"$ZodCheckIncludes",0,oz,"$ZodCheckLengthEquals",0,oS,"$ZodCheckLessThan",0,og,"$ZodCheckLowerCase",0,oj,"$ZodCheckMaxLength",0,ow,"$ZodCheckMaxSize",0,o$,"$ZodCheckMimeType",0,oP,"$ZodCheckMinLength",0,oI,"$ZodCheckMinSize",0,ox,"$ZodCheckMultipleOf",0,oy,"$ZodCheckNumberFormat",0,ob,"$ZodCheckOverwrite",0,oC,"$ZodCheckProperty",0,oN,"$ZodCheckRegex",0,oO,"$ZodCheckSizeEquals",0,ok,"$ZodCheckStartsWith",0,oT,"$ZodCheckStringFormat",0,oE,"$ZodCheckUpperCase",0,oZ,"$ZodCodec",0,s3,"$ZodCustom",0,ls,"$ZodCustomStringFormat",0,so,"$ZodDate",0,sb,"$ZodDefault",0,sY,"$ZodDiscriminatedUnion",0,sz,"$ZodE164",0,sn,"$ZodEmail",0,oV,"$ZodEmoji",0,oq,"$ZodEncodeError",0,eG,"$ZodEnum",0,sB,"$ZodError",0,tS,"$ZodExactOptional",0,sK,"$ZodFile",0,sV,"$ZodFunction",0,li,"$ZodGUID",0,oB,"$ZodIPv4",0,o6,"$ZodIPv6",0,o5,"$ZodISODate",0,o1,"$ZodISODateTime",0,o0,"$ZodISODuration",0,o4,"$ZodISOTime",0,o2,"$ZodIntersection",0,sT,"$ZodJWT",0,sa,"$ZodKSUID",0,oQ,"$ZodLazy",0,lo,"$ZodLiteral",0,sJ,"$ZodMAC",0,o9,"$ZodMap",0,sR,"$ZodNaN",0,s6,"$ZodNanoID",0,oG,"$ZodNever",0,sv,"$ZodNonOptional",0,s0,"$ZodNull",0,sm,"$ZodNullable",0,sH,"$ZodNumber",0,ss,"$ZodNumberFormat",0,sl,"$ZodObject",0,sI,"$ZodObjectJIT",0,sS,"$ZodOptional",0,sG,"$ZodPipe",0,s5,"$ZodPrefault",0,sQ,"$ZodPreprocess",0,le,"$ZodPromise",0,la,"$ZodReadonly",0,lt,"$ZodRealError",0,tE,"$ZodRecord",0,sD,"$ZodRegistry",0,rd,"$ZodSet",0,sL,"$ZodString",0,oL,"$ZodStringFormat",0,oF,"$ZodSuccess",0,s2,"$ZodSymbol",0,sp,"$ZodTemplateLiteral",0,ln,"$ZodTransform",0,sW,"$ZodTuple",0,sA,"$ZodType",0,oM,"$ZodULID",0,oY,"$ZodURL",0,oW,"$ZodUUID",0,oJ,"$ZodUndefined",0,sf,"$ZodUnion",0,sO,"$ZodUnknown",0,sg,"$ZodVoid",0,sy,"$ZodXID",0,oX,"$ZodXor",0,sZ,"$brand",0,eW,"$constructor",0,eV,"$input",0,ru,"$output",0,rl,"Doc",0,oD,"JSONSchema",0,dl,"JSONSchemaGenerator",0,class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=rf({processors:r5,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return rm(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),rh(this.ctx,e);let{"~standard":r,...n}=rg(this.ctx,e);return n}},"NEVER",0,eJ,"TimePrecision",0,lV,"_any",0,ur,"_array",0,uD,"_base64",0,lL,"_base64url",0,lF,"_bigint",0,l5,"_boolean",0,l4,"_catch",0,u4,"_check",0,dr,"_cidrv4",0,lR,"_cidrv6",0,lM,"_coercedBigint",0,l9,"_coercedBoolean",0,l6,"_coercedDate",0,us,"_coercedNumber",0,lY,"_coercedString",0,l$,"_cuid",0,lz,"_cuid2",0,lT,"_custom",0,u8,"_date",0,uo,"_decode",0,tB,"_decodeAsync",0,tq,"_default",0,u0,"_discriminatedUnion",0,uL,"_e164",0,lB,"_email",0,lx,"_emoji",0,lj,"_encode",0,tL,"_encodeAsync",0,tV,"_endsWith",0,uj,"_enum",0,uq,"_file",0,uH,"_float32",0,lQ,"_float64",0,l0,"_gt",0,uc,"_gte",0,up,"_guid",0,lk,"_includes",0,uE,"_int",0,lX,"_int32",0,l1,"_int64",0,l3,"_intersection",0,uF,"_ipv4",0,lP,"_ipv6",0,lC,"_isoDate",0,lq,"_isoDateTime",0,lW,"_isoDuration",0,lK,"_isoTime",0,lG,"_jwt",0,lJ,"_ksuid",0,lN,"_lazy",0,u3,"_length",0,uk,"_literal",0,uK,"_lowercase",0,uI,"_lt",0,uu,"_lte",0,ud,"_mac",0,lD,"_map",0,uV,"_max",0,ud,"_maxLength",0,u$,"_maxSize",0,uy,"_mime",0,uz,"_min",0,up,"_minLength",0,ux,"_minSize",0,ub,"_multipleOf",0,uv,"_nan",0,ul,"_nanoid",0,lZ,"_nativeEnum",0,uG,"_negative",0,um,"_never",0,ui,"_nonnegative",0,ug,"_nonoptional",0,u1,"_nonpositive",0,uh,"_normalize",0,uU,"_null",0,ut,"_nullable",0,uQ,"_number",0,lH,"_optional",0,uX,"_overwrite",0,uT,"_parse",0,tU,"_parseAsync",0,tN,"_pipe",0,u6,"_positive",0,uf,"_promise",0,u7,"_property",0,uZ,"_readonly",0,u5,"_record",0,uJ,"_refine",0,de,"_regex",0,uw,"_safeDecode",0,tY,"_safeDecodeAsync",0,t1,"_safeEncode",0,tK,"_safeEncodeAsync",0,tQ,"_safeParse",0,tC,"_safeParseAsync",0,tR,"_set",0,uW,"_size",0,u_,"_slugify",0,uC,"_startsWith",0,uO,"_string",0,l_,"_stringFormat",0,ds,"_stringbool",0,da,"_success",0,u2,"_superRefine",0,dt,"_symbol",0,l8,"_templateLiteral",0,u9,"_toLowerCase",0,uN,"_toUpperCase",0,uP,"_transform",0,uY,"_trim",0,uA,"_tuple",0,uB,"_uint32",0,l2,"_uint64",0,l7,"_ulid",0,lU,"_undefined",0,ue,"_union",0,uR,"_unknown",0,un,"_uppercase",0,uS,"_url",0,lO,"_uuid",0,lw,"_uuidv4",0,lI,"_uuidv6",0,lS,"_uuidv7",0,lE,"_void",0,ua,"_xid",0,lA,"_xor",0,uM,"clone",0,tl,"config",0,eH,"createStandardJSONSchemaMethod",0,ry,"createToJSONSchemaMethod",0,rv,"decode",0,tJ,"decodeAsync",0,tG,"describe",0,dn,"encode",0,tF,"encodeAsync",0,tW,"extractDefs",0,rh,"finalize",0,rg,"flattenError",0,tO,"formatError",0,tj,"globalConfig",0,eK,"globalRegistry",0,rp,"initializeContext",0,rf,"isValidBase64",0,o8,"isValidBase64URL",0,st,"isValidJWT",0,si,"locales",0,lb,"meta",0,di,"parse",0,tA,"parseAsync",0,tP,"prettifyError",0,tT,"process",0,rm,"regexes",0,ld,"registry",0,rc,"safeDecode",0,tX,"safeDecodeAsync",0,t2,"safeEncode",0,tH,"safeEncodeAsync",0,t0,"safeParse",0,tD,"safeParseAsync",0,tM,"toDotPath",0,tz,"toJSONSchema",0,r9,"treeifyError",0,tZ,"util",0,lu,"version",0,oR],55766);var du=e.i(55766);e.s(["ZodAny",()=>cU,"ZodArray",()=>cB,"ZodBase64",()=>d8,"ZodBase64URL",()=>ct,"ZodBigInt",()=>cx,"ZodBigIntFormat",()=>cw,"ZodBoolean",()=>c_,"ZodCIDRv4",()=>d5,"ZodCIDRv6",()=>d3,"ZodCUID",()=>dB,"ZodCUID2",()=>dV,"ZodCatch",()=>pO,"ZodCodec",()=>pA,"ZodCustom",()=>pG,"ZodCustomStringFormat",()=>cs,"ZodDate",()=>cL,"ZodDefault",()=>p_,"ZodDiscriminatedUnion",()=>c0,"ZodE164",()=>cn,"ZodEmail",()=>dE,"ZodEmoji",()=>dR,"ZodEnum",()=>pi,"ZodExactOptional",()=>ph,"ZodFile",()=>pu,"ZodFunction",()=>pW,"ZodGUID",()=>dj,"ZodIPv4",()=>dQ,"ZodIPv6",()=>d4,"ZodIntersection",()=>c2,"ZodJWT",()=>ca,"ZodKSUID",()=>dY,"ZodLazy",()=>pF,"ZodLiteral",()=>ps,"ZodMAC",()=>d1,"ZodMap",()=>pe,"ZodNaN",()=>pZ,"ZodNanoID",()=>dL,"ZodNever",()=>cC,"ZodNonOptional",()=>pw,"ZodNull",()=>cz,"ZodNullable",()=>pv,"ZodNumber",()=>cp,"ZodNumberFormat",()=>cm,"ZodObject",()=>cW,"ZodOptional",()=>pf,"ZodPipe",()=>pT,"ZodPrefault",()=>px,"ZodPreprocess",()=>pC,"ZodPromise",()=>pJ,"ZodReadonly",()=>pD,"ZodRecord",()=>c9,"ZodSet",()=>pr,"ZodString",()=>dw,"ZodStringFormat",()=>dS,"ZodSuccess",()=>pS,"ZodSymbol",()=>cE,"ZodTemplateLiteral",()=>pM,"ZodTransform",()=>pc,"ZodTuple",()=>c6,"ZodType",()=>dx,"ZodULID",()=>dq,"ZodURL",()=>dP,"ZodUUID",()=>dz,"ZodUndefined",()=>cj,"ZodUnion",()=>cH,"ZodUnknown",()=>cN,"ZodVoid",()=>cR,"ZodXID",()=>dK,"ZodXor",()=>cX,"_ZodString",()=>dk,"_default",()=>p$,"_function",()=>pq,"any",()=>cA,"array",()=>cJ,"base64",()=>ce,"base64url",()=>cr,"bigint",()=>ck,"boolean",()=>c$,"catch",()=>pj,"check",()=>pK,"cidrv4",()=>d9,"cidrv6",()=>d7,"codec",()=>pN,"cuid",()=>dJ,"cuid2",()=>dW,"custom",()=>pH,"date",()=>cF,"describe",()=>pQ,"discriminatedUnion",()=>c1,"e164",()=>ci,"email",()=>dO,"emoji",()=>dM,"enum",()=>pa,"exactOptional",()=>pg,"file",()=>pd,"float32",()=>cg,"float64",()=>cv,"function",()=>pq,"guid",()=>dZ,"hash",()=>cc,"hex",()=>cd,"hostname",()=>cu,"httpUrl",()=>dD,"instanceof",()=>p1,"int",()=>ch,"int32",()=>cy,"int64",()=>cI,"intersection",()=>c4,"invertCodec",()=>pP,"ipv4",()=>d0,"ipv6",()=>d6,"json",()=>p4,"jwt",()=>co,"keyof",()=>cV,"ksuid",()=>dX,"lazy",()=>pB,"literal",()=>pl,"looseObject",()=>cK,"looseRecord",()=>c8,"mac",()=>d2,"map",()=>pt,"meta",()=>p0,"nan",()=>pz,"nanoid",()=>dF,"nativeEnum",()=>po,"never",()=>cD,"nonoptional",()=>pI,"null",()=>cT,"nullable",()=>py,"nullish",()=>pb,"number",()=>cf,"object",()=>cq,"optional",()=>pm,"partialRecord",()=>c7,"pipe",()=>pU,"prefault",()=>pk,"preprocess",()=>p6,"promise",()=>pV,"readonly",()=>pR,"record",()=>c3,"refine",()=>pY,"set",()=>pn,"strictObject",()=>cG,"string",()=>dI,"stringFormat",()=>cl,"stringbool",()=>p2,"success",()=>pE,"superRefine",()=>pX,"symbol",()=>cO,"templateLiteral",()=>pL,"transform",()=>pp,"tuple",()=>c5,"uint32",()=>cb,"uint64",()=>cS,"ulid",()=>dG,"undefined",()=>cZ,"union",()=>cY,"unknown",()=>cP,"url",()=>dC,"uuid",()=>dT,"uuidv4",()=>dU,"uuidv6",()=>dA,"uuidv7",()=>dN,"void",()=>cM,"xid",()=>dH,"xor",()=>cQ],498);var dd=ld,dc=lu;e.s(["ZodISODate",()=>dm,"ZodISODateTime",()=>dp,"ZodISODuration",()=>dy,"ZodISOTime",()=>dg,"date",()=>dh,"datetime",()=>df,"duration",()=>db,"time",()=>dv],27621);let dp=eV("ZodISODateTime",(e,t)=>{o0.init(e,t),dS.init(e,t)});function df(e){return lW(dp,e)}let dm=eV("ZodISODate",(e,t)=>{o1.init(e,t),dS.init(e,t)});function dh(e){return lq(dm,e)}let dg=eV("ZodISOTime",(e,t)=>{o2.init(e,t),dS.init(e,t)});function dv(e){return lG(dg,e)}let dy=eV("ZodISODuration",(e,t)=>{o4.init(e,t),dS.init(e,t)});function db(e){return lK(dy,e)}let d_=new WeakMap;function d$(e,t,r){let n=Object.getPrototypeOf(e),i=d_.get(n);if(i||(i=new Set,d_.set(n,i)),!i.has(t))for(let e in i.add(t),r){let t=r[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,get(){let r=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:r}),r},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let dx=eV("ZodType",(e,t)=>(oM.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ry(e,"input"),output:ry(e,"output")}}),e.toJSONSchema=rv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,r)=>t9(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>t7(e,t,r),e.parseAsync=async(t,r)=>t3(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>t8(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>re(e,t,r),e.decode=(t,r)=>rt(e,t,r),e.encodeAsync=async(t,r)=>rr(e,t,r),e.decodeAsync=async(t,r)=>rn(e,t,r),e.safeEncode=(t,r)=>ri(e,t,r),e.safeDecode=(t,r)=>ra(e,t,r),e.safeEncodeAsync=async(t,r)=>ro(e,t,r),e.safeDecodeAsync=async(t,r)=>rs(e,t,r),d$(e,"ZodType",{check(...e){let t=this.def;return this.clone(dc.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return tl(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(pY(e,t))},superRefine(e,t){return this.check(pX(e,t))},overwrite(e){return this.check(uT(e))},optional(){return pm(this)},exactOptional(){return pg(this)},nullable(){return py(this)},nullish(){return pm(py(this))},nonoptional(e){return pI(this,e)},array(){return cJ(this)},or(e){return cY([this,e])},and(e){return c4(this,e)},transform(e){return pU(this,pp(e))},default(e){return p$(this,e)},prefault(e){return pk(this,e)},catch(e){return pj(this,e)},pipe(e){return pU(this,e)},readonly(){return pR(this)},describe(e){let t=this.clone();return rp.add(t,{description:e}),t},meta(...e){if(0===e.length)return rp.get(this);let t=this.clone();return rp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>rp.get(e)?.description,configurable:!0}),e)),dk=eV("_ZodString",(e,t)=>{oL.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r_(e,t,r,n);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,d$(e,"_ZodString",{regex(...e){return this.check(uw(...e))},includes(...e){return this.check(uE(...e))},startsWith(...e){return this.check(uO(...e))},endsWith(...e){return this.check(uj(...e))},min(...e){return this.check(ux(...e))},max(...e){return this.check(u$(...e))},length(...e){return this.check(uk(...e))},nonempty(...e){return this.check(ux(1,...e))},lowercase(e){return this.check(uI(e))},uppercase(e){return this.check(uS(e))},trim(){return this.check(uA())},normalize(...e){return this.check(uU(...e))},toLowerCase(){return this.check(uN())},toUpperCase(){return this.check(uP())},slugify(){return this.check(uC())}})}),dw=eV("ZodString",(e,t)=>{oL.init(e,t),dk.init(e,t),e.email=t=>e.check(lx(dE,t)),e.url=t=>e.check(lO(dP,t)),e.jwt=t=>e.check(lJ(ca,t)),e.emoji=t=>e.check(lj(dR,t)),e.guid=t=>e.check(lk(dj,t)),e.uuid=t=>e.check(lw(dz,t)),e.uuidv4=t=>e.check(lI(dz,t)),e.uuidv6=t=>e.check(lS(dz,t)),e.uuidv7=t=>e.check(lE(dz,t)),e.nanoid=t=>e.check(lZ(dL,t)),e.guid=t=>e.check(lk(dj,t)),e.cuid=t=>e.check(lz(dB,t)),e.cuid2=t=>e.check(lT(dV,t)),e.ulid=t=>e.check(lU(dq,t)),e.base64=t=>e.check(lL(d8,t)),e.base64url=t=>e.check(lF(ct,t)),e.xid=t=>e.check(lA(dK,t)),e.ksuid=t=>e.check(lN(dY,t)),e.ipv4=t=>e.check(lP(dQ,t)),e.ipv6=t=>e.check(lC(d4,t)),e.cidrv4=t=>e.check(lR(d5,t)),e.cidrv6=t=>e.check(lM(d3,t)),e.e164=t=>e.check(lB(cn,t)),e.datetime=t=>e.check(df(t)),e.date=t=>e.check(dh(t)),e.time=t=>e.check(dv(t)),e.duration=t=>e.check(db(t))});function dI(e){return l_(dw,e)}let dS=eV("ZodStringFormat",(e,t)=>{oF.init(e,t),dk.init(e,t)}),dE=eV("ZodEmail",(e,t)=>{oV.init(e,t),dS.init(e,t)});function dO(e){return lx(dE,e)}let dj=eV("ZodGUID",(e,t)=>{oB.init(e,t),dS.init(e,t)});function dZ(e){return lk(dj,e)}let dz=eV("ZodUUID",(e,t)=>{oJ.init(e,t),dS.init(e,t)});function dT(e){return lw(dz,e)}function dU(e){return lI(dz,e)}function dA(e){return lS(dz,e)}function dN(e){return lE(dz,e)}let dP=eV("ZodURL",(e,t)=>{oW.init(e,t),dS.init(e,t)});function dC(e){return lO(dP,e)}function dD(e){return lO(dP,{protocol:dd.httpProtocol,hostname:dd.domain,...dc.normalizeParams(e)})}let dR=eV("ZodEmoji",(e,t)=>{oq.init(e,t),dS.init(e,t)});function dM(e){return lj(dR,e)}let dL=eV("ZodNanoID",(e,t)=>{oG.init(e,t),dS.init(e,t)});function dF(e){return lZ(dL,e)}let dB=eV("ZodCUID",(e,t)=>{oK.init(e,t),dS.init(e,t)});function dJ(e){return lz(dB,e)}let dV=eV("ZodCUID2",(e,t)=>{oH.init(e,t),dS.init(e,t)});function dW(e){return lT(dV,e)}let dq=eV("ZodULID",(e,t)=>{oY.init(e,t),dS.init(e,t)});function dG(e){return lU(dq,e)}let dK=eV("ZodXID",(e,t)=>{oX.init(e,t),dS.init(e,t)});function dH(e){return lA(dK,e)}let dY=eV("ZodKSUID",(e,t)=>{oQ.init(e,t),dS.init(e,t)});function dX(e){return lN(dY,e)}let dQ=eV("ZodIPv4",(e,t)=>{o6.init(e,t),dS.init(e,t)});function d0(e){return lP(dQ,e)}let d1=eV("ZodMAC",(e,t)=>{o9.init(e,t),dS.init(e,t)});function d2(e){return lD(d1,e)}let d4=eV("ZodIPv6",(e,t)=>{o5.init(e,t),dS.init(e,t)});function d6(e){return lC(d4,e)}let d5=eV("ZodCIDRv4",(e,t)=>{o3.init(e,t),dS.init(e,t)});function d9(e){return lR(d5,e)}let d3=eV("ZodCIDRv6",(e,t)=>{o7.init(e,t),dS.init(e,t)});function d7(e){return lM(d3,e)}let d8=eV("ZodBase64",(e,t)=>{se.init(e,t),dS.init(e,t)});function ce(e){return lL(d8,e)}let ct=eV("ZodBase64URL",(e,t)=>{sr.init(e,t),dS.init(e,t)});function cr(e){return lF(ct,e)}let cn=eV("ZodE164",(e,t)=>{sn.init(e,t),dS.init(e,t)});function ci(e){return lB(cn,e)}let ca=eV("ZodJWT",(e,t)=>{sa.init(e,t),dS.init(e,t)});function co(e){return lJ(ca,e)}let cs=eV("ZodCustomStringFormat",(e,t)=>{so.init(e,t),dS.init(e,t)});function cl(e,t,r={}){return ds(cs,e,t,r)}function cu(e){return ds(cs,"hostname",dd.hostname,e)}function cd(e){return ds(cs,"hex",dd.hex,e)}function cc(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,i=dd[n];if(!i)throw Error(`Unrecognized hash format: ${n}`);return ds(cs,n,i,t)}let cp=eV("ZodNumber",(e,t)=>{ss.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r$(e,t,r,n),d$(e,"ZodNumber",{gt(e,t){return this.check(uc(e,t))},gte(e,t){return this.check(up(e,t))},min(e,t){return this.check(up(e,t))},lt(e,t){return this.check(uu(e,t))},lte(e,t){return this.check(ud(e,t))},max(e,t){return this.check(ud(e,t))},int(e){return this.check(ch(e))},safe(e){return this.check(ch(e))},positive(e){return this.check(uc(0,e))},nonnegative(e){return this.check(up(0,e))},negative(e){return this.check(uu(0,e))},nonpositive(e){return this.check(ud(0,e))},multipleOf(e,t){return this.check(uv(e,t))},step(e,t){return this.check(uv(e,t))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function cf(e){return lH(cp,e)}let cm=eV("ZodNumberFormat",(e,t)=>{sl.init(e,t),cp.init(e,t)});function ch(e){return lX(cm,e)}function cg(e){return lQ(cm,e)}function cv(e){return l0(cm,e)}function cy(e){return l1(cm,e)}function cb(e){return l2(cm,e)}let c_=eV("ZodBoolean",(e,t)=>{su.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rx(e,t,r,n)});function c$(e){return l4(c_,e)}let cx=eV("ZodBigInt",(e,t)=>{sd.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rk(e,t,r,n),e.gte=(t,r)=>e.check(up(t,r)),e.min=(t,r)=>e.check(up(t,r)),e.gt=(t,r)=>e.check(uc(t,r)),e.gte=(t,r)=>e.check(up(t,r)),e.min=(t,r)=>e.check(up(t,r)),e.lt=(t,r)=>e.check(uu(t,r)),e.lte=(t,r)=>e.check(ud(t,r)),e.max=(t,r)=>e.check(ud(t,r)),e.positive=t=>e.check(uc(BigInt(0),t)),e.negative=t=>e.check(uu(BigInt(0),t)),e.nonpositive=t=>e.check(ud(BigInt(0),t)),e.nonnegative=t=>e.check(up(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(uv(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function ck(e){return l5(cx,e)}let cw=eV("ZodBigIntFormat",(e,t)=>{sc.init(e,t),cx.init(e,t)});function cI(e){return l3(cw,e)}function cS(e){return l7(cw,e)}let cE=eV("ZodSymbol",(e,t)=>{sp.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rw(e,t,r,n)});function cO(e){return l8(cE,e)}let cj=eV("ZodUndefined",(e,t)=>{sf.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rS(e,t,r,n)});function cZ(e){return ue(cj,e)}let cz=eV("ZodNull",(e,t)=>{sm.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rI(e,t,r,n)});function cT(e){return ut(cz,e)}let cU=eV("ZodAny",(e,t)=>{sh.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rj(e,t,r,n)});function cA(){return ur(cU)}let cN=eV("ZodUnknown",(e,t)=>{sg.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rZ(e,t,r,n)});function cP(){return un(cN)}let cC=eV("ZodNever",(e,t)=>{sv.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rO(e,t,r,n)});function cD(e){return ui(cC,e)}let cR=eV("ZodVoid",(e,t)=>{sy.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rE(e,t,r,n)});function cM(e){return ua(cR,e)}let cL=eV("ZodDate",(e,t)=>{sb.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rz(e,t,r,n),e.min=(t,r)=>e.check(up(t,r)),e.max=(t,r)=>e.check(ud(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function cF(e){return uo(cL,e)}let cB=eV("ZodArray",(e,t)=>{s$.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rB(e,t,r,n),e.element=t.element,d$(e,"ZodArray",{min(e,t){return this.check(ux(e,t))},nonempty(e){return this.check(ux(1,e))},max(e,t){return this.check(u$(e,t))},length(e,t){return this.check(uk(e,t))},unwrap(){return this.element}})});function cJ(e,t){return uD(cB,e,t)}function cV(e){return pa(Object.keys(e._zod.def.shape))}let cW=eV("ZodObject",(e,t)=>{sS.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rJ(e,t,r,n),dc.defineLazy(e,"shape",()=>t.shape),d$(e,"ZodObject",{keyof(){return pa(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:cP()})},loose(){return this.clone({...this._zod.def,catchall:cP()})},strict(){return this.clone({...this._zod.def,catchall:cD()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return dc.extend(this,e)},safeExtend(e){return dc.safeExtend(this,e)},merge(e){return dc.merge(this,e)},pick(e){return dc.pick(this,e)},omit(e){return dc.omit(this,e)},partial(...e){return dc.partial(pf,this,e[0])},required(...e){return dc.required(pw,this,e[0])}})});function cq(e,t){return new cW({type:"object",shape:e??{},...dc.normalizeParams(t)})}function cG(e,t){return new cW({type:"object",shape:e,catchall:cD(),...dc.normalizeParams(t)})}function cK(e,t){return new cW({type:"object",shape:e,catchall:cP(),...dc.normalizeParams(t)})}let cH=eV("ZodUnion",(e,t)=>{sO.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rV(e,t,r,n),e.options=t.options});function cY(e,t){return new cH({type:"union",options:e,...dc.normalizeParams(t)})}let cX=eV("ZodXor",(e,t)=>{cH.init(e,t),sZ.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rV(e,t,r,n),e.options=t.options});function cQ(e,t){return new cX({type:"union",options:e,inclusive:!1,...dc.normalizeParams(t)})}let c0=eV("ZodDiscriminatedUnion",(e,t)=>{cH.init(e,t),sz.init(e,t)});function c1(e,t,r){return new c0({type:"union",options:t,discriminator:e,...dc.normalizeParams(r)})}let c2=eV("ZodIntersection",(e,t)=>{sT.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rW(e,t,r,n)});function c4(e,t){return new c2({type:"intersection",left:e,right:t})}let c6=eV("ZodTuple",(e,t)=>{sA.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rq(e,t,r,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function c5(e,t,r){let n=t instanceof oM,i=n?r:t;return new c6({type:"tuple",items:e,rest:n?t:null,...dc.normalizeParams(i)})}let c9=eV("ZodRecord",(e,t)=>{sD.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rG(e,t,r,n),e.keyType=t.keyType,e.valueType=t.valueType});function c3(e,t,r){return new c9(t&&t._zod?{type:"record",keyType:e,valueType:t,...dc.normalizeParams(r)}:{type:"record",keyType:dI(),valueType:e,...dc.normalizeParams(t)})}function c7(e,t,r){let n=tl(e);return n._zod.values=void 0,new c9({type:"record",keyType:n,valueType:t,...dc.normalizeParams(r)})}function c8(e,t,r){return new c9({type:"record",keyType:e,valueType:t,mode:"loose",...dc.normalizeParams(r)})}let pe=eV("ZodMap",(e,t)=>{sR.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rL(e,t,r,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(ub(...t)),e.nonempty=t=>e.check(ub(1,t)),e.max=(...t)=>e.check(uy(...t)),e.size=(...t)=>e.check(u_(...t))});function pt(e,t,r){return new pe({type:"map",keyType:e,valueType:t,...dc.normalizeParams(r)})}let pr=eV("ZodSet",(e,t)=>{sL.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rF(e,t,r,n),e.min=(...t)=>e.check(ub(...t)),e.nonempty=t=>e.check(ub(1,t)),e.max=(...t)=>e.check(uy(...t)),e.size=(...t)=>e.check(u_(...t))});function pn(e,t){return new pr({type:"set",valueType:e,...dc.normalizeParams(t)})}let pi=eV("ZodEnum",(e,t)=>{sB.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rT(e,t,r,n),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new pi({...t,checks:[],...dc.normalizeParams(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new pi({...t,checks:[],...dc.normalizeParams(n),entries:i})}});function pa(e,t){return new pi({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...dc.normalizeParams(t)})}function po(e,t){return new pi({type:"enum",entries:e,...dc.normalizeParams(t)})}let ps=eV("ZodLiteral",(e,t)=>{sJ.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rU(e,t,r,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function pl(e,t){return new ps({type:"literal",values:Array.isArray(e)?e:[e],...dc.normalizeParams(t)})}let pu=eV("ZodFile",(e,t)=>{sV.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rP(e,t,r,n),e.min=(t,r)=>e.check(ub(t,r)),e.max=(t,r)=>e.check(uy(t,r)),e.mime=(t,r)=>e.check(uz(Array.isArray(t)?t:[t],r))});function pd(e){return uH(pu,e)}let pc=eV("ZodTransform",(e,t)=>{sW.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rM(e,t,r,n),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new eG(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(dc.issue(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(dc.issue(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}});function pp(e){return new pc({type:"transform",transform:e})}let pf=eV("ZodOptional",(e,t)=>{sG.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r4(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pm(e){return new pf({type:"optional",innerType:e})}let ph=eV("ZodExactOptional",(e,t)=>{sK.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r4(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pg(e){return new ph({type:"optional",innerType:e})}let pv=eV("ZodNullable",(e,t)=>{sH.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rK(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function py(e){return new pv({type:"nullable",innerType:e})}function pb(e){return pm(py(e))}let p_=eV("ZodDefault",(e,t)=>{sY.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rY(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function p$(e,t){return new p_({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():dc.shallowClone(t)}})}let px=eV("ZodPrefault",(e,t)=>{sQ.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rX(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pk(e,t){return new px({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():dc.shallowClone(t)}})}let pw=eV("ZodNonOptional",(e,t)=>{s0.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rH(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pI(e,t){return new pw({type:"nonoptional",innerType:e,...dc.normalizeParams(t)})}let pS=eV("ZodSuccess",(e,t)=>{s2.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rC(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pE(e){return new pS({type:"success",innerType:e})}let pO=eV("ZodCatch",(e,t)=>{s4.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rQ(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pj(e,t){return new pO({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let pZ=eV("ZodNaN",(e,t)=>{s6.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rA(e,t,r,n)});function pz(e){return ul(pZ,e)}let pT=eV("ZodPipe",(e,t)=>{s5.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r0(e,t,r,n),e.in=t.in,e.out=t.out});function pU(e,t){return new pT({type:"pipe",in:e,out:t})}let pA=eV("ZodCodec",(e,t)=>{pT.init(e,t),s3.init(e,t)});function pN(e,t,r){return new pA({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function pP(e){let t=e._zod.def;return new pA({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}let pC=eV("ZodPreprocess",(e,t)=>{pT.init(e,t),le.init(e,t)}),pD=eV("ZodReadonly",(e,t)=>{lt.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r1(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pR(e){return new pD({type:"readonly",innerType:e})}let pM=eV("ZodTemplateLiteral",(e,t)=>{ln.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rN(e,t,r,n)});function pL(e,t){return new pM({type:"template_literal",parts:e,...dc.normalizeParams(t)})}let pF=eV("ZodLazy",(e,t)=>{lo.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r6(e,t,r,n),e.unwrap=()=>e._zod.def.getter()});function pB(e){return new pF({type:"lazy",getter:e})}let pJ=eV("ZodPromise",(e,t)=>{la.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>r2(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function pV(e){return new pJ({type:"promise",innerType:e})}let pW=eV("ZodFunction",(e,t)=>{li.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rR(e,t,r,n)});function pq(e){return new pW({type:"function",input:Array.isArray(e?.input)?c5(e?.input):e?.input??cJ(cP()),output:e?.output??cP()})}let pG=eV("ZodCustom",(e,t)=>{ls.init(e,t),dx.init(e,t),e._zod.processJSONSchema=(t,r,n)=>rD(e,t,r,n)});function pK(e){let t=new om({check:"custom"});return t._zod.check=e,t}function pH(e,t){return u8(pG,e??(()=>!0),t)}function pY(e,t={}){return de(pG,e,t)}function pX(e,t){return dt(e,t)}let pQ=dn,p0=di;function p1(e,t={}){let r=new pG({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...dc.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:r,path:[...r._zod.def.path??[]]})},r}let p2=(...e)=>da({Codec:pA,Boolean:c_,String:dw},...e);function p4(e){let t=pB(()=>cY([dI(e),cf(),c$(),cT(),cJ(t),c3(dI(),t)]));return t}function p6(e,t){return new pC({type:"pipe",in:pp(e),out:t})}var p5=e.i(498);e.s([],46118),e.i(46118),e.s(["endsWith",0,uj,"gt",0,uc,"gte",0,up,"includes",0,uE,"length",0,uk,"lowercase",0,uI,"lt",0,uu,"lte",0,ud,"maxLength",0,u$,"maxSize",0,uy,"mime",0,uz,"minLength",0,ux,"minSize",0,ub,"multipleOf",0,uv,"negative",0,um,"nonnegative",0,ug,"nonpositive",0,uh,"normalize",0,uU,"overwrite",0,uT,"positive",0,uf,"property",0,uZ,"regex",0,uw,"size",0,u_,"slugify",0,uC,"startsWith",0,uO,"toLowerCase",0,uN,"toUpperCase",0,uP,"trim",0,uA,"uppercase",0,uS],55763);var p9=e.i(55763);e.i(96223),e.i(84029);let p3={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function p7(e){eH({customError:e})}function p8(){return eH().customError}z||(z={}),e.s(["ZodFirstPartyTypeKind",0,z,"ZodIssueCode",0,p3,"getErrorMap",0,p8,"setErrorMap",0,p7],24162),e.i(24162),e.s(["$brand",0,eW,"ZodFirstPartyTypeKind",0,z,"ZodIssueCode",0,p3,"config",0,eH,"getErrorMap",0,p8,"setErrorMap",0,p7],27748),e.i(27748);var dd=ld,dc=lu,fe=e.i(27621);let ft={...p5,...p9,iso:fe},fr=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);e.s(["bigint",0,function(e){return l9(cx,e)},"boolean",0,function(e){return l6(c_,e)},"date",0,function(e){return us(cL,e)},"number",0,function(e){return lY(cp,e)},"string",0,function(e){return l$(dw,e)}],87879);var fn=e.i(87879);e.s(["$brand",0,eW,"$input",0,ru,"$output",0,rl,"NEVER",0,eJ,"TimePrecision",0,lV,"ZodAny",0,cU,"ZodArray",0,cB,"ZodBase64",0,d8,"ZodBase64URL",0,ct,"ZodBigInt",0,cx,"ZodBigIntFormat",0,cw,"ZodBoolean",0,c_,"ZodCIDRv4",0,d5,"ZodCIDRv6",0,d3,"ZodCUID",0,dB,"ZodCUID2",0,dV,"ZodCatch",0,pO,"ZodCodec",0,pA,"ZodCustom",0,pG,"ZodCustomStringFormat",0,cs,"ZodDate",0,cL,"ZodDefault",0,p_,"ZodDiscriminatedUnion",0,c0,"ZodE164",0,cn,"ZodEmail",0,dE,"ZodEmoji",0,dR,"ZodEnum",0,pi,"ZodError",0,t6,"ZodExactOptional",0,ph,"ZodFile",0,pu,"ZodFirstPartyTypeKind",0,z,"ZodFunction",0,pW,"ZodGUID",0,dj,"ZodIPv4",0,dQ,"ZodIPv6",0,d4,"ZodISODate",0,dm,"ZodISODateTime",0,dp,"ZodISODuration",0,dy,"ZodISOTime",0,dg,"ZodIntersection",0,c2,"ZodIssueCode",0,p3,"ZodJWT",0,ca,"ZodKSUID",0,dY,"ZodLazy",0,pF,"ZodLiteral",0,ps,"ZodMAC",0,d1,"ZodMap",0,pe,"ZodNaN",0,pZ,"ZodNanoID",0,dL,"ZodNever",0,cC,"ZodNonOptional",0,pw,"ZodNull",0,cz,"ZodNullable",0,pv,"ZodNumber",0,cp,"ZodNumberFormat",0,cm,"ZodObject",0,cW,"ZodOptional",0,pf,"ZodPipe",0,pT,"ZodPrefault",0,px,"ZodPreprocess",0,pC,"ZodPromise",0,pJ,"ZodReadonly",0,pD,"ZodRealError",0,t5,"ZodRecord",0,c9,"ZodSet",0,pr,"ZodString",0,dw,"ZodStringFormat",0,dS,"ZodSuccess",0,pS,"ZodSymbol",0,cE,"ZodTemplateLiteral",0,pM,"ZodTransform",0,pc,"ZodTuple",0,c6,"ZodType",0,dx,"ZodULID",0,dq,"ZodURL",0,dP,"ZodUUID",0,dz,"ZodUndefined",0,cj,"ZodUnion",0,cH,"ZodUnknown",0,cN,"ZodVoid",0,cR,"ZodXID",0,dK,"ZodXor",0,cX,"_ZodString",0,dk,"_default",0,p$,"_function",0,pq,"any",0,cA,"array",0,cJ,"base64",0,ce,"base64url",0,cr,"bigint",0,ck,"boolean",0,c$,"catch",0,pj,"check",0,pK,"cidrv4",0,d9,"cidrv6",0,d7,"clone",0,tl,"codec",0,pN,"coerce",0,fn,"config",0,eH,"core",0,du,"cuid",0,dJ,"cuid2",0,dW,"custom",0,pH,"date",0,cF,"decode",0,rt,"decodeAsync",0,rn,"describe",0,pQ,"discriminatedUnion",0,c1,"e164",0,ci,"email",0,dO,"emoji",0,dM,"encode",0,re,"encodeAsync",0,rr,"endsWith",0,uj,"enum",0,pa,"exactOptional",0,pg,"file",0,pd,"flattenError",0,tO,"float32",0,cg,"float64",0,cv,"formatError",0,tj,"fromJSONSchema",0,function(e,t){var r,n;let i,a;if("boolean"==typeof e)return e?ft.any():ft.never();try{i=JSON.parse(JSON.stringify(e))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o={version:(r=i,n=t?.defaultTarget,"https://json-schema.org/draft/2020-12/schema"===(a=r.$schema)?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===a?"draft-7":"http://json-schema.org/draft-04/schema#"===a?"draft-4":n??"draft-2020-12"),defs:i.$defs||i.definitions||{},refs:new Map,processing:new Set,rootSchema:i,registry:t?.registry??rp};return function e(t,r){if("boolean"==typeof t)return t?ft.any():ft.never();let n=function t(r,n){let i;if(void 0!==r.not){if("object"==typeof r.not&&0===Object.keys(r.not).length)return ft.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==r.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==r.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==r.if||void 0!==r.then||void 0!==r.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==r.dependentSchemas||void 0!==r.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(r.$ref){let t=r.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return ft.lazy(()=>{if(!n.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);let i=e(function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(0===r.length)return t.rootSchema;let n="draft-2020-12"===t.version?"$defs":"definitions";if(r[0]===n){let n=r[1];if(!n||!t.defs[n])throw Error(`Reference not found: ${e}`);return t.defs[n]}throw Error(`Reference not found: ${e}`)}(t,n),n);return n.refs.set(t,i),n.processing.delete(t),i}if(void 0!==r.enum){let e=r.enum;if("openapi-3.0"===n.version&&!0===r.nullable&&1===e.length&&null===e[0])return ft.null();if(0===e.length)return ft.never();if(1===e.length)return ft.literal(e[0]);if(e.every(e=>"string"==typeof e))return ft.enum(e);let t=e.map(e=>ft.literal(e));return t.length<2?t[0]:ft.union([t[0],t[1],...t.slice(2)])}if(void 0!==r.const)return ft.literal(r.const);let a=r.type;if(Array.isArray(a)){let e=a.map(e=>t({...r,type:e},n));return 0===e.length?ft.never():1===e.length?e[0]:ft.union(e)}if(!a)return ft.any();switch(a){case"string":{let e=ft.string();if(r.format){let t=r.format;"email"===t?e=e.check(ft.email()):"uri"===t||"uri-reference"===t?e=e.check(ft.url()):"uuid"===t||"guid"===t?e=e.check(ft.uuid()):"date-time"===t?e=e.check(ft.iso.datetime()):"date"===t?e=e.check(ft.iso.date()):"time"===t?e=e.check(ft.iso.time()):"duration"===t?e=e.check(ft.iso.duration()):"ipv4"===t?e=e.check(ft.ipv4()):"ipv6"===t?e=e.check(ft.ipv6()):"mac"===t?e=e.check(ft.mac()):"cidr"===t?e=e.check(ft.cidrv4()):"cidr-v6"===t?e=e.check(ft.cidrv6()):"base64"===t?e=e.check(ft.base64()):"base64url"===t?e=e.check(ft.base64url()):"e164"===t?e=e.check(ft.e164()):"jwt"===t?e=e.check(ft.jwt()):"emoji"===t?e=e.check(ft.emoji()):"nanoid"===t?e=e.check(ft.nanoid()):"cuid"===t?e=e.check(ft.cuid()):"cuid2"===t?e=e.check(ft.cuid2()):"ulid"===t?e=e.check(ft.ulid()):"xid"===t?e=e.check(ft.xid()):"ksuid"===t&&(e=e.check(ft.ksuid()))}"number"==typeof r.minLength&&(e=e.min(r.minLength)),"number"==typeof r.maxLength&&(e=e.max(r.maxLength)),r.pattern&&(e=e.regex(new RegExp(r.pattern))),i=e;break}case"number":case"integer":{let e="integer"===a?ft.number().int():ft.number();"number"==typeof r.minimum&&(e=e.min(r.minimum)),"number"==typeof r.maximum&&(e=e.max(r.maximum)),"number"==typeof r.exclusiveMinimum?e=e.gt(r.exclusiveMinimum):!0===r.exclusiveMinimum&&"number"==typeof r.minimum&&(e=e.gt(r.minimum)),"number"==typeof r.exclusiveMaximum?e=e.lt(r.exclusiveMaximum):!0===r.exclusiveMaximum&&"number"==typeof r.maximum&&(e=e.lt(r.maximum)),"number"==typeof r.multipleOf&&(e=e.multipleOf(r.multipleOf)),i=e;break}case"boolean":i=ft.boolean();break;case"null":i=ft.null();break;case"object":{let t={},a=r.properties||{},o=new Set(r.required||[]);for(let[r,i]of Object.entries(a)){let a=e(i,n);t[r]=o.has(r)?a:a.optional()}if(r.propertyNames){let a=e(r.propertyNames,n),o=r.additionalProperties&&"object"==typeof r.additionalProperties?e(r.additionalProperties,n):ft.any();if(0===Object.keys(t).length){i=ft.record(a,o);break}let s=ft.object(t).passthrough(),l=ft.looseRecord(a,o);i=ft.intersection(s,l);break}if(r.patternProperties){let a=r.patternProperties,o=Object.keys(a),s=[];for(let t of o){let r=e(a[t],n),i=ft.string().regex(new RegExp(t));s.push(ft.looseRecord(i,r))}let l=[];if(Object.keys(t).length>0&&l.push(ft.object(t).passthrough()),l.push(...s),0===l.length)i=ft.object({}).passthrough();else if(1===l.length)i=l[0];else{let e=ft.intersection(l[0],l[1]);for(let t=2;t<l.length;t++)e=ft.intersection(e,l[t]);i=e}break}let s=ft.object(t);i=!1===r.additionalProperties?s.strict():"object"==typeof r.additionalProperties?s.catchall(e(r.additionalProperties,n)):s.passthrough();break}case"array":{let t=r.prefixItems,a=r.items;if(t&&Array.isArray(t)){let o=t.map(t=>e(t,n)),s=a&&"object"==typeof a&&!Array.isArray(a)?e(a,n):void 0;i=s?ft.tuple(o).rest(s):ft.tuple(o),"number"==typeof r.minItems&&(i=i.check(ft.minLength(r.minItems))),"number"==typeof r.maxItems&&(i=i.check(ft.maxLength(r.maxItems)))}else if(Array.isArray(a)){let t=a.map(t=>e(t,n)),o=r.additionalItems&&"object"==typeof r.additionalItems?e(r.additionalItems,n):void 0;i=o?ft.tuple(t).rest(o):ft.tuple(t),"number"==typeof r.minItems&&(i=i.check(ft.minLength(r.minItems))),"number"==typeof r.maxItems&&(i=i.check(ft.maxLength(r.maxItems)))}else if(void 0!==a){let t=e(a,n),o=ft.array(t);"number"==typeof r.minItems&&(o=o.min(r.minItems)),"number"==typeof r.maxItems&&(o=o.max(r.maxItems)),i=o}else i=ft.array(ft.any());break}default:throw Error(`Unsupported type: ${a}`)}return i}(t,r),i=t.type||void 0!==t.enum||void 0!==t.const;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(t=>e(t,r)),o=ft.union(a);n=i?ft.intersection(n,o):o}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(t=>e(t,r)),o=ft.xor(a);n=i?ft.intersection(n,o):o}if(t.allOf&&Array.isArray(t.allOf))if(0===t.allOf.length)n=i?n:ft.any();else{let a=i?n:e(t.allOf[0],r),o=+!i;for(let n=o;n<t.allOf.length;n++)a=ft.intersection(a,e(t.allOf[n],r));n=a}!0===t.nullable&&"openapi-3.0"===r.version&&(n=ft.nullable(n)),!0===t.readOnly&&(n=ft.readonly(n)),void 0!==t.default&&(n=n.default(t.default));let a={};for(let e of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])e in t&&(a[e]=t[e]);for(let e of["contentEncoding","contentMediaType","contentSchema"])e in t&&(a[e]=t[e]);for(let e of Object.keys(t))fr.has(e)||(a[e]=t[e]);return Object.keys(a).length>0&&r.registry.add(n,a),t.description&&(n=n.describe(t.description)),n}(i,o)},"function",0,pq,"getErrorMap",0,p8,"globalRegistry",0,rp,"gt",0,uc,"gte",0,up,"guid",0,dZ,"hash",0,cc,"hex",0,cd,"hostname",0,cu,"httpUrl",0,dD,"includes",0,uE,"instanceof",0,p1,"int",0,ch,"int32",0,cy,"int64",0,cI,"intersection",0,c4,"invertCodec",0,pP,"ipv4",0,d0,"ipv6",0,d6,"iso",0,fe,"json",0,p4,"jwt",0,co,"keyof",0,cV,"ksuid",0,dX,"lazy",0,pB,"length",0,uk,"literal",0,pl,"locales",0,lb,"looseObject",0,cK,"looseRecord",0,c8,"lowercase",0,uI,"lt",0,uu,"lte",0,ud,"mac",0,d2,"map",0,pt,"maxLength",0,u$,"maxSize",0,uy,"meta",0,p0,"mime",0,uz,"minLength",0,ux,"minSize",0,ub,"multipleOf",0,uv,"nan",0,pz,"nanoid",0,dF,"nativeEnum",0,po,"negative",0,um,"never",0,cD,"nonnegative",0,ug,"nonoptional",0,pI,"nonpositive",0,uh,"normalize",0,uU,"null",0,cT,"nullable",0,py,"nullish",0,pb,"number",0,cf,"object",0,cq,"optional",0,pm,"overwrite",0,uT,"parse",0,t9,"parseAsync",0,t3,"partialRecord",0,c7,"pipe",0,pU,"positive",0,uf,"prefault",0,pk,"preprocess",0,p6,"prettifyError",0,tT,"promise",0,pV,"property",0,uZ,"readonly",0,pR,"record",0,c3,"refine",0,pY,"regex",0,uw,"regexes",()=>dd,"registry",0,rc,"safeDecode",0,ra,"safeDecodeAsync",0,rs,"safeEncode",0,ri,"safeEncodeAsync",0,ro,"safeParse",0,t7,"safeParseAsync",0,t8,"set",0,pn,"setErrorMap",0,p7,"size",0,u_,"slugify",0,uC,"startsWith",0,uO,"strictObject",0,cG,"string",0,dI,"stringFormat",0,cl,"stringbool",0,p2,"success",0,pE,"superRefine",0,pX,"symbol",0,cO,"templateLiteral",0,pL,"toJSONSchema",0,r9,"toLowerCase",0,uN,"toUpperCase",0,uP,"transform",0,pp,"treeifyError",0,tZ,"trim",0,uA,"tuple",0,c5,"uint32",0,cb,"uint64",0,cS,"ulid",0,dG,"undefined",0,cZ,"union",0,cY,"unknown",0,cP,"uppercase",0,uS,"url",0,dC,"util",()=>dc,"uuid",0,dT,"uuidv4",0,dU,"uuidv6",0,dA,"uuidv7",0,dN,"void",0,cM,"xid",0,dH,"xor",0,cQ],45444);var fi=e.i(45444),fi=fi,fa=e.i(52897),fo=Symbol.for("vercel.ai.gateway.error"),fs=class e extends(U=Error,T=fo,U){constructor({message:e,statusCode:t=500,cause:r,generationId:n,isRetryable:i=null!=t&&(408===t||409===t||429===t||t>=500)}){super(n?`${e} [${n}]`:e),this[T]=!0,this.statusCode=t,this.cause=r,this.generationId=n,this.isRetryable=i}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&fo in e&&!0===e[fo]}},fl="GatewayAuthenticationError",fu=Symbol.for(`vercel.ai.gateway.error.${fl}`),fd=class e extends(N=fs,A=fu,N){constructor({message:e="Authentication failed",statusCode:t=401,cause:r,generationId:n}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[A]=!0,this.name=fl,this.type="authentication_error"}static isInstance(e){return fs.hasMarker(e)&&fu in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:r,message:n="Authentication failed",statusCode:i=401,cause:a,generationId:o}){return new e({message:t?`AI Gateway authentication failed: Invalid API key.
|
|
78
|
+
|
|
79
|
+
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
80
|
+
|
|
81
|
+
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:r?`AI Gateway authentication failed: Invalid OIDC token.
|
|
82
|
+
|
|
83
|
+
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
|
|
84
|
+
|
|
85
|
+
Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:`AI Gateway authentication failed: No authentication provided.
|
|
86
|
+
|
|
87
|
+
Option 1 - API key:
|
|
88
|
+
Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
89
|
+
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
|
|
90
|
+
|
|
91
|
+
Option 2 - OIDC token:
|
|
92
|
+
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,statusCode:i,cause:a,generationId:o})}},fc="GatewayInvalidRequestError",fp=Symbol.for(`vercel.ai.gateway.error.${fc}`),ff=class extends(C=fs,P=fp,C){constructor({message:e="Invalid request",statusCode:t=400,cause:r,generationId:n}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[P]=!0,this.name=fc,this.type="invalid_request_error"}static isInstance(e){return fs.hasMarker(e)&&fp in e}},fm="GatewayRateLimitError",fh=Symbol.for(`vercel.ai.gateway.error.${fm}`),fg=class extends(R=fs,D=fh,R){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:r,generationId:n}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[D]=!0,this.name=fm,this.type="rate_limit_exceeded"}static isInstance(e){return fs.hasMarker(e)&&fh in e}},fv="GatewayModelNotFoundError",fy=Symbol.for(`vercel.ai.gateway.error.${fv}`),fb=au(()=>ap(fi.object({modelId:fi.string()}))),f_=class extends(L=fs,M=fy,L){constructor({message:e="Model not found",statusCode:t=404,modelId:r,cause:n,generationId:i}={}){super({message:e,statusCode:t,cause:n,generationId:i}),this[M]=!0,this.name=fv,this.type="model_not_found",this.modelId=r}static isInstance(e){return fs.hasMarker(e)&&fy in e}},f$="GatewayInternalServerError",fx=Symbol.for(`vercel.ai.gateway.error.${f$}`),fk=class extends(B=fs,F=fx,B){constructor({message:e="Internal server error",statusCode:t=500,cause:r,generationId:n}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[F]=!0,this.name=f$,this.type="internal_server_error"}static isInstance(e){return fs.hasMarker(e)&&fx in e}},fw="GatewayFailedDependencyError",fI=Symbol.for(`vercel.ai.gateway.error.${fw}`),fS=class extends(V=fs,J=fI,V){constructor({message:e="Failed dependency",statusCode:t=424,cause:r,generationId:n}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[J]=!0,this.name=fw,this.type="failed_dependency"}static isInstance(e){return fs.hasMarker(e)&&fI in e}},fE="GatewayForbiddenError",fO=Symbol.for(`vercel.ai.gateway.error.${fE}`),fj=au(()=>ap(fi.object({ruleId:fi.string()}))),fZ=class extends(q=fs,W=fO,q){constructor({message:e="Forbidden",statusCode:t=403,cause:r,generationId:n,ruleId:i}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[W]=!0,this.name=fE,this.type="forbidden",this.ruleId=i}static isInstance(e){return fs.hasMarker(e)&&fO in e}},fz="GatewayResponseError",fT=Symbol.for(`vercel.ai.gateway.error.${fz}`),fU=class extends(K=fs,G=fT,K){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:r,validationError:n,cause:i,generationId:a}={}){super({message:e,statusCode:t,cause:i,generationId:a}),this[G]=!0,this.name=fz,this.type="response_error",this.response=r,this.validationError=n}static isInstance(e){return fs.hasMarker(e)&&fT in e}};async function fA({response:e,statusCode:t,defaultMessage:r="Gateway request failed",cause:n,authMethod:i}){var a;let o=await am({value:e,schema:fN});if(!o.success){let i="object"==typeof e&&null!==e&&"generationId"in e?e.generationId:void 0;return new fU({message:`Invalid error response format: ${r}`,statusCode:t,response:e,validationError:o.error,cause:n,generationId:i})}let s=o.value,l=s.error.type,u=s.error.message,d=null!=(a=s.generationId)?a:void 0;switch(l){case"authentication_error":return fd.createContextualError({apiKeyProvided:"api-key"===i,oidcTokenProvided:"oidc"===i,statusCode:t,cause:n,generationId:d});case"invalid_request_error":return new ff({message:u,statusCode:t,cause:n,generationId:d});case"rate_limit_exceeded":return new fg({message:u,statusCode:t,cause:n,generationId:d});case"model_not_found":{let e=await am({value:s.error.param,schema:fb});return new f_({message:u,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:n,generationId:d})}case"internal_server_error":default:return new fk({message:u,statusCode:t,cause:n,generationId:d});case"failed_dependency":return new fS({message:u,statusCode:t,cause:n,generationId:d});case"forbidden":{let e=await am({value:s.error.param,schema:fj});return new fZ({message:u,statusCode:t,cause:n,generationId:d,ruleId:e.success?e.value.ruleId:void 0})}}}var fN=au(()=>ap(fi.object({error:fi.object({message:fi.string(),type:fi.string().nullish(),param:fi.unknown().nullish(),code:fi.union([fi.string(),fi.number()]).nullish()}),generationId:fi.string().nullish()}))),fP="GatewayTimeoutError",fC=Symbol.for(`vercel.ai.gateway.error.${fP}`),fD=class e extends(Y=fs,H=fC,Y){constructor({message:e="Request timed out",statusCode:t=408,cause:r,generationId:n}={}){super({message:e,statusCode:t,cause:r,generationId:n}),this[H]=!0,this.name=fP,this.type="timeout_error"}static isInstance(e){return fs.hasMarker(e)&&fC in e}static createTimeoutError({originalMessage:t,statusCode:r=408,cause:n,generationId:i}){return new e({message:`Gateway request timed out: ${t}
|
|
93
|
+
|
|
94
|
+
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:r,cause:n,generationId:i})}};function fR(e){if(!(e instanceof Error))return!1;let t=e.code;return"string"==typeof t&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t)}async function fM(e,t){var r;return fs.isInstance(e)?e:fR(e)?fD.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):ek.isInstance(e)?e.cause&&fR(e.cause)?fD.createTimeoutError({originalMessage:e.message,cause:e}):await fA({response:function(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return iB(e.responseBody)}catch(t){return e.responseBody}return{}}(e),statusCode:null!=(r=e.statusCode)?r:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await fA({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}var fL="ai-gateway-auth-method";async function fF(e){let t=await am({value:e[fL],schema:fB});return t.success?t.value:void 0}var fB=au(()=>ap(fi.union([fi.literal("api-key"),fi.literal("oidc")]))),fJ=["embedding","image","language","reranking","speech","transcription","video"],fV=class{constructor(e){this.config=e}async getAvailableModels(){try{let{value:e}=await iD({url:`${this.config.baseURL}/config`,headers:await ax(this.config.headers()),successfulResponseHandler:aS(fW),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),fetch:this.config.fetch});return e}catch(e){throw await fM(e)}}async getCredits(){try{let e=new URL(this.config.baseURL),{value:t}=await iD({url:`${e.origin}/v1/credits`,headers:await ax(this.config.headers()),successfulResponseHandler:aS(fq),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),fetch:this.config.fetch});return t}catch(e){throw await fM(e)}}},fW=au(()=>ap(fi.object({models:fi.array(fi.object({id:fi.string(),name:fi.string(),description:fi.string().nullish(),pricing:fi.object({input:fi.string(),output:fi.string(),input_cache_read:fi.string().nullish(),input_cache_write:fi.string().nullish()}).transform(({input:e,output:t,input_cache_read:r,input_cache_write:n})=>({input:e,output:t,...r?{cachedInputTokens:r}:{},...n?{cacheCreationInputTokens:n}:{}})).nullish(),specification:fi.object({specificationVersion:fi.literal("v3"),provider:fi.string(),modelId:fi.string()}),modelType:fi.string().nullish()})).transform(e=>e.filter(e=>null==e.modelType||fJ.includes(e.modelType)))}))),fq=au(()=>ap(fi.object({balance:fi.string(),total_used:fi.string()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),fG=class{constructor(e){this.config=e}async getSpendReport(e){try{let t=new URL(this.config.baseURL),r=new URLSearchParams;r.set("start_date",e.startDate),r.set("end_date",e.endDate),e.groupBy&&r.set("group_by",e.groupBy),e.datePart&&r.set("date_part",e.datePart),e.userId&&r.set("user_id",e.userId),e.model&&r.set("model",e.model),e.provider&&r.set("provider",e.provider),e.credentialType&&r.set("credential_type",e.credentialType),e.tags&&e.tags.length>0&&r.set("tags",e.tags.join(","));let{value:n}=await iD({url:`${t.origin}/v1/report?${r.toString()}`,headers:await ax(this.config.headers()),successfulResponseHandler:aS(fK),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),fetch:this.config.fetch});return n}catch(e){throw await fM(e)}}},fK=au(()=>ap(fi.object({results:fi.array(fi.object({day:fi.string().optional(),hour:fi.string().optional(),user:fi.string().optional(),model:fi.string().optional(),tag:fi.string().optional(),provider:fi.string().optional(),credential_type:fi.enum(["byok","system"]).optional(),total_cost:fi.number(),market_cost:fi.number().optional(),input_tokens:fi.number().optional(),output_tokens:fi.number().optional(),cached_input_tokens:fi.number().optional(),cache_creation_input_tokens:fi.number().optional(),reasoning_tokens:fi.number().optional(),request_count:fi.number().optional()}).transform(({credential_type:e,total_cost:t,market_cost:r,input_tokens:n,output_tokens:i,cached_input_tokens:a,cache_creation_input_tokens:o,reasoning_tokens:s,request_count:l,...u})=>({...u,...void 0!==e?{credentialType:e}:{},totalCost:t,...void 0!==r?{marketCost:r}:{},...void 0!==n?{inputTokens:n}:{},...void 0!==i?{outputTokens:i}:{},...void 0!==a?{cachedInputTokens:a}:{},...void 0!==o?{cacheCreationInputTokens:o}:{},...void 0!==s?{reasoningTokens:s}:{},...void 0!==l?{requestCount:l}:{}})))}))),fH=class{constructor(e){this.config=e}async getGenerationInfo(e){try{let t=new URL(this.config.baseURL),{value:r}=await iD({url:`${t.origin}/v1/generation?id=${encodeURIComponent(e.id)}`,headers:await ax(this.config.headers()),successfulResponseHandler:aS(fY),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),fetch:this.config.fetch});return r}catch(e){throw await fM(e)}}},fY=au(()=>ap(fi.object({data:fi.object({id:fi.string(),total_cost:fi.number(),upstream_inference_cost:fi.number(),usage:fi.number(),created_at:fi.string(),model:fi.string(),is_byok:fi.boolean(),provider_name:fi.string(),streamed:fi.boolean(),finish_reason:fi.string(),latency:fi.number(),generation_time:fi.number(),native_tokens_prompt:fi.number(),native_tokens_completion:fi.number(),native_tokens_reasoning:fi.number(),native_tokens_cached:fi.number(),native_tokens_cache_creation:fi.number(),billable_web_search_calls:fi.number()}).transform(({total_cost:e,upstream_inference_cost:t,created_at:r,is_byok:n,provider_name:i,finish_reason:a,generation_time:o,native_tokens_prompt:s,native_tokens_completion:l,native_tokens_reasoning:u,native_tokens_cached:d,native_tokens_cache_creation:c,billable_web_search_calls:p,...f})=>({...f,totalCost:e,upstreamInferenceCost:t,createdAt:r,isByok:n,providerName:i,finishReason:a,generationTime:o,promptTokens:s,completionTokens:l,reasoningTokens:u,cachedTokens:d,cacheCreationTokens:c,billableWebSearchCalls:p}))}).transform(({data:e})=>e))),fX=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){let{abortSignal:t,...r}=e;return{args:this.maybeEncodeFileParts(r),warnings:[]}}async doGenerate(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:n}=e,i=await ax(this.config.headers());try{let{responseHeaders:a,value:o,rawValue:s}=await ab({url:this.getUrl(),headers:ia(i,e.headers,this.getModelConfigHeaders(this.modelId,!1),await ax(this.config.o11yHeaders)),body:t,successfulResponseHandler:aS(fi.any()),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...n&&{abortSignal:n},fetch:this.config.fetch});return{...o,request:{body:t},response:{headers:a,body:s},warnings:r}}catch(e){throw await fM(e,await fF(i))}}async doStream(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:n}=e,i=await ax(this.config.headers());try{let a,{value:o,responseHeaders:s}=await ab({url:this.getUrl(),headers:ia(i,e.headers,this.getModelConfigHeaders(this.modelId,!0),await ax(this.config.o11yHeaders)),body:t,successfulResponseHandler:(a=fi.any(),async({response:e})=>{let t=io(e);if(null==e.body)throw new eE({});return{responseHeaders:t,value:av({stream:e.body,schema:a})}}),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...n&&{abortSignal:n},fetch:this.config.fetch});return{stream:o.pipeThrough(new TransformStream({start(e){r.length>0&&e.enqueue({type:"stream-start",warnings:r})},transform(t,r){if(t.success){let n=t.value;("raw"!==n.type||e.includeRawChunks)&&("response-metadata"===n.type&&n.timestamp&&"string"==typeof n.timestamp&&(n.timestamp=new Date(n.timestamp)),r.enqueue(n))}else r.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await fM(e,await fF(i))}}isFilePart(e){return e&&"object"==typeof e&&"type"in e&&"file"===e.type}maybeEncodeFileParts(e){for(let t of e.prompt)for(let e of t.content)if(this.isFilePart(e)&&e.data instanceof Uint8Array){let t=Uint8Array.from(e.data),r=eg.Buffer.from(t).toString("base64");e.data=new URL(`data:${e.mediaType||"application/octet-stream"};base64,${r}`)}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},fQ=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:r,providerOptions:n}){var i,a;let o=await ax(this.config.headers());try{let{responseHeaders:s,value:l,rawValue:u}=await ab({url:this.getUrl(),headers:ia(o,null!=t?t:{},this.getModelConfigHeaders(),await ax(this.config.o11yHeaders)),body:{values:e,...n?{providerOptions:n}:{}},successfulResponseHandler:aS(f1),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...r&&{abortSignal:r},fetch:this.config.fetch});return{embeddings:l.embeddings,usage:null!=(i=l.usage)?i:void 0,providerMetadata:l.providerMetadata,response:{headers:s,body:u},warnings:null!=(a=l.warnings)?a:[]}}catch(e){throw await fM(e,await fF(o))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},f0=fi.discriminatedUnion("type",[fi.object({type:fi.literal("unsupported"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("compatibility"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("other"),message:fi.string()})]),f1=au(()=>ap(fi.object({embeddings:fi.array(fi.array(fi.number())),usage:fi.object({tokens:fi.number()}).nullish(),warnings:fi.array(f0).optional(),providerMetadata:fi.record(fi.string(),fi.record(fi.string(),fi.unknown())).optional()})));function f2(e){return(null!=e?e:[]).map(e=>"deprecated"===e.type?{type:"other",message:e.message}:e)}var f4=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:r,aspectRatio:n,seed:i,files:a,mask:o,providerOptions:s,headers:l,abortSignal:u}){var d,c,p;let f=await ax(this.config.headers());try{let{responseHeaders:m,value:h,rawValue:g}=await ab({url:this.getUrl(),headers:ia(f,null!=l?l:{},this.getModelConfigHeaders(),await ax(this.config.o11yHeaders)),body:{prompt:e,n:t,...r&&{size:r},...n&&{aspectRatio:n},...i&&{seed:i},...s&&{providerOptions:s},...a&&{files:a.map(e=>f6(e))},...o&&{mask:f6(o)}},successfulResponseHandler:aS(f7),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...u&&{abortSignal:u},fetch:this.config.fetch});return{images:h.images,warnings:f2(h.warnings),providerMetadata:h.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:m},...null!=h.usage&&{usage:{inputTokens:null!=(d=h.usage.inputTokens)?d:void 0,outputTokens:null!=(c=h.usage.outputTokens)?c:void 0,totalTokens:null!=(p=h.usage.totalTokens)?p:void 0}}}}catch(e){throw await fM(e,await fF(f))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function f6(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:iu(e.data)}:e}var f5=fi.object({images:fi.array(fi.unknown()).optional()}).catchall(fi.unknown()),f9=fi.discriminatedUnion("type",[fi.object({type:fi.literal("unsupported"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("compatibility"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("deprecated"),setting:fi.string(),message:fi.string()}),fi.object({type:fi.literal("other"),message:fi.string()})]),f3=fi.object({inputTokens:fi.number().nullish(),outputTokens:fi.number().nullish(),totalTokens:fi.number().nullish()}),f7=fi.object({images:fi.array(fi.string()),warnings:fi.array(f9).optional(),providerMetadata:fi.record(fi.string(),f5).optional(),usage:f3.optional()}),f8=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:r,resolution:n,duration:i,fps:a,seed:o,generateAudio:s,image:l,frameImages:u,inputReferences:d,providerOptions:c,headers:p,abortSignal:f}){let m=await ax(this.config.headers());try{let{responseHeaders:h,value:g}=await ab({url:this.getUrl(),headers:ia(m,null!=p?p:{},this.getModelConfigHeaders(),await ax(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:e,n:t,...r&&{aspectRatio:r},...n&&{resolution:n},...i&&{duration:i},...a&&{fps:a},...o&&{seed:o},...void 0!==s&&{generateAudio:s},...c&&{providerOptions:c},...l&&{image:me(l)},...u&&{frameImages:u.map(e=>({...e,image:me(e.image)}))},...d&&{inputReferences:d.map(e=>me(e))}},successfulResponseHandler:async({response:e,url:t,requestBodyValues:r})=>{if(null==e.body)throw new ek({message:"SSE response body is empty",url:t,requestBodyValues:r,statusCode:e.status});let n=av({stream:e.body,schema:mi}).getReader(),{done:i,value:a}=await n.read();if(n.releaseLock(),i||!a)throw new ek({message:"SSE stream ended without a data event",url:t,requestBodyValues:r,statusCode:e.status});if(!a.success)throw new ek({message:"Failed to parse video SSE event",cause:a.error,url:t,requestBodyValues:r,statusCode:e.status});let o=a.value;if("error"===o.type)throw new ek({message:o.message,statusCode:o.statusCode,url:t,requestBodyValues:r,responseHeaders:Object.fromEntries([...e.headers]),responseBody:JSON.stringify(o),data:{error:{message:o.message,type:o.errorType,param:o.param}}});return{value:{videos:o.videos,warnings:o.warnings,providerMetadata:o.providerMetadata},responseHeaders:Object.fromEntries([...e.headers])}},failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...f&&{abortSignal:f},fetch:this.config.fetch});return{videos:g.videos,warnings:f2(g.warnings),providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:h}}}catch(e){throw await fM(e,await fF(m))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};function me(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:iu(e.data)}:e}var mt=fi.object({videos:fi.array(fi.unknown()).optional()}).catchall(fi.unknown()),mr=fi.union([fi.object({type:fi.literal("url"),url:fi.string(),mediaType:fi.string()}),fi.object({type:fi.literal("base64"),data:fi.string(),mediaType:fi.string()})]),mn=fi.discriminatedUnion("type",[fi.object({type:fi.literal("unsupported"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("compatibility"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("deprecated"),setting:fi.string(),message:fi.string()}),fi.object({type:fi.literal("other"),message:fi.string()})]),mi=fi.discriminatedUnion("type",[fi.object({type:fi.literal("result"),videos:fi.array(mr),warnings:fi.array(mn).optional(),providerMetadata:fi.record(fi.string(),mt).optional()}),fi.object({type:fi.literal("error"),message:fi.string(),errorType:fi.string(),statusCode:fi.number(),param:fi.unknown().nullable()})]),ma=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async doRerank({documents:e,query:t,topN:r,headers:n,abortSignal:i,providerOptions:a}){var o;let s=await ax(this.config.headers());try{let{responseHeaders:l,value:u,rawValue:d}=await ab({url:this.getUrl(),headers:ia(s,null!=n?n:{},this.getModelConfigHeaders(),await ax(this.config.o11yHeaders)),body:{documents:e,query:t,...null!=r?{topN:r}:{},...a?{providerOptions:a}:{}},successfulResponseHandler:aS(ms),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{ranking:u.ranking,providerMetadata:u.providerMetadata,response:{headers:l,body:d},warnings:null!=(o=u.warnings)?o:[]}}catch(e){throw await fM(e,await fF(s))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"3","ai-model-id":this.modelId}}},mo=fi.discriminatedUnion("type",[fi.object({type:fi.literal("unsupported"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("compatibility"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("other"),message:fi.string()})]),ms=au(()=>ap(fi.object({ranking:fi.array(fi.object({index:fi.number(),relevanceScore:fi.number()})),warnings:fi.array(mo).optional(),providerMetadata:fi.record(fi.string(),fi.record(fi.string(),fi.unknown())).optional()}))),ml=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async doGenerate({text:e,voice:t,outputFormat:r,instructions:n,speed:i,language:a,providerOptions:o,headers:s,abortSignal:l}){let u=await ax(this.config.headers());try{let{responseHeaders:d,value:c,rawValue:p}=await ab({url:this.getUrl(),headers:ia(u,null!=s?s:{},this.getModelConfigHeaders(),await ax(this.config.o11yHeaders)),body:{text:e,...t&&{voice:t},...r&&{outputFormat:r},...n&&{instructions:n},...null!=i&&{speed:i},...a&&{language:a},...o&&{providerOptions:o}},successfulResponseHandler:aS(mc),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...l&&{abortSignal:l},fetch:this.config.fetch});return{audio:c.audio,warnings:f2(c.warnings),providerMetadata:c.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:d,body:p}}}catch(e){throw await fM(e,await fF(null!=u?u:{}))}}getUrl(){return`${this.config.baseURL}/speech-model`}getModelConfigHeaders(){return{"ai-speech-model-specification-version":"3","ai-model-id":this.modelId}}},mu=fi.object({}).catchall(fi.unknown()),md=fi.discriminatedUnion("type",[fi.object({type:fi.literal("unsupported"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("compatibility"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("deprecated"),setting:fi.string(),message:fi.string()}),fi.object({type:fi.literal("other"),message:fi.string()})]),mc=fi.object({audio:fi.string(),warnings:fi.array(md).optional(),providerMetadata:fi.record(fi.string(),mu).optional()}),mp=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async doGenerate({audio:e,mediaType:t,providerOptions:r,headers:n,abortSignal:i}){var a,o,s;let l=await ax(this.config.headers());try{let{responseHeaders:u,value:d,rawValue:c}=await ab({url:this.getUrl(),headers:ia(l,null!=n?n:{},this.getModelConfigHeaders(),await ax(this.config.o11yHeaders)),body:{audio:e instanceof Uint8Array?iu(e):e,mediaType:t,...r&&{providerOptions:r}},successfulResponseHandler:aS(mh),failedResponseHandler:aI({errorSchema:fi.any(),errorToMessage:e=>{var t;return null!=(t=iO(e))?t:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{text:d.text,segments:null!=(a=d.segments)?a:[],language:null!=(o=d.language)?o:void 0,durationInSeconds:null!=(s=d.durationInSeconds)?s:void 0,warnings:f2(d.warnings),providerMetadata:d.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:u,body:c}}}catch(e){throw await fM(e,await fF(null!=l?l:{}))}}getUrl(){return`${this.config.baseURL}/transcription-model`}getModelConfigHeaders(){return{"ai-transcription-model-specification-version":"3","ai-model-id":this.modelId}}},mf=fi.object({}).catchall(fi.unknown()),mm=fi.discriminatedUnion("type",[fi.object({type:fi.literal("unsupported"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("compatibility"),feature:fi.string(),details:fi.string().optional()}),fi.object({type:fi.literal("deprecated"),setting:fi.string(),message:fi.string()}),fi.object({type:fi.literal("other"),message:fi.string()})]),mh=fi.object({text:fi.string(),segments:fi.array(fi.object({text:fi.string(),startSecond:fi.number(),endSecond:fi.number()})).optional(),language:fi.string().nullish(),durationInSeconds:fi.number().nullish(),warnings:fi.array(mm).optional(),providerMetadata:fi.record(fi.string(),mf).optional()}),mg=a$({id:"gateway.exa_search",inputSchema:au(()=>ap(fi.object({query:fi.string().describe("Natural-language web search query. This is required."),type:fi.enum(["auto","fast","instant"]).optional().describe("Search method. Use auto for the default balance of speed and quality."),num_results:fi.number().optional().describe("Maximum number of results to return (1-100, default: 10)."),category:fi.enum(["company","people","research paper","news","personal site","financial report"]).optional().describe("Optional content category to focus results."),user_location:fi.string().optional().describe("Two-letter ISO country code such as 'US'."),include_domains:fi.array(fi.string()).optional().describe("Only return results from these domains."),exclude_domains:fi.array(fi.string()).optional().describe("Exclude results from these domains."),start_published_date:fi.string().optional().describe("Only return links published after this ISO 8601 date."),end_published_date:fi.string().optional().describe("Only return links published before this ISO 8601 date."),contents:fi.object({text:fi.union([fi.boolean(),fi.object({max_characters:fi.number().optional(),include_html_tags:fi.boolean().optional(),verbosity:fi.enum(["compact","standard","full"]).optional(),include_sections:fi.array(fi.enum(["header","navigation","banner","body","sidebar","footer","metadata"])).optional(),exclude_sections:fi.array(fi.enum(["header","navigation","banner","body","sidebar","footer","metadata"])).optional()})]).optional(),highlights:fi.union([fi.boolean(),fi.object({query:fi.string().optional(),max_characters:fi.number().optional()})]).optional(),max_age_hours:fi.number().optional(),livecrawl_timeout:fi.number().optional(),subpages:fi.number().optional(),subpage_target:fi.union([fi.string(),fi.array(fi.string())]).optional(),extras:fi.object({links:fi.number().optional(),image_links:fi.number().optional()}).optional()}).optional().describe("Controls extracted page content and freshness.")}))),outputSchema:au(()=>ap(fi.union([fi.object({requestId:fi.string(),searchType:fi.string().optional(),resolvedSearchType:fi.string().optional(),results:fi.array(fi.object({title:fi.string(),url:fi.string(),id:fi.string(),publishedDate:fi.string().nullable().optional(),author:fi.string().nullable().optional(),image:fi.string().nullable().optional(),favicon:fi.string().nullable().optional(),text:fi.string().optional(),highlights:fi.array(fi.string()).optional(),highlightScores:fi.array(fi.number()).optional(),summary:fi.string().optional(),subpages:fi.array(fi.any()).optional(),extras:fi.object({links:fi.array(fi.string()).optional(),imageLinks:fi.array(fi.string()).optional()}).optional()})),costDollars:fi.object({total:fi.number().optional(),search:fi.record(fi.number()).optional()}).optional()}),fi.object({error:fi.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","execution_error","unknown"]),statusCode:fi.number().optional(),message:fi.string()})])))}),mv=a$({id:"gateway.parallel_search",inputSchema:au(()=>ap(fi.object({objective:fi.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:fi.array(fi.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:fi.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:fi.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:fi.object({include_domains:fi.array(fi.string()).optional().describe("Limit results to these domains. Use plain domain names only — e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."),exclude_domains:fi.array(fi.string()).optional().describe("Exclude results from these domains. Use plain domain names only — e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."),after_date:fi.string().optional().describe("Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time.")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:fi.object({max_chars_per_result:fi.number().optional().describe("Maximum characters per result."),max_chars_total:fi.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:fi.object({max_age_seconds:fi.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),outputSchema:au(()=>ap(fi.union([fi.object({searchId:fi.string(),results:fi.array(fi.object({url:fi.string(),title:fi.string(),excerpt:fi.string(),publishDate:fi.string().nullable().optional(),relevanceScore:fi.number().optional()}))}),fi.object({error:fi.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:fi.number().optional(),message:fi.string()})])))}),my=a$({id:"gateway.perplexity_search",inputSchema:au(()=>ap(fi.object({query:fi.union([fi.string(),fi.array(fi.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:fi.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:fi.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:fi.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:fi.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:fi.array(fi.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:fi.array(fi.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:fi.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:fi.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:fi.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:fi.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:fi.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),outputSchema:au(()=>ap(fi.union([fi.object({results:fi.array(fi.object({title:fi.string(),url:fi.string(),snippet:fi.string(),date:fi.string().optional(),lastUpdated:fi.string().optional()})),id:fi.string()}),fi.object({error:fi.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:fi.number().optional(),message:fi.string()})])))}),mb={exaSearch:(e={})=>mg(e),parallelSearch:(e={})=>mv(e),perplexitySearch:(e={})=>my(e)};async function m_(){var e;return null==(e=(0,fa.getContext)().headers)?void 0:e["x-vercel-id"]}async function m$(e){let t=iR({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await (0,fa.getVercelOidcToken)(),authMethod:"oidc"}}!function(e={}){var t,r,n;let i=null,a=null,o=null!=(t=e.metadataCacheRefreshMillis)?t:3e5,s=0,l=null!=(r=null==(n=e.baseURL)?void 0:n.replace(/\/$/,""))?r:"https://ai-gateway.vercel.sh/v3/ai",u=async()=>{try{let t=await m$(e);return iN({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[fL]:t.authMethod,...e.headers},"ai-sdk/gateway/3.0.172")}catch(e){throw fd.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},d=()=>{let e=iR({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=iR({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),r=iR({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),n=iR({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let i=await m_();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...r&&{"ai-o11y-region":r},...i&&{"ai-o11y-request-id":i},...n&&{"ai-o11y-project-id":n}}}},c=t=>new fX(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()}),p=async()=>{var t,r,n;let d=null!=(n=null==(r=null==(t=e._internal)?void 0:t.currentDate)?void 0:r.call(t).getTime())?n:Date.now();return(!i||d-s>o)&&(s=d,i=new fV({baseURL:l,headers:u,fetch:e.fetch}).getAvailableModels().then(e=>(a=e,e)).catch(async e=>{throw await fM(e,await fF(await u()))})),a?Promise.resolve(a):i},f=async()=>new fV({baseURL:l,headers:u,fetch:e.fetch}).getCredits().catch(async e=>{throw await fM(e,await fF(await u()))}),m=async t=>new fG({baseURL:l,headers:u,fetch:e.fetch}).getSpendReport(t).catch(async e=>{throw await fM(e,await fF(await u()))}),h=async t=>new fH({baseURL:l,headers:u,fetch:e.fetch}).getGenerationInfo(t).catch(async e=>{throw await fM(e,await fF(await u()))}),g=function(e){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return c(e)};g.specificationVersion="v3",g.getAvailableModels=p,g.getCredits=f,g.getSpendReport=m,g.getGenerationInfo=h,g.imageModel=t=>new f4(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()}),g.languageModel=c;let v=t=>new fQ(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()});g.embeddingModel=v,g.textEmbeddingModel=v,g.videoModel=t=>new f8(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()});let y=t=>new ma(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()});g.rerankingModel=y,g.reranking=y;let b=t=>new ml(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()});g.speechModel=b,g.speech=b;let _=t=>new mp(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:d()});g.transcriptionModel=_,g.transcription=_,g.chat=g.languageModel,g.embedding=g.embeddingModel,g.image=g.imageModel,g.video=g.videoModel,g.tools=mb}();var fi=fi;let mx="1.9.1",mk=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,mw=function(e){let t=new Set([e]),r=new Set,n=e.match(mk);if(!n)return()=>!1;let i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(mk);if(!n)return a(e);let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease||i.major!==o.major)return a(e);if(0===i.major)return i.minor===o.minor&&i.patch<=o.patch?(t.add(e),!0):a(e);return i.minor<=o.minor?(t.add(e),!0):a(e)}}(mx),mI=mx.split(".")[0],mS=Symbol.for(`opentelemetry.js.api.${mI}`),mE="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:e.g;function mO(e,t,r,n=!1){var i;let a=mE[mS]=null!=(i=mE[mS])?i:{version:mx};if(!n&&a[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(a.version!==mx){let t=Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${mx}`);return r.error(t.stack||t.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${mx}.`),!0}function mj(e){var t,r;let n=null==(t=mE[mS])?void 0:t.version;if(n&&mw(n))return null==(r=mE[mS])?void 0:r[e]}function mZ(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${mx}.`);let r=mE[mS];r&&delete r[e]}let mz=new class e{constructor(t){const r=this;r._currentContext=t?new Map(t):new Map,r.getValue=e=>r._currentContext.get(e),r.setValue=(t,n)=>{let i=new e(r._currentContext);return i._currentContext.set(t,n),i},r.deleteValue=t=>{let n=new e(r._currentContext);return n._currentContext.delete(t),n}}};class mT{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return mU("debug",this._namespace,e)}error(...e){return mU("error",this._namespace,e)}info(...e){return mU("info",this._namespace,e)}warn(...e){return mU("warn",this._namespace,e)}verbose(...e){return mU("verbose",this._namespace,e)}}function mU(e,t,r){let n=mj("diag");if(n)return n[e](t,...r)}(s=X||(X={}))[s.NONE=0]="NONE",s[s.ERROR=30]="ERROR",s[s.WARN=50]="WARN",s[s.INFO=60]="INFO",s[s.DEBUG=70]="DEBUG",s[s.VERBOSE=80]="VERBOSE",s[s.ALL=9999]="ALL";class mA{static instance(){return this._instance||(this._instance=new mA),this._instance}constructor(){function e(e){return function(...t){let r=mj("diag");if(r)return r[e](...t)}}const t=this;t.setLogger=(e,r={logLevel:X.INFO})=>{var n,i,a;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(n=e.stack)?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let o=mj("diag"),s=function(e,t){function r(r,n){let i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<X.NONE?e=X.NONE:e>X.ALL&&(e=X.ALL),t=t||{},{error:r("error",X.ERROR),warn:r("warn",X.WARN),info:r("info",X.INFO),debug:r("debug",X.DEBUG),verbose:r("verbose",X.VERBOSE)}}(null!=(i=r.logLevel)?i:X.INFO,e);if(o&&!r.suppressOverrideMessage){let e=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";o.warn(`Current logger will be overwritten from ${e}`),s.warn(`Current logger will overwrite one already registered from ${e}`)}return mO("diag",s,t,!0)},t.disable=()=>{mZ("diag",t)},t.createComponentLogger=e=>new mT(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}}let mN="context",mP=new class{active(){return mz}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}};class mC{static getInstance(){return this._instance||(this._instance=new mC),this._instance}setGlobalContextManager(e){return mO(mN,e,mA.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return mj(mN)||mP}disable(){this._getContextManager().disable(),mZ(mN,mA.instance())}}(l=Q||(Q={}))[l.NONE=0]="NONE",l[l.SAMPLED=1]="SAMPLED";let mD="0000000000000000",mR="00000000000000000000000000000000",mM={traceId:mR,spanId:mD,traceFlags:Q.NONE};class mL{constructor(e=mM){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}let mF=Symbol.for("OpenTelemetry Context Key SPAN");function mB(e){return e.getValue(mF)||void 0}function mJ(){return mB(mC.getInstance().active())}function mV(e,t){return e.setValue(mF,t)}function mW(e){return e.deleteValue(mF)}function mq(e,t){return mV(e,new mL(t))}function mG(e){var t;return null==(t=mB(e))?void 0:t.spanContext()}let mK=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function mH(e,t){if("string"!=typeof e||e.length!==t)return!1;let r=0;for(let t=0;t<e.length;t+=4)r+=(0|mK[e.charCodeAt(t)])+(0|mK[e.charCodeAt(t+1)])+(0|mK[e.charCodeAt(t+2)])+(0|mK[e.charCodeAt(t+3)]);return r===t}function mY(e){var t,r;return mH(t=e.traceId,32)&&t!==mR&&mH(r=e.spanId,16)&&r!==mD}function mX(e){return new mL(e)}let mQ=mC.getInstance();class m0{startSpan(e,t,r=mQ.active()){var n;if(null==t?void 0:t.root)return new mL;let i=r&&mG(r);return null!==(n=i)&&"object"==typeof n&&"spanId"in n&&"string"==typeof n.spanId&&"traceId"in n&&"string"==typeof n.traceId&&"traceFlags"in n&&"number"==typeof n.traceFlags&&mY(i)?new mL(i):new mL}startActiveSpan(e,t,r,n){let i,a,o;if(arguments.length<2)return;2==arguments.length?o=t:3==arguments.length?(i=t,o=r):(i=t,a=r,o=n);let s=null!=a?a:mQ.active(),l=this.startSpan(e,i,s),u=mV(s,l);return mQ.with(u,o,void 0,l)}}let m1=new m0;class m2{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):m1}}let m4=new class{getTracer(e,t,r){return new m0}};class m6{getTracer(e,t,r){var n;return null!=(n=this.getDelegateTracer(e,t,r))?n:new m2(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:m4}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(e,t,r)}}let m5="trace";(class e{constructor(){this._proxyTracerProvider=new m6,this.wrapSpanContext=mX,this.isSpanContextValid=mY,this.deleteSpan=mW,this.getSpan=mB,this.getActiveSpan=mJ,this.getSpanContext=mG,this.setSpan=mV,this.setSpanContext=mq}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalTracerProvider(e){let t=mO(m5,this._proxyTracerProvider,mA.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return mj(m5)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){mZ(m5,mA.instance()),this._proxyTracerProvider=new m6}}).getInstance(),(u=ee||(ee={}))[u.UNSET=0]="UNSET",u[u.OK=1]="OK",u[u.ERROR=2]="ERROR",mC.getInstance();var m9=Object.defineProperty,m3=(Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalSignatureError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_ToolCallNotFoundForApprovalError"),Symbol.for("vercel.ai.error.AI_MissingToolResultsError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),m7=`vercel.ai.error.${m3}`,m8=Symbol.for(m7),he=class extends eb{constructor({message:e="No object generated.",cause:t,text:r,response:n,usage:i,finishReason:a}){super({name:m3,message:e,cause:t}),this[et]=!0,this.text=r,this.response=n,this.usage=i,this.finishReason=a}static isInstance(e){return eb.hasMarker(e,m7)}};et=m8,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSpeechGeneratedError"),Symbol.for("vercel.ai.error.AI_NoTranscriptGeneratedError"),Symbol.for("vercel.ai.error.AI_NoVideoGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError");var ht="AI_UIMessageStreamError",hr=`vercel.ai.error.${ht}`,hn=Symbol.for(hr),hi=class extends eb{constructor({chunkType:e,chunkId:t,message:r}){super({name:ht,message:r}),this[er]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return eb.hasMarker(e,hr)}};er=hn,Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_RetryError");var ha=async({url:e,maxBytes:t,abortSignal:r})=>{var n;let i=e.toString();try{let e=iN({},"ai-sdk/6.0.253",iU()),a=await iw({url:i,headers:e,abortSignal:r});if(!a.ok)throw await id(a),new ih({url:i,statusCode:a.status,statusText:a.statusText});return{data:await iI({response:a,url:i,maxBytes:null!=t?t:0x80000000}),mediaType:null!=(n=a.headers.get("content-type"))?n:void 0}}catch(e){if(ih.isInstance(e))throw e;throw new ih({url:i,cause:e})}},ho=fi.union([fi.string(),fi.instanceof(Uint8Array),fi.instanceof(ArrayBuffer),fi.custom(e=>{var t,r;return null!=(r=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&r},{message:"Must be a Buffer"})]),hs=fi.lazy(()=>fi.union([fi.null(),fi.string(),fi.number(),fi.boolean(),fi.record(fi.string(),hs.optional()),fi.array(hs)])),hl=fi.record(fi.string(),fi.record(fi.string(),hs.optional())),hu=fi.object({type:fi.literal("text"),text:fi.string(),providerOptions:hl.optional()}),hd=fi.object({type:fi.literal("image"),image:fi.union([ho,fi.instanceof(URL)]),mediaType:fi.string().optional(),providerOptions:hl.optional()}),hc=fi.object({type:fi.literal("file"),data:fi.union([ho,fi.instanceof(URL)]),filename:fi.string().optional(),mediaType:fi.string(),providerOptions:hl.optional()}),hp=fi.object({type:fi.literal("reasoning"),text:fi.string(),providerOptions:hl.optional()}),hf=fi.object({type:fi.literal("tool-call"),toolCallId:fi.string(),toolName:fi.string(),input:fi.unknown(),providerOptions:hl.optional(),providerExecuted:fi.boolean().optional()}),hm=fi.discriminatedUnion("type",[fi.object({type:fi.literal("text"),value:fi.string(),providerOptions:hl.optional()}),fi.object({type:fi.literal("json"),value:hs,providerOptions:hl.optional()}),fi.object({type:fi.literal("execution-denied"),reason:fi.string().optional(),providerOptions:hl.optional()}),fi.object({type:fi.literal("error-text"),value:fi.string(),providerOptions:hl.optional()}),fi.object({type:fi.literal("error-json"),value:hs,providerOptions:hl.optional()}),fi.object({type:fi.literal("content"),value:fi.array(fi.union([fi.object({type:fi.literal("text"),text:fi.string(),providerOptions:hl.optional()}),fi.object({type:fi.literal("media"),data:fi.string(),mediaType:fi.string()}),fi.object({type:fi.literal("file-data"),data:fi.string(),mediaType:fi.string(),filename:fi.string().optional(),providerOptions:hl.optional()}),fi.object({type:fi.literal("file-url"),url:fi.string(),providerOptions:hl.optional()}),fi.object({type:fi.literal("file-id"),fileId:fi.union([fi.string(),fi.record(fi.string(),fi.string())]),providerOptions:hl.optional()}),fi.object({type:fi.literal("image-data"),data:fi.string(),mediaType:fi.string(),providerOptions:hl.optional()}),fi.object({type:fi.literal("image-url"),url:fi.string(),providerOptions:hl.optional()}),fi.object({type:fi.literal("image-file-id"),fileId:fi.union([fi.string(),fi.record(fi.string(),fi.string())]),providerOptions:hl.optional()}),fi.object({type:fi.literal("custom"),providerOptions:hl.optional()})]))})]),hh=fi.object({type:fi.literal("tool-result"),toolCallId:fi.string(),toolName:fi.string(),output:hm,providerOptions:hl.optional()}),hg=fi.object({type:fi.literal("tool-approval-request"),approvalId:fi.string(),toolCallId:fi.string()}),hv=fi.object({type:fi.literal("tool-approval-response"),approvalId:fi.string(),approved:fi.boolean(),reason:fi.string().optional()}),hy=fi.object({role:fi.literal("system"),content:fi.string(),providerOptions:hl.optional()}),hb=fi.object({role:fi.literal("user"),content:fi.union([fi.string(),fi.array(fi.union([hu,hd,hc]))]),providerOptions:hl.optional()}),h_=fi.object({role:fi.literal("assistant"),content:fi.union([fi.string(),fi.array(fi.union([hu,hc,hp,hf,hh,hg]))]),providerOptions:hl.optional()}),h$=fi.object({role:fi.literal("tool"),content:fi.array(fi.union([hh,hv])),providerOptions:hl.optional()});fi.union([hy,hb,h_,h$]),new TextEncoder;var hx={},hk={array:()=>hO,choice:()=>hj,json:()=>hZ,object:()=>hE,text:()=>hS};for(var hw in hk)m9(hx,hw,{get:hk[hw],enumerable:!0});async function hI(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await ag({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await ag({text:function(e){let t=["ROOT"],r=-1,n=null,i=0;function a(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function o(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function s(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let l=0;l<e.length;l++){let u=e[l];switch(t[t.length-1]){case"ROOT":a(u,l,"FINISH");break;case"INSIDE_OBJECT_START":switch(u){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=l,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===u&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===u&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===u&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":a(u,l,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":o(u,l);break;case"INSIDE_STRING":switch(u){case'"':t.pop(),r=l;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=l}break;case"INSIDE_ARRAY_START":"]"===u?(r=l,t.pop()):(r=l,a(u,l,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(u){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=l,t.pop();break;default:r=l}break;case"INSIDE_ARRAY_AFTER_COMMA":a(u,l,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),"u"===u?(i=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=l;break;case"INSIDE_STRING_UNICODE_ESCAPE":(u>="0"&&u<="9"||u>="A"&&u<="F"||u>="a"&&u<="f")&&4==++i&&(t.pop(),r=l);break;case"INSIDE_NUMBER":switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=l;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(u,l),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&o(u,l);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&o(u,l);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(u,l);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,l+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=l:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?o(u,l):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(u,l))}}}let l=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":l+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":l+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":l+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?l+="true".slice(t.length):"false".startsWith(t)?l+="false".slice(t.length):"null".startsWith(t)&&(l+="null".slice(t.length))}}return l}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}var hS=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),parseCompleteOutput:async({text:e})=>e,parsePartialOutput:async({text:e})=>({partial:e}),createElementStreamTransform(){}}),hE=({schema:e,name:t,description:r})=>{let n=ac(e);return{name:"object",responseFormat:ax(n.jsonSchema).then(e=>({type:"json",schema:e,...null!=t&&{name:t},...null!=r&&{description:r}})),async parseCompleteOutput({text:e},t){let r=await ag({text:e});if(!r.success)throw new he({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=await am({value:r.value,schema:n});if(!i.success)throw new he({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return i.value},async parsePartialOutput({text:e}){let t=await hI(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value}}},createElementStreamTransform(){}}},hO=({element:e,name:t,description:r})=>{let n=ac(e);return{name:"array",responseFormat:ax(n.jsonSchema).then(e=>{let{$schema:n,...i}=e;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...null!=t&&{name:t},...null!=r&&{description:r}}}),async parseCompleteOutput({text:e},t){let r=await ag({text:e});if(!r.success)throw new he({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=r.value;if(null==i||"object"!=typeof i||!("elements"in i)||!Array.isArray(i.elements))throw new he({message:"No object generated: response did not match schema.",cause:new eF({value:i,cause:"response must be an object with an elements array"}),text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let a=[];for(let r of i.elements){let i=await am({value:r,schema:n});if(!i.success)throw new he({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});a.push(i.value)}return a},async parsePartialOutput({text:e}){let t=await hI(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let e=t.value;if(null==e||"object"!=typeof e||!("elements"in e)||!Array.isArray(e.elements))return;let r="repaired-parse"===t.state&&e.elements.length>0?e.elements.slice(0,-1):e.elements,i=[];for(let e of r){let t=await am({value:e,schema:n});t.success&&i.push(t.value)}return{partial:i}}}},createElementStreamTransform(){let e=0;return new TransformStream({transform({partialOutput:t},r){if(null!=t)for(;e<t.length;e++)r.enqueue(t[e])}})}}},hj=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...null!=t&&{name:t},...null!=r&&{description:r}}),async parseCompleteOutput({text:t},r){let n=await ag({text:t});if(!n.success)throw new he({message:"No object generated: could not parse the response.",cause:n.error,text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=n.value;if(null==i||"object"!=typeof i||!("result"in i)||"string"!=typeof i.result||!e.includes(i.result))throw new he({message:"No object generated: response did not match schema.",cause:new eF({value:i,cause:"response must be an object that contains a choice value."}),text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.result},async parsePartialOutput({text:t}){let r=await hI(t);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let t=r.value;if(null==t||"object"!=typeof t||!("result"in t)||"string"!=typeof t.result)return;let n=e.filter(e=>e.startsWith(t.result));if("successful-parse"===r.state)return n.includes(t.result)?{partial:t.result}:void 0;return 1===n.length?{partial:n[0]}:void 0}}},createElementStreamTransform(){}}),hZ=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...null!=e&&{name:e},...null!=t&&{description:t}}),async parseCompleteOutput({text:e},t){let r=await ag({text:e});if(!r.success)throw new he({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return r.value},async parsePartialOutput({text:e}){let t=await hI(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return void 0===t.value?void 0:{partial:t.value}}},createElementStreamTransform(){}});iS({prefix:"aitxt",size:24}),TransformStream;var hz=fi.record(fi.string(),hs.optional()),hT=au(()=>ap(fi.union([fi.looseObject({type:fi.literal("text-start"),id:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("text-delta"),id:fi.string(),delta:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("text-end"),id:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("error"),errorText:fi.string()}),fi.looseObject({type:fi.literal("tool-input-start"),toolCallId:fi.string(),toolName:fi.string(),providerExecuted:fi.boolean().optional(),providerMetadata:hl.optional(),toolMetadata:hz.optional(),dynamic:fi.boolean().optional(),title:fi.string().optional()}),fi.looseObject({type:fi.literal("tool-input-delta"),toolCallId:fi.string(),inputTextDelta:fi.string()}),fi.looseObject({type:fi.literal("tool-input-available"),toolCallId:fi.string(),toolName:fi.string(),input:fi.unknown(),providerExecuted:fi.boolean().optional(),providerMetadata:hl.optional(),toolMetadata:hz.optional(),dynamic:fi.boolean().optional(),title:fi.string().optional()}),fi.looseObject({type:fi.literal("tool-input-error"),toolCallId:fi.string(),toolName:fi.string(),input:fi.unknown(),providerExecuted:fi.boolean().optional(),providerMetadata:hl.optional(),toolMetadata:hz.optional(),dynamic:fi.boolean().optional(),errorText:fi.string(),title:fi.string().optional()}),fi.looseObject({type:fi.literal("tool-approval-request"),approvalId:fi.string(),toolCallId:fi.string(),signature:fi.string().optional()}),fi.looseObject({type:fi.literal("tool-output-available"),toolCallId:fi.string(),output:fi.unknown(),providerExecuted:fi.boolean().optional(),providerMetadata:hl.optional(),toolMetadata:hz.optional(),dynamic:fi.boolean().optional(),preliminary:fi.boolean().optional()}),fi.looseObject({type:fi.literal("tool-output-error"),toolCallId:fi.string(),errorText:fi.string(),providerExecuted:fi.boolean().optional(),providerMetadata:hl.optional(),toolMetadata:hz.optional(),dynamic:fi.boolean().optional()}),fi.looseObject({type:fi.literal("tool-output-denied"),toolCallId:fi.string()}),fi.looseObject({type:fi.literal("reasoning-start"),id:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("reasoning-delta"),id:fi.string(),delta:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("reasoning-end"),id:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("source-url"),sourceId:fi.string(),url:fi.string(),title:fi.string().optional(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("source-document"),sourceId:fi.string(),mediaType:fi.string(),title:fi.string(),filename:fi.string().optional(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.literal("file"),url:fi.string(),mediaType:fi.string(),providerMetadata:hl.optional()}),fi.looseObject({type:fi.custom(e=>"string"==typeof e&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:fi.string().optional(),data:fi.unknown(),transient:fi.boolean().optional()}),fi.looseObject({type:fi.literal("start-step")}),fi.looseObject({type:fi.literal("finish-step")}),fi.looseObject({type:fi.literal("start"),messageId:fi.string().optional(),messageMetadata:fi.unknown().optional()}),fi.looseObject({type:fi.literal("finish"),finishReason:fi.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:fi.unknown().optional()}),fi.looseObject({type:fi.literal("abort"),reason:fi.string().optional()}),fi.looseObject({type:fi.literal("message-metadata"),messageMetadata:fi.unknown()})])));function hU(){return Object.create(null)}function hA(e){return e.type.startsWith("tool-")}function hN(e){return hA(e)||"dynamic-tool"===e.type}function hP(e){return e.type.split("-").slice(1).join("-")}async function hC({stream:e,onError:t,abortSignal:r}){let n=e.getReader(),i=()=>{n.cancel().catch(()=>{})};(null==r?void 0:r.aborted)?i():null==r||r.addEventListener("abort",i,{once:!0});try{for(;;){let{done:e}=await n.read();if(e)break}}catch(e){null==t||t(e)}finally{null==r||r.removeEventListener("abort",i),n.releaseLock()}}iS({prefix:"aitxt",size:24});var hD=fi.record(fi.string(),hs.optional());function hR(e){return({url:t,abortSignal:r})=>ha({url:t,maxBytes:null==e?void 0:e.maxBytes,abortSignal:r})}au(()=>ap(fi.array(fi.object({id:fi.string(),role:fi.enum(["system","user","assistant"]),metadata:fi.unknown().optional(),parts:fi.array(fi.union([fi.object({type:fi.literal("text"),text:fi.string(),state:fi.enum(["streaming","done"]).optional(),providerMetadata:hl.optional()}),fi.object({type:fi.literal("reasoning"),id:fi.string().optional(),text:fi.string(),state:fi.enum(["streaming","done"]).optional(),providerMetadata:hl.optional()}),fi.object({type:fi.literal("source-url"),sourceId:fi.string(),url:fi.string(),title:fi.string().optional(),providerMetadata:hl.optional()}),fi.object({type:fi.literal("source-document"),sourceId:fi.string(),mediaType:fi.string(),title:fi.string(),filename:fi.string().optional(),providerMetadata:hl.optional()}),fi.object({type:fi.literal("file"),mediaType:fi.string(),filename:fi.string().optional(),url:fi.string(),providerMetadata:hl.optional()}),fi.object({type:fi.literal("step-start")}),fi.object({type:fi.string().startsWith("data-"),id:fi.string().optional(),data:fi.unknown()}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("input-streaming"),input:fi.unknown().optional(),providerExecuted:fi.boolean().optional(),callProviderMetadata:hl.optional(),output:fi.never().optional(),errorText:fi.never().optional(),approval:fi.never().optional()}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("input-available"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.never().optional()}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("approval-requested"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.never().optional(),reason:fi.never().optional(),signature:fi.string().optional()})}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("approval-responded"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.boolean(),reason:fi.string().optional(),signature:fi.string().optional()})}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("output-available"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.unknown(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),resultProviderMetadata:hl.optional(),preliminary:fi.boolean().optional(),approval:fi.object({id:fi.string(),approved:fi.literal(!0),reason:fi.string().optional(),signature:fi.string().optional()}).optional()}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("output-error"),input:fi.unknown().optional(),rawInput:fi.unknown().optional(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.string(),callProviderMetadata:hl.optional(),resultProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.literal(!0),reason:fi.string().optional(),signature:fi.string().optional()}).optional()}),fi.object({type:fi.literal("dynamic-tool"),toolName:fi.string(),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("output-denied"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.literal(!1),reason:fi.string().optional(),signature:fi.string().optional()})}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("input-streaming"),providerExecuted:fi.boolean().optional(),callProviderMetadata:hl.optional(),input:fi.unknown().optional(),output:fi.never().optional(),errorText:fi.never().optional(),approval:fi.never().optional()}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("input-available"),providerExecuted:fi.boolean().optional(),input:fi.unknown(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.never().optional()}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("approval-requested"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.never().optional(),reason:fi.never().optional(),signature:fi.string().optional()})}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("approval-responded"),input:fi.unknown(),providerExecuted:fi.boolean().optional(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.boolean(),reason:fi.string().optional(),signature:fi.string().optional()})}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("output-available"),providerExecuted:fi.boolean().optional(),input:fi.unknown(),output:fi.unknown(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),resultProviderMetadata:hl.optional(),preliminary:fi.boolean().optional(),approval:fi.object({id:fi.string(),approved:fi.literal(!0),reason:fi.string().optional(),signature:fi.string().optional()}).optional()}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("output-error"),providerExecuted:fi.boolean().optional(),input:fi.unknown().optional(),rawInput:fi.unknown().optional(),output:fi.never().optional(),errorText:fi.string(),callProviderMetadata:hl.optional(),resultProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.literal(!0),reason:fi.string().optional(),signature:fi.string().optional()}).optional()}),fi.object({type:fi.string().startsWith("tool-"),toolCallId:fi.string(),toolMetadata:hD.optional(),state:fi.literal("output-denied"),providerExecuted:fi.boolean().optional(),input:fi.unknown(),output:fi.never().optional(),errorText:fi.never().optional(),callProviderMetadata:hl.optional(),approval:fi.object({id:fi.string(),approved:fi.literal(!1),reason:fi.string().optional(),signature:fi.string().optional()})})]))}).superRefine((e,t)=>{"assistant"!==e.role&&0===e.parts.length&&t.addIssue({origin:"array",code:"too_small",minimum:1,inclusive:!0,input:e.parts,path:["parts"],message:"Message must contain at least one part"})})).nonempty("Messages array must not be empty"))),iS({prefix:"aiobj",size:24});var hM=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){r(e)}}),this.processQueue()})}};async function hL(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{type:"file",mediaType:r,filename:t,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}))}iS({prefix:"aiobj",size:24}),hR(),Symbol.for("vercel.ai.error.AI_NoSuchProviderError"),hR();var hF=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:n,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=r,this.body=n,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var r,n,i,a,o;let s=await ax(this.body),l=await ax(this.headers),u=await ax(this.credentials),d={...iA(l),...iA(t.headers)},c=await (null==(r=this.prepareSendMessagesRequest)?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:d,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=null!=(n=null==c?void 0:c.api)?n:this.api,f=(null==c?void 0:c.headers)!==void 0?iA(c.headers):d,m=(null==c?void 0:c.body)!==void 0?c.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},h=null!=(i=null==c?void 0:c.credentials)?i:u,g=null!=(a=this.fetch)?a:globalThis.fetch,v=await g(p,{method:"POST",headers:{"Content-Type":"application/json",...f},body:JSON.stringify(m),credentials:h,signal:e});if(!v.ok)throw Error(null!=(o=await v.text())?o:"Failed to fetch the chat response.");if(!v.body)throw Error("The response body is empty.");return this.processResponseStream(v.body)}async reconnectToStream(e){var t,r,n,i,a;let o=await ax(this.body),s=await ax(this.headers),l=await ax(this.credentials),u={...iA(s),...iA(e.headers)},d=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),c=null!=(r=null==d?void 0:d.api)?r:`${this.api}/${e.chatId}/stream`,p=(null==d?void 0:d.headers)!==void 0?iA(d.headers):u,f=null!=(n=null==d?void 0:d.credentials)?n:l,m=null!=(i=this.fetch)?i:globalThis.fetch,h=await m(c,{method:"GET",headers:p,credentials:f,signal:e.abortSignal});if(204===h.status)return null;if(!h.ok)throw Error(null!=(a=await h.text())?a:"Failed to fetch the chat response.");if(!h.body)throw Error("The response body is empty.");return this.processResponseStream(h.body)}},hB=class extends hF{constructor(e={}){super(e)}processResponseStream(e){return av({stream:e,schema:hT}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},hJ=class{constructor({generateId:e=iE,id:t=e(),transport:r=new hB,messageMetadataSchema:n,dataPartSchemas:i,state:a,onError:o,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.activeResumeRequest=void 0,this.jobExecutor=new hM,this.sendMessage=async(e,t)=>{var r,n,i,a;let o;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(r=this.lastMessage)?void 0:r.id,...t});if(o="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await hL(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...o,id:e.messageId,role:null!=(n=o.role)?n:"user",metadata:e.metadata})}else this.state.pushMessage({...o,id:null!=(i=o.id)?i:this.generateId(),role:null!=(a=o.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let r=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===r)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[r].role?r:r+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:e,approved:t,reason:r,options:n})=>this.jobExecutor.run(async()=>{let i=this.state.messages,a=i[i.length-1],o=n=>hN(n)&&"approval-requested"===n.state&&n.approval.id===e?{...n,state:"approval-responded",approval:{...n.approval,id:e,approved:t,reason:r}}:n;this.state.replaceMessage(i.length-1,{...a,parts:a.parts.map(o)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(o)),"streaming"!==this.status&&"submitted"!==this.status&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{var t;e&&this.makeRequest({trigger:"submit-message",messageId:null==(t=this.lastMessage)?void 0:t.id,...n})})}),this.addToolOutput=async({state:e="output-available",toolCallId:t,output:r,errorText:n,options:i})=>this.jobExecutor.run(async()=>{let a=this.state.messages,o=a[a.length-1],s=i=>hN(i)&&i.toolCallId===t?{...i,state:e,output:r,errorText:n}:i;this.state.replaceMessage(a.length-1,{...o,parts:o.parts.map(s)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(s)),"streaming"!==this.status&&"submitted"!==this.status&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{var t;e&&this.makeRequest({trigger:"submit-message",messageId:null==(t=this.lastMessage)?void 0:t.id,...i})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var e,t;null==(e=this.activeResumeRequest)||e.abortController.abort(),null==(t=this.activeResponse)||t.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=i,this.state=a,this.onError=o,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=d}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&"object"==typeof e&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:r,body:n,messageId:i}){var a,o,s;let l,u,d=new AbortController,c="resume-stream"===e?{abortController:d}:void 0;c&&(null==(a=this.activeResumeRequest)||a.abortController.abort(),this.activeResumeRequest=c);let p=()=>null==c||this.activeResumeRequest===c,f=()=>{this.activeResumeRequest===c&&(this.activeResumeRequest=void 0)};if("resume-stream"===e)try{let e=await this.transport.reconnectToStream({chatId:this.id,abortSignal:d.signal,metadata:t,headers:r,body:n});if(d.signal.aborted||!p()){await (null==e?void 0:e.cancel().catch(()=>{})),p()&&this.setStatus({status:"ready"}),f();return}if(null==e){this.setStatus({status:"ready"}),f();return}l=e}catch(e){if(d.signal.aborted||"AbortError"===e.name){p()&&this.setStatus({status:"ready"}),f();return}if(!p())return;this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e}),f();return}this.setStatus({status:"submitted",error:void 0});let m=this.lastMessage,h=!1,g=!1,v=!1;try{let a,o={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:hU(),activeReasoningParts:hU(),partialToolCalls:hU()}}({lastMessage:"resume-stream"===e||"regenerate-message"===e?void 0:this.state.snapshot(m),messageId:this.generateId()}),abortController:d};u=o,o.abortController.signal.addEventListener("abort",()=>{h=!0}),this.activeResponse=o,a="resume-stream"===e?l:await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:o.abortController.signal,metadata:t,headers:r,body:n,trigger:e,messageId:i});let s=e=>this.jobExecutor.run(()=>o.abortController.signal.aborted?Promise.resolve():e({state:o.state,write:()=>{var e;o.abortController.signal.aborted||(this.setStatus({status:"streaming"}),o.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,o.state.message):this.state.pushMessage(o.state.message))}}));if(await hC({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:n,onError:i,onToolCall:a,onData:o}){return e.pipeThrough(new TransformStream({async transform(e,s){await n(async({state:n,write:l})=>{var u,d,c,p;function f(){let e=n.message.parts,t=e.length-1;for(;t>=0&&"step-start"!==e[t].type;)t--;return e.slice(t+1)}function m(e){let t=f().filter(hN).find(t=>t.toolCallId===e);if(null==t){let r=n.message.parts;for(let n=r.length-1;n>=0;n--){let i=r[n];if(hN(i)&&i.toolCallId===e){t=i;break}}}if(null==t)throw new hi({chunkType:"tool-invocation",chunkId:e,message:`No tool invocation found for tool call ID "${e}".`});return t}function h(e,t){var r;let i=null!=t?t:f().find(t=>hA(t)&&t.toolCallId===e.toolCallId);if(null!=i){i.state=e.state,i.input=e.input,i.output=e.output,i.errorText=e.errorText,i.rawInput=e.rawInput,i.preliminary=e.preliminary,void 0!==e.title&&(i.title=e.title),void 0!==e.toolMetadata&&(i.toolMetadata=e.toolMetadata),i.providerExecuted=null!=(r=e.providerExecuted)?r:i.providerExecuted;let t=e.providerMetadata;null!=t&&("output-available"===e.state||"output-error"===e.state?i.resultProviderMetadata=t:i.callProviderMetadata=t)}else n.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,title:e.title,...void 0!==e.toolMetadata?{toolMetadata:e.toolMetadata}:{},input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata&&("output-available"===e.state||"output-error"===e.state)?{resultProviderMetadata:e.providerMetadata}:{},...null!=e.providerMetadata&&"output-available"!==e.state&&"output-error"!==e.state?{callProviderMetadata:e.providerMetadata}:{}})}function g(e,t){var r,i;let a=null!=t?t:f().find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);if(null!=a){a.state=e.state,a.toolName=e.toolName,a.input=e.input,a.output=e.output,a.errorText=e.errorText,a.rawInput=null!=(r=e.rawInput)?r:a.rawInput,a.preliminary=e.preliminary,void 0!==e.title&&(a.title=e.title),void 0!==e.toolMetadata&&(a.toolMetadata=e.toolMetadata),a.providerExecuted=null!=(i=e.providerExecuted)?i:a.providerExecuted;let t=e.providerMetadata;null!=t&&("output-available"===e.state||"output-error"===e.state?a.resultProviderMetadata=t:a.callProviderMetadata=t)}else n.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,providerExecuted:e.providerExecuted,title:e.title,...void 0!==e.toolMetadata?{toolMetadata:e.toolMetadata}:{},...null!=e.providerMetadata&&("output-available"===e.state||"output-error"===e.state)?{resultProviderMetadata:e.providerMetadata}:{},...null!=e.providerMetadata&&"output-available"!==e.state&&"output-error"!==e.state?{callProviderMetadata:e.providerMetadata}:{}})}async function v(e){if(null!=e){let r=null!=n.message.metadata?function e(t,r){if(void 0===t&&void 0===r)return;if(void 0===t)return r;if(void 0===r)return t;let n={...t};for(let i in r)if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&Object.prototype.hasOwnProperty.call(r,i)){let a=r[i];if(void 0===a)continue;let o=i in t?t[i]:void 0,s=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),l=null!=o&&"object"==typeof o&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);s&&l?n[i]=e(o,a):n[i]=a}return n}(n.message.metadata,e):e;null!=t&&await af({value:r,schema:t,context:{field:"message.metadata",entityId:n.message.id}}),n.message.metadata=r}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeTextParts[e.id]=t,n.message.parts.push(t),l();break}case"text-delta":{let t=n.activeTextParts[e.id];if(null==t)throw new hi({chunkType:"text-delta",chunkId:e.id,message:`Received text-delta for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});t.text+=e.delta,t.providerMetadata=null!=(u=e.providerMetadata)?u:t.providerMetadata,l();break}case"text-end":{let t=n.activeTextParts[e.id];if(null==t)throw new hi({chunkType:"text-end",chunkId:e.id,message:`Received text-end for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});t.state="done",t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,delete n.activeTextParts[e.id],l();break}case"reasoning-start":{let t={type:"reasoning",id:e.id,text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeReasoningParts[e.id]=t,n.message.parts.push(t),l();break}case"reasoning-delta":{let t=n.activeReasoningParts[e.id];if(null==t)throw new hi({chunkType:"reasoning-delta",chunkId:e.id,message:`Received reasoning-delta for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});t.text+=e.delta,t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,l();break}case"reasoning-end":{let t=n.activeReasoningParts[e.id];if(null==t)throw new hi({chunkType:"reasoning-end",chunkId:e.id,message:`Received reasoning-end for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});t.providerMetadata=null!=(p=e.providerMetadata)?p:t.providerMetadata,t.state="done",delete n.activeReasoningParts[e.id],l();break}case"file":n.message.parts.push({type:"file",mediaType:e.mediaType,url:e.url,...null!=e.providerMetadata?{providerMetadata:e.providerMetadata}:{}}),l();break;case"source-url":n.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),l();break;case"source-document":n.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),l();break;case"tool-input-start":{let t=f().filter(hA);n.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic,title:e.title,toolMetadata:e.toolMetadata},e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}):h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}),l();break}case"tool-input-delta":{let t=n.partialToolCalls[e.toolCallId];if(null==t)throw new hi({chunkType:"tool-input-delta",chunkId:e.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${e.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});t.text+=e.inputTextDelta;let{value:r}=await hI(t.text);t.dynamic?g({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r,title:t.title,toolMetadata:t.toolMetadata}):h({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r,title:t.title,toolMetadata:t.toolMetadata}),l();break}case"tool-input-available":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}):h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}),l(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":{let t=f().filter(hN).find(t=>t.toolCallId===e.toolCallId);(null!=t?"dynamic-tool"===t.type:e.dynamic)?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}):h({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}),l();break}case"tool-approval-request":{let t=m(e.toolCallId);t.state="approval-requested",t.approval={id:e.approvalId,...null!=e.signature?{signature:e.signature}:{}},l();break}case"tool-output-denied":m(e.toolCallId).state="output-denied",l();break;case"tool-output-available":{let t=m(e.toolCallId);"dynamic-tool"===t.type?g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata},t):h({toolCallId:e.toolCallId,toolName:hP(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata},t),l();break}case"tool-output-error":{let t=m(e.toolCallId);"dynamic-tool"===t.type?g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata},t):h({toolCallId:e.toolCallId,toolName:hP(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata},t),l();break}case"start-step":n.message.parts.push({type:"step-start"});break;case"finish-step":n.activeTextParts=hU(),n.activeReasoningParts=hU();break;case"start":null!=e.messageId&&(n.message.id=e.messageId),await v(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&l();break;case"finish":null!=e.finishReason&&(n.finishReason=e.finishReason),await v(e.messageMetadata),null!=e.messageMetadata&&l();break;case"message-metadata":await v(e.messageMetadata),null!=e.messageMetadata&&l();break;case"error":null==i||i(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==r?void 0:r[e.type])!=null){let t=n.message.parts.findIndex(t=>"id"in t&&"data"in t&&t.id===e.id&&t.type===e.type),i=t>=0?t:n.message.parts.length;await af({value:e.data,schema:r[e.type],context:{field:`message.parts[${i}].data`,entityName:e.type,entityId:e.id}})}if(e.transient){null==o||o(e);break}let t=null!=e.id?n.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:n.message.parts.push(e),null==o||o(e),l()}}s.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:s,onError:e=>{throw e}}),abortSignal:o.abortController.signal,onError:e=>{throw e}}),h)return p()&&this.setStatus({status:"ready"}),null;p()&&this.setStatus({status:"ready"})}catch(e){if(h||"AbortError"===e.name)return h=!0,p()&&this.setStatus({status:"ready"}),null;if(!p())return null;v=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(g=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{u&&(null==(o=this.onFinish)||o.call(this,{message:u.state.message,messages:this.state.messages,isAbort:h,isDisconnect:g,isError:v,finishReason:u.state.finishReason}))}finally{this.activeResponse===u&&(this.activeResponse=void 0),f()}}!v&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:null==(s=this.lastMessage)?void 0:s.id,metadata:t,headers:r,body:n})}},hV=e.i(26167),hW=e.i(90979),hq=Object.prototype.hasOwnProperty;let hG=new WeakMap,hK=()=>{},hH=hK(),hY=Object,hX=e=>e===hH,hQ=(e,t)=>({...e,...t}),h0={},h1={},h2="undefined",h4=typeof window!=h2,h6=typeof document!=h2,h5=h4&&"Deno"in window,h9=(e,t)=>{let r=hG.get(e);return[()=>!hX(t)&&e.get(t)||h0,n=>{if(!hX(t)){let i=e.get(t);t in h1||(h1[t]=i),r[5](t,hQ(i,n),i||h0)}},r[6],()=>!hX(t)&&t in h1?h1[t]:!hX(t)&&e.get(t)||h0]},h3=!0,[h7,h8]=h4&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[hK,hK],ge={initFocus:e=>(h6&&document.addEventListener("visibilitychange",e),h7("focus",e),()=>{h6&&document.removeEventListener("visibilitychange",e),h8("focus",e)}),initReconnect:e=>{let t=()=>{h3=!0,e()},r=()=>{h3=!1};return h7("online",t),h7("offline",r),()=>{h8("online",t),h8("offline",r)}}},gt=!em.default.useId,gr=!h4||h5,gn=gr?em.useEffect:em.useLayoutEffect,gi="u">typeof navigator&&navigator.connection,ga=!gr&&gi&&(["slow-2g","2g"].includes(gi.effectiveType)||gi.saveData),go=new WeakMap,gs=(e,t)=>e===`[object ${t}]`,gl=0,gu=e=>{let t,r,n=typeof e,i=hY.prototype.toString.call(e),a=gs(i,"Date"),o=gs(i,"RegExp"),s=gs(i,"Object");if(hY(e)!==e||a||o)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=go.get(e))return t;if(t=++gl+"~",go.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=gu(e[r])+",";go.set(e,t)}if(s){t="#";let n=hY.keys(e).sort();for(;!hX(r=n.pop());)hX(e[r])||(t+=r+":"+gu(e[r])+",");go.set(e,t)}}return t},gd=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?gu(e):"",t]},gc=0,gp=()=>++gc;async function gf(...e){let[t,r,n,i]=e,a=hQ({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,l=a.optimisticData,u=a.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(d))}return d(r);async function d(r){let i,[d]=gd(r);if(!d)return;let[c,p]=h9(t,d),[f,m,h,g]=hG.get(t),v=()=>{let e=f[d];return("function"==typeof a.revalidate?a.revalidate(c().data,r):!1!==a.revalidate)&&(delete h[d],delete g[d],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return v();let y=n,b=!1,_=gp();m[d]=[_,0];let $=!hX(l),x=c(),k=x.data,w=x._c,I=hX(w)?k:w;if($&&p({data:l="function"==typeof l?l(I,k):l,_c:I}),"function"==typeof y)try{y=y(I)}catch(e){i=e,b=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{i=e,b=!0}),_!==m[d][0]){if(b)throw i;return y}b&&$&&(e=i,"function"==typeof s?s(e):!1!==s)&&(o=!0,p({data:I,_c:hH}))}if(o&&!b&&("function"==typeof o?p({data:o(y,I),error:hH,_c:hH}):p({data:y,error:hH,_c:hH})),m[d][1]=gp(),Promise.resolve(v()).then(()=>{p({_c:hH})}),b){if(u)throw i;return}return y}}let gm=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},gh=(e,t)=>{if(!hG.has(e)){let r=hQ(ge,t),n=Object.create(null),i=gf.bind(hH,e),a=hK,o=Object.create(null),s=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},l=(t,r,n)=>{e.set(t,r);let i=o[t];if(i)for(let e of i)e(r,n)},u=t=>{let r=hG.get(e),[,i,a,s]=r,l=gp();for(let e in r[8]++,a)delete a[e];for(let e in s)delete s[e];for(let e in i)i[e]=[l,l];let u={};for(let t of[...e.keys()]){let r=e.get(t);e.delete(t);let n=o[t];if(n)for(let e of n)e(u,r)}let d=!t||!1!==t.revalidate;for(let e in n){let t=n[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:d&&!e})}},d=()=>{if(!hG.has(e)&&(hG.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,l,s,u,0]),!gr)){let t=r.initFocus(setTimeout.bind(hH,gm.bind(hH,n,0))),i=r.initReconnect(setTimeout.bind(hH,gm.bind(hH,n,1)));a=()=>{t&&t(),i&&i(),hG.delete(e)}}};return d(),[e,i,d,a,u]}let r=hG.get(e);return[e,r[4],hH,hH,r[7]]},[gg,gv,,,gy]=gh(new Map),gb=hQ({onLoadingSlow:hK,onSuccess:hK,onError:hK,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(hX(a)||!(o>a))&&setTimeout(n,s,i)},onDiscarded:hK,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ga?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:ga?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(hq.call(t,n)&&++i&&!hq.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:gg,mutate:gv,unload:gy,fallback:{}},{isOnline:()=>h3,isVisible:()=>{let e=h6&&document.visibilityState;return hX(e)||"hidden"!==e}}),g_=(0,em.createContext)({}),g$=h4&&window.__SWR_DEVTOOLS_USE__;(g$?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=gd(t),[,,,i]=hG.get(gg);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return hX(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),g$&&(window.__SWR_DEVTOOLS_REACT__=em.default);let gx=em.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),gk={dedupe:!0},gw=Promise.resolve(hH);gw.status="fulfilled",gw.value=hH;hY.defineProperty(e=>{let{value:t}=e,r=(0,em.useContext)(g_),n="function"==typeof t,i=(0,em.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,em.useMemo)(()=>n?i:((e,t)=>{let r=hQ(e,t);if(t){let{use:n,fallback:i,cacheData:a}=e,{use:o,fallback:s,cacheData:l}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=hQ(i,s)),a&&l&&(r.cacheData=hQ(a,l))}return r})(r,i),[n,r,i]),o=i&&i.provider,s=(0,em.useRef)(hH);o&&!s.current&&(s.current=gh(o(a.cache||gg),i));let l=s.current;return l&&(a.cache=l[0],a.mutate=l[1],a.unload=l[4]),gn(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,em.createElement)(g_.Provider,hQ(e,{value:a}))},"defaultValue",{value:gb});var gI=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},gS=(e,t,r)=>(gI(e,t,"read from private field"),r?r.call(e):t.get(e)),gE=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},gO=(e,t,r,n)=>(gI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),gj=class{constructor(e=[]){gE(this,en,void 0),gE(this,ei,"ready"),gE(this,ea,void 0),gE(this,eo,new Set),gE(this,es,new Set),gE(this,el,new Set),this.pushMessage=e=>{gO(this,en,gS(this,en).concat(e)),gS(this,eu).call(this)},this.popMessage=()=>{gO(this,en,gS(this,en).slice(0,-1)),gS(this,eu).call(this)},this.replaceMessage=(e,t)=>{gO(this,en,[...gS(this,en).slice(0,e),this.snapshot(t),...gS(this,en).slice(e+1)]),gS(this,eu).call(this)},this.snapshot=e=>{var t;if(null==e||"object"!=typeof e||!("parts"in e)||!Array.isArray(e.parts))return e;let r={...e,parts:e.parts.map(e=>({...e}))};return"metadata"in e&&(r.metadata=Array.isArray(t=e.metadata)?[...t]:null!=t&&"object"==typeof t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))?{...t}:t),r},this["~registerMessagesCallback"]=(e,t)=>{let r=t?null!=t?(0,hV.default)(e,t):e:e;return gS(this,eo).add(r),()=>{gS(this,eo).delete(r)}},this["~registerStatusCallback"]=e=>(gS(this,es).add(e),()=>{gS(this,es).delete(e)}),this["~registerErrorCallback"]=e=>(gS(this,el).add(e),()=>{gS(this,el).delete(e)}),gE(this,eu,()=>{gS(this,eo).forEach(e=>e())}),gE(this,ed,()=>{gS(this,es).forEach(e=>e())}),gE(this,ec,()=>{gS(this,el).forEach(e=>e())}),gO(this,en,e)}get status(){return gS(this,ei)}set status(e){gO(this,ei,e),gS(this,ed).call(this)}get error(){return gS(this,ea)}set error(e){gO(this,ea,e),gS(this,ec).call(this)}get messages(){return gS(this,en)}set messages(e){gO(this,en,[...e]),gS(this,eu).call(this)}};en=new WeakMap,ei=new WeakMap,ea=new WeakMap,eo=new WeakMap,es=new WeakMap,el=new WeakMap,eu=new WeakMap,ed=new WeakMap,ec=new WeakMap;var gZ=class extends hJ{constructor({messages:e,...t}){const r=new gj(e);super({...t,state:r}),gE(this,ep,void 0),this["~registerMessagesCallback"]=(e,t)=>gS(this,ep)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>gS(this,ep)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>gS(this,ep)["~registerErrorCallback"](e),gO(this,ep,r)}};ep=new WeakMap;var gz=e.i(69322);let gT={createInterruptionMessage:e=>({id:`interruption-${Date.now()}`,role:"assistant",content:`⚠️ **Operation Interrupted**
|
|
95
|
+
|
|
96
|
+
The current operation was stopped by user request.
|
|
97
|
+
|
|
98
|
+
**Status at interruption:**
|
|
99
|
+
- Current phase: ${({submitted:"request processing",streaming:"response generation",error:"error handling",ready:"idle state"})[e]||e}
|
|
100
|
+
- Remaining tasks may not have been completed
|
|
101
|
+
- You can start a new request at any time
|
|
102
|
+
|
|
103
|
+
*The system is ready for your next command.*`}),hasIncompleteToolInvocations:e=>"assistant"===e.role&&!!e.parts&&e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)),filterCompleteMessages(e){return e.filter(e=>!this.hasIncompleteToolInvocations(e))}};var gU=e.i(79684);function gA(e){return["png","jpg","jpeg","gif","webp","bmp","svg"].includes(e.split(".").pop()?.toLowerCase().split("?")[0]||"")?``:`[${e.split("/").pop()||"file"}](${e})`}let gN=()=>{let e=(0,gz.useIntl)(),[t,r]=(0,gU.default)("copilot-chat-history",[]),n=(0,em.useRef)(!1),{messages:i,error:a,resumeStream:o,status:s,setMessages:l,stop:u,regenerate:d,sendMessage:c}=function({experimental_throttle:e,resume:t=!1,...r}={}){let n,i=(0,em.useRef)({});"chat"in r||(i.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen,transport:r.transport});let a=()=>{var e;return null!=(e=i.current.transport)?e:null!=n?n:n=new hB},o={...r,transport:{sendMessages:e=>a().sendMessages(e),reconnectToStream:e=>a().reconnectToStream(e)},onToolCall:e=>{var t,r;return null==(r=(t=i.current).onToolCall)?void 0:r.call(t,e)},onData:e=>{var t,r;return null==(r=(t=i.current).onData)?void 0:r.call(t,e)},onFinish:e=>{var t,r;return null==(r=(t=i.current).onFinish)?void 0:r.call(t,e)},onError:e=>{var t,r;return null==(r=(t=i.current).onError)?void 0:r.call(t,e)},sendAutomaticallyWhen:e=>{var t,r,n;return null!=(n=null==(r=(t=i.current).sendAutomaticallyWhen)?void 0:r.call(t,e))&&n}},s=(0,em.useRef)("chat"in r?r.chat:new gZ(o));("chat"in r&&r.chat!==s.current||"id"in r&&null!=r.id&&s.current.id!==r.id)&&(s.current="chat"in r?r.chat:new gZ(o));let l=s.current,u=(0,em.useRef)({chat:l,messages:l.messages});u.current.chat!==l&&(u.current={chat:l,messages:l.messages});let d=(0,em.useCallback)(t=>{let r=!0,n=l["~registerMessagesCallback"](()=>{r&&u.current.chat===l&&(u.current={chat:l,messages:l.messages},t())},e);return u.current={chat:l,messages:l.messages},()=>{r=!1,n()}},[l,e]),c=(0,em.useCallback)(()=>u.current.messages,[]),p=(0,em.useSyncExternalStore)(d,c,c),f=(0,em.useCallback)(e=>l["~registerStatusCallback"](()=>{u.current.chat===l&&(("ready"===l.status||"error"===l.status)&&(u.current={chat:l,messages:l.messages}),e())}),[l]),m=(0,em.useCallback)(()=>l.status,[l]),h=(0,em.useSyncExternalStore)(f,m,m),g=(0,em.useSyncExternalStore)(s.current["~registerErrorCallback"],()=>s.current.error,()=>s.current.error),v=(0,em.useCallback)(e=>{"function"==typeof e&&(e=e(s.current.messages)),s.current.messages=e},[s]);return(0,em.useEffect)(()=>{t&&s.current.resumeStream()},[t,s]),{id:s.current.id,messages:p,setMessages:v,sendMessage:s.current.sendMessage,regenerate:s.current.regenerate,clearError:s.current.clearError,stop:s.current.stop,error:g,resumeStream:s.current.resumeStream,status:h,addToolResult:s.current.addToolOutput,addToolOutput:s.current.addToolOutput,addToolApprovalResponse:s.current.addToolApprovalResponse}}({transport:new hB({api:"/chat",credentials:"include"}),messages:t,onError:t=>{let r;r=t.message?.includes("401")||t.message?.includes("invalid_token")||t.message?.includes("Unauthorized")?e.formatMessage({id:"chat.error.auth",defaultMessage:"🔐 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n**To fix this:**\n1. Refresh the page (Ctrl+R / Cmd+R)\n2. Log out and log back in\n3. Check your permissions\n\n*This happens when your session expires after being idle too long.*"}):t.message?.includes("fetch")||t.message?.includes("Failed to fetch")||t.message?.includes("NetworkError")?e.formatMessage({id:"chat.error.connection",defaultMessage:"🚫 **Connection Error**\n\nCannot connect to the chat API server at {chatUrl}.\n\n**To enable chat:**\n1. Start the backend\n2. Ensure chat/MCP endpoint is configured\n3. Check NEXT_PUBLIC_CHAT_URL\n\n**Current configuration:**\n- Chat URL: {chatUrl}\n\n*Please start the backend.*"},{chatUrl:"/chat"}):t.message?.includes("stream")||t.message?.includes("process")?e.formatMessage({id:"chat.error.stream",defaultMessage:"⚠️ **Stream Processing Error**\n\nThere was an error processing the AI response stream.\n\n**Possible causes:**\n1. Backend not running\n2. MCP server not responding\n3. Missing/invalid API keys\n4. Network issues\n\n**Error details:** {details}"},{details:t.message}):e.formatMessage({id:"chat.error.unexpected",defaultMessage:"❌ **Chat Error**\n\nAn unexpected error occurred: {details}\n\n*Please try again or check the console for details.*"},{details:t.message});let n={id:`error-${Date.now()}`,role:"assistant",parts:[{type:"text",text:r}]};l(e=>[...e,n])}});return(0,em.useEffect)(()=>{"streaming"!==s&&r(i)},[s]),{messages:i,handleSubmit:async(t,r)=>{try{let e=r?.map(gA).join("\n")??"",n=[t,e].filter(Boolean).join("\n");t&&c({text:n})}catch(i){console.error("Error in handleSubmit:",i);let t=i instanceof Error?i.message:"Unknown error",r=t.includes("401")||t.includes("Unauthorized")?e.formatMessage({id:"chat.error.auth",defaultMessage:"🔐 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n*Please refresh or log in again.*"}):e.formatMessage({id:"chat.error.submission",defaultMessage:"❌ **Submission Error**\n\nFailed to send your message.\n\n**Error:** {details}\n\n*Please ensure the backend is running.*"},{details:t}),n={id:`error-${Date.now()}`,role:"assistant",parts:[{type:"text",text:r}]};l(e=>[...e,n])}},error:a,status:s,clearHistory:()=>{l([]),r([]),n.current=!1},stop:u,addInterruptionMessage:e=>{let t=gT.createInterruptionMessage(e);l(e=>[...e,t])},sendMessage:c,reload:d,resumeStream:o}};e.s(["useChatManager",0,gN],16717);let gP=(0,em.createContext)(void 0);e.s(["ChatProvider",0,({children:e})=>{let t=gN(),r=(0,em.useMemo)(()=>({messages:t.messages,handleSubmit:t.handleSubmit,error:t.error,clearHistory:t.clearHistory,stop:t.stop,addInterruptionMessage:t.addInterruptionMessage,status:t.status,reload:t.reload,sendMessage:t.sendMessage,resumeStream:t.resumeStream}),[t.messages,t.handleSubmit,t.error,t.clearHistory,t.stop,t.addInterruptionMessage,t.status,t.reload,t.sendMessage,t.resumeStream]);return(0,ef.jsx)(gP.Provider,{value:r,children:e})},"useChatContext",0,()=>{let e=(0,em.useContext)(gP);if(!e)throw Error("useChatContext must be used within a ChatProvider");return e}],95377)},99525,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"}))});e.s(["default",0,r])},80902,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 15.75V18m-7.5-6.75h.008v.008H8.25v-.008Zm0 2.25h.008v.008H8.25V13.5Zm0 2.25h.008v.008H8.25v-.008Zm0 2.25h.008v.008H8.25V18Zm2.498-6.75h.007v.008h-.007v-.008Zm0 2.25h.007v.008h-.007V13.5Zm0 2.25h.007v.008h-.007v-.008Zm0 2.25h.007v.008h-.007V18Zm2.504-6.75h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V13.5Zm0 2.25h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V18Zm2.498-6.75h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V13.5ZM8.25 6h7.5v2.25h-7.5V6ZM12 2.25c-1.892 0-3.758.11-5.593.322C5.307 2.7 4.5 3.65 4.5 4.757V19.5a2.25 2.25 0 0 0 2.25 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25V4.757c0-1.108-.806-2.057-1.907-2.185A48.507 48.507 0 0 0 12 2.25Z"}))});e.s(["default",0,r])},35750,30770,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))});e.s(["default",0,r],30770),e.s(["CalendarIcon",0,r],35750)},79337,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))});e.s(["default",0,r])},87999,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"}))});e.s(["default",0,r])},22576,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))});e.s(["default",0,r])},95677,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["default",0,r])},1672,18488,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["default",0,r],18488),e.s(["Cog8ToothIcon",0,r],1672)},24271,46073,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))});e.s(["default",0,r],46073),e.s(["CommandLineIcon",0,r],24271)},92248,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))});e.s(["default",0,r])},1943,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["default",0,r])},226,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["default",0,r])},26915,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))});e.s(["default",0,r])},3954,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"}))});e.s(["default",0,r])},75325,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"}))});e.s(["default",0,r])},21168,(e,t,r)=>{var n={872:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),d=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(function(e,t,n){for(var i,a=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(e,t,r){"use strict";var n=r(872),i=r(321),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|f(n,i),l=o(a),u=l.write(n,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var d=e.valueOf&&e.valueOf();if(null!=d&&d!==e)return s.from(d,t,r);var m=function(e){if(s.isBuffer(e)){var t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(m)return m;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),o(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(e).length;default:if(i)return n?-1:I(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=Z[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,a=t,o=r,0===a&&o===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var d=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===l)return d*o}else -1!==d&&(a-=a-d),d=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var c=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){c=!1;break}if(c)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(j(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,l=Math.min(a,o),u=this.slice(n,i),d=e.slice(t,r),c=0;c<l;++c)if(u[c]!==d[c]){a=u[c],o=d[c];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function y(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,l,u=e[i],d=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(d=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(d=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,c=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=c}var p=n,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var m="",h=0;h<f;)m+=String.fromCharCode.apply(String,p.slice(h,h+=4096));return m}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function $(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,a){return t*=1,r>>>=0,a||$(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,a){return t*=1,r>>>=0,a||$(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,d,c,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[r+o]=l}return o}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,O(I(e,this.length-i),this,i,a);case"ascii":return o=t,s=r,O(S(e),this,o,s);case"latin1":case"binary":return function(e,t,r,n){return O(S(t),e,r,n)}(this,e,t,r);case"base64":return l=t,u=r,O(E(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,c=r,O(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-d),this,d,c);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%l]}return this};var w=/[^+/0-9A-Za-z-_]/g;function I(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function S(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function E(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(w,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var Z=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},321:function(e,t){t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,d=-7,c=r?i-1:0,p=r?-1:1,f=e[t+c];for(c+=p,a=f&(1<<-d)-1,f>>=-d,d+=s;d>0;a=256*a+e[t+c],c+=p,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=256*o+e[t+c],c+=p,d-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,d=(1<<u)-1,c=d>>1,p=5960464477539062e-23*(23===i),f=n?0:a-1,m=n?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=p/l:t+=p*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=d?(s=0,o=d):o+c>=1?(s=(t*l-1)*Math.pow(2,i),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=m,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+f]=255&o,f+=m,o/=256,u-=8);e[r+f-m]|=128*h}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},o=!0;try{n[e](r,r.exports,a),o=!1}finally{o&&delete i[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=a(230)},16518,(e,t,r)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={SYMBOL_FOR_REQ_CONTEXT:()=>d,getContext:()=>c};for(var u in l)n(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);let d=Symbol.for("@vercel/request-context");function c(){let e=globalThis;return e[d]?.get?.()??{}}},2985,(e,t,r)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={AccessTokenMissingError:()=>d,RefreshAccessTokenFailedError:()=>c};for(var u in l)n(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);class d extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}class c extends Error{constructor(e){super("Failed to refresh authentication token.",{cause:e}),this.name="RefreshAccessTokenFailedError"}}},52897,(e,t,r)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={AccessTokenMissingError:()=>c.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>c.RefreshAccessTokenFailedError,getContext:()=>d.getContext,getVercelOidcToken:()=>p,getVercelOidcTokenSync:()=>f,getVercelToken:()=>m};for(var u in l)n(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);var d=e.r(16518),c=e.r(2985);async function p(){return""}function f(){return""}async function m(){throw Error("getVercelToken is not supported in browser environments")}},26167,(e,t,r)=>{t.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),o=t-(a-n);o<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},o)}}}]);
|