digital-rabbit-cl 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/components/Button/Button.d.ts.map +1 -1
  2. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  3. package/dist/components/FeatureCard/FeatureCard.d.ts +12 -0
  4. package/dist/components/FeatureCard/FeatureCard.d.ts.map +1 -0
  5. package/dist/components/FeatureCard/index.d.ts +3 -0
  6. package/dist/components/FeatureCard/index.d.ts.map +1 -0
  7. package/dist/components/FeatureCard/useFeatureCardStyles.d.ts +9 -0
  8. package/dist/components/FeatureCard/useFeatureCardStyles.d.ts.map +1 -0
  9. package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +11 -0
  10. package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +1 -0
  11. package/dist/components/FeatureGridSection/index.d.ts +3 -0
  12. package/dist/components/FeatureGridSection/index.d.ts.map +1 -0
  13. package/dist/components/FeatureGridSection/useFeatureGridStyles.d.ts +10 -0
  14. package/dist/components/FeatureGridSection/useFeatureGridStyles.d.ts.map +1 -0
  15. package/dist/components/Footer/Footer.d.ts +11 -0
  16. package/dist/components/Footer/Footer.d.ts.map +1 -0
  17. package/dist/components/Footer/index.d.ts +3 -0
  18. package/dist/components/Footer/index.d.ts.map +1 -0
  19. package/dist/components/Form/FormCheckboxGroup.d.ts +21 -0
  20. package/dist/components/Form/FormCheckboxGroup.d.ts.map +1 -0
  21. package/dist/components/Form/FormField.d.ts +5 -1
  22. package/dist/components/Form/FormField.d.ts.map +1 -1
  23. package/dist/components/Form/FormRadioGroup.d.ts +20 -0
  24. package/dist/components/Form/FormRadioGroup.d.ts.map +1 -0
  25. package/dist/components/Form/index.d.ts +4 -0
  26. package/dist/components/Form/index.d.ts.map +1 -1
  27. package/dist/components/FormGroup/FormGroup.d.ts +1 -0
  28. package/dist/components/FormGroup/FormGroup.d.ts.map +1 -1
  29. package/dist/components/Hero/Hero.d.ts +9 -0
  30. package/dist/components/Hero/Hero.d.ts.map +1 -0
  31. package/dist/components/Hero/index.d.ts +3 -0
  32. package/dist/components/Hero/index.d.ts.map +1 -0
  33. package/dist/components/Hero/useHeroStyles.d.ts +11 -0
  34. package/dist/components/Hero/useHeroStyles.d.ts.map +1 -0
  35. package/dist/components/Input/Input.d.ts.map +1 -1
  36. package/dist/components/PageLayout/PageLayout.d.ts +12 -0
  37. package/dist/components/PageLayout/PageLayout.d.ts.map +1 -0
  38. package/dist/components/PageLayout/index.d.ts +3 -0
  39. package/dist/components/PageLayout/index.d.ts.map +1 -0
  40. package/dist/components/Radio/Radio.d.ts.map +1 -1
  41. package/dist/components/ResponsiveSection/ResponsiveSection.d.ts +14 -0
  42. package/dist/components/ResponsiveSection/ResponsiveSection.d.ts.map +1 -0
  43. package/dist/components/ResponsiveSection/index.d.ts +3 -0
  44. package/dist/components/ResponsiveSection/index.d.ts.map +1 -0
  45. package/dist/components/ResponsiveSection/useResponsiveSectionStyles.d.ts +10 -0
  46. package/dist/components/ResponsiveSection/useResponsiveSectionStyles.d.ts.map +1 -0
  47. package/dist/components/Select/Select.d.ts.map +1 -1
  48. package/dist/components/Stack/Stack.d.ts +2 -2
  49. package/dist/components/Stack/Stack.d.ts.map +1 -1
  50. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  51. package/dist/digital-rabbit-cl.es.js +1331 -1150
  52. package/dist/digital-rabbit-cl.umd.js +6 -11
  53. package/dist/index.d.ts +12 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/theme/ThemeContext.d.ts +5 -0
  56. package/dist/theme/ThemeContext.d.ts.map +1 -1
  57. package/package.json +1 -1
@@ -1,37 +1,37 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:.25rem;font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:.5em}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:4.25rem;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.5rem 3rem;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.75rem 2rem}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as w, jsxs as ne, Fragment as Ke } from "react/jsx-runtime";
3
- import V, { createContext as hr, useContext as _r, useState as Je, useLayoutEffect as gr, useMemo as Tt, useSyncExternalStore as pr, useRef as _t, useEffect as je } from "react";
4
- const vr = "Button-module__button___2ZuB7", br = "Button-module__sizeSmall___DRT8P", Sr = "Button-module__sizeDefault___iwWOV", Ve = {
5
- button: vr,
6
- sizeSmall: br,
7
- sizeDefault: Sr
8
- }, xr = ({
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:.25rem;font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:.5em}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:var(--border-width, .15em);border-style:solid;border-radius:var(--border-radius, 0px);box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:4.25rem;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.5rem 3rem;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.75rem 2rem}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width, 1200px);margin:0 auto;padding:var(--section-padding, 1rem)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:1rem}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{margin-top:auto;--section-padding-mobile: 1rem 1rem;--section-padding-desktop: 1.5rem 2rem}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.5rem}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:1rem;color:var(--feature-icon-color, #0066cc)}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:.75rem;color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, #666)}.FeatureGridSection-module__section___wZrbC{padding:3rem 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__header___ChdTF{flex-shrink:0}.PageLayout-module__main___Sw7Pv{flex:1}.PageLayout-module__mainPadded___ZKio3{padding:2rem 0}.PageLayout-module__footer___DUw6m{flex-shrink:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as S, jsxs as J, Fragment as Ye } from "react/jsx-runtime";
3
+ import x, { createContext as Fr, useContext as wr, useState as et, useLayoutEffect as kr, useMemo as ge, useSyncExternalStore as xr, useRef as St, useEffect as Ze } from "react";
4
+ const Vr = "Button-module__button___2ZuB7", Cr = "Button-module__sizeSmall___DRT8P", Er = "Button-module__sizeDefault___iwWOV", Ce = {
5
+ button: Vr,
6
+ sizeSmall: Cr,
7
+ sizeDefault: Er
8
+ }, zr = ({
9
9
  isActive: e,
10
10
  disabled: r,
11
11
  buttonColor: t = "#FFF",
12
12
  textColor: s = "#000",
13
- hoverColor: n,
14
- hoverTextColor: o,
13
+ hoverColor: o,
14
+ hoverTextColor: n,
15
15
  outline: a
16
16
  }) => {
17
- let l, d, h;
18
- a ? (l = "transparent", d = t, h = t, e && (l = n || t, d = n || t, h = o || s)) : (l = t, d = t, h = s, e && (l = n || t, d = n || t, h = o || s));
17
+ let l, d, m;
18
+ a ? (l = "transparent", d = t, m = t, e && (l = o || t, d = o || t, m = n || s)) : (l = t, d = t, m = s, e && (l = o || t, d = o || t, m = n || s));
19
19
  let f = 1;
20
- return r ? f = 0.3 : e && (f = n || a ? 1 : 0.75), {
20
+ return r ? f = 0.3 : e && (f = o || a ? 1 : 0.75), {
21
21
  backgroundColor: l,
22
22
  borderColor: d,
23
- color: h,
23
+ color: m,
24
24
  opacity: f
25
25
  };
26
- }, gt = {
26
+ }, Ft = {
27
27
  primary: "#000",
28
28
  secondary: "#FFF",
29
29
  accent: "#4381C1",
30
30
  error: "#F00",
31
31
  success: "#008000",
32
32
  warning: "#FFEB3B"
33
- }, ce = {
34
- colors: gt,
33
+ }, le = {
34
+ colors: Ft,
35
35
  fonts: {
36
36
  color: "#000",
37
37
  lineHeight: 1.5,
@@ -49,9 +49,13 @@ const vr = "Button-module__button___2ZuB7", br = "Button-module__sizeSmall___DRT
49
49
  buttons: {
50
50
  textColor: "#FFF",
51
51
  primary: {
52
- textColor: gt.secondary
52
+ textColor: Ft.secondary
53
53
  }
54
54
  },
55
+ border: {
56
+ radius: "0px",
57
+ width: "0.15em"
58
+ },
55
59
  borderRadius: "0px",
56
60
  breakpoints: {
57
61
  xs: "350px",
@@ -64,186 +68,233 @@ const vr = "Button-module__button___2ZuB7", br = "Button-module__sizeSmall___DRT
64
68
  wrapperPaddingSm: "0.5rem",
65
69
  wrapperPadding: "1rem"
66
70
  }
67
- }, Lt = hr(ce), co = ({ theme: e = {}, children: r }) => {
71
+ }, Wt = Fr(le), To = ({ theme: e = {}, children: r }) => {
68
72
  var s;
69
73
  const t = {
70
- ...ce,
74
+ ...le,
71
75
  ...e,
72
76
  colors: {
73
- ...ce.colors,
77
+ ...le.colors,
74
78
  ...e.colors
75
79
  },
76
80
  fonts: {
77
- ...ce.fonts,
81
+ ...le.fonts,
78
82
  ...e.fonts
79
83
  },
80
84
  buttons: {
81
- ...ce.buttons,
85
+ ...le.buttons,
82
86
  ...e.buttons,
83
87
  primary: {
84
- ...ce.buttons.primary,
88
+ ...le.buttons.primary,
85
89
  ...(s = e.buttons) == null ? void 0 : s.primary
86
90
  }
87
91
  },
92
+ border: {
93
+ ...le.border,
94
+ ...e.border
95
+ },
88
96
  breakpoints: {
89
- ...ce.breakpoints,
97
+ ...le.breakpoints,
90
98
  ...e.breakpoints
91
99
  },
92
100
  layout: {
93
- ...ce.layout,
101
+ ...le.layout,
94
102
  ...e.layout
95
103
  }
96
104
  };
97
- return /* @__PURE__ */ w(Lt.Provider, { value: t, children: r });
98
- }, q = () => _r(Lt), uo = ({
105
+ return /* @__PURE__ */ S(Wt.Provider, { value: t, children: r });
106
+ }, U = () => wr(Wt), Mo = ({
99
107
  color: e,
100
108
  hoverColor: r,
101
109
  hoverTextColor: t,
102
110
  textColor: s,
103
- outline: n = !1,
104
- size: o,
111
+ outline: o = !1,
112
+ size: n,
105
113
  type: a = "button",
106
114
  buttonProps: l = {},
107
115
  children: d,
108
- disabled: h = !1,
116
+ disabled: m = !1,
109
117
  onClick: f,
110
118
  fontSize: _
111
119
  }) => {
112
- const y = q(), [x, z] = Je(!1);
113
- let F;
114
- s ? F = s : F = e ? y.buttons.textColor : y.buttons.primary.textColor;
115
- const P = {
116
- ...xr({
117
- isActive: x,
118
- disabled: h,
120
+ const y = U(), [b, V] = et(!1);
121
+ let k;
122
+ s ? k = s : k = e ? y.buttons.textColor : y.buttons.primary.textColor;
123
+ const O = {
124
+ ...zr({
125
+ isActive: b,
126
+ disabled: m,
119
127
  buttonColor: e || y.colors.primary,
120
- textColor: F,
128
+ textColor: k,
121
129
  hoverColor: r,
122
130
  hoverTextColor: t,
123
- outline: n
131
+ outline: o
124
132
  }),
125
- fontSize: _ || y.fonts.size
126
- }, b = [
127
- Ve.button,
128
- o === "small" ? Ve.sizeSmall : Ve.sizeDefault,
129
- n ? Ve.outline : ""
133
+ fontSize: _ || y.fonts.size,
134
+ "--border-width": y.border.width,
135
+ "--border-radius": y.border.radius
136
+ }, F = [
137
+ Ce.button,
138
+ n === "small" ? Ce.sizeSmall : Ce.sizeDefault,
139
+ o ? Ce.outline : ""
130
140
  ].filter(Boolean).join(" ");
131
- return /* @__PURE__ */ w(
141
+ return /* @__PURE__ */ S(
132
142
  "button",
133
143
  {
134
- className: b,
135
- disabled: h,
144
+ className: F,
145
+ disabled: m,
136
146
  onClick: f,
137
- onMouseEnter: () => z(!0),
138
- onMouseLeave: () => z(!1),
147
+ onMouseEnter: () => V(!0),
148
+ onMouseLeave: () => V(!1),
139
149
  type: a,
140
150
  ...l,
141
151
  style: {
142
- ...P,
152
+ ...O,
143
153
  ...l.style
144
154
  },
145
155
  children: d
146
156
  }
147
157
  );
148
158
  };
149
- var pt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Fr = new Uint8Array(16);
150
- function Vr() {
151
- if (!pt)
159
+ var wt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Ar = new Uint8Array(16);
160
+ function Dr() {
161
+ if (!wt)
152
162
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
153
- return pt(Fr);
163
+ return wt(Ar);
154
164
  }
155
- var It = [];
156
- for (var ke = 0; ke < 256; ++ke)
157
- It[ke] = (ke + 256).toString(16).substr(1);
158
- function kr(e, r) {
159
- var t = 0, s = It;
165
+ var qt = [];
166
+ for (var Ee = 0; Ee < 256; ++Ee)
167
+ qt[Ee] = (Ee + 256).toString(16).substr(1);
168
+ function Pr(e, r) {
169
+ var t = 0, s = qt;
160
170
  return [s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]]].join("");
161
171
  }
162
- function Bt(e, r, t) {
172
+ function Gt(e, r, t) {
163
173
  var s = r && t || 0;
164
174
  typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
165
- var n = e.random || (e.rng || Vr)();
166
- if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, r)
167
- for (var o = 0; o < 16; ++o)
168
- r[s + o] = n[o];
169
- return r || kr(n);
175
+ var o = e.random || (e.rng || Dr)();
176
+ if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, r)
177
+ for (var n = 0; n < 16; ++n)
178
+ r[s + n] = o[n];
179
+ return r || Pr(o);
170
180
  }
171
- const wr = "Checkbox-module__container___aV9qz", Cr = "Checkbox-module__svg___kkluC", Er = "Checkbox-module__label___cwRtI", Te = {
172
- container: wr,
173
- svg: Cr,
174
- label: Er
175
- }, zr = ({
181
+ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kkluC", Br = "Checkbox-module__label___cwRtI", Ie = {
182
+ container: Nr,
183
+ svg: Rr,
184
+ label: Br
185
+ }, Or = ({
176
186
  color: e = "#000",
177
187
  checkmarkColor: r,
178
188
  disabled: t = !1,
179
189
  inverted: s = !1
180
190
  }) => {
181
- let n = e;
182
- return r ? n = r : s && (n = "white"), {
191
+ let o = e;
192
+ return r ? o = r : s && (o = "white"), {
183
193
  boxColor: e,
184
- checkmarkColor: n,
194
+ checkmarkColor: o,
185
195
  cursor: t ? "default" : "pointer",
186
196
  opacity: t ? 0.3 : 1
187
197
  };
188
- }, Ar = ({
198
+ }, $r = "FormLabel-module__label___0M-fo", Lr = "FormLabel-module__disabled___ktIFp", kt = {
199
+ label: $r,
200
+ disabled: Lr
201
+ }, Tr = ({
202
+ color: e = "#000",
203
+ disabled: r = !1,
204
+ fontSize: t = ".85em"
205
+ }) => ({
206
+ color: e,
207
+ fontSize: t,
208
+ opacity: r ? 0.5 : 1,
209
+ cursor: r ? "not-allowed" : "default"
210
+ }), tt = ({
211
+ children: e,
212
+ color: r,
213
+ disabled: t = !1,
214
+ error: s = !1,
215
+ fontSize: o,
216
+ htmlFor: n,
217
+ style: a,
218
+ ...l
219
+ }) => {
220
+ const d = U(), m = d.colors.error, f = s ? m : r || d.colors.primary, _ = Tr({
221
+ color: f,
222
+ disabled: t,
223
+ fontSize: o || ".85em"
224
+ }), y = {
225
+ color: _.color,
226
+ fontSize: _.fontSize,
227
+ opacity: _.opacity,
228
+ cursor: _.cursor,
229
+ ...a
230
+ }, b = [
231
+ kt.label,
232
+ t ? kt.disabled : ""
233
+ ].filter(Boolean).join(" ");
234
+ return /* @__PURE__ */ S(
235
+ "label",
236
+ {
237
+ className: b,
238
+ htmlFor: n,
239
+ style: y,
240
+ ...l,
241
+ children: e
242
+ }
243
+ );
244
+ }, Mr = ({
189
245
  checked: e = !1,
190
246
  checkmarkColor: r,
191
247
  color: t,
192
248
  disabled: s = !1,
193
- error: n = !1,
194
- fontSize: o,
249
+ error: o = !1,
250
+ fontSize: n,
195
251
  id: a,
196
252
  inverted: l = !1,
197
253
  label: d,
198
- labelStyle: h,
254
+ labelStyle: m,
199
255
  name: f,
200
256
  onChange: _,
201
257
  style: y,
202
- ...x
258
+ ...b
203
259
  }) => {
204
- const z = q(), F = a || Bt(), C = z.colors.error, P = n ? C : t || z.colors.primary, b = zr({
205
- color: P,
260
+ const V = U(), k = a || Gt(), E = V.colors.error, O = o ? E : t || V.colors.primary, F = Or({
261
+ color: O,
206
262
  checkmarkColor: r,
207
263
  disabled: s,
208
264
  inverted: l
209
- }), A = (B) => {
210
- s || _(B);
211
- }, E = {
212
- cursor: b.cursor,
213
- fontSize: o || z.fonts.size,
214
- opacity: b.opacity,
265
+ }), A = ($) => {
266
+ s || _($);
267
+ }, z = {
268
+ cursor: F.cursor,
269
+ fontSize: n || V.fonts.size,
270
+ opacity: F.opacity,
215
271
  ...y
216
- }, k = {
217
- width: o || "1rem"
218
- }, I = {
219
- color: b.boxColor,
220
- cursor: b.cursor,
221
- fontSize: o || "1rem",
222
- ...h
272
+ }, C = {
273
+ width: n || "1rem"
223
274
  };
224
- return /* @__PURE__ */ ne("div", { className: Te.container, style: E, ...x, children: [
225
- /* @__PURE__ */ w(
275
+ return /* @__PURE__ */ J("div", { className: Ie.container, style: z, ...b, children: [
276
+ /* @__PURE__ */ S(
226
277
  "input",
227
278
  {
228
- id: F,
279
+ id: k,
229
280
  checked: e,
230
281
  disabled: s,
231
- onChange: (B) => A({ target: { checked: B.target.checked, name: f, type: "checkbox" } }),
282
+ onChange: ($) => A({ target: { checked: $.target.checked, name: f, type: "checkbox" } }),
232
283
  name: f,
233
284
  style: { display: "none" },
234
285
  type: "checkbox"
235
286
  }
236
287
  ),
237
- /* @__PURE__ */ ne(
288
+ /* @__PURE__ */ J(
238
289
  "svg",
239
290
  {
240
291
  xmlns: "http://www.w3.org/2000/svg",
241
292
  viewBox: "0 0 100 100",
242
293
  onClick: () => A({ target: { checked: !e, name: f, type: "checkbox" } }),
243
- style: k,
244
- className: Te.svg,
294
+ style: C,
295
+ className: Ie.svg,
245
296
  children: [
246
- /* @__PURE__ */ w(
297
+ /* @__PURE__ */ S(
247
298
  "rect",
248
299
  {
249
300
  x: "0",
@@ -251,17 +302,17 @@ const wr = "Checkbox-module__container___aV9qz", Cr = "Checkbox-module__svg___kk
251
302
  height: "100",
252
303
  width: "100",
253
304
  style: {
254
- fill: l && e ? b.boxColor : "transparent",
305
+ fill: l && e ? F.boxColor : "transparent",
255
306
  strokeWidth: "25",
256
- stroke: b.boxColor
307
+ stroke: F.boxColor
257
308
  }
258
309
  }
259
310
  ),
260
- e && /* @__PURE__ */ w(
311
+ e && /* @__PURE__ */ S(
261
312
  "path",
262
313
  {
263
314
  d: "M 25 45 L 45 65 L 75 30",
264
- stroke: b.checkmarkColor,
315
+ stroke: F.checkmarkColor,
265
316
  strokeWidth: "15",
266
317
  fill: "transparent"
267
318
  }
@@ -269,61 +320,73 @@ const wr = "Checkbox-module__container___aV9qz", Cr = "Checkbox-module__svg___kk
269
320
  ]
270
321
  }
271
322
  ),
272
- d && /* @__PURE__ */ w("label", { htmlFor: F, className: Te.label, style: I, children: d })
323
+ d && /* @__PURE__ */ S(
324
+ tt,
325
+ {
326
+ htmlFor: k,
327
+ className: Ie.label,
328
+ style: m,
329
+ color: F.boxColor,
330
+ disabled: s,
331
+ error: o,
332
+ fontSize: n,
333
+ children: d
334
+ }
335
+ )
273
336
  ] });
274
- }, fo = () => {
275
- const e = q();
276
- return gr(() => {
337
+ }, Io = () => {
338
+ const e = U();
339
+ return kr(() => {
277
340
  const r = document.documentElement;
278
341
  e.fonts && (e.fonts.fontFamily && r.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && r.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && r.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && r.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && r.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && r.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && r.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && r.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && r.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && r.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && r.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && r.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && r.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && r.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && r.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && r.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && r.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && r.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.wrapperPaddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.wrapperPaddingSm), e.layout.wrapperPadding && r.style.setProperty("--layout-wrapper-padding", e.layout.wrapperPadding));
279
342
  }, [e]), null;
280
343
  };
281
- var be = (e) => e.type === "checkbox", ue = (e) => e instanceof Date, Q = (e) => e == null;
282
- const $t = (e) => typeof e == "object";
283
- var U = (e) => !Q(e) && !Array.isArray(e) && $t(e) && !ue(e), Ut = (e) => U(e) && e.target ? be(e.target) ? e.target.checked : e.target.value : e, Dr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ht = (e, r) => e.has(Dr(r)), Pr = (e) => {
344
+ var we = (e) => e.type === "checkbox", de = (e) => e instanceof Date, Z = (e) => e == null;
345
+ const Zt = (e) => typeof e == "object";
346
+ var I = (e) => !Z(e) && !Array.isArray(e) && Zt(e) && !de(e), Qt = (e) => I(e) && e.target ? we(e.target) ? e.target.checked : e.target.value : e, Ir = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Kt = (e, r) => e.has(Ir(r)), Ur = (e) => {
284
347
  const r = e.constructor && e.constructor.prototype;
285
- return U(r) && r.hasOwnProperty("isPrototypeOf");
286
- }, Ye = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
348
+ return I(r) && r.hasOwnProperty("isPrototypeOf");
349
+ }, rt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
287
350
  function H(e) {
288
351
  let r;
289
352
  const t = Array.isArray(e), s = typeof FileList < "u" ? e instanceof FileList : !1;
290
353
  if (e instanceof Date)
291
354
  r = new Date(e);
292
- else if (!(Ye && (e instanceof Blob || s)) && (t || U(e)))
293
- if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Pr(e))
355
+ else if (!(rt && (e instanceof Blob || s)) && (t || I(e)))
356
+ if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Ur(e))
294
357
  r = e;
295
358
  else
296
- for (const n in e)
297
- e.hasOwnProperty(n) && (r[n] = H(e[n]));
359
+ for (const o in e)
360
+ e.hasOwnProperty(o) && (r[o] = H(e[o]));
298
361
  else
299
362
  return e;
300
363
  return r;
301
364
  }
302
- var De = (e) => /^\w*$/.test(e), T = (e) => e === void 0, Xe = (e) => Array.isArray(e) ? e.filter(Boolean) : [], et = (e) => Xe(e.replace(/["|']|\]/g, "").split(/\.|\[/)), p = (e, r, t) => {
303
- if (!r || !U(e))
365
+ var Be = (e) => /^\w*$/.test(e), L = (e) => e === void 0, st = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ot = (e) => st(e.replace(/["|']|\]/g, "").split(/\.|\[/)), p = (e, r, t) => {
366
+ if (!r || !I(e))
304
367
  return t;
305
- const s = (De(r) ? [r] : et(r)).reduce((n, o) => Q(n) ? n : n[o], e);
306
- return T(s) || s === e ? T(e[r]) ? t : e[r] : s;
307
- }, K = (e) => typeof e == "boolean", N = (e, r, t) => {
368
+ const s = (Be(r) ? [r] : ot(r)).reduce((o, n) => Z(o) ? o : o[n], e);
369
+ return L(s) || s === e ? L(e[r]) ? t : e[r] : s;
370
+ }, Q = (e) => typeof e == "boolean", N = (e, r, t) => {
308
371
  let s = -1;
309
- const n = De(r) ? [r] : et(r), o = n.length, a = o - 1;
310
- for (; ++s < o; ) {
311
- const l = n[s];
372
+ const o = Be(r) ? [r] : ot(r), n = o.length, a = n - 1;
373
+ for (; ++s < n; ) {
374
+ const l = o[s];
312
375
  let d = t;
313
376
  if (s !== a) {
314
- const h = e[l];
315
- d = U(h) || Array.isArray(h) ? h : isNaN(+n[s + 1]) ? {} : [];
377
+ const m = e[l];
378
+ d = I(m) || Array.isArray(m) ? m : isNaN(+o[s + 1]) ? {} : [];
316
379
  }
317
380
  if (l === "__proto__" || l === "constructor" || l === "prototype")
318
381
  return;
319
382
  e[l] = d, e = e[l];
320
383
  }
321
384
  };
322
- const Ee = {
385
+ const Pe = {
323
386
  BLUR: "blur",
324
387
  FOCUS_OUT: "focusout",
325
388
  CHANGE: "change"
326
- }, X = {
389
+ }, ee = {
327
390
  onBlur: "onBlur",
328
391
  onChange: "onChange",
329
392
  onSubmit: "onSubmit",
@@ -337,25 +400,25 @@ const Ee = {
337
400
  pattern: "pattern",
338
401
  required: "required",
339
402
  validate: "validate"
340
- }, jt = V.createContext(null);
341
- jt.displayName = "HookFormContext";
342
- const tt = () => V.useContext(jt);
343
- var Wt = (e, r, t, s = !0) => {
344
- const n = {
403
+ }, Jt = x.createContext(null);
404
+ Jt.displayName = "HookFormContext";
405
+ const nt = () => x.useContext(Jt);
406
+ var Xt = (e, r, t, s = !0) => {
407
+ const o = {
345
408
  defaultValues: r._defaultValues
346
409
  };
347
- for (const o in e)
348
- Object.defineProperty(n, o, {
410
+ for (const n in e)
411
+ Object.defineProperty(o, n, {
349
412
  get: () => {
350
- const a = o;
351
- return r._proxyFormState[a] !== X.all && (r._proxyFormState[a] = !s || X.all), t && (t[a] = !0), e[a];
413
+ const a = n;
414
+ return r._proxyFormState[a] !== ee.all && (r._proxyFormState[a] = !s || ee.all), t && (t[a] = !0), e[a];
352
415
  }
353
416
  });
354
- return n;
417
+ return o;
355
418
  };
356
- const rt = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
357
- function Rr(e) {
358
- const r = tt(), { control: t = r.control, disabled: s, name: n, exact: o } = e || {}, [a, l] = V.useState(t._formState), d = V.useRef({
419
+ const it = typeof window < "u" ? x.useLayoutEffect : x.useEffect;
420
+ function Hr(e) {
421
+ const r = nt(), { control: t = r.control, disabled: s, name: o, exact: n } = e || {}, [a, l] = x.useState(t._formState), d = x.useRef({
359
422
  isDirty: !1,
360
423
  isLoading: !1,
361
424
  dirtyFields: !1,
@@ -365,98 +428,98 @@ function Rr(e) {
365
428
  isValid: !1,
366
429
  errors: !1
367
430
  });
368
- return rt(() => t._subscribe({
369
- name: n,
431
+ return it(() => t._subscribe({
432
+ name: o,
370
433
  formState: d.current,
371
- exact: o,
372
- callback: (h) => {
434
+ exact: n,
435
+ callback: (m) => {
373
436
  !s && l({
374
437
  ...t._formState,
375
- ...h
438
+ ...m
376
439
  });
377
440
  }
378
- }), [n, s, o]), V.useEffect(() => {
441
+ }), [o, s, n]), x.useEffect(() => {
379
442
  d.current.isValid && t._setValid(!0);
380
- }, [t]), V.useMemo(() => Wt(a, t, d.current, !1), [a, t]);
443
+ }, [t]), x.useMemo(() => Xt(a, t, d.current, !1), [a, t]);
381
444
  }
382
- var J = (e) => typeof e == "string", We = (e, r, t, s, n) => J(e) ? (s && r.watch.add(e), p(t, e, n)) : Array.isArray(e) ? e.map((o) => (s && r.watch.add(o), p(t, o))) : (s && (r.watchAll = !0), t), qe = (e) => Q(e) || !$t(e);
383
- function ee(e, r, t = /* @__PURE__ */ new WeakSet()) {
384
- if (qe(e) || qe(r))
445
+ var K = (e) => typeof e == "string", Qe = (e, r, t, s, o) => K(e) ? (s && r.watch.add(e), p(t, e, o)) : Array.isArray(e) ? e.map((n) => (s && r.watch.add(n), p(t, n))) : (s && (r.watchAll = !0), t), Ke = (e) => Z(e) || !Zt(e);
446
+ function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
447
+ if (Ke(e) || Ke(r))
385
448
  return e === r;
386
- if (ue(e) && ue(r))
449
+ if (de(e) && de(r))
387
450
  return e.getTime() === r.getTime();
388
- const s = Object.keys(e), n = Object.keys(r);
389
- if (s.length !== n.length)
451
+ const s = Object.keys(e), o = Object.keys(r);
452
+ if (s.length !== o.length)
390
453
  return !1;
391
454
  if (t.has(e) || t.has(r))
392
455
  return !0;
393
456
  t.add(e), t.add(r);
394
- for (const o of s) {
395
- const a = e[o];
396
- if (!n.includes(o))
457
+ for (const n of s) {
458
+ const a = e[n];
459
+ if (!o.includes(n))
397
460
  return !1;
398
- if (o !== "ref") {
399
- const l = r[o];
400
- if (ue(a) && ue(l) || U(a) && U(l) || Array.isArray(a) && Array.isArray(l) ? !ee(a, l, t) : a !== l)
461
+ if (n !== "ref") {
462
+ const l = r[n];
463
+ if (de(a) && de(l) || I(a) && I(l) || Array.isArray(a) && Array.isArray(l) ? !te(a, l, t) : a !== l)
401
464
  return !1;
402
465
  }
403
466
  }
404
467
  return !0;
405
468
  }
406
- function Nr(e) {
407
- const r = tt(), { control: t = r.control, name: s, defaultValue: n, disabled: o, exact: a, compute: l } = e || {}, d = V.useRef(n), h = V.useRef(l), f = V.useRef(void 0), _ = V.useRef(t), y = V.useRef(s);
408
- h.current = l;
409
- const [x, z] = V.useState(() => {
410
- const E = t._getWatch(s, d.current);
411
- return h.current ? h.current(E) : E;
412
- }), F = V.useCallback((E) => {
413
- const k = We(s, t._names, E || t._formValues, !1, d.current);
414
- return h.current ? h.current(k) : k;
415
- }, [t._formValues, t._names, s]), C = V.useCallback((E) => {
416
- if (!o) {
417
- const k = We(s, t._names, E || t._formValues, !1, d.current);
418
- if (h.current) {
419
- const I = h.current(k);
420
- ee(I, f.current) || (z(I), f.current = I);
469
+ function jr(e) {
470
+ const r = nt(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: a, compute: l } = e || {}, d = x.useRef(o), m = x.useRef(l), f = x.useRef(void 0), _ = x.useRef(t), y = x.useRef(s);
471
+ m.current = l;
472
+ const [b, V] = x.useState(() => {
473
+ const z = t._getWatch(s, d.current);
474
+ return m.current ? m.current(z) : z;
475
+ }), k = x.useCallback((z) => {
476
+ const C = Qe(s, t._names, z || t._formValues, !1, d.current);
477
+ return m.current ? m.current(C) : C;
478
+ }, [t._formValues, t._names, s]), E = x.useCallback((z) => {
479
+ if (!n) {
480
+ const C = Qe(s, t._names, z || t._formValues, !1, d.current);
481
+ if (m.current) {
482
+ const $ = m.current(C);
483
+ te($, f.current) || (V($), f.current = $);
421
484
  } else
422
- z(k);
485
+ V(C);
423
486
  }
424
- }, [t._formValues, t._names, o, s]);
425
- rt(() => ((_.current !== t || !ee(y.current, s)) && (_.current = t, y.current = s, C()), t._subscribe({
487
+ }, [t._formValues, t._names, n, s]);
488
+ it(() => ((_.current !== t || !te(y.current, s)) && (_.current = t, y.current = s, E()), t._subscribe({
426
489
  name: s,
427
490
  formState: {
428
491
  values: !0
429
492
  },
430
493
  exact: a,
431
- callback: (E) => {
432
- C(E.values);
494
+ callback: (z) => {
495
+ E(z.values);
433
496
  }
434
- })), [t, a, s, C]), V.useEffect(() => t._removeUnmounted());
435
- const P = _.current !== t, b = y.current, A = V.useMemo(() => {
436
- if (o)
497
+ })), [t, a, s, E]), x.useEffect(() => t._removeUnmounted());
498
+ const O = _.current !== t, F = y.current, A = x.useMemo(() => {
499
+ if (n)
437
500
  return null;
438
- const E = !P && !ee(b, s);
439
- return P || E ? F() : null;
440
- }, [o, P, s, b, F]);
441
- return A !== null ? A : x;
501
+ const z = !O && !te(F, s);
502
+ return O || z ? k() : null;
503
+ }, [n, O, s, F, k]);
504
+ return A !== null ? A : b;
442
505
  }
443
- function Or(e) {
444
- const r = tt(), { name: t, disabled: s, control: n = r.control, shouldUnregister: o, defaultValue: a } = e, l = Ht(n._names.array, t), d = V.useMemo(() => p(n._formValues, t, p(n._defaultValues, t, a)), [n, t, a]), h = Nr({
445
- control: n,
506
+ function Wr(e) {
507
+ const r = nt(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: a } = e, l = Kt(o._names.array, t), d = x.useMemo(() => p(o._formValues, t, p(o._defaultValues, t, a)), [o, t, a]), m = jr({
508
+ control: o,
446
509
  name: t,
447
510
  defaultValue: d,
448
511
  exact: !0
449
- }), f = Rr({
450
- control: n,
512
+ }), f = Hr({
513
+ control: o,
451
514
  name: t,
452
515
  exact: !0
453
- }), _ = V.useRef(e), y = V.useRef(void 0), x = V.useRef(n.register(t, {
516
+ }), _ = x.useRef(e), y = x.useRef(void 0), b = x.useRef(o.register(t, {
454
517
  ...e.rules,
455
- value: h,
456
- ...K(e.disabled) ? { disabled: e.disabled } : {}
518
+ value: m,
519
+ ...Q(e.disabled) ? { disabled: e.disabled } : {}
457
520
  }));
458
521
  _.current = e;
459
- const z = V.useMemo(() => Object.defineProperties({}, {
522
+ const V = x.useMemo(() => Object.defineProperties({}, {
460
523
  invalid: {
461
524
  enumerable: !0,
462
525
  get: () => !!p(f.errors, t)
@@ -477,81 +540,81 @@ function Or(e) {
477
540
  enumerable: !0,
478
541
  get: () => p(f.errors, t)
479
542
  }
480
- }), [f, t]), F = V.useCallback((A) => x.current.onChange({
543
+ }), [f, t]), k = x.useCallback((A) => b.current.onChange({
481
544
  target: {
482
- value: Ut(A),
545
+ value: Qt(A),
483
546
  name: t
484
547
  },
485
- type: Ee.CHANGE
486
- }), [t]), C = V.useCallback(() => x.current.onBlur({
548
+ type: Pe.CHANGE
549
+ }), [t]), E = x.useCallback(() => b.current.onBlur({
487
550
  target: {
488
- value: p(n._formValues, t),
551
+ value: p(o._formValues, t),
489
552
  name: t
490
553
  },
491
- type: Ee.BLUR
492
- }), [t, n._formValues]), P = V.useCallback((A) => {
493
- const E = p(n._fields, t);
494
- E && A && (E._f.ref = {
554
+ type: Pe.BLUR
555
+ }), [t, o._formValues]), O = x.useCallback((A) => {
556
+ const z = p(o._fields, t);
557
+ z && A && (z._f.ref = {
495
558
  focus: () => A.focus && A.focus(),
496
559
  select: () => A.select && A.select(),
497
- setCustomValidity: (k) => A.setCustomValidity(k),
560
+ setCustomValidity: (C) => A.setCustomValidity(C),
498
561
  reportValidity: () => A.reportValidity()
499
562
  });
500
- }, [n._fields, t]), b = V.useMemo(() => ({
563
+ }, [o._fields, t]), F = x.useMemo(() => ({
501
564
  name: t,
502
- value: h,
503
- ...K(s) || f.disabled ? { disabled: f.disabled || s } : {},
504
- onChange: F,
505
- onBlur: C,
506
- ref: P
507
- }), [t, s, f.disabled, F, C, P, h]);
508
- return V.useEffect(() => {
509
- const A = n._options.shouldUnregister || o, E = y.current;
510
- E && E !== t && !l && n.unregister(E), n.register(t, {
565
+ value: m,
566
+ ...Q(s) || f.disabled ? { disabled: f.disabled || s } : {},
567
+ onChange: k,
568
+ onBlur: E,
569
+ ref: O
570
+ }), [t, s, f.disabled, k, E, O, m]);
571
+ return x.useEffect(() => {
572
+ const A = o._options.shouldUnregister || n, z = y.current;
573
+ z && z !== t && !l && o.unregister(z), o.register(t, {
511
574
  ..._.current.rules,
512
- ...K(_.current.disabled) ? { disabled: _.current.disabled } : {}
575
+ ...Q(_.current.disabled) ? { disabled: _.current.disabled } : {}
513
576
  });
514
- const k = (I, B) => {
515
- const ie = p(n._fields, I);
516
- ie && ie._f && (ie._f.mount = B);
577
+ const C = ($, X) => {
578
+ const ie = p(o._fields, $);
579
+ ie && ie._f && (ie._f.mount = X);
517
580
  };
518
- if (k(t, !0), A) {
519
- const I = H(p(n._options.defaultValues, t, _.current.defaultValue));
520
- N(n._defaultValues, t, I), T(p(n._formValues, t)) && N(n._formValues, t, I);
581
+ if (C(t, !0), A) {
582
+ const $ = H(p(o._options.defaultValues, t, _.current.defaultValue));
583
+ N(o._defaultValues, t, $), L(p(o._formValues, t)) && N(o._formValues, t, $);
521
584
  }
522
- return !l && n.register(t), y.current = t, () => {
523
- (l ? A && !n._state.action : A) ? n.unregister(t) : k(t, !1);
585
+ return !l && o.register(t), y.current = t, () => {
586
+ (l ? A && !o._state.action : A) ? o.unregister(t) : C(t, !1);
524
587
  };
525
- }, [t, n, l, o]), V.useEffect(() => {
526
- n._setDisabledField({
588
+ }, [t, o, l, n]), x.useEffect(() => {
589
+ o._setDisabledField({
527
590
  disabled: s,
528
591
  name: t
529
592
  });
530
- }, [s, t, n]), V.useMemo(() => ({
531
- field: b,
593
+ }, [s, t, o]), x.useMemo(() => ({
594
+ field: F,
532
595
  formState: f,
533
- fieldState: z
534
- }), [b, f, z]);
596
+ fieldState: V
597
+ }), [F, f, V]);
535
598
  }
536
- var st = (e, r, t, s, n) => r ? {
599
+ var at = (e, r, t, s, o) => r ? {
537
600
  ...t[e],
538
601
  types: {
539
602
  ...t[e] && t[e].types ? t[e].types : {},
540
- [s]: n || !0
603
+ [s]: o || !0
541
604
  }
542
- } : {}, pe = (e) => Array.isArray(e) ? e : [e], vt = () => {
605
+ } : {}, Se = (e) => Array.isArray(e) ? e : [e], xt = () => {
543
606
  let e = [];
544
607
  return {
545
608
  get observers() {
546
609
  return e;
547
610
  },
548
- next: (n) => {
549
- for (const o of e)
550
- o.next && o.next(n);
611
+ next: (o) => {
612
+ for (const n of e)
613
+ n.next && n.next(o);
551
614
  },
552
- subscribe: (n) => (e.push(n), {
615
+ subscribe: (o) => (e.push(o), {
553
616
  unsubscribe: () => {
554
- e = e.filter((o) => o !== n);
617
+ e = e.filter((n) => n !== o);
555
618
  }
556
619
  }),
557
620
  unsubscribe: () => {
@@ -559,66 +622,66 @@ var st = (e, r, t, s, n) => r ? {
559
622
  }
560
623
  };
561
624
  };
562
- function qt(e, r) {
625
+ function Yt(e, r) {
563
626
  const t = {};
564
627
  for (const s in e)
565
628
  if (e.hasOwnProperty(s)) {
566
- const n = e[s], o = r[s];
567
- if (n && U(n) && o) {
568
- const a = qt(n, o);
569
- U(a) && (t[s] = a);
570
- } else e[s] && (t[s] = o);
629
+ const o = e[s], n = r[s];
630
+ if (o && I(o) && n) {
631
+ const a = Yt(o, n);
632
+ I(a) && (t[s] = a);
633
+ } else e[s] && (t[s] = n);
571
634
  }
572
635
  return t;
573
636
  }
574
- var W = (e) => U(e) && !Object.keys(e).length, ot = (e) => e.type === "file", te = (e) => typeof e == "function", ze = (e) => {
575
- if (!Ye)
637
+ var W = (e) => I(e) && !Object.keys(e).length, lt = (e) => e.type === "file", re = (e) => typeof e == "function", Ne = (e) => {
638
+ if (!rt)
576
639
  return !1;
577
640
  const r = e ? e.ownerDocument : 0;
578
641
  return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
579
- }, Zt = (e) => e.type === "select-multiple", nt = (e) => e.type === "radio", Mr = (e) => nt(e) || be(e), Le = (e) => ze(e) && e.isConnected;
580
- function Tr(e, r) {
642
+ }, er = (e) => e.type === "select-multiple", ct = (e) => e.type === "radio", qr = (e) => ct(e) || we(e), Ue = (e) => Ne(e) && e.isConnected;
643
+ function Gr(e, r) {
581
644
  const t = r.slice(0, -1).length;
582
645
  let s = 0;
583
646
  for (; s < t; )
584
- e = T(e) ? s++ : e[r[s++]];
647
+ e = L(e) ? s++ : e[r[s++]];
585
648
  return e;
586
649
  }
587
- function Lr(e) {
650
+ function Zr(e) {
588
651
  for (const r in e)
589
- if (e.hasOwnProperty(r) && !T(e[r]))
652
+ if (e.hasOwnProperty(r) && !L(e[r]))
590
653
  return !1;
591
654
  return !0;
592
655
  }
593
- function $(e, r) {
594
- const t = Array.isArray(r) ? r : De(r) ? [r] : et(r), s = t.length === 1 ? e : Tr(e, t), n = t.length - 1, o = t[n];
595
- return s && delete s[o], n !== 0 && (U(s) && W(s) || Array.isArray(s) && Lr(s)) && $(e, t.slice(0, -1)), e;
656
+ function M(e, r) {
657
+ const t = Array.isArray(r) ? r : Be(r) ? [r] : ot(r), s = t.length === 1 ? e : Gr(e, t), o = t.length - 1, n = t[o];
658
+ return s && delete s[n], o !== 0 && (I(s) && W(s) || Array.isArray(s) && Zr(s)) && M(e, t.slice(0, -1)), e;
596
659
  }
597
- var Ir = (e) => {
660
+ var Qr = (e) => {
598
661
  for (const r in e)
599
- if (te(e[r]))
662
+ if (re(e[r]))
600
663
  return !0;
601
664
  return !1;
602
665
  };
603
- function Gt(e) {
604
- return Array.isArray(e) || U(e) && !Ir(e);
666
+ function tr(e) {
667
+ return Array.isArray(e) || I(e) && !Qr(e);
605
668
  }
606
- function Ze(e, r = {}) {
669
+ function Je(e, r = {}) {
607
670
  for (const t in e)
608
- Gt(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, Ze(e[t], r[t])) : T(e[t]) || (r[t] = !0);
671
+ tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, Je(e[t], r[t])) : L(e[t]) || (r[t] = !0);
609
672
  return r;
610
673
  }
611
- function ye(e, r, t) {
612
- t || (t = Ze(r));
674
+ function _e(e, r, t) {
675
+ t || (t = Je(r));
613
676
  for (const s in e)
614
- Gt(e[s]) ? T(r) || qe(t[s]) ? t[s] = Ze(e[s], Array.isArray(e[s]) ? [] : {}) : ye(e[s], Q(r) ? {} : r[s], t[s]) : t[s] = !ee(e[s], r[s]);
677
+ tr(e[s]) ? L(r) || Ke(t[s]) ? t[s] = Je(e[s], Array.isArray(e[s]) ? [] : {}) : _e(e[s], Z(r) ? {} : r[s], t[s]) : t[s] = !te(e[s], r[s]);
615
678
  return t;
616
679
  }
617
- const bt = {
680
+ const Vt = {
618
681
  value: !1,
619
682
  isValid: !1
620
- }, St = { value: !0, isValid: !0 };
621
- var Qt = (e) => {
683
+ }, Ct = { value: !0, isValid: !0 };
684
+ var rr = (e) => {
622
685
  if (Array.isArray(e)) {
623
686
  if (e.length > 1) {
624
687
  const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
@@ -626,203 +689,203 @@ var Qt = (e) => {
626
689
  }
627
690
  return e[0].checked && !e[0].disabled ? (
628
691
  // @ts-expect-error expected to work in the browser
629
- e[0].attributes && !T(e[0].attributes.value) ? T(e[0].value) || e[0].value === "" ? St : { value: e[0].value, isValid: !0 } : St
630
- ) : bt;
692
+ e[0].attributes && !L(e[0].attributes.value) ? L(e[0].value) || e[0].value === "" ? Ct : { value: e[0].value, isValid: !0 } : Ct
693
+ ) : Vt;
631
694
  }
632
- return bt;
633
- }, Kt = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t && J(e) ? new Date(e) : s ? s(e) : e;
634
- const xt = {
695
+ return Vt;
696
+ }, sr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => L(e) ? e : r ? e === "" ? NaN : e && +e : t && K(e) ? new Date(e) : s ? s(e) : e;
697
+ const Et = {
635
698
  isValid: !1,
636
699
  value: null
637
700
  };
638
- var Jt = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
701
+ var or = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
639
702
  isValid: !0,
640
703
  value: t.value
641
- } : r, xt) : xt;
642
- function Ft(e) {
704
+ } : r, Et) : Et;
705
+ function zt(e) {
643
706
  const r = e.ref;
644
- return ot(r) ? r.files : nt(r) ? Jt(e.refs).value : Zt(r) ? [...r.selectedOptions].map(({ value: t }) => t) : be(r) ? Qt(e.refs).value : Kt(T(r.value) ? e.ref.value : r.value, e);
707
+ return lt(r) ? r.files : ct(r) ? or(e.refs).value : er(r) ? [...r.selectedOptions].map(({ value: t }) => t) : we(r) ? rr(e.refs).value : sr(L(r.value) ? e.ref.value : r.value, e);
645
708
  }
646
- var Br = (e, r, t, s) => {
647
- const n = {};
648
- for (const o of e) {
649
- const a = p(r, o);
650
- a && N(n, o, a._f);
709
+ var Kr = (e, r, t, s) => {
710
+ const o = {};
711
+ for (const n of e) {
712
+ const a = p(r, n);
713
+ a && N(o, n, a._f);
651
714
  }
652
715
  return {
653
716
  criteriaMode: t,
654
717
  names: [...e],
655
- fields: n,
718
+ fields: o,
656
719
  shouldUseNativeValidation: s
657
720
  };
658
- }, Ae = (e) => e instanceof RegExp, he = (e) => T(e) ? e : Ae(e) ? e.source : U(e) ? Ae(e.value) ? e.value.source : e.value : e, Vt = (e) => ({
659
- isOnSubmit: !e || e === X.onSubmit,
660
- isOnBlur: e === X.onBlur,
661
- isOnChange: e === X.onChange,
662
- isOnAll: e === X.all,
663
- isOnTouch: e === X.onTouched
721
+ }, Re = (e) => e instanceof RegExp, ve = (e) => L(e) ? e : Re(e) ? e.source : I(e) ? Re(e.value) ? e.value.source : e.value : e, At = (e) => ({
722
+ isOnSubmit: !e || e === ee.onSubmit,
723
+ isOnBlur: e === ee.onBlur,
724
+ isOnChange: e === ee.onChange,
725
+ isOnAll: e === ee.all,
726
+ isOnTouch: e === ee.onTouched
664
727
  });
665
- const kt = "AsyncFunction";
666
- var $r = (e) => !!e && !!e.validate && !!(te(e.validate) && e.validate.constructor.name === kt || U(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === kt)), Ur = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), wt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
667
- const ve = (e, r, t, s) => {
668
- for (const n of t || Object.keys(e)) {
669
- const o = p(e, n);
670
- if (o) {
671
- const { _f: a, ...l } = o;
728
+ const Dt = "AsyncFunction";
729
+ var Jr = (e) => !!e && !!e.validate && !!(re(e.validate) && e.validate.constructor.name === Dt || I(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Dt)), Xr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Pt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
730
+ const Fe = (e, r, t, s) => {
731
+ for (const o of t || Object.keys(e)) {
732
+ const n = p(e, o);
733
+ if (n) {
734
+ const { _f: a, ...l } = n;
672
735
  if (a) {
673
- if (a.refs && a.refs[0] && r(a.refs[0], n) && !s)
736
+ if (a.refs && a.refs[0] && r(a.refs[0], o) && !s)
674
737
  return !0;
675
738
  if (a.ref && r(a.ref, a.name) && !s)
676
739
  return !0;
677
- if (ve(l, r))
740
+ if (Fe(l, r))
678
741
  break;
679
- } else if (U(l) && ve(l, r))
742
+ } else if (I(l) && Fe(l, r))
680
743
  break;
681
744
  }
682
745
  }
683
746
  };
684
- function Ct(e, r, t) {
747
+ function Nt(e, r, t) {
685
748
  const s = p(e, t);
686
- if (s || De(t))
749
+ if (s || Be(t))
687
750
  return {
688
751
  error: s,
689
752
  name: t
690
753
  };
691
- const n = t.split(".");
692
- for (; n.length; ) {
693
- const o = n.join("."), a = p(r, o), l = p(e, o);
694
- if (a && !Array.isArray(a) && t !== o)
754
+ const o = t.split(".");
755
+ for (; o.length; ) {
756
+ const n = o.join("."), a = p(r, n), l = p(e, n);
757
+ if (a && !Array.isArray(a) && t !== n)
695
758
  return { name: t };
696
759
  if (l && l.type)
697
760
  return {
698
- name: o,
761
+ name: n,
699
762
  error: l
700
763
  };
701
764
  if (l && l.root && l.root.type)
702
765
  return {
703
- name: `${o}.root`,
766
+ name: `${n}.root`,
704
767
  error: l.root
705
768
  };
706
- n.pop();
769
+ o.pop();
707
770
  }
708
771
  return {
709
772
  name: t
710
773
  };
711
774
  }
712
- var Hr = (e, r, t, s) => {
775
+ var Yr = (e, r, t, s) => {
713
776
  t(e);
714
- const { name: n, ...o } = e;
715
- return W(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((a) => r[a] === (!s || X.all));
716
- }, jr = (e, r, t) => !e || !r || e === r || pe(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), Wr = (e, r, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(r || e) : (t ? s.isOnBlur : n.isOnBlur) ? !e : (t ? s.isOnChange : n.isOnChange) ? e : !0, qr = (e, r) => !Xe(p(e, r)).length && $(e, r), Zr = (e, r, t) => {
717
- const s = pe(p(e, t));
777
+ const { name: o, ...n } = e;
778
+ return W(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!s || ee.all));
779
+ }, es = (e, r, t) => !e || !r || e === r || Se(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), ts = (e, r, t, s, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(r || e) : (t ? s.isOnBlur : o.isOnBlur) ? !e : (t ? s.isOnChange : o.isOnChange) ? e : !0, rs = (e, r) => !st(p(e, r)).length && M(e, r), ss = (e, r, t) => {
780
+ const s = Se(p(e, t));
718
781
  return N(s, "root", r[t]), N(e, t, s), e;
719
782
  };
720
- function Et(e, r, t = "validate") {
721
- if (J(e) || Array.isArray(e) && e.every(J) || K(e) && !e)
783
+ function Rt(e, r, t = "validate") {
784
+ if (K(e) || Array.isArray(e) && e.every(K) || Q(e) && !e)
722
785
  return {
723
786
  type: t,
724
- message: J(e) ? e : "",
787
+ message: K(e) ? e : "",
725
788
  ref: r
726
789
  };
727
790
  }
728
- var fe = (e) => U(e) && !Ae(e) ? e : {
791
+ var ye = (e) => I(e) && !Re(e) ? e : {
729
792
  value: e,
730
793
  message: ""
731
- }, zt = async (e, r, t, s, n, o) => {
732
- const { ref: a, refs: l, required: d, maxLength: h, minLength: f, min: _, max: y, pattern: x, validate: z, name: F, valueAsNumber: C, mount: P } = e._f, b = p(t, F);
733
- if (!P || r.has(F))
794
+ }, Bt = async (e, r, t, s, o, n) => {
795
+ const { ref: a, refs: l, required: d, maxLength: m, minLength: f, min: _, max: y, pattern: b, validate: V, name: k, valueAsNumber: E, mount: O } = e._f, F = p(t, k);
796
+ if (!O || r.has(k))
734
797
  return {};
735
- const A = l ? l[0] : a, E = (D) => {
736
- n && A.reportValidity && (A.setCustomValidity(K(D) ? "" : D || ""), A.reportValidity());
737
- }, k = {}, I = nt(a), B = be(a), ie = I || B, Z = (C || ot(a)) && T(a.value) && T(b) || ze(a) && a.value === "" || b === "" || Array.isArray(b) && !b.length, re = st.bind(null, F, s, k), se = (D, O, L, j = ae.maxLength, G = ae.minLength) => {
738
- const oe = D ? O : L;
739
- k[F] = {
798
+ const A = l ? l[0] : a, z = (D) => {
799
+ o && A.reportValidity && (A.setCustomValidity(Q(D) ? "" : D || ""), A.reportValidity());
800
+ }, C = {}, $ = ct(a), X = we(a), ie = $ || X, q = (E || lt(a)) && L(a.value) && L(F) || Ne(a) && a.value === "" || F === "" || Array.isArray(F) && !F.length, se = at.bind(null, k, s, C), oe = (D, R, T, j = ae.maxLength, G = ae.minLength) => {
801
+ const ne = D ? R : T;
802
+ C[k] = {
740
803
  type: D ? j : G,
741
- message: oe,
804
+ message: ne,
742
805
  ref: a,
743
- ...re(D ? j : G, oe)
806
+ ...se(D ? j : G, ne)
744
807
  };
745
808
  };
746
- if (o ? !Array.isArray(b) || !b.length : d && (!ie && (Z || Q(b)) || K(b) && !b || B && !Qt(l).isValid || I && !Jt(l).isValid)) {
747
- const { value: D, message: O } = J(d) ? { value: !!d, message: d } : fe(d);
748
- if (D && (k[F] = {
809
+ if (n ? !Array.isArray(F) || !F.length : d && (!ie && (q || Z(F)) || Q(F) && !F || X && !rr(l).isValid || $ && !or(l).isValid)) {
810
+ const { value: D, message: R } = K(d) ? { value: !!d, message: d } : ye(d);
811
+ if (D && (C[k] = {
749
812
  type: ae.required,
750
- message: O,
813
+ message: R,
751
814
  ref: A,
752
- ...re(ae.required, O)
815
+ ...se(ae.required, R)
753
816
  }, !s))
754
- return E(O), k;
817
+ return z(R), C;
755
818
  }
756
- if (!Z && (!Q(_) || !Q(y))) {
757
- let D, O;
758
- const L = fe(y), j = fe(_);
759
- if (!Q(b) && !isNaN(b)) {
760
- const G = a.valueAsNumber || b && +b;
761
- Q(L.value) || (D = G > L.value), Q(j.value) || (O = G < j.value);
819
+ if (!q && (!Z(_) || !Z(y))) {
820
+ let D, R;
821
+ const T = ye(y), j = ye(_);
822
+ if (!Z(F) && !isNaN(F)) {
823
+ const G = a.valueAsNumber || F && +F;
824
+ Z(T.value) || (D = G > T.value), Z(j.value) || (R = G < j.value);
762
825
  } else {
763
- const G = a.valueAsDate || new Date(b), oe = (xe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + xe), me = a.type == "time", de = a.type == "week";
764
- J(L.value) && b && (D = me ? oe(b) > oe(L.value) : de ? b > L.value : G > new Date(L.value)), J(j.value) && b && (O = me ? oe(b) < oe(j.value) : de ? b < j.value : G < new Date(j.value));
826
+ const G = a.valueAsDate || new Date(F), ne = (xe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + xe), pe = a.type == "time", fe = a.type == "week";
827
+ K(T.value) && F && (D = pe ? ne(F) > ne(T.value) : fe ? F > T.value : G > new Date(T.value)), K(j.value) && F && (R = pe ? ne(F) < ne(j.value) : fe ? F < j.value : G < new Date(j.value));
765
828
  }
766
- if ((D || O) && (se(!!D, L.message, j.message, ae.max, ae.min), !s))
767
- return E(k[F].message), k;
829
+ if ((D || R) && (oe(!!D, T.message, j.message, ae.max, ae.min), !s))
830
+ return z(C[k].message), C;
768
831
  }
769
- if ((h || f) && !Z && (J(b) || o && Array.isArray(b))) {
770
- const D = fe(h), O = fe(f), L = !Q(D.value) && b.length > +D.value, j = !Q(O.value) && b.length < +O.value;
771
- if ((L || j) && (se(L, D.message, O.message), !s))
772
- return E(k[F].message), k;
832
+ if ((m || f) && !q && (K(F) || n && Array.isArray(F))) {
833
+ const D = ye(m), R = ye(f), T = !Z(D.value) && F.length > +D.value, j = !Z(R.value) && F.length < +R.value;
834
+ if ((T || j) && (oe(T, D.message, R.message), !s))
835
+ return z(C[k].message), C;
773
836
  }
774
- if (x && !Z && J(b)) {
775
- const { value: D, message: O } = fe(x);
776
- if (Ae(D) && !b.match(D) && (k[F] = {
837
+ if (b && !q && K(F)) {
838
+ const { value: D, message: R } = ye(b);
839
+ if (Re(D) && !F.match(D) && (C[k] = {
777
840
  type: ae.pattern,
778
- message: O,
841
+ message: R,
779
842
  ref: a,
780
- ...re(ae.pattern, O)
843
+ ...se(ae.pattern, R)
781
844
  }, !s))
782
- return E(O), k;
845
+ return z(R), C;
783
846
  }
784
- if (z) {
785
- if (te(z)) {
786
- const D = await z(b, t), O = Et(D, A);
787
- if (O && (k[F] = {
788
- ...O,
789
- ...re(ae.validate, O.message)
847
+ if (V) {
848
+ if (re(V)) {
849
+ const D = await V(F, t), R = Rt(D, A);
850
+ if (R && (C[k] = {
851
+ ...R,
852
+ ...se(ae.validate, R.message)
790
853
  }, !s))
791
- return E(O.message), k;
792
- } else if (U(z)) {
854
+ return z(R.message), C;
855
+ } else if (I(V)) {
793
856
  let D = {};
794
- for (const O in z) {
857
+ for (const R in V) {
795
858
  if (!W(D) && !s)
796
859
  break;
797
- const L = Et(await z[O](b, t), A, O);
798
- L && (D = {
799
- ...L,
800
- ...re(O, L.message)
801
- }, E(L.message), s && (k[F] = D));
860
+ const T = Rt(await V[R](F, t), A, R);
861
+ T && (D = {
862
+ ...T,
863
+ ...se(R, T.message)
864
+ }, z(T.message), s && (C[k] = D));
802
865
  }
803
- if (!W(D) && (k[F] = {
866
+ if (!W(D) && (C[k] = {
804
867
  ref: A,
805
868
  ...D
806
869
  }, !s))
807
- return k;
870
+ return C;
808
871
  }
809
872
  }
810
- return E(!0), k;
873
+ return z(!0), C;
811
874
  };
812
- const Gr = {
813
- mode: X.onSubmit,
814
- reValidateMode: X.onChange,
875
+ const os = {
876
+ mode: ee.onSubmit,
877
+ reValidateMode: ee.onChange,
815
878
  shouldFocusError: !0
816
879
  };
817
- function Qr(e = {}) {
880
+ function ns(e = {}) {
818
881
  let r = {
819
- ...Gr,
882
+ ...os,
820
883
  ...e
821
884
  }, t = {
822
885
  submitCount: 0,
823
886
  isDirty: !1,
824
887
  isReady: !1,
825
- isLoading: te(r.defaultValues),
888
+ isLoading: re(r.defaultValues),
826
889
  isValidating: !1,
827
890
  isSubmitted: !1,
828
891
  isSubmitting: !1,
@@ -833,7 +896,7 @@ function Qr(e = {}) {
833
896
  validatingFields: {},
834
897
  errors: r.errors || {},
835
898
  disabled: r.disabled || !1
836
- }, s = {}, n = U(r.defaultValues) || U(r.values) ? H(r.defaultValues || r.values) || {} : {}, o = r.shouldUnregister ? {} : H(n), a = {
899
+ }, s = {}, o = I(r.defaultValues) || I(r.values) ? H(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : H(o), a = {
837
900
  action: !1,
838
901
  mount: !1,
839
902
  watch: !1
@@ -843,7 +906,7 @@ function Qr(e = {}) {
843
906
  unMount: /* @__PURE__ */ new Set(),
844
907
  array: /* @__PURE__ */ new Set(),
845
908
  watch: /* @__PURE__ */ new Set()
846
- }, d, h = 0;
909
+ }, d, m = 0;
847
910
  const f = {
848
911
  isDirty: !1,
849
912
  dirtyFields: !1,
@@ -857,48 +920,48 @@ function Qr(e = {}) {
857
920
  ...f
858
921
  };
859
922
  const y = {
860
- array: vt(),
861
- state: vt()
862
- }, x = r.criteriaMode === X.all, z = (i) => (c) => {
863
- clearTimeout(h), h = setTimeout(i, c);
864
- }, F = async (i) => {
923
+ array: xt(),
924
+ state: xt()
925
+ }, b = r.criteriaMode === ee.all, V = (i) => (c) => {
926
+ clearTimeout(m), m = setTimeout(i, c);
927
+ }, k = async (i) => {
865
928
  if (!r.disabled && (f.isValid || _.isValid || i)) {
866
- const c = r.resolver ? W((await B()).errors) : await Z(s, !0);
929
+ const c = r.resolver ? W((await X()).errors) : await q(s, !0);
867
930
  c !== t.isValid && y.state.next({
868
931
  isValid: c
869
932
  });
870
933
  }
871
- }, C = (i, c) => {
934
+ }, E = (i, c) => {
872
935
  !r.disabled && (f.isValidating || f.validatingFields || _.isValidating || _.validatingFields) && ((i || Array.from(l.mount)).forEach((u) => {
873
- u && (c ? N(t.validatingFields, u, c) : $(t.validatingFields, u));
936
+ u && (c ? N(t.validatingFields, u, c) : M(t.validatingFields, u));
874
937
  }), y.state.next({
875
938
  validatingFields: t.validatingFields,
876
939
  isValidating: !W(t.validatingFields)
877
940
  }));
878
- }, P = (i, c = [], u, v, g = !0, m = !0) => {
941
+ }, O = (i, c = [], u, v, g = !0, h = !0) => {
879
942
  if (v && u && !r.disabled) {
880
- if (a.action = !0, m && Array.isArray(p(s, i))) {
881
- const S = u(p(s, i), v.argA, v.argB);
882
- g && N(s, i, S);
943
+ if (a.action = !0, h && Array.isArray(p(s, i))) {
944
+ const w = u(p(s, i), v.argA, v.argB);
945
+ g && N(s, i, w);
883
946
  }
884
- if (m && Array.isArray(p(t.errors, i))) {
885
- const S = u(p(t.errors, i), v.argA, v.argB);
886
- g && N(t.errors, i, S), qr(t.errors, i);
947
+ if (h && Array.isArray(p(t.errors, i))) {
948
+ const w = u(p(t.errors, i), v.argA, v.argB);
949
+ g && N(t.errors, i, w), rs(t.errors, i);
887
950
  }
888
- if ((f.touchedFields || _.touchedFields) && m && Array.isArray(p(t.touchedFields, i))) {
889
- const S = u(p(t.touchedFields, i), v.argA, v.argB);
890
- g && N(t.touchedFields, i, S);
951
+ if ((f.touchedFields || _.touchedFields) && h && Array.isArray(p(t.touchedFields, i))) {
952
+ const w = u(p(t.touchedFields, i), v.argA, v.argB);
953
+ g && N(t.touchedFields, i, w);
891
954
  }
892
- (f.dirtyFields || _.dirtyFields) && (t.dirtyFields = ye(n, o)), y.state.next({
955
+ (f.dirtyFields || _.dirtyFields) && (t.dirtyFields = _e(o, n)), y.state.next({
893
956
  name: i,
894
- isDirty: se(i, c),
957
+ isDirty: oe(i, c),
895
958
  dirtyFields: t.dirtyFields,
896
959
  errors: t.errors,
897
960
  isValid: t.isValid
898
961
  });
899
962
  } else
900
- N(o, i, c);
901
- }, b = (i, c) => {
963
+ N(n, i, c);
964
+ }, F = (i, c) => {
902
965
  N(t.errors, i, c), y.state.next({
903
966
  errors: t.errors
904
967
  });
@@ -907,183 +970,183 @@ function Qr(e = {}) {
907
970
  errors: t.errors,
908
971
  isValid: !1
909
972
  });
910
- }, E = (i, c, u, v) => {
973
+ }, z = (i, c, u, v) => {
911
974
  const g = p(s, i);
912
975
  if (g) {
913
- const m = p(o, i, T(u) ? p(n, i) : u);
914
- T(m) || v && v.defaultChecked || c ? N(o, i, c ? m : Ft(g._f)) : L(i, m), a.mount && F();
976
+ const h = p(n, i, L(u) ? p(o, i) : u);
977
+ L(h) || v && v.defaultChecked || c ? N(n, i, c ? h : zt(g._f)) : T(i, h), a.mount && k();
915
978
  }
916
- }, k = (i, c, u, v, g) => {
917
- let m = !1, S = !1;
918
- const R = {
979
+ }, C = (i, c, u, v, g) => {
980
+ let h = !1, w = !1;
981
+ const P = {
919
982
  name: i
920
983
  };
921
984
  if (!r.disabled) {
922
985
  if (!u || v) {
923
- (f.isDirty || _.isDirty) && (S = t.isDirty, t.isDirty = R.isDirty = se(), m = S !== R.isDirty);
924
- const M = ee(p(n, i), c);
925
- S = !!p(t.dirtyFields, i), M ? $(t.dirtyFields, i) : N(t.dirtyFields, i, !0), R.dirtyFields = t.dirtyFields, m = m || (f.dirtyFields || _.dirtyFields) && S !== !M;
986
+ (f.isDirty || _.isDirty) && (w = t.isDirty, t.isDirty = P.isDirty = oe(), h = w !== P.isDirty);
987
+ const B = te(p(o, i), c);
988
+ w = !!p(t.dirtyFields, i), B ? M(t.dirtyFields, i) : N(t.dirtyFields, i, !0), P.dirtyFields = t.dirtyFields, h = h || (f.dirtyFields || _.dirtyFields) && w !== !B;
926
989
  }
927
990
  if (u) {
928
- const M = p(t.touchedFields, i);
929
- M || (N(t.touchedFields, i, u), R.touchedFields = t.touchedFields, m = m || (f.touchedFields || _.touchedFields) && M !== u);
991
+ const B = p(t.touchedFields, i);
992
+ B || (N(t.touchedFields, i, u), P.touchedFields = t.touchedFields, h = h || (f.touchedFields || _.touchedFields) && B !== u);
930
993
  }
931
- m && g && y.state.next(R);
994
+ h && g && y.state.next(P);
932
995
  }
933
- return m ? R : {};
934
- }, I = (i, c, u, v) => {
935
- const g = p(t.errors, i), m = (f.isValid || _.isValid) && K(c) && t.isValid !== c;
936
- if (r.delayError && u ? (d = z(() => b(i, u)), d(r.delayError)) : (clearTimeout(h), d = null, u ? N(t.errors, i, u) : $(t.errors, i)), (u ? !ee(g, u) : g) || !W(v) || m) {
937
- const S = {
996
+ return h ? P : {};
997
+ }, $ = (i, c, u, v) => {
998
+ const g = p(t.errors, i), h = (f.isValid || _.isValid) && Q(c) && t.isValid !== c;
999
+ if (r.delayError && u ? (d = V(() => F(i, u)), d(r.delayError)) : (clearTimeout(m), d = null, u ? N(t.errors, i, u) : M(t.errors, i)), (u ? !te(g, u) : g) || !W(v) || h) {
1000
+ const w = {
938
1001
  ...v,
939
- ...m && K(c) ? { isValid: c } : {},
1002
+ ...h && Q(c) ? { isValid: c } : {},
940
1003
  errors: t.errors,
941
1004
  name: i
942
1005
  };
943
1006
  t = {
944
1007
  ...t,
945
- ...S
946
- }, y.state.next(S);
1008
+ ...w
1009
+ }, y.state.next(w);
947
1010
  }
948
- }, B = async (i) => {
949
- C(i, !0);
950
- const c = await r.resolver(o, r.context, Br(i || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
951
- return C(i), c;
1011
+ }, X = async (i) => {
1012
+ E(i, !0);
1013
+ const c = await r.resolver(n, r.context, Kr(i || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
1014
+ return E(i), c;
952
1015
  }, ie = async (i) => {
953
- const { errors: c } = await B(i);
1016
+ const { errors: c } = await X(i);
954
1017
  if (i)
955
1018
  for (const u of i) {
956
1019
  const v = p(c, u);
957
- v ? N(t.errors, u, v) : $(t.errors, u);
1020
+ v ? N(t.errors, u, v) : M(t.errors, u);
958
1021
  }
959
1022
  else
960
1023
  t.errors = c;
961
1024
  return c;
962
- }, Z = async (i, c, u = {
1025
+ }, q = async (i, c, u = {
963
1026
  valid: !0
964
1027
  }) => {
965
1028
  for (const v in i) {
966
1029
  const g = i[v];
967
1030
  if (g) {
968
- const { _f: m, ...S } = g;
969
- if (m) {
970
- const R = l.array.has(m.name), M = g._f && $r(g._f);
971
- M && f.validatingFields && C([m.name], !0);
972
- const Y = await zt(g, l.disabled, o, x, r.shouldUseNativeValidation && !c, R);
973
- if (M && f.validatingFields && C([m.name]), Y[m.name] && (u.valid = !1, c))
1031
+ const { _f: h, ...w } = g;
1032
+ if (h) {
1033
+ const P = l.array.has(h.name), B = g._f && Jr(g._f);
1034
+ B && f.validatingFields && E([h.name], !0);
1035
+ const Y = await Bt(g, l.disabled, n, b, r.shouldUseNativeValidation && !c, P);
1036
+ if (B && f.validatingFields && E([h.name]), Y[h.name] && (u.valid = !1, c))
974
1037
  break;
975
- !c && (p(Y, m.name) ? R ? Zr(t.errors, Y, m.name) : N(t.errors, m.name, Y[m.name]) : $(t.errors, m.name));
1038
+ !c && (p(Y, h.name) ? P ? ss(t.errors, Y, h.name) : N(t.errors, h.name, Y[h.name]) : M(t.errors, h.name));
976
1039
  }
977
- !W(S) && await Z(S, c, u);
1040
+ !W(w) && await q(w, c, u);
978
1041
  }
979
1042
  }
980
1043
  return u.valid;
981
- }, re = () => {
1044
+ }, se = () => {
982
1045
  for (const i of l.unMount) {
983
1046
  const c = p(s, i);
984
- c && (c._f.refs ? c._f.refs.every((u) => !Le(u)) : !Le(c._f.ref)) && Pe(i);
1047
+ c && (c._f.refs ? c._f.refs.every((u) => !Ue(u)) : !Ue(c._f.ref)) && Oe(i);
985
1048
  }
986
1049
  l.unMount = /* @__PURE__ */ new Set();
987
- }, se = (i, c) => !r.disabled && (i && c && N(o, i, c), !ee(xe(), n)), D = (i, c, u) => We(i, l, {
988
- ...a.mount ? o : T(c) ? n : J(i) ? { [i]: c } : c
989
- }, u, c), O = (i) => Xe(p(a.mount ? o : n, i, r.shouldUnregister ? p(n, i, []) : [])), L = (i, c, u = {}) => {
1050
+ }, oe = (i, c) => !r.disabled && (i && c && N(n, i, c), !te(xe(), o)), D = (i, c, u) => Qe(i, l, {
1051
+ ...a.mount ? n : L(c) ? o : K(i) ? { [i]: c } : c
1052
+ }, u, c), R = (i) => st(p(a.mount ? n : o, i, r.shouldUnregister ? p(o, i, []) : [])), T = (i, c, u = {}) => {
990
1053
  const v = p(s, i);
991
1054
  let g = c;
992
1055
  if (v) {
993
- const m = v._f;
994
- m && (!m.disabled && N(o, i, Kt(c, m)), g = ze(m.ref) && Q(c) ? "" : c, Zt(m.ref) ? [...m.ref.options].forEach((S) => S.selected = g.includes(S.value)) : m.refs ? be(m.ref) ? m.refs.forEach((S) => {
995
- (!S.defaultChecked || !S.disabled) && (Array.isArray(g) ? S.checked = !!g.find((R) => R === S.value) : S.checked = g === S.value || !!g);
996
- }) : m.refs.forEach((S) => S.checked = S.value === g) : ot(m.ref) ? m.ref.value = "" : (m.ref.value = g, m.ref.type || y.state.next({
1056
+ const h = v._f;
1057
+ h && (!h.disabled && N(n, i, sr(c, h)), g = Ne(h.ref) && Z(c) ? "" : c, er(h.ref) ? [...h.ref.options].forEach((w) => w.selected = g.includes(w.value)) : h.refs ? we(h.ref) ? h.refs.forEach((w) => {
1058
+ (!w.defaultChecked || !w.disabled) && (Array.isArray(g) ? w.checked = !!g.find((P) => P === w.value) : w.checked = g === w.value || !!g);
1059
+ }) : h.refs.forEach((w) => w.checked = w.value === g) : lt(h.ref) ? h.ref.value = "" : (h.ref.value = g, h.ref.type || y.state.next({
997
1060
  name: i,
998
- values: H(o)
1061
+ values: H(n)
999
1062
  })));
1000
1063
  }
1001
- (u.shouldDirty || u.shouldTouch) && k(i, g, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && de(i);
1064
+ (u.shouldDirty || u.shouldTouch) && C(i, g, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && fe(i);
1002
1065
  }, j = (i, c, u) => {
1003
1066
  for (const v in c) {
1004
1067
  if (!c.hasOwnProperty(v))
1005
1068
  return;
1006
- const g = c[v], m = i + "." + v, S = p(s, m);
1007
- (l.array.has(i) || U(g) || S && !S._f) && !ue(g) ? j(m, g, u) : L(m, g, u);
1069
+ const g = c[v], h = i + "." + v, w = p(s, h);
1070
+ (l.array.has(i) || I(g) || w && !w._f) && !de(g) ? j(h, g, u) : T(h, g, u);
1008
1071
  }
1009
1072
  }, G = (i, c, u = {}) => {
1010
- const v = p(s, i), g = l.array.has(i), m = H(c);
1011
- N(o, i, m), g ? (y.array.next({
1073
+ const v = p(s, i), g = l.array.has(i), h = H(c);
1074
+ N(n, i, h), g ? (y.array.next({
1012
1075
  name: i,
1013
- values: H(o)
1076
+ values: H(n)
1014
1077
  }), (f.isDirty || f.dirtyFields || _.isDirty || _.dirtyFields) && u.shouldDirty && y.state.next({
1015
1078
  name: i,
1016
- dirtyFields: ye(n, o),
1017
- isDirty: se(i, m)
1018
- })) : v && !v._f && !Q(m) ? j(i, m, u) : L(i, m, u), wt(i, l) && y.state.next({ ...t, name: i }), y.state.next({
1079
+ dirtyFields: _e(o, n),
1080
+ isDirty: oe(i, h)
1081
+ })) : v && !v._f && !Z(h) ? j(i, h, u) : T(i, h, u), Pt(i, l) && y.state.next({ ...t, name: i }), y.state.next({
1019
1082
  name: a.mount ? i : void 0,
1020
- values: H(o)
1083
+ values: H(n)
1021
1084
  });
1022
- }, oe = async (i) => {
1085
+ }, ne = async (i) => {
1023
1086
  a.mount = !0;
1024
1087
  const c = i.target;
1025
1088
  let u = c.name, v = !0;
1026
- const g = p(s, u), m = (M) => {
1027
- v = Number.isNaN(M) || ue(M) && isNaN(M.getTime()) || ee(M, p(o, u, M));
1028
- }, S = Vt(r.mode), R = Vt(r.reValidateMode);
1089
+ const g = p(s, u), h = (B) => {
1090
+ v = Number.isNaN(B) || de(B) && isNaN(B.getTime()) || te(B, p(n, u, B));
1091
+ }, w = At(r.mode), P = At(r.reValidateMode);
1029
1092
  if (g) {
1030
- let M, Y;
1031
- const Fe = c.type ? Ft(g._f) : Ut(i), le = i.type === Ee.BLUR || i.type === Ee.FOCUS_OUT, fr = !Ur(g._f) && !r.resolver && !p(t.errors, u) && !g._f.deps || Wr(le, p(t.touchedFields, u), t.isSubmitted, R, S), Oe = wt(u, l, le);
1032
- N(o, u, Fe), le ? (!c || !c.readOnly) && (g._f.onBlur && g._f.onBlur(i), d && d(0)) : g._f.onChange && g._f.onChange(i);
1033
- const Me = k(u, Fe, le), yr = !W(Me) || Oe;
1034
- if (!le && y.state.next({
1093
+ let B, Y;
1094
+ const Ve = c.type ? zt(g._f) : Qt(i), ue = i.type === Pe.BLUR || i.type === Pe.FOCUS_OUT, vr = !Xr(g._f) && !r.resolver && !p(t.errors, u) && !g._f.deps || ts(ue, p(t.touchedFields, u), t.isSubmitted, P, w), Te = Pt(u, l, ue);
1095
+ N(n, u, Ve), ue ? (!c || !c.readOnly) && (g._f.onBlur && g._f.onBlur(i), d && d(0)) : g._f.onChange && g._f.onChange(i);
1096
+ const Me = C(u, Ve, ue), br = !W(Me) || Te;
1097
+ if (!ue && y.state.next({
1035
1098
  name: u,
1036
1099
  type: i.type,
1037
- values: H(o)
1038
- }), fr)
1039
- return (f.isValid || _.isValid) && (r.mode === "onBlur" ? le && F() : le || F()), yr && y.state.next({ name: u, ...Oe ? {} : Me });
1040
- if (!le && Oe && y.state.next({ ...t }), r.resolver) {
1041
- const { errors: mt } = await B([u]);
1042
- if (m(Fe), v) {
1043
- const mr = Ct(t.errors, s, u), ht = Ct(mt, s, mr.name || u);
1044
- M = ht.error, u = ht.name, Y = W(mt);
1100
+ values: H(n)
1101
+ }), vr)
1102
+ return (f.isValid || _.isValid) && (r.mode === "onBlur" ? ue && k() : ue || k()), br && y.state.next({ name: u, ...Te ? {} : Me });
1103
+ if (!ue && Te && y.state.next({ ...t }), r.resolver) {
1104
+ const { errors: vt } = await X([u]);
1105
+ if (h(Ve), v) {
1106
+ const Sr = Nt(t.errors, s, u), bt = Nt(vt, s, Sr.name || u);
1107
+ B = bt.error, u = bt.name, Y = W(vt);
1045
1108
  }
1046
1109
  } else
1047
- C([u], !0), M = (await zt(g, l.disabled, o, x, r.shouldUseNativeValidation))[u], C([u]), m(Fe), v && (M ? Y = !1 : (f.isValid || _.isValid) && (Y = await Z(s, !0)));
1048
- v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) && de(g._f.deps), I(u, Y, M, Me));
1110
+ E([u], !0), B = (await Bt(g, l.disabled, n, b, r.shouldUseNativeValidation))[u], E([u]), h(Ve), v && (B ? Y = !1 : (f.isValid || _.isValid) && (Y = await q(s, !0)));
1111
+ v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) && fe(g._f.deps), $(u, Y, B, Me));
1049
1112
  }
1050
- }, me = (i, c) => {
1113
+ }, pe = (i, c) => {
1051
1114
  if (p(t.errors, c) && i.focus)
1052
1115
  return i.focus(), 1;
1053
- }, de = async (i, c = {}) => {
1116
+ }, fe = async (i, c = {}) => {
1054
1117
  let u, v;
1055
- const g = pe(i);
1118
+ const g = Se(i);
1056
1119
  if (r.resolver) {
1057
- const m = await ie(T(i) ? i : g);
1058
- u = W(m), v = i ? !g.some((S) => p(m, S)) : u;
1059
- } else i ? (v = (await Promise.all(g.map(async (m) => {
1060
- const S = p(s, m);
1061
- return await Z(S && S._f ? { [m]: S } : S);
1062
- }))).every(Boolean), !(!v && !t.isValid) && F()) : v = u = await Z(s);
1120
+ const h = await ie(L(i) ? i : g);
1121
+ u = W(h), v = i ? !g.some((w) => p(h, w)) : u;
1122
+ } else i ? (v = (await Promise.all(g.map(async (h) => {
1123
+ const w = p(s, h);
1124
+ return await q(w && w._f ? { [h]: w } : w);
1125
+ }))).every(Boolean), !(!v && !t.isValid) && k()) : v = u = await q(s);
1063
1126
  return y.state.next({
1064
- ...!J(i) || (f.isValid || _.isValid) && u !== t.isValid ? {} : { name: i },
1127
+ ...!K(i) || (f.isValid || _.isValid) && u !== t.isValid ? {} : { name: i },
1065
1128
  ...r.resolver || !i ? { isValid: u } : {},
1066
1129
  errors: t.errors
1067
- }), c.shouldFocus && !v && ve(s, me, i ? g : l.mount), v;
1130
+ }), c.shouldFocus && !v && Fe(s, pe, i ? g : l.mount), v;
1068
1131
  }, xe = (i, c) => {
1069
1132
  let u = {
1070
- ...a.mount ? o : n
1133
+ ...a.mount ? n : o
1071
1134
  };
1072
- return c && (u = qt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), T(i) ? u : J(i) ? p(u, i) : i.map((v) => p(u, v));
1073
- }, it = (i, c) => ({
1135
+ return c && (u = Yt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), L(i) ? u : K(i) ? p(u, i) : i.map((v) => p(u, v));
1136
+ }, dt = (i, c) => ({
1074
1137
  invalid: !!p((c || t).errors, i),
1075
1138
  isDirty: !!p((c || t).dirtyFields, i),
1076
1139
  error: p((c || t).errors, i),
1077
1140
  isValidating: !!p(t.validatingFields, i),
1078
1141
  isTouched: !!p((c || t).touchedFields, i)
1079
- }), nr = (i) => {
1080
- i && pe(i).forEach((c) => $(t.errors, c)), y.state.next({
1142
+ }), fr = (i) => {
1143
+ i && Se(i).forEach((c) => M(t.errors, c)), y.state.next({
1081
1144
  errors: i ? t.errors : {}
1082
1145
  });
1083
- }, at = (i, c, u) => {
1084
- const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: m, message: S, type: R, ...M } = g;
1146
+ }, ft = (i, c, u) => {
1147
+ const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: h, message: w, type: P, ...B } = g;
1085
1148
  N(t.errors, i, {
1086
- ...M,
1149
+ ...B,
1087
1150
  ...c,
1088
1151
  ref: v
1089
1152
  }), y.state.next({
@@ -1091,37 +1154,37 @@ function Qr(e = {}) {
1091
1154
  errors: t.errors,
1092
1155
  isValid: !1
1093
1156
  }), u && u.shouldFocus && v && v.focus && v.focus();
1094
- }, ir = (i, c) => te(i) ? y.state.subscribe({
1157
+ }, yr = (i, c) => re(i) ? y.state.subscribe({
1095
1158
  next: (u) => "values" in u && i(D(void 0, c), u)
1096
- }) : D(i, c, !0), lt = (i) => y.state.subscribe({
1159
+ }) : D(i, c, !0), yt = (i) => y.state.subscribe({
1097
1160
  next: (c) => {
1098
- jr(i.name, c.name, i.exact) && Hr(c, i.formState || f, dr, i.reRenderRoot) && i.callback({
1099
- values: { ...o },
1161
+ es(i.name, c.name, i.exact) && Yr(c, i.formState || f, pr, i.reRenderRoot) && i.callback({
1162
+ values: { ...n },
1100
1163
  ...t,
1101
1164
  ...c,
1102
- defaultValues: n
1165
+ defaultValues: o
1103
1166
  });
1104
1167
  }
1105
- }).unsubscribe, ar = (i) => (a.mount = !0, _ = {
1168
+ }).unsubscribe, mr = (i) => (a.mount = !0, _ = {
1106
1169
  ..._,
1107
1170
  ...i.formState
1108
- }, lt({
1171
+ }, yt({
1109
1172
  ...i,
1110
1173
  formState: _
1111
- })), Pe = (i, c = {}) => {
1112
- for (const u of i ? pe(i) : l.mount)
1113
- l.mount.delete(u), l.array.delete(u), c.keepValue || ($(s, u), $(o, u)), !c.keepError && $(t.errors, u), !c.keepDirty && $(t.dirtyFields, u), !c.keepTouched && $(t.touchedFields, u), !c.keepIsValidating && $(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && $(n, u);
1174
+ })), Oe = (i, c = {}) => {
1175
+ for (const u of i ? Se(i) : l.mount)
1176
+ l.mount.delete(u), l.array.delete(u), c.keepValue || (M(s, u), M(n, u)), !c.keepError && M(t.errors, u), !c.keepDirty && M(t.dirtyFields, u), !c.keepTouched && M(t.touchedFields, u), !c.keepIsValidating && M(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && M(o, u);
1114
1177
  y.state.next({
1115
- values: H(o)
1178
+ values: H(n)
1116
1179
  }), y.state.next({
1117
1180
  ...t,
1118
- ...c.keepDirty ? { isDirty: se() } : {}
1119
- }), !c.keepIsValid && F();
1120
- }, ct = ({ disabled: i, name: c }) => {
1121
- (K(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
1122
- }, Re = (i, c = {}) => {
1181
+ ...c.keepDirty ? { isDirty: oe() } : {}
1182
+ }), !c.keepIsValid && k();
1183
+ }, mt = ({ disabled: i, name: c }) => {
1184
+ (Q(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
1185
+ }, $e = (i, c = {}) => {
1123
1186
  let u = p(s, i);
1124
- const v = K(c.disabled) || K(r.disabled);
1187
+ const v = Q(c.disabled) || Q(r.disabled);
1125
1188
  return N(s, i, {
1126
1189
  ...u || {},
1127
1190
  _f: {
@@ -1130,77 +1193,77 @@ function Qr(e = {}) {
1130
1193
  mount: !0,
1131
1194
  ...c
1132
1195
  }
1133
- }), l.mount.add(i), u ? ct({
1134
- disabled: K(c.disabled) ? c.disabled : r.disabled,
1196
+ }), l.mount.add(i), u ? mt({
1197
+ disabled: Q(c.disabled) ? c.disabled : r.disabled,
1135
1198
  name: i
1136
- }) : E(i, !0, c.value), {
1199
+ }) : z(i, !0, c.value), {
1137
1200
  ...v ? { disabled: c.disabled || r.disabled } : {},
1138
1201
  ...r.progressive ? {
1139
1202
  required: !!c.required,
1140
- min: he(c.min),
1141
- max: he(c.max),
1142
- minLength: he(c.minLength),
1143
- maxLength: he(c.maxLength),
1144
- pattern: he(c.pattern)
1203
+ min: ve(c.min),
1204
+ max: ve(c.max),
1205
+ minLength: ve(c.minLength),
1206
+ maxLength: ve(c.maxLength),
1207
+ pattern: ve(c.pattern)
1145
1208
  } : {},
1146
1209
  name: i,
1147
- onChange: oe,
1148
- onBlur: oe,
1210
+ onChange: ne,
1211
+ onBlur: ne,
1149
1212
  ref: (g) => {
1150
1213
  if (g) {
1151
- Re(i, c), u = p(s, i);
1152
- const m = T(g.value) && g.querySelectorAll && g.querySelectorAll("input,select,textarea")[0] || g, S = Mr(m), R = u._f.refs || [];
1153
- if (S ? R.find((M) => M === m) : m === u._f.ref)
1214
+ $e(i, c), u = p(s, i);
1215
+ const h = L(g.value) && g.querySelectorAll && g.querySelectorAll("input,select,textarea")[0] || g, w = qr(h), P = u._f.refs || [];
1216
+ if (w ? P.find((B) => B === h) : h === u._f.ref)
1154
1217
  return;
1155
1218
  N(s, i, {
1156
1219
  _f: {
1157
1220
  ...u._f,
1158
- ...S ? {
1221
+ ...w ? {
1159
1222
  refs: [
1160
- ...R.filter(Le),
1161
- m,
1162
- ...Array.isArray(p(n, i)) ? [{}] : []
1223
+ ...P.filter(Ue),
1224
+ h,
1225
+ ...Array.isArray(p(o, i)) ? [{}] : []
1163
1226
  ],
1164
- ref: { type: m.type, name: i }
1165
- } : { ref: m }
1227
+ ref: { type: h.type, name: i }
1228
+ } : { ref: h }
1166
1229
  }
1167
- }), E(i, !1, void 0, m);
1230
+ }), z(i, !1, void 0, h);
1168
1231
  } else
1169
- u = p(s, i, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Ht(l.array, i) && a.action) && l.unMount.add(i);
1232
+ u = p(s, i, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Kt(l.array, i) && a.action) && l.unMount.add(i);
1170
1233
  }
1171
1234
  };
1172
- }, Ne = () => r.shouldFocusError && ve(s, me, l.mount), lr = (i) => {
1173
- K(i) && (y.state.next({ disabled: i }), ve(s, (c, u) => {
1235
+ }, Le = () => r.shouldFocusError && Fe(s, pe, l.mount), hr = (i) => {
1236
+ Q(i) && (y.state.next({ disabled: i }), Fe(s, (c, u) => {
1174
1237
  const v = p(s, u);
1175
1238
  v && (c.disabled = v._f.disabled || i, Array.isArray(v._f.refs) && v._f.refs.forEach((g) => {
1176
1239
  g.disabled = v._f.disabled || i;
1177
1240
  }));
1178
1241
  }, 0, !1));
1179
- }, ut = (i, c) => async (u) => {
1242
+ }, ht = (i, c) => async (u) => {
1180
1243
  let v;
1181
1244
  u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
1182
- let g = H(o);
1245
+ let g = H(n);
1183
1246
  if (y.state.next({
1184
1247
  isSubmitting: !0
1185
1248
  }), r.resolver) {
1186
- const { errors: m, values: S } = await B();
1187
- t.errors = m, g = H(S);
1249
+ const { errors: h, values: w } = await X();
1250
+ t.errors = h, g = H(w);
1188
1251
  } else
1189
- await Z(s);
1252
+ await q(s);
1190
1253
  if (l.disabled.size)
1191
- for (const m of l.disabled)
1192
- $(g, m);
1193
- if ($(t.errors, "root"), W(t.errors)) {
1254
+ for (const h of l.disabled)
1255
+ M(g, h);
1256
+ if (M(t.errors, "root"), W(t.errors)) {
1194
1257
  y.state.next({
1195
1258
  errors: {}
1196
1259
  });
1197
1260
  try {
1198
1261
  await i(g, u);
1199
- } catch (m) {
1200
- v = m;
1262
+ } catch (h) {
1263
+ v = h;
1201
1264
  }
1202
1265
  } else
1203
- c && await c({ ...t.errors }, u), Ne(), setTimeout(Ne);
1266
+ c && await c({ ...t.errors }, u), Le(), setTimeout(Le);
1204
1267
  if (y.state.next({
1205
1268
  isSubmitted: !0,
1206
1269
  isSubmitting: !1,
@@ -1209,26 +1272,26 @@ function Qr(e = {}) {
1209
1272
  errors: t.errors
1210
1273
  }), v)
1211
1274
  throw v;
1212
- }, cr = (i, c = {}) => {
1213
- p(s, i) && (T(c.defaultValue) ? G(i, H(p(n, i))) : (G(i, c.defaultValue), N(n, i, H(c.defaultValue))), c.keepTouched || $(t.touchedFields, i), c.keepDirty || ($(t.dirtyFields, i), t.isDirty = c.defaultValue ? se(i, H(p(n, i))) : se()), c.keepError || ($(t.errors, i), f.isValid && F()), y.state.next({ ...t }));
1214
- }, dt = (i, c = {}) => {
1215
- const u = i ? H(i) : n, v = H(u), g = W(i), m = g ? n : v;
1216
- if (c.keepDefaultValues || (n = u), !c.keepValues) {
1275
+ }, _r = (i, c = {}) => {
1276
+ p(s, i) && (L(c.defaultValue) ? G(i, H(p(o, i))) : (G(i, c.defaultValue), N(o, i, H(c.defaultValue))), c.keepTouched || M(t.touchedFields, i), c.keepDirty || (M(t.dirtyFields, i), t.isDirty = c.defaultValue ? oe(i, H(p(o, i))) : oe()), c.keepError || (M(t.errors, i), f.isValid && k()), y.state.next({ ...t }));
1277
+ }, _t = (i, c = {}) => {
1278
+ const u = i ? H(i) : o, v = H(u), g = W(i), h = g ? o : v;
1279
+ if (c.keepDefaultValues || (o = u), !c.keepValues) {
1217
1280
  if (c.keepDirtyValues) {
1218
- const S = /* @__PURE__ */ new Set([
1281
+ const w = /* @__PURE__ */ new Set([
1219
1282
  ...l.mount,
1220
- ...Object.keys(ye(n, o))
1283
+ ...Object.keys(_e(o, n))
1221
1284
  ]);
1222
- for (const R of Array.from(S))
1223
- p(t.dirtyFields, R) ? N(m, R, p(o, R)) : G(R, p(m, R));
1285
+ for (const P of Array.from(w))
1286
+ p(t.dirtyFields, P) ? N(h, P, p(n, P)) : G(P, p(h, P));
1224
1287
  } else {
1225
- if (Ye && T(i))
1226
- for (const S of l.mount) {
1227
- const R = p(s, S);
1228
- if (R && R._f) {
1229
- const M = Array.isArray(R._f.refs) ? R._f.refs[0] : R._f.ref;
1230
- if (ze(M)) {
1231
- const Y = M.closest("form");
1288
+ if (rt && L(i))
1289
+ for (const w of l.mount) {
1290
+ const P = p(s, w);
1291
+ if (P && P._f) {
1292
+ const B = Array.isArray(P._f.refs) ? P._f.refs[0] : P._f.ref;
1293
+ if (Ne(B)) {
1294
+ const Y = B.closest("form");
1232
1295
  if (Y) {
1233
1296
  Y.reset();
1234
1297
  break;
@@ -1237,15 +1300,15 @@ function Qr(e = {}) {
1237
1300
  }
1238
1301
  }
1239
1302
  if (c.keepFieldsRef)
1240
- for (const S of l.mount)
1241
- G(S, p(m, S));
1303
+ for (const w of l.mount)
1304
+ G(w, p(h, w));
1242
1305
  else
1243
1306
  s = {};
1244
1307
  }
1245
- o = r.shouldUnregister ? c.keepDefaultValues ? H(n) : {} : H(m), y.array.next({
1246
- values: { ...m }
1308
+ n = r.shouldUnregister ? c.keepDefaultValues ? H(o) : {} : H(h), y.array.next({
1309
+ values: { ...h }
1247
1310
  }), y.state.next({
1248
- values: { ...m }
1311
+ values: { ...h }
1249
1312
  });
1250
1313
  }
1251
1314
  l = {
@@ -1256,60 +1319,60 @@ function Qr(e = {}) {
1256
1319
  watch: /* @__PURE__ */ new Set(),
1257
1320
  watchAll: !1,
1258
1321
  focus: ""
1259
- }, a.mount = !f.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !W(m), a.watch = !!r.shouldUnregister, y.state.next({
1322
+ }, a.mount = !f.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !W(h), a.watch = !!r.shouldUnregister, y.state.next({
1260
1323
  submitCount: c.keepSubmitCount ? t.submitCount : 0,
1261
- isDirty: g ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !ee(i, n)),
1324
+ isDirty: g ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !te(i, o)),
1262
1325
  isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
1263
- dirtyFields: g ? {} : c.keepDirtyValues ? c.keepDefaultValues && o ? ye(n, o) : t.dirtyFields : c.keepDefaultValues && i ? ye(n, i) : c.keepDirty ? t.dirtyFields : {},
1326
+ dirtyFields: g ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? _e(o, n) : t.dirtyFields : c.keepDefaultValues && i ? _e(o, i) : c.keepDirty ? t.dirtyFields : {},
1264
1327
  touchedFields: c.keepTouched ? t.touchedFields : {},
1265
1328
  errors: c.keepErrors ? t.errors : {},
1266
1329
  isSubmitSuccessful: c.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
1267
1330
  isSubmitting: !1,
1268
- defaultValues: n
1331
+ defaultValues: o
1269
1332
  });
1270
- }, ft = (i, c) => dt(te(i) ? i(o) : i, c), ur = (i, c = {}) => {
1333
+ }, gt = (i, c) => _t(re(i) ? i(n) : i, c), gr = (i, c = {}) => {
1271
1334
  const u = p(s, i), v = u && u._f;
1272
1335
  if (v) {
1273
1336
  const g = v.refs ? v.refs[0] : v.ref;
1274
- g.focus && (g.focus(), c.shouldSelect && te(g.select) && g.select());
1337
+ g.focus && (g.focus(), c.shouldSelect && re(g.select) && g.select());
1275
1338
  }
1276
- }, dr = (i) => {
1339
+ }, pr = (i) => {
1277
1340
  t = {
1278
1341
  ...t,
1279
1342
  ...i
1280
1343
  };
1281
- }, yt = {
1344
+ }, pt = {
1282
1345
  control: {
1283
- register: Re,
1284
- unregister: Pe,
1285
- getFieldState: it,
1286
- handleSubmit: ut,
1287
- setError: at,
1288
- _subscribe: lt,
1289
- _runSchema: B,
1290
- _focusError: Ne,
1346
+ register: $e,
1347
+ unregister: Oe,
1348
+ getFieldState: dt,
1349
+ handleSubmit: ht,
1350
+ setError: ft,
1351
+ _subscribe: yt,
1352
+ _runSchema: X,
1353
+ _focusError: Le,
1291
1354
  _getWatch: D,
1292
- _getDirty: se,
1293
- _setValid: F,
1294
- _setFieldArray: P,
1295
- _setDisabledField: ct,
1355
+ _getDirty: oe,
1356
+ _setValid: k,
1357
+ _setFieldArray: O,
1358
+ _setDisabledField: mt,
1296
1359
  _setErrors: A,
1297
- _getFieldArray: O,
1298
- _reset: dt,
1299
- _resetDefaultValues: () => te(r.defaultValues) && r.defaultValues().then((i) => {
1300
- ft(i, r.resetOptions), y.state.next({
1360
+ _getFieldArray: R,
1361
+ _reset: _t,
1362
+ _resetDefaultValues: () => re(r.defaultValues) && r.defaultValues().then((i) => {
1363
+ gt(i, r.resetOptions), y.state.next({
1301
1364
  isLoading: !1
1302
1365
  });
1303
1366
  }),
1304
- _removeUnmounted: re,
1305
- _disableForm: lr,
1367
+ _removeUnmounted: se,
1368
+ _disableForm: hr,
1306
1369
  _subjects: y,
1307
1370
  _proxyFormState: f,
1308
1371
  get _fields() {
1309
1372
  return s;
1310
1373
  },
1311
1374
  get _formValues() {
1312
- return o;
1375
+ return n;
1313
1376
  },
1314
1377
  get _state() {
1315
1378
  return a;
@@ -1318,7 +1381,7 @@ function Qr(e = {}) {
1318
1381
  a = i;
1319
1382
  },
1320
1383
  get _defaultValues() {
1321
- return n;
1384
+ return o;
1322
1385
  },
1323
1386
  get _names() {
1324
1387
  return l;
@@ -1339,31 +1402,31 @@ function Qr(e = {}) {
1339
1402
  };
1340
1403
  }
1341
1404
  },
1342
- subscribe: ar,
1343
- trigger: de,
1344
- register: Re,
1345
- handleSubmit: ut,
1346
- watch: ir,
1405
+ subscribe: mr,
1406
+ trigger: fe,
1407
+ register: $e,
1408
+ handleSubmit: ht,
1409
+ watch: yr,
1347
1410
  setValue: G,
1348
1411
  getValues: xe,
1349
- reset: ft,
1350
- resetField: cr,
1351
- clearErrors: nr,
1352
- unregister: Pe,
1353
- setError: at,
1354
- setFocus: ur,
1355
- getFieldState: it
1412
+ reset: gt,
1413
+ resetField: _r,
1414
+ clearErrors: fr,
1415
+ unregister: Oe,
1416
+ setError: ft,
1417
+ setFocus: gr,
1418
+ getFieldState: dt
1356
1419
  };
1357
1420
  return {
1358
- ...yt,
1359
- formControl: yt
1421
+ ...pt,
1422
+ formControl: pt
1360
1423
  };
1361
1424
  }
1362
- function Kr(e = {}) {
1363
- const r = V.useRef(void 0), t = V.useRef(void 0), [s, n] = V.useState({
1425
+ function is(e = {}) {
1426
+ const r = x.useRef(void 0), t = x.useRef(void 0), [s, o] = x.useState({
1364
1427
  isDirty: !1,
1365
1428
  isValidating: !1,
1366
- isLoading: te(e.defaultValues),
1429
+ isLoading: re(e.defaultValues),
1367
1430
  isSubmitted: !1,
1368
1431
  isSubmitting: !1,
1369
1432
  isSubmitSuccessful: !1,
@@ -1375,170 +1438,170 @@ function Kr(e = {}) {
1375
1438
  errors: e.errors || {},
1376
1439
  disabled: e.disabled || !1,
1377
1440
  isReady: !1,
1378
- defaultValues: te(e.defaultValues) ? void 0 : e.defaultValues
1441
+ defaultValues: re(e.defaultValues) ? void 0 : e.defaultValues
1379
1442
  });
1380
1443
  if (!r.current)
1381
1444
  if (e.formControl)
1382
1445
  r.current = {
1383
1446
  ...e.formControl,
1384
1447
  formState: s
1385
- }, e.defaultValues && !te(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
1448
+ }, e.defaultValues && !re(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
1386
1449
  else {
1387
- const { formControl: a, ...l } = Qr(e);
1450
+ const { formControl: a, ...l } = ns(e);
1388
1451
  r.current = {
1389
1452
  ...l,
1390
1453
  formState: s
1391
1454
  };
1392
1455
  }
1393
- const o = r.current.control;
1394
- return o._options = e, rt(() => {
1395
- const a = o._subscribe({
1396
- formState: o._proxyFormState,
1397
- callback: () => n({ ...o._formState }),
1456
+ const n = r.current.control;
1457
+ return n._options = e, it(() => {
1458
+ const a = n._subscribe({
1459
+ formState: n._proxyFormState,
1460
+ callback: () => o({ ...n._formState }),
1398
1461
  reRenderRoot: !0
1399
1462
  });
1400
- return n((l) => ({
1463
+ return o((l) => ({
1401
1464
  ...l,
1402
1465
  isReady: !0
1403
- })), o._formState.isReady = !0, a;
1404
- }, [o]), V.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), V.useEffect(() => {
1405
- e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode);
1406
- }, [o, e.mode, e.reValidateMode]), V.useEffect(() => {
1407
- e.errors && (o._setErrors(e.errors), o._focusError());
1408
- }, [o, e.errors]), V.useEffect(() => {
1409
- e.shouldUnregister && o._subjects.state.next({
1410
- values: o._getWatch()
1466
+ })), n._formState.isReady = !0, a;
1467
+ }, [n]), x.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), x.useEffect(() => {
1468
+ e.mode && (n._options.mode = e.mode), e.reValidateMode && (n._options.reValidateMode = e.reValidateMode);
1469
+ }, [n, e.mode, e.reValidateMode]), x.useEffect(() => {
1470
+ e.errors && (n._setErrors(e.errors), n._focusError());
1471
+ }, [n, e.errors]), x.useEffect(() => {
1472
+ e.shouldUnregister && n._subjects.state.next({
1473
+ values: n._getWatch()
1411
1474
  });
1412
- }, [o, e.shouldUnregister]), V.useEffect(() => {
1413
- if (o._proxyFormState.isDirty) {
1414
- const a = o._getDirty();
1415
- a !== s.isDirty && o._subjects.state.next({
1475
+ }, [n, e.shouldUnregister]), x.useEffect(() => {
1476
+ if (n._proxyFormState.isDirty) {
1477
+ const a = n._getDirty();
1478
+ a !== s.isDirty && n._subjects.state.next({
1416
1479
  isDirty: a
1417
1480
  });
1418
1481
  }
1419
- }, [o, s.isDirty]), V.useEffect(() => {
1420
- e.values && !ee(e.values, t.current) ? (o._reset(e.values, {
1482
+ }, [n, s.isDirty]), x.useEffect(() => {
1483
+ e.values && !te(e.values, t.current) ? (n._reset(e.values, {
1421
1484
  keepFieldsRef: !0,
1422
- ...o._options.resetOptions
1423
- }), t.current = e.values, n((a) => ({ ...a }))) : o._resetDefaultValues();
1424
- }, [o, e.values]), V.useEffect(() => {
1425
- o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
1426
- }), r.current.formState = Wt(s, o), r.current;
1485
+ ...n._options.resetOptions
1486
+ }), t.current = e.values, o((a) => ({ ...a }))) : n._resetDefaultValues();
1487
+ }, [n, e.values]), x.useEffect(() => {
1488
+ n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
1489
+ }), r.current.formState = Xt(s, n), r.current;
1427
1490
  }
1428
- const At = (e, r, t) => {
1491
+ const Ot = (e, r, t) => {
1429
1492
  if (e && "reportValidity" in e) {
1430
1493
  const s = p(t, r);
1431
1494
  e.setCustomValidity(s && s.message || ""), e.reportValidity();
1432
1495
  }
1433
- }, Ge = (e, r) => {
1496
+ }, Xe = (e, r) => {
1434
1497
  for (const t in r.fields) {
1435
1498
  const s = r.fields[t];
1436
- s && s.ref && "reportValidity" in s.ref ? At(s.ref, t, e) : s && s.refs && s.refs.forEach((n) => At(n, t, e));
1499
+ s && s.ref && "reportValidity" in s.ref ? Ot(s.ref, t, e) : s && s.refs && s.refs.forEach((o) => Ot(o, t, e));
1437
1500
  }
1438
- }, Dt = (e, r) => {
1439
- r.shouldUseNativeValidation && Ge(e, r);
1501
+ }, $t = (e, r) => {
1502
+ r.shouldUseNativeValidation && Xe(e, r);
1440
1503
  const t = {};
1441
1504
  for (const s in e) {
1442
- const n = p(r.fields, s), o = Object.assign(e[s] || {}, { ref: n && n.ref });
1443
- if (Jr(r.names || Object.keys(e), s)) {
1505
+ const o = p(r.fields, s), n = Object.assign(e[s] || {}, { ref: o && o.ref });
1506
+ if (as(r.names || Object.keys(e), s)) {
1444
1507
  const a = Object.assign({}, p(t, s));
1445
- N(a, "root", o), N(t, s, a);
1446
- } else N(t, s, o);
1508
+ N(a, "root", n), N(t, s, a);
1509
+ } else N(t, s, n);
1447
1510
  }
1448
1511
  return t;
1449
- }, Jr = (e, r) => {
1450
- const t = Pt(r);
1451
- return e.some((s) => Pt(s).match(`^${t}\\.\\d+`));
1512
+ }, as = (e, r) => {
1513
+ const t = Lt(r);
1514
+ return e.some((s) => Lt(s).match(`^${t}\\.\\d+`));
1452
1515
  };
1453
- function Pt(e) {
1516
+ function Lt(e) {
1454
1517
  return e.replace(/\]|\[/g, "");
1455
1518
  }
1456
- function Yt(e, r, t) {
1519
+ function nr(e, r, t) {
1457
1520
  function s(l, d) {
1458
- var h;
1521
+ var m;
1459
1522
  Object.defineProperty(l, "_zod", {
1460
1523
  value: l._zod ?? {},
1461
1524
  enumerable: !1
1462
- }), (h = l._zod).traits ?? (h.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, d);
1525
+ }), (m = l._zod).traits ?? (m.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, d);
1463
1526
  for (const f in a.prototype)
1464
1527
  f in l || Object.defineProperty(l, f, { value: a.prototype[f].bind(l) });
1465
1528
  l._zod.constr = a, l._zod.def = d;
1466
1529
  }
1467
- const n = (t == null ? void 0 : t.Parent) ?? Object;
1468
- class o extends n {
1530
+ const o = (t == null ? void 0 : t.Parent) ?? Object;
1531
+ class n extends o {
1469
1532
  }
1470
- Object.defineProperty(o, "name", { value: e });
1533
+ Object.defineProperty(n, "name", { value: e });
1471
1534
  function a(l) {
1472
1535
  var d;
1473
- const h = t != null && t.Parent ? new o() : this;
1474
- s(h, l), (d = h._zod).deferred ?? (d.deferred = []);
1475
- for (const f of h._zod.deferred)
1536
+ const m = t != null && t.Parent ? new n() : this;
1537
+ s(m, l), (d = m._zod).deferred ?? (d.deferred = []);
1538
+ for (const f of m._zod.deferred)
1476
1539
  f();
1477
- return h;
1540
+ return m;
1478
1541
  }
1479
1542
  return Object.defineProperty(a, "init", { value: s }), Object.defineProperty(a, Symbol.hasInstance, {
1480
1543
  value: (l) => {
1481
- var d, h;
1482
- return t != null && t.Parent && l instanceof t.Parent ? !0 : (h = (d = l == null ? void 0 : l._zod) == null ? void 0 : d.traits) == null ? void 0 : h.has(e);
1544
+ var d, m;
1545
+ return t != null && t.Parent && l instanceof t.Parent ? !0 : (m = (d = l == null ? void 0 : l._zod) == null ? void 0 : d.traits) == null ? void 0 : m.has(e);
1483
1546
  }
1484
1547
  }), Object.defineProperty(a, "name", { value: e }), a;
1485
1548
  }
1486
- class Yr extends Error {
1549
+ class ls extends Error {
1487
1550
  constructor() {
1488
1551
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
1489
1552
  }
1490
1553
  }
1491
- const Xr = {};
1492
- function Xt(e) {
1493
- return Xr;
1554
+ const cs = {};
1555
+ function ir(e) {
1556
+ return cs;
1494
1557
  }
1495
- function es(e, r) {
1558
+ function us(e, r) {
1496
1559
  return typeof r == "bigint" ? r.toString() : r;
1497
1560
  }
1498
- const er = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1561
+ const ar = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1499
1562
  };
1500
- function we(e) {
1563
+ function ze(e) {
1501
1564
  return typeof e == "string" ? e : e == null ? void 0 : e.message;
1502
1565
  }
1503
- function tr(e, r, t) {
1504
- var n, o, a, l, d, h;
1566
+ function lr(e, r, t) {
1567
+ var o, n, a, l, d, m;
1505
1568
  const s = { ...e, path: e.path ?? [] };
1506
1569
  if (!e.message) {
1507
- const f = we((a = (o = (n = e.inst) == null ? void 0 : n._zod.def) == null ? void 0 : o.error) == null ? void 0 : a.call(o, e)) ?? we((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? we((d = t.customError) == null ? void 0 : d.call(t, e)) ?? we((h = t.localeError) == null ? void 0 : h.call(t, e)) ?? "Invalid input";
1570
+ const f = ze((a = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? ze((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? ze((d = t.customError) == null ? void 0 : d.call(t, e)) ?? ze((m = t.localeError) == null ? void 0 : m.call(t, e)) ?? "Invalid input";
1508
1571
  s.message = f;
1509
1572
  }
1510
1573
  return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
1511
1574
  }
1512
- const rr = (e, r) => {
1575
+ const cr = (e, r) => {
1513
1576
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
1514
1577
  value: e._zod,
1515
1578
  enumerable: !1
1516
1579
  }), Object.defineProperty(e, "issues", {
1517
1580
  value: r,
1518
1581
  enumerable: !1
1519
- }), e.message = JSON.stringify(r, es, 2), Object.defineProperty(e, "toString", {
1582
+ }), e.message = JSON.stringify(r, us, 2), Object.defineProperty(e, "toString", {
1520
1583
  value: () => e.message,
1521
1584
  enumerable: !1
1522
1585
  });
1523
- }, ts = Yt("$ZodError", rr), sr = Yt("$ZodError", rr, { Parent: Error }), rs = (e) => (r, t, s, n) => {
1524
- const o = s ? Object.assign(s, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, o);
1586
+ }, ds = nr("$ZodError", cr), ur = nr("$ZodError", cr, { Parent: Error }), fs = (e) => (r, t, s, o) => {
1587
+ const n = s ? Object.assign(s, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
1525
1588
  if (a instanceof Promise)
1526
- throw new Yr();
1589
+ throw new ls();
1527
1590
  if (a.issues.length) {
1528
- const l = new ((n == null ? void 0 : n.Err) ?? e)(a.issues.map((d) => tr(d, o, Xt())));
1529
- throw er(l, n == null ? void 0 : n.callee), l;
1591
+ const l = new ((o == null ? void 0 : o.Err) ?? e)(a.issues.map((d) => lr(d, n, ir())));
1592
+ throw ar(l, o == null ? void 0 : o.callee), l;
1530
1593
  }
1531
1594
  return a.value;
1532
- }, ss = /* @__PURE__ */ rs(sr), os = (e) => async (r, t, s, n) => {
1533
- const o = s ? Object.assign(s, { async: !0 }) : { async: !0 };
1534
- let a = r._zod.run({ value: t, issues: [] }, o);
1595
+ }, ys = /* @__PURE__ */ fs(ur), ms = (e) => async (r, t, s, o) => {
1596
+ const n = s ? Object.assign(s, { async: !0 }) : { async: !0 };
1597
+ let a = r._zod.run({ value: t, issues: [] }, n);
1535
1598
  if (a instanceof Promise && (a = await a), a.issues.length) {
1536
- const l = new ((n == null ? void 0 : n.Err) ?? e)(a.issues.map((d) => tr(d, o, Xt())));
1537
- throw er(l, n == null ? void 0 : n.callee), l;
1599
+ const l = new ((o == null ? void 0 : o.Err) ?? e)(a.issues.map((d) => lr(d, n, ir())));
1600
+ throw ar(l, o == null ? void 0 : o.callee), l;
1538
1601
  }
1539
1602
  return a.value;
1540
- }, ns = /* @__PURE__ */ os(sr);
1541
- function Rt(e, r) {
1603
+ }, hs = /* @__PURE__ */ ms(ur);
1604
+ function Tt(e, r) {
1542
1605
  try {
1543
1606
  var t = e();
1544
1607
  } catch (s) {
@@ -1546,57 +1609,57 @@ function Rt(e, r) {
1546
1609
  }
1547
1610
  return t && t.then ? t.then(void 0, r) : t;
1548
1611
  }
1549
- function is(e, r) {
1612
+ function _s(e, r) {
1550
1613
  for (var t = {}; e.length; ) {
1551
- var s = e[0], n = s.code, o = s.message, a = s.path.join(".");
1614
+ var s = e[0], o = s.code, n = s.message, a = s.path.join(".");
1552
1615
  if (!t[a]) if ("unionErrors" in s) {
1553
1616
  var l = s.unionErrors[0].errors[0];
1554
1617
  t[a] = { message: l.message, type: l.code };
1555
- } else t[a] = { message: o, type: n };
1618
+ } else t[a] = { message: n, type: o };
1556
1619
  if ("unionErrors" in s && s.unionErrors.forEach(function(f) {
1557
1620
  return f.errors.forEach(function(_) {
1558
1621
  return e.push(_);
1559
1622
  });
1560
1623
  }), r) {
1561
- var d = t[a].types, h = d && d[s.code];
1562
- t[a] = st(a, r, t, n, h ? [].concat(h, s.message) : s.message);
1624
+ var d = t[a].types, m = d && d[s.code];
1625
+ t[a] = at(a, r, t, o, m ? [].concat(m, s.message) : s.message);
1563
1626
  }
1564
1627
  e.shift();
1565
1628
  }
1566
1629
  return t;
1567
1630
  }
1568
- function as(e, r) {
1631
+ function gs(e, r) {
1569
1632
  for (var t = {}; e.length; ) {
1570
- var s = e[0], n = s.code, o = s.message, a = s.path.join(".");
1633
+ var s = e[0], o = s.code, n = s.message, a = s.path.join(".");
1571
1634
  if (!t[a]) if (s.code === "invalid_union" && s.errors.length > 0) {
1572
1635
  var l = s.errors[0][0];
1573
1636
  t[a] = { message: l.message, type: l.code };
1574
- } else t[a] = { message: o, type: n };
1637
+ } else t[a] = { message: n, type: o };
1575
1638
  if (s.code === "invalid_union" && s.errors.forEach(function(f) {
1576
1639
  return f.forEach(function(_) {
1577
1640
  return e.push(_);
1578
1641
  });
1579
1642
  }), r) {
1580
- var d = t[a].types, h = d && d[s.code];
1581
- t[a] = st(a, r, t, n, h ? [].concat(h, s.message) : s.message);
1643
+ var d = t[a].types, m = d && d[s.code];
1644
+ t[a] = at(a, r, t, o, m ? [].concat(m, s.message) : s.message);
1582
1645
  }
1583
1646
  e.shift();
1584
1647
  }
1585
1648
  return t;
1586
1649
  }
1587
- function ls(e, r, t) {
1650
+ function ps(e, r, t) {
1588
1651
  if (t === void 0 && (t = {}), (function(s) {
1589
1652
  return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
1590
- })(e)) return function(s, n, o) {
1653
+ })(e)) return function(s, o, n) {
1591
1654
  try {
1592
- return Promise.resolve(Rt(function() {
1655
+ return Promise.resolve(Tt(function() {
1593
1656
  return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(a) {
1594
- return o.shouldUseNativeValidation && Ge({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1657
+ return n.shouldUseNativeValidation && Xe({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1595
1658
  });
1596
1659
  }, function(a) {
1597
1660
  if ((function(l) {
1598
1661
  return Array.isArray(l == null ? void 0 : l.issues);
1599
- })(a)) return { values: {}, errors: Dt(is(a.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
1662
+ })(a)) return { values: {}, errors: $t(_s(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
1600
1663
  throw a;
1601
1664
  }));
1602
1665
  } catch (a) {
@@ -1605,16 +1668,16 @@ function ls(e, r, t) {
1605
1668
  };
1606
1669
  if ((function(s) {
1607
1670
  return "_zod" in s && typeof s._zod == "object";
1608
- })(e)) return function(s, n, o) {
1671
+ })(e)) return function(s, o, n) {
1609
1672
  try {
1610
- return Promise.resolve(Rt(function() {
1611
- return Promise.resolve((t.mode === "sync" ? ss : ns)(e, s, r)).then(function(a) {
1612
- return o.shouldUseNativeValidation && Ge({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1673
+ return Promise.resolve(Tt(function() {
1674
+ return Promise.resolve((t.mode === "sync" ? ys : hs)(e, s, r)).then(function(a) {
1675
+ return n.shouldUseNativeValidation && Xe({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1613
1676
  });
1614
1677
  }, function(a) {
1615
1678
  if ((function(l) {
1616
- return l instanceof ts;
1617
- })(a)) return { values: {}, errors: Dt(as(a.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
1679
+ return l instanceof ds;
1680
+ })(a)) return { values: {}, errors: $t(gs(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
1618
1681
  throw a;
1619
1682
  }));
1620
1683
  } catch (a) {
@@ -1623,189 +1686,150 @@ function ls(e, r, t) {
1623
1686
  };
1624
1687
  throw new Error("Invalid input: not a Zod schema");
1625
1688
  }
1626
- const or = V.createContext(null);
1627
- function cs() {
1628
- const e = V.useContext(or);
1689
+ const dr = x.createContext(null);
1690
+ function vs() {
1691
+ const e = x.useContext(dr);
1629
1692
  if (!e)
1630
1693
  throw new Error("useFormContext must be used within a Form component");
1631
1694
  return e;
1632
1695
  }
1633
- function us({
1696
+ function bs({
1634
1697
  onSubmit: e,
1635
1698
  children: r,
1636
1699
  schema: t,
1637
1700
  defaultValues: s,
1638
- mode: n = "onSubmit",
1639
- reValidateMode: o = "onChange",
1701
+ mode: o = "onSubmit",
1702
+ reValidateMode: n = "onChange",
1640
1703
  ...a
1641
1704
  }) {
1642
- const l = Kr({
1643
- resolver: t ? ls(t) : void 0,
1705
+ const l = is({
1706
+ resolver: t ? ps(t) : void 0,
1644
1707
  defaultValues: s,
1645
- mode: n,
1646
- reValidateMode: o
1708
+ mode: o,
1709
+ reValidateMode: n
1647
1710
  }), d = l.handleSubmit(e);
1648
- return /* @__PURE__ */ w(or.Provider, { value: l, children: /* @__PURE__ */ w("form", { onSubmit: d, ...a, children: typeof r == "function" ? r(l) : r }) });
1711
+ return /* @__PURE__ */ S(dr.Provider, { value: l, children: /* @__PURE__ */ S("form", { onSubmit: d, ...a, children: typeof r == "function" ? r(l) : r }) });
1649
1712
  }
1650
- const yo = us, ds = "FormLabel-module__label___0M-fo", fs = "FormLabel-module__disabled___ktIFp", Nt = {
1651
- label: ds,
1652
- disabled: fs
1653
- }, ys = ({
1654
- color: e = "#000",
1655
- disabled: r = !1,
1656
- fontSize: t = ".85em"
1657
- }) => ({
1658
- color: e,
1659
- fontSize: t,
1660
- opacity: r ? 0.5 : 1,
1661
- cursor: r ? "not-allowed" : "default"
1662
- }), ms = ({
1663
- children: e,
1664
- color: r,
1665
- disabled: t = !1,
1666
- error: s = !1,
1667
- fontSize: n,
1668
- htmlFor: o,
1669
- style: a,
1670
- ...l
1671
- }) => {
1672
- const d = q(), h = d.colors.error, f = s ? h : r || d.colors.primary, _ = ys({
1673
- color: f,
1674
- disabled: t,
1675
- fontSize: n || ".85em"
1676
- }), y = {
1677
- color: _.color,
1678
- fontSize: _.fontSize,
1679
- opacity: _.opacity,
1680
- cursor: _.cursor,
1681
- ...a
1682
- }, x = [
1683
- Nt.label,
1684
- t ? Nt.disabled : ""
1685
- ].filter(Boolean).join(" ");
1686
- return /* @__PURE__ */ w(
1687
- "label",
1688
- {
1689
- className: x,
1690
- htmlFor: o,
1691
- style: y,
1692
- ...l,
1693
- children: e
1694
- }
1695
- );
1696
- }, hs = "FormError-module__formError___kaUBn", _s = {
1697
- formError: hs
1698
- }, gs = ({
1713
+ const Uo = bs, Ss = "FormError-module__formError___kaUBn", Fs = {
1714
+ formError: Ss
1715
+ }, ws = ({
1699
1716
  children: e,
1700
1717
  className: r,
1701
1718
  style: t
1702
1719
  }) => {
1703
- const n = {
1704
- color: q().colors.error,
1720
+ const o = {
1721
+ color: U().colors.error,
1705
1722
  ...t
1706
1723
  };
1707
- return /* @__PURE__ */ w(
1724
+ return /* @__PURE__ */ S(
1708
1725
  "div",
1709
1726
  {
1710
- className: `${_s.formError} ${r || ""}`.trim(),
1711
- style: n,
1727
+ className: `${Fs.formError} ${r || ""}`.trim(),
1728
+ style: o,
1712
1729
  role: "alert",
1713
1730
  "aria-live": "polite",
1714
1731
  children: e
1715
1732
  }
1716
1733
  );
1717
- }, ps = "FormGroup-module__formGroup___aVI-B", vs = "FormGroup-module__inputWrapper___429QE", bs = "FormGroup-module__disabled___W-tJ0", Ss = "FormGroup-module__required___mO3xA", _e = {
1718
- formGroup: ps,
1719
- inputWrapper: vs,
1720
- disabled: bs,
1721
- required: Ss
1722
- }, xs = ({
1734
+ }, ks = "FormGroup-module__formGroup___aVI-B", xs = "FormGroup-module__inputWrapper___429QE", Vs = "FormGroup-module__indented___t61iz", Cs = "FormGroup-module__disabled___W-tJ0", Es = "FormGroup-module__required___mO3xA", me = {
1735
+ formGroup: ks,
1736
+ inputWrapper: xs,
1737
+ indented: Vs,
1738
+ disabled: Cs,
1739
+ required: Es
1740
+ }, zs = ({
1723
1741
  children: e,
1724
1742
  label: r,
1725
1743
  name: t,
1726
1744
  error: s = !1,
1727
- errorMessage: n,
1728
- disabled: o = !1,
1745
+ errorMessage: o,
1746
+ disabled: n = !1,
1729
1747
  required: a = !1,
1730
- className: l,
1731
- style: d,
1732
- labelProps: h
1748
+ indent: l = !1,
1749
+ className: d,
1750
+ style: m,
1751
+ labelProps: f
1733
1752
  }) => {
1734
- const f = [
1735
- _e.formGroup,
1736
- s ? _e.error : "",
1737
- o ? _e.disabled : "",
1738
- l
1739
- ].filter(Boolean).join(" "), _ = V.Children.map(e, (y) => {
1740
- if (V.isValidElement(y)) {
1741
- const x = {};
1742
- if (o && y.props.disabled === void 0 && (x.disabled = !0), s && y.props.error === void 0 && (x.error = !0), t && y.props.id === void 0 && (x.id = t), Object.keys(x).length > 0)
1743
- return V.cloneElement(y, x);
1753
+ const _ = [
1754
+ me.formGroup,
1755
+ s ? me.error : "",
1756
+ n ? me.disabled : "",
1757
+ d
1758
+ ].filter(Boolean).join(" "), y = x.Children.map(e, (b) => {
1759
+ if (x.isValidElement(b)) {
1760
+ const V = {};
1761
+ if (n && b.props.disabled === void 0 && (V.disabled = !0), s && b.props.error === void 0 && (V.error = !0), t && b.props.id === void 0 && (V.id = t), Object.keys(V).length > 0)
1762
+ return x.cloneElement(b, V);
1744
1763
  }
1745
- return y;
1764
+ return b;
1746
1765
  });
1747
- return /* @__PURE__ */ ne("div", { className: f, style: d, children: [
1748
- r && /* @__PURE__ */ ne(
1749
- ms,
1766
+ return /* @__PURE__ */ J("div", { className: _, style: m, children: [
1767
+ r && /* @__PURE__ */ J(
1768
+ tt,
1750
1769
  {
1751
1770
  htmlFor: t,
1752
- disabled: o,
1771
+ disabled: n,
1753
1772
  error: s,
1754
- ...h,
1773
+ ...f,
1755
1774
  children: [
1756
1775
  r,
1757
- a && /* @__PURE__ */ w("span", { className: _e.required, "aria-label": "required", children: " *" })
1776
+ a && /* @__PURE__ */ S("span", { className: me.required, "aria-label": "required", children: " *" })
1758
1777
  ]
1759
1778
  }
1760
1779
  ),
1761
- /* @__PURE__ */ w("div", { className: _e.inputWrapper, children: _ }),
1762
- s && n && /* @__PURE__ */ w(gs, { children: n })
1780
+ /* @__PURE__ */ S("div", { className: `${me.inputWrapper} ${l ? me.indented : ""}`, children: y }),
1781
+ s && o && /* @__PURE__ */ S(ws, { children: o })
1763
1782
  ] });
1764
1783
  };
1765
- function Se({
1784
+ function ke({
1766
1785
  name: e,
1767
1786
  label: r,
1768
1787
  required: t,
1769
1788
  children: s,
1770
- rules: n,
1771
- disabled: o,
1789
+ rules: o,
1790
+ disabled: n,
1772
1791
  className: a,
1773
- style: l
1792
+ style: l,
1793
+ indent: d,
1794
+ labelProps: m
1774
1795
  }) {
1775
- const { control: d, formState: h } = cs(), {
1776
- field: f,
1777
- fieldState: { error: _ }
1778
- } = Or({
1796
+ const { control: f } = vs(), {
1797
+ field: _,
1798
+ fieldState: { error: y }
1799
+ } = Wr({
1779
1800
  name: e,
1780
- control: d,
1781
- rules: n
1801
+ control: f,
1802
+ rules: o
1782
1803
  });
1783
- return /* @__PURE__ */ w(
1784
- xs,
1804
+ return /* @__PURE__ */ S(
1805
+ zs,
1785
1806
  {
1786
1807
  label: r,
1787
1808
  name: e,
1788
- error: !!_,
1789
- errorMessage: _ == null ? void 0 : _.message,
1790
- disabled: o,
1809
+ error: !!y,
1810
+ errorMessage: y == null ? void 0 : y.message,
1811
+ disabled: n,
1791
1812
  required: t,
1792
1813
  className: a,
1793
1814
  style: l,
1815
+ indent: d,
1816
+ labelProps: m,
1794
1817
  children: s({
1795
- value: f.value,
1796
- onChange: f.onChange,
1797
- onBlur: f.onBlur,
1798
- name: f.name,
1799
- error: !!_
1818
+ value: _.value,
1819
+ onChange: _.onChange,
1820
+ onBlur: _.onBlur,
1821
+ name: _.name,
1822
+ error: !!y,
1823
+ indent: d
1800
1824
  })
1801
1825
  }
1802
1826
  );
1803
1827
  }
1804
- const Fs = "Input-module__input___WjT81", Vs = "Input-module__sizeSmall___NFvsi", ks = "Input-module__sizeDefault___AxPA0", Ie = {
1805
- input: Fs,
1806
- sizeSmall: Vs,
1807
- sizeDefault: ks
1808
- }, ws = ({
1828
+ const As = "Input-module__input___WjT81", Ds = "Input-module__sizeSmall___NFvsi", Ps = "Input-module__sizeDefault___AxPA0", He = {
1829
+ input: As,
1830
+ sizeSmall: Ds,
1831
+ sizeDefault: Ps
1832
+ }, Ns = ({
1809
1833
  color: e = "#000",
1810
1834
  disabled: r = !1,
1811
1835
  fontSize: t = "1em",
@@ -1816,79 +1840,81 @@ const Fs = "Input-module__input___WjT81", Vs = "Input-module__sizeSmall___NFvsi"
1816
1840
  fontSize: t,
1817
1841
  opacity: r ? 0.3 : 1,
1818
1842
  placeholderOpacity: s
1819
- }), Cs = ({
1843
+ }), Rs = ({
1820
1844
  color: e,
1821
1845
  disabled: r = !1,
1822
1846
  error: t = !1,
1823
1847
  fontSize: s,
1824
- name: n = "",
1825
- onChange: o,
1848
+ name: o = "",
1849
+ onChange: n,
1826
1850
  placeholder: a,
1827
1851
  placeholderOpacity: l = 0.3,
1828
1852
  size: d,
1829
- style: h,
1853
+ style: m,
1830
1854
  type: f = "text",
1831
1855
  value: _ = "",
1832
1856
  ...y
1833
1857
  }) => {
1834
- const x = q(), z = x.colors.error, F = t ? z : e || x.colors.primary, C = ws({
1835
- color: F,
1858
+ const b = U(), V = b.colors.error, k = t ? V : e || b.colors.primary, E = Ns({
1859
+ color: k,
1836
1860
  disabled: r,
1837
- fontSize: s || x.fonts.size,
1861
+ fontSize: s || b.fonts.size,
1838
1862
  placeholderOpacity: l
1839
- }), P = {
1840
- "--placeholder-opacity": C.placeholderOpacity,
1841
- borderColor: C.borderColor,
1842
- color: C.color,
1843
- fontSize: C.fontSize,
1844
- opacity: C.opacity,
1845
- ...h
1846
- }, b = [
1847
- Ie.input,
1848
- d === "small" ? Ie.sizeSmall : Ie.sizeDefault
1863
+ }), O = {
1864
+ "--placeholder-opacity": E.placeholderOpacity,
1865
+ "--border-width": b.border.width,
1866
+ "--border-radius": b.border.radius,
1867
+ borderColor: E.borderColor,
1868
+ color: E.color,
1869
+ fontSize: E.fontSize,
1870
+ opacity: E.opacity,
1871
+ ...m
1872
+ }, F = [
1873
+ He.input,
1874
+ d === "small" ? He.sizeSmall : He.sizeDefault
1849
1875
  ].filter(Boolean).join(" ");
1850
- return /* @__PURE__ */ w(
1876
+ return /* @__PURE__ */ S(
1851
1877
  "input",
1852
1878
  {
1853
- className: b,
1879
+ className: F,
1854
1880
  disabled: r,
1855
- name: n,
1856
- onChange: o,
1881
+ name: o,
1882
+ onChange: n,
1857
1883
  placeholder: a,
1858
- style: P,
1884
+ style: O,
1859
1885
  type: f,
1860
1886
  value: _,
1861
1887
  ...y
1862
1888
  }
1863
1889
  );
1864
1890
  };
1865
- function mo({
1891
+ function Ho({
1866
1892
  name: e,
1867
1893
  label: r,
1868
1894
  required: t,
1869
1895
  rules: s,
1870
- disabled: n,
1871
- className: o,
1896
+ disabled: o,
1897
+ className: n,
1872
1898
  style: a,
1873
1899
  ...l
1874
1900
  }) {
1875
- return /* @__PURE__ */ w(
1876
- Se,
1901
+ return /* @__PURE__ */ S(
1902
+ ke,
1877
1903
  {
1878
1904
  name: e,
1879
1905
  label: r,
1880
1906
  required: t,
1881
1907
  rules: s,
1882
- disabled: n,
1883
- className: o,
1908
+ disabled: o,
1909
+ className: n,
1884
1910
  style: a,
1885
- children: ({ value: d, onChange: h, onBlur: f, name: _, error: y }) => /* @__PURE__ */ w(
1886
- Cs,
1911
+ children: ({ value: d, onChange: m, onBlur: f, name: _, error: y }) => /* @__PURE__ */ S(
1912
+ Rs,
1887
1913
  {
1888
1914
  ...l,
1889
1915
  name: _,
1890
1916
  value: d || "",
1891
- onChange: (x) => h(x.target.value),
1917
+ onChange: (b) => m(b.target.value),
1892
1918
  onBlur: f,
1893
1919
  error: y
1894
1920
  }
@@ -1896,11 +1922,11 @@ function mo({
1896
1922
  }
1897
1923
  );
1898
1924
  }
1899
- const Es = "Textarea-module__textarea___Z-y6g", zs = "Textarea-module__sizeSmall___HHFEM", As = "Textarea-module__sizeDefault___LL2Uc", Be = {
1900
- textarea: Es,
1901
- sizeSmall: zs,
1902
- sizeDefault: As
1903
- }, Ds = ({
1925
+ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall___HHFEM", $s = "Textarea-module__sizeDefault___LL2Uc", je = {
1926
+ textarea: Bs,
1927
+ sizeSmall: Os,
1928
+ sizeDefault: $s
1929
+ }, Ls = ({
1904
1930
  color: e = "#000",
1905
1931
  disabled: r = !1,
1906
1932
  placeholderOpacity: t = 0.3
@@ -1909,91 +1935,80 @@ const Es = "Textarea-module__textarea___Z-y6g", zs = "Textarea-module__sizeSmall
1909
1935
  borderColor: e,
1910
1936
  opacity: r ? 0.3 : 1,
1911
1937
  placeholderOpacity: t
1912
- }), Ps = ({
1938
+ }), Ts = ({
1913
1939
  color: e,
1914
1940
  disabled: r = !1,
1915
1941
  error: t = !1,
1916
1942
  fontSize: s,
1917
- name: n = "",
1918
- onChange: o,
1943
+ name: o = "",
1944
+ onChange: n,
1919
1945
  placeholder: a,
1920
1946
  placeholderOpacity: l = 0.3,
1921
1947
  rows: d = 3,
1922
- size: h,
1948
+ size: m,
1923
1949
  style: f,
1924
1950
  value: _ = "",
1925
1951
  ...y
1926
1952
  }) => {
1927
- const x = q(), z = x.colors.error, F = t ? z : e || x.colors.primary, C = Ds({
1928
- color: F,
1953
+ const b = U(), V = b.colors.error, k = t ? V : e || b.colors.primary, E = Ls({
1954
+ color: k,
1929
1955
  disabled: r,
1930
1956
  placeholderOpacity: l
1931
- }), P = `textarea-placeholder-${V.useId ? V.useId() : Math.random().toString(36)}`;
1932
- V.useEffect(() => {
1933
- const E = document.createElement("style");
1934
- return E.id = P, E.textContent = `
1935
- .${P}::placeholder {
1936
- color: inherit;
1937
- opacity: ${C.placeholderOpacity};
1938
- }
1939
- `, document.head.appendChild(E), () => {
1940
- const k = document.getElementById(P);
1941
- k && k.remove();
1942
- };
1943
- }, [P, C.placeholderOpacity]);
1944
- const b = {
1945
- borderColor: C.borderColor,
1946
- color: C.color,
1947
- fontSize: s || x.fonts.size,
1948
- opacity: C.opacity,
1957
+ }), O = {
1958
+ "--placeholder-opacity": E.placeholderOpacity,
1959
+ "--border-width": b.border.width,
1960
+ "--border-radius": b.border.radius,
1961
+ borderColor: E.borderColor,
1962
+ color: E.color,
1963
+ fontSize: s || b.fonts.size,
1964
+ opacity: E.opacity,
1949
1965
  ...f
1950
- }, A = [
1951
- Be.textarea,
1952
- h === "small" ? Be.sizeSmall : Be.sizeDefault,
1953
- P
1966
+ }, F = [
1967
+ je.textarea,
1968
+ m === "small" ? je.sizeSmall : je.sizeDefault
1954
1969
  ].filter(Boolean).join(" ");
1955
- return /* @__PURE__ */ w(
1970
+ return /* @__PURE__ */ S(
1956
1971
  "textarea",
1957
1972
  {
1958
- className: A,
1973
+ className: F,
1959
1974
  disabled: r,
1960
- name: n,
1961
- onChange: o,
1975
+ name: o,
1976
+ onChange: n,
1962
1977
  placeholder: a,
1963
1978
  rows: d,
1964
- style: b,
1979
+ style: O,
1965
1980
  value: _,
1966
1981
  ...y
1967
1982
  }
1968
1983
  );
1969
1984
  };
1970
- function ho({
1985
+ function jo({
1971
1986
  name: e,
1972
1987
  label: r,
1973
1988
  required: t,
1974
1989
  rules: s,
1975
- disabled: n,
1976
- className: o,
1990
+ disabled: o,
1991
+ className: n,
1977
1992
  style: a,
1978
1993
  ...l
1979
1994
  }) {
1980
- return /* @__PURE__ */ w(
1981
- Se,
1995
+ return /* @__PURE__ */ S(
1996
+ ke,
1982
1997
  {
1983
1998
  name: e,
1984
1999
  label: r,
1985
2000
  required: t,
1986
2001
  rules: s,
1987
- disabled: n,
1988
- className: o,
2002
+ disabled: o,
2003
+ className: n,
1989
2004
  style: a,
1990
- children: ({ value: d, onChange: h, onBlur: f, name: _, error: y }) => /* @__PURE__ */ w(
1991
- Ps,
2005
+ children: ({ value: d, onChange: m, onBlur: f, name: _, error: y }) => /* @__PURE__ */ S(
2006
+ Ts,
1992
2007
  {
1993
2008
  ...l,
1994
2009
  name: _,
1995
2010
  value: d || "",
1996
- onChange: (x) => h(x.target.value),
2011
+ onChange: (b) => m(b.target.value),
1997
2012
  onBlur: f,
1998
2013
  error: y
1999
2014
  }
@@ -2001,11 +2016,11 @@ function ho({
2001
2016
  }
2002
2017
  );
2003
2018
  }
2004
- const Rs = "Select-module__select___cjdcr", Ns = "Select-module__sizeSmall___i1quj", Os = "Select-module__sizeDefault___EiWvW", $e = {
2005
- select: Rs,
2006
- sizeSmall: Ns,
2007
- sizeDefault: Os
2008
- }, Ms = ({
2019
+ const Ms = "Select-module__select___cjdcr", Is = "Select-module__sizeSmall___i1quj", Us = "Select-module__sizeDefault___EiWvW", We = {
2020
+ select: Ms,
2021
+ sizeSmall: Is,
2022
+ sizeDefault: Us
2023
+ }, Hs = ({
2009
2024
  color: e = "#000",
2010
2025
  disabled: r = !1
2011
2026
  }) => ({
@@ -2013,18 +2028,18 @@ const Rs = "Select-module__select___cjdcr", Ns = "Select-module__sizeSmall___i1q
2013
2028
  borderColor: e,
2014
2029
  cursor: r ? "default" : "pointer",
2015
2030
  opacity: r ? 0.3 : 1,
2016
- backgroundImage: ((o) => {
2031
+ backgroundImage: ((n) => {
2017
2032
  const a = `
2018
2033
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
2019
2034
  <path
2020
2035
  d="M 30 42.5 L 50 22.5 L 70 42.5"
2021
- stroke="${o}"
2036
+ stroke="${n}"
2022
2037
  stroke-width="11"
2023
2038
  fill="transparent"
2024
2039
  />
2025
2040
  <path
2026
2041
  d="M 30 58.5 L 50 78.5 L 70 58.5"
2027
- stroke="${o}"
2042
+ stroke="${n}"
2028
2043
  stroke-width="11"
2029
2044
  fill="transparent"
2030
2045
  />
@@ -2032,115 +2047,117 @@ const Rs = "Select-module__select___cjdcr", Ns = "Select-module__sizeSmall___i1q
2032
2047
  `.trim();
2033
2048
  return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
2034
2049
  })(e)
2035
- }), Ts = ({
2050
+ }), js = ({
2036
2051
  children: e,
2037
2052
  color: r,
2038
2053
  disabled: t = !1,
2039
2054
  error: s = !1,
2040
- fontSize: n,
2041
- name: o = "",
2055
+ fontSize: o,
2056
+ name: n = "",
2042
2057
  onChange: a,
2043
2058
  placeholder: l = "",
2044
2059
  size: d,
2045
- style: h,
2060
+ style: m,
2046
2061
  value: f = "",
2047
2062
  ..._
2048
2063
  }) => {
2049
- const y = q(), x = y.colors.error, z = s ? x : r || y.colors.primary, F = Ms({
2050
- color: z,
2064
+ const y = U(), b = y.colors.error, V = s ? b : r || y.colors.primary, k = Hs({
2065
+ color: V,
2051
2066
  disabled: t
2052
- }), C = {
2053
- backgroundImage: F.backgroundImage,
2067
+ }), E = {
2068
+ "--border-width": y.border.width,
2069
+ "--border-radius": y.border.radius,
2070
+ backgroundImage: k.backgroundImage,
2054
2071
  backgroundPosition: "right center",
2055
2072
  backgroundRepeat: "no-repeat",
2056
2073
  backgroundSize: "auto 85%",
2057
2074
  backgroundColor: "transparent",
2058
- borderColor: F.borderColor,
2059
- color: F.color,
2060
- cursor: F.cursor,
2061
- fontSize: n || y.fonts.size,
2062
- opacity: F.opacity,
2063
- ...h
2064
- }, P = [
2065
- $e.select,
2066
- d === "small" ? $e.sizeSmall : $e.sizeDefault
2075
+ borderColor: k.borderColor,
2076
+ color: k.color,
2077
+ cursor: k.cursor,
2078
+ fontSize: o || y.fonts.size,
2079
+ opacity: k.opacity,
2080
+ ...m
2081
+ }, O = [
2082
+ We.select,
2083
+ d === "small" ? We.sizeSmall : We.sizeDefault
2067
2084
  ].filter(Boolean).join(" ");
2068
- return /* @__PURE__ */ ne(
2085
+ return /* @__PURE__ */ J(
2069
2086
  "select",
2070
2087
  {
2071
- className: P,
2088
+ className: O,
2072
2089
  disabled: t,
2073
- name: o,
2090
+ name: n,
2074
2091
  onChange: a,
2075
- style: C,
2092
+ style: E,
2076
2093
  value: f,
2077
2094
  ..._,
2078
2095
  children: [
2079
- l !== "" && /* @__PURE__ */ w("option", { disabled: !0, value: "", children: l }),
2096
+ l !== "" && /* @__PURE__ */ S("option", { disabled: !0, value: "", children: l }),
2080
2097
  e
2081
2098
  ]
2082
2099
  }
2083
2100
  );
2084
2101
  };
2085
- function _o({
2102
+ function Wo({
2086
2103
  name: e,
2087
2104
  label: r,
2088
2105
  required: t,
2089
2106
  rules: s,
2090
- disabled: n,
2091
- className: o,
2107
+ disabled: o,
2108
+ className: n,
2092
2109
  style: a,
2093
2110
  children: l,
2094
2111
  ...d
2095
2112
  }) {
2096
- return /* @__PURE__ */ w(
2097
- Se,
2113
+ return /* @__PURE__ */ S(
2114
+ ke,
2098
2115
  {
2099
2116
  name: e,
2100
2117
  label: r,
2101
2118
  required: t,
2102
2119
  rules: s,
2103
- disabled: n,
2104
- className: o,
2120
+ disabled: o,
2121
+ className: n,
2105
2122
  style: a,
2106
- children: ({ value: h, onChange: f, onBlur: _, name: y, error: x }) => /* @__PURE__ */ w(
2107
- Ts,
2123
+ children: ({ value: m, onChange: f, onBlur: _, name: y, error: b }) => /* @__PURE__ */ S(
2124
+ js,
2108
2125
  {
2109
2126
  ...d,
2110
2127
  name: y,
2111
- value: h || "",
2112
- onChange: (z) => f(z.target.value),
2128
+ value: m || "",
2129
+ onChange: (V) => f(V.target.value),
2113
2130
  onBlur: _,
2114
- error: x,
2131
+ error: b,
2115
2132
  children: l
2116
2133
  }
2117
2134
  )
2118
2135
  }
2119
2136
  );
2120
2137
  }
2121
- function go({
2138
+ function qo({
2122
2139
  name: e,
2123
2140
  required: r,
2124
2141
  rules: t,
2125
2142
  disabled: s,
2126
- className: n,
2127
- style: o,
2143
+ className: o,
2144
+ style: n,
2128
2145
  ...a
2129
2146
  }) {
2130
- return /* @__PURE__ */ w(
2131
- Se,
2147
+ return /* @__PURE__ */ S(
2148
+ ke,
2132
2149
  {
2133
2150
  name: e,
2134
2151
  required: r,
2135
2152
  rules: t,
2136
2153
  disabled: s,
2137
- className: n,
2138
- style: o,
2139
- children: ({ value: l, onChange: d, name: h, error: f }) => /* @__PURE__ */ w(
2140
- Ar,
2154
+ className: o,
2155
+ style: n,
2156
+ children: ({ value: l, onChange: d, name: m, error: f }) => /* @__PURE__ */ S(
2157
+ Mr,
2141
2158
  {
2142
2159
  ...a,
2143
- name: h,
2160
+ name: m,
2144
2161
  checked: !!l,
2145
2162
  onChange: (_) => d(_.target.checked),
2146
2163
  error: f
@@ -2149,136 +2166,135 @@ function go({
2149
2166
  }
2150
2167
  );
2151
2168
  }
2152
- const Ls = "Radio-module__container___AQxhk", Is = "Radio-module__svg___zl5kF", Bs = "Radio-module__label___vAFIP", Ue = {
2153
- container: Ls,
2154
- svg: Is,
2155
- label: Bs
2156
- }, $s = ({
2169
+ const Ws = "Radio-module__container___AQxhk", qs = "Radio-module__svg___zl5kF", Gs = "Radio-module__label___vAFIP", qe = {
2170
+ container: Ws,
2171
+ svg: qs,
2172
+ label: Gs
2173
+ }, Zs = ({
2157
2174
  color: e = "#000",
2158
2175
  disabled: r = !1
2159
2176
  }) => ({
2160
2177
  radioColor: e,
2161
2178
  cursor: r ? "default" : "pointer",
2162
2179
  opacity: r ? 0.3 : 1
2163
- }), Us = ({
2180
+ }), Qs = ({
2164
2181
  checked: e = !1,
2165
2182
  color: r,
2166
2183
  disabled: t = !1,
2167
2184
  error: s = !1,
2168
- fontSize: n,
2169
- id: o,
2185
+ fontSize: o,
2186
+ id: n,
2170
2187
  label: a,
2171
2188
  labelStyle: l,
2172
2189
  name: d,
2173
- onChange: h,
2190
+ onChange: m,
2174
2191
  style: f,
2175
2192
  ..._
2176
2193
  }) => {
2177
- const y = q(), x = o || Bt(), z = y.colors.error, F = s ? z : r || y.colors.primary, C = $s({
2178
- color: F,
2194
+ const y = U(), b = n || Gt(), V = y.colors.error, k = s ? V : r || y.colors.primary, E = Zs({
2195
+ color: k,
2179
2196
  disabled: t
2180
- }), P = (B) => {
2181
- t || h(B);
2182
- }, b = {
2183
- cursor: C.cursor,
2184
- fontSize: n || y.fonts.size,
2185
- opacity: C.opacity,
2197
+ }), O = ($) => {
2198
+ t || m($);
2199
+ }, F = {
2200
+ cursor: E.cursor,
2201
+ fontSize: o || y.fonts.size,
2202
+ opacity: E.opacity,
2186
2203
  ...f
2187
2204
  }, A = {
2188
- width: n || y.fonts.size
2189
- }, E = {
2205
+ width: o || y.fonts.size
2206
+ }, z = {
2190
2207
  fill: "transparent",
2191
2208
  strokeWidth: "12.5",
2192
- stroke: C.radioColor
2193
- }, k = {
2194
- fill: C.radioColor
2195
- }, I = {
2196
- color: C.radioColor,
2197
- cursor: C.cursor,
2198
- fontSize: n || y.fonts.size,
2199
- ...l
2209
+ stroke: E.radioColor
2210
+ }, C = {
2211
+ fill: E.radioColor
2200
2212
  };
2201
- return /* @__PURE__ */ ne("div", { className: Ue.container, style: b, ..._, children: [
2202
- /* @__PURE__ */ w(
2213
+ return /* @__PURE__ */ J("div", { className: qe.container, style: F, ..._, children: [
2214
+ /* @__PURE__ */ S(
2203
2215
  "input",
2204
2216
  {
2205
- id: x,
2217
+ id: b,
2206
2218
  checked: e,
2207
2219
  disabled: t,
2208
2220
  name: d,
2209
- onChange: (B) => P({ target: { checked: B.target.checked, name: d, type: "radio" } }),
2221
+ onChange: ($) => O({ target: { checked: $.target.checked, name: d, type: "radio" } }),
2210
2222
  style: { display: "none" },
2211
2223
  type: "radio"
2212
2224
  }
2213
2225
  ),
2214
- /* @__PURE__ */ ne(
2226
+ /* @__PURE__ */ J(
2215
2227
  "svg",
2216
2228
  {
2217
2229
  xmlns: "http://www.w3.org/2000/svg",
2218
2230
  viewBox: "0 0 100 100",
2219
- onClick: () => P({ target: { checked: !e, name: d, type: "radio" } }),
2220
- className: Ue.svg,
2231
+ onClick: () => O({ target: { checked: !e, name: d, type: "radio" } }),
2232
+ className: qe.svg,
2221
2233
  style: A,
2222
2234
  children: [
2223
- /* @__PURE__ */ w(
2235
+ /* @__PURE__ */ S(
2224
2236
  "circle",
2225
2237
  {
2226
2238
  cx: "50",
2227
2239
  cy: "50",
2228
2240
  r: "42.5",
2229
2241
  width: "100%",
2230
- style: E
2242
+ style: z
2231
2243
  }
2232
2244
  ),
2233
- e && /* @__PURE__ */ w(
2245
+ e && /* @__PURE__ */ S(
2234
2246
  "circle",
2235
2247
  {
2236
2248
  cx: "50",
2237
2249
  cy: "50",
2238
2250
  r: "25",
2239
- style: k
2251
+ style: C
2240
2252
  }
2241
2253
  )
2242
2254
  ]
2243
2255
  }
2244
2256
  ),
2245
- a && /* @__PURE__ */ w(
2246
- "label",
2257
+ a && /* @__PURE__ */ S(
2258
+ tt,
2247
2259
  {
2248
- htmlFor: x,
2249
- className: Ue.label,
2250
- style: I,
2260
+ htmlFor: b,
2261
+ className: qe.label,
2262
+ style: l,
2263
+ color: E.radioColor,
2264
+ disabled: t,
2265
+ error: s,
2266
+ fontSize: o,
2251
2267
  children: a
2252
2268
  }
2253
2269
  )
2254
2270
  ] });
2255
2271
  };
2256
- function po({
2272
+ function Go({
2257
2273
  name: e,
2258
2274
  label: r,
2259
2275
  required: t,
2260
2276
  rules: s,
2261
- disabled: n,
2262
- className: o,
2277
+ disabled: o,
2278
+ className: n,
2263
2279
  style: a,
2264
2280
  value: l,
2265
2281
  ...d
2266
2282
  }) {
2267
- return /* @__PURE__ */ w(
2268
- Se,
2283
+ return /* @__PURE__ */ S(
2284
+ ke,
2269
2285
  {
2270
2286
  name: e,
2271
2287
  required: t,
2272
2288
  rules: s,
2273
- disabled: n,
2274
- className: o,
2289
+ disabled: o,
2290
+ className: n,
2275
2291
  style: a,
2276
- children: ({ value: h, onChange: f, name: _, error: y }) => /* @__PURE__ */ w(
2277
- Us,
2292
+ children: ({ value: m, onChange: f, name: _, error: y }) => /* @__PURE__ */ S(
2293
+ Qs,
2278
2294
  {
2279
2295
  ...d,
2280
2296
  name: _,
2281
- checked: h === l,
2297
+ checked: m === l,
2282
2298
  onChange: () => f(l),
2283
2299
  error: y,
2284
2300
  label: r
@@ -2287,128 +2303,128 @@ function po({
2287
2303
  }
2288
2304
  );
2289
2305
  }
2290
- const Hs = "Hamburger-module__hamburger___Tf4-t", js = "Hamburger-module__line___gybZM", Ws = "Hamburger-module__open___gRswh", ge = {
2291
- hamburger: Hs,
2292
- line: js,
2293
- open: Ws
2294
- }, qs = ({ compact: e, color: r, visible: t, borderRadius: s }) => {
2295
- const n = q();
2296
- return Tt(() => {
2297
- const o = e ? { right: ".5em" } : {};
2306
+ const Ks = "Hamburger-module__hamburger___Tf4-t", Js = "Hamburger-module__line___gybZM", Xs = "Hamburger-module__open___gRswh", be = {
2307
+ hamburger: Ks,
2308
+ line: Js,
2309
+ open: Xs
2310
+ }, Ys = ({ compact: e, color: r, visible: t, borderRadius: s }) => {
2311
+ const o = U();
2312
+ return ge(() => {
2313
+ const n = e ? { right: ".5em" } : {};
2298
2314
  return {
2299
- "--hamburger-border-radius": s || n.borderRadius || "10px",
2315
+ "--hamburger-border-radius": s || o.borderRadius || "10px",
2300
2316
  color: r || "inherit",
2301
2317
  display: t ? "flex" : "none",
2302
- ...o
2318
+ ...n
2303
2319
  };
2304
- }, [r, t, e, s, n.borderRadius]);
2305
- }, Zs = ({
2320
+ }, [r, t, e, s, o.borderRadius]);
2321
+ }, eo = ({
2306
2322
  visible: e,
2307
2323
  compact: r,
2308
2324
  color: t,
2309
2325
  hamburgerRef: s,
2310
- open: n = !1,
2311
- setOpen: o,
2326
+ open: o = !1,
2327
+ setOpen: n,
2312
2328
  buttonProps: a,
2313
2329
  borderRadius: l
2314
2330
  }) => {
2315
- const d = qs({
2331
+ const d = Ys({
2316
2332
  compact: r,
2317
2333
  color: t,
2318
2334
  visible: e,
2319
2335
  borderRadius: l
2320
- }), h = [
2321
- ge.hamburger,
2322
- n ? ge.open : ""
2336
+ }), m = [
2337
+ be.hamburger,
2338
+ o ? be.open : ""
2323
2339
  ].filter(Boolean).join(" ");
2324
- return /* @__PURE__ */ ne(
2340
+ return /* @__PURE__ */ J(
2325
2341
  "button",
2326
2342
  {
2327
2343
  ref: s,
2328
- className: h,
2329
- onClick: () => o(!n),
2344
+ className: m,
2345
+ onClick: () => n(!o),
2330
2346
  style: d,
2331
2347
  "aria-label": "Toggle menu",
2332
- "aria-expanded": n,
2348
+ "aria-expanded": o,
2333
2349
  ...a,
2334
2350
  children: [
2335
- /* @__PURE__ */ w("div", { className: ge.line }),
2336
- /* @__PURE__ */ w("div", { className: ge.line }),
2337
- /* @__PURE__ */ w("div", { className: ge.line })
2351
+ /* @__PURE__ */ S("div", { className: be.line }),
2352
+ /* @__PURE__ */ S("div", { className: be.line }),
2353
+ /* @__PURE__ */ S("div", { className: be.line })
2338
2354
  ]
2339
2355
  }
2340
2356
  );
2341
- }, Gs = "Header-module__header___RUooH", Qs = "Header-module__container___t68M9", Ot = {
2342
- header: Gs,
2343
- container: Qs
2344
- }, Ks = ({
2357
+ }, to = "Header-module__header___RUooH", ro = "Header-module__container___t68M9", Mt = {
2358
+ header: to,
2359
+ container: ro
2360
+ }, so = ({
2345
2361
  isSmallScreen: e = !1,
2346
2362
  maxWidth: r,
2347
2363
  paddingSm: t,
2348
2364
  padding: s,
2349
- fontSize: n
2365
+ fontSize: o
2350
2366
  } = {}) => {
2351
- const o = q();
2367
+ const n = U();
2352
2368
  return {
2353
- "--header-max-width": r || o.layout.maxWidth,
2354
- "--header-padding": e ? t || o.layout.wrapperPaddingSm : s || o.layout.wrapperPadding,
2355
- "--header-font-size": e ? "0.75rem" : n || o.fonts.size
2369
+ "--header-max-width": r || n.layout.maxWidth,
2370
+ "--header-padding": e ? t || n.layout.wrapperPaddingSm : s || n.layout.wrapperPadding,
2371
+ "--header-font-size": e ? "0.75rem" : o || n.fonts.size
2356
2372
  };
2357
- }, Qe = (e) => {
2373
+ }, ce = (e) => {
2358
2374
  const r = typeof window < "u" && typeof window.matchMedia == "function";
2359
- return pr((o) => {
2375
+ return xr((n) => {
2360
2376
  if (!r) return () => {
2361
2377
  };
2362
2378
  const a = window.matchMedia(e);
2363
- return a.addEventListener("change", o), () => a.removeEventListener("change", o);
2379
+ return a.addEventListener("change", n), () => a.removeEventListener("change", n);
2364
2380
  }, () => r ? window.matchMedia(e).matches : !1, () => !1);
2365
- }, vo = ({
2381
+ }, Zo = ({
2366
2382
  children: e,
2367
2383
  breakPointSm: r,
2368
2384
  maxWidth: t,
2369
2385
  paddingSm: s,
2370
- padding: n,
2371
- fontSize: o,
2386
+ padding: o,
2387
+ fontSize: n,
2372
2388
  style: a = {},
2373
2389
  headerProps: l = {},
2374
2390
  headerRef: d
2375
2391
  }) => {
2376
- const h = q(), _ = (r || h.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), y = _ ? parseInt(_[1], 10) - 1 : 474, x = _ ? _[2] : "px", z = Qe(`(max-width: ${y}${x})`), F = Ks({
2377
- isSmallScreen: z,
2392
+ const m = U(), _ = (r || m.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), y = _ ? parseInt(_[1], 10) - 1 : 474, b = _ ? _[2] : "px", V = ce(`(max-width: ${y}${b})`), k = so({
2393
+ isSmallScreen: V,
2378
2394
  maxWidth: t,
2379
2395
  paddingSm: s,
2380
- padding: n,
2381
- fontSize: o
2396
+ padding: o,
2397
+ fontSize: n
2382
2398
  });
2383
- return /* @__PURE__ */ w("header", { ref: d, className: Ot.header, ...l, children: /* @__PURE__ */ w("div", { className: Ot.container, style: { ...F, ...a }, children: e }) });
2384
- }, Js = "ResponsiveNav-module__nav___xOfv5", Ys = "ResponsiveNav-module__navMobile___h795P", Xs = "ResponsiveNav-module__open___WDCAf", eo = "ResponsiveNav-module__navDesktop___9wscZ", Ce = {
2385
- nav: Js,
2386
- navMobile: Ys,
2387
- open: Xs,
2388
- navDesktop: eo
2389
- }, to = ({
2399
+ return /* @__PURE__ */ S("header", { ref: d, className: Mt.header, ...l, children: /* @__PURE__ */ S("div", { className: Mt.container, style: { ...k, ...a }, children: e }) });
2400
+ }, oo = "ResponsiveNav-module__nav___xOfv5", no = "ResponsiveNav-module__navMobile___h795P", io = "ResponsiveNav-module__open___WDCAf", ao = "ResponsiveNav-module__navDesktop___9wscZ", Ae = {
2401
+ nav: oo,
2402
+ navMobile: no,
2403
+ open: io,
2404
+ navDesktop: ao
2405
+ }, lo = ({
2390
2406
  isMobile: e,
2391
2407
  isCompact: r,
2392
2408
  mobileBackground: t,
2393
2409
  mobileColor: s,
2394
- mobileActiveBackground: n,
2395
- mobileActiveColor: o,
2410
+ mobileActiveBackground: o,
2411
+ mobileActiveColor: n,
2396
2412
  mobileButtonHoverColor: a
2397
2413
  }) => {
2398
- const l = q();
2399
- return Tt(() => ({
2414
+ const l = U();
2415
+ return ge(() => ({
2400
2416
  ...e ? {
2401
2417
  "--mobile-nav-background": t || l.colors.accent,
2402
2418
  "--mobile-nav-color": s || l.colors.primary,
2403
- "--mobile-nav-active-background": n || l.colors.primary,
2404
- "--mobile-nav-active-color": o || l.colors.accent,
2419
+ "--mobile-nav-active-background": o || l.colors.primary,
2420
+ "--mobile-nav-active-color": n || l.colors.accent,
2405
2421
  "--mobile-nav-button-hover-text-color": a || t || l.colors.accent
2406
2422
  } : {}
2407
2423
  }), [
2408
2424
  t,
2409
2425
  s,
2410
- n,
2411
2426
  o,
2427
+ n,
2412
2428
  a,
2413
2429
  l.colors.accent,
2414
2430
  l.colors.primary,
@@ -2416,80 +2432,80 @@ const Hs = "Hamburger-module__hamburger___Tf4-t", js = "Hamburger-module__line__
2416
2432
  r
2417
2433
  ]);
2418
2434
  };
2419
- function Mt(e) {
2435
+ function It(e) {
2420
2436
  const t = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
2421
2437
  return { maxWidth: t, unit: s };
2422
2438
  }
2423
- const bo = ({
2439
+ const Qo = ({
2424
2440
  breakPointMd: e,
2425
2441
  breakPointSm: r,
2426
2442
  children: t,
2427
2443
  mobileBackground: s,
2428
- mobileColor: n,
2429
- mobileActiveBackground: o,
2444
+ mobileColor: o,
2445
+ mobileActiveBackground: n,
2430
2446
  mobileActiveColor: a,
2431
2447
  mobileButtonHoverColor: l,
2432
2448
  style: d,
2433
- navProps: h
2449
+ navProps: m
2434
2450
  }) => {
2435
- const [f, _] = Je(!1), y = _t(null), x = _t(null), z = q(), F = e || z.breakpoints.md, C = r || z.breakpoints.sm, { maxWidth: P, unit: b } = Mt(F), { maxWidth: A, unit: E } = Mt(C), k = Qe(`(max-width: ${P}${b})`), I = Qe(`(max-width: ${A}${E})`), B = to({
2436
- isMobile: k,
2437
- isCompact: I,
2451
+ const [f, _] = et(!1), y = St(null), b = St(null), V = U(), k = e || V.breakpoints.md, E = r || V.breakpoints.sm, { maxWidth: O, unit: F } = It(k), { maxWidth: A, unit: z } = It(E), C = ce(`(max-width: ${O}${F})`), $ = ce(`(max-width: ${A}${z})`), X = lo({
2452
+ isMobile: C,
2453
+ isCompact: $,
2438
2454
  mobileBackground: s,
2439
- mobileColor: n,
2440
- mobileActiveBackground: o,
2455
+ mobileColor: o,
2456
+ mobileActiveBackground: n,
2441
2457
  mobileActiveColor: a,
2442
2458
  mobileButtonHoverColor: l
2443
2459
  });
2444
- je(() => {
2445
- k || _(!1);
2446
- }, [k]), je(() => {
2447
- const Z = (re) => {
2448
- !x.current || x.current.contains(re.target) || y.current && y.current.contains(re.target) || _(!1);
2460
+ Ze(() => {
2461
+ C || _(!1);
2462
+ }, [C]), Ze(() => {
2463
+ const q = (se) => {
2464
+ !b.current || b.current.contains(se.target) || y.current && y.current.contains(se.target) || _(!1);
2449
2465
  };
2450
- return document.addEventListener("mousedown", Z), () => {
2451
- document.removeEventListener("mousedown", Z);
2466
+ return document.addEventListener("mousedown", q), () => {
2467
+ document.removeEventListener("mousedown", q);
2452
2468
  };
2453
- }, [y, x, _]);
2469
+ }, [y, b, _]);
2454
2470
  const ie = [
2455
- Ce.nav,
2456
- k ? Ce.navMobile : Ce.navDesktop,
2457
- k && f ? Ce.open : ""
2471
+ Ae.nav,
2472
+ C ? Ae.navMobile : Ae.navDesktop,
2473
+ C && f ? Ae.open : ""
2458
2474
  ].filter(Boolean).join(" ");
2459
- return /* @__PURE__ */ ne(Ke, { children: [
2460
- /* @__PURE__ */ w(
2461
- Zs,
2475
+ return /* @__PURE__ */ J(Ye, { children: [
2476
+ /* @__PURE__ */ S(
2477
+ eo,
2462
2478
  {
2463
2479
  hamburgerRef: y,
2464
- visible: k,
2465
- compact: I,
2480
+ visible: C,
2481
+ compact: $,
2466
2482
  open: f,
2467
2483
  setOpen: _
2468
2484
  }
2469
2485
  ),
2470
- /* @__PURE__ */ w(
2486
+ /* @__PURE__ */ S(
2471
2487
  "nav",
2472
2488
  {
2473
- ref: x,
2489
+ ref: b,
2474
2490
  className: ie,
2475
- style: { ...B, ...d },
2476
- ...h,
2491
+ style: { ...X, ...d },
2492
+ ...m,
2477
2493
  children: typeof t == "function" ? t({ setOpen: _ }) : t
2478
2494
  }
2479
2495
  )
2480
2496
  ] });
2481
- }, ro = ({
2497
+ }, co = ({
2482
2498
  size: e = 2.5,
2483
2499
  color: r,
2484
2500
  innerColor: t,
2485
2501
  fullScreen: s = !0
2486
2502
  }) => {
2487
- const n = q(), o = r || n.colors.primary, a = t || n.colors.secondary, l = /* @__PURE__ */ ne(Ke, { children: [
2488
- /* @__PURE__ */ w(
2503
+ const o = U(), n = r || o.colors.primary, a = t || o.colors.secondary, l = /* @__PURE__ */ J(Ye, { children: [
2504
+ /* @__PURE__ */ S(
2489
2505
  "div",
2490
2506
  {
2491
2507
  style: {
2492
- border: `0.25em solid ${o}`,
2508
+ border: `0.25em solid ${n}`,
2493
2509
  borderTop: `0.25em solid ${a}`,
2494
2510
  borderRadius: "50%",
2495
2511
  width: `${e}em`,
@@ -2498,14 +2514,14 @@ const bo = ({
2498
2514
  }
2499
2515
  }
2500
2516
  ),
2501
- /* @__PURE__ */ w("style", { children: `
2517
+ /* @__PURE__ */ S("style", { children: `
2502
2518
  @keyframes spin {
2503
2519
  0% { transform: rotate(0deg); }
2504
2520
  100% { transform: rotate(360deg); }
2505
2521
  }
2506
2522
  ` })
2507
2523
  ] });
2508
- return s ? /* @__PURE__ */ w(
2524
+ return s ? /* @__PURE__ */ S(
2509
2525
  "div",
2510
2526
  {
2511
2527
  style: {
@@ -2518,56 +2534,221 @@ const bo = ({
2518
2534
  children: l
2519
2535
  }
2520
2536
  ) : l;
2521
- }, So = ({ children: e, loadingComponent: r }) => {
2522
- const [t, s] = Je(!1);
2523
- return je(() => {
2537
+ }, Ko = ({ children: e, loadingComponent: r }) => {
2538
+ const [t, s] = et(!1);
2539
+ return Ze(() => {
2524
2540
  requestAnimationFrame(() => {
2525
2541
  s(!0);
2526
2542
  });
2527
- }, []), t ? /* @__PURE__ */ w(Ke, { children: e }) : r || /* @__PURE__ */ w(ro, {});
2528
- }, so = "Stack-module__stack___yUU-B", oo = "Stack-module__vertical___sKTyQ", no = "Stack-module__horizontal___YsvtV", He = {
2529
- stack: so,
2530
- vertical: oo,
2531
- horizontal: no
2532
- }, xo = ({
2543
+ }, []), t ? /* @__PURE__ */ S(Ye, { children: e }) : r || /* @__PURE__ */ S(co, {});
2544
+ }, uo = "Stack-module__stack___yUU-B", fo = "Stack-module__vertical___sKTyQ", yo = "Stack-module__horizontal___YsvtV", Ge = {
2545
+ stack: uo,
2546
+ vertical: fo,
2547
+ horizontal: yo
2548
+ }, Jo = ({
2533
2549
  children: e,
2534
- direction: r = "vertical",
2550
+ direction: r = "column",
2535
2551
  className: t,
2536
2552
  style: s,
2537
- ...n
2553
+ ...o
2538
2554
  }) => {
2539
- const o = [
2540
- He.stack,
2541
- r === "horizontal" ? He.horizontal : He.vertical,
2555
+ const n = [
2556
+ Ge.stack,
2557
+ r === "row" ? Ge.horizontal : Ge.vertical,
2542
2558
  t
2543
2559
  ].filter(Boolean).join(" ");
2544
- return /* @__PURE__ */ w("div", { className: o, style: s, ...n, children: e });
2560
+ return /* @__PURE__ */ S("div", { className: n, style: s, ...o, children: e });
2561
+ }, mo = "ResponsiveSection-module__section___gBESK", ho = "ResponsiveSection-module__innerDiv___r1bky", Ut = {
2562
+ section: mo,
2563
+ innerDiv: ho
2564
+ }, _o = ({
2565
+ isMd: e = !1,
2566
+ paddingMobile: r = "1rem",
2567
+ paddingDesktop: t = "2rem"
2568
+ }) => ge(() => ({
2569
+ "--section-padding": e ? t : r
2570
+ }), [e, r, t]), ut = ({
2571
+ children: e,
2572
+ background: r,
2573
+ color: t,
2574
+ className: s,
2575
+ style: o,
2576
+ breakPointMd: n,
2577
+ paddingMobile: a,
2578
+ paddingDesktop: l,
2579
+ ...d
2580
+ }) => {
2581
+ const m = U(), f = n || m.breakpoints.md, _ = ce(`(min-width: ${f})`), y = _o({
2582
+ isMd: _,
2583
+ paddingMobile: a,
2584
+ paddingDesktop: l
2585
+ }), b = {
2586
+ background: r,
2587
+ color: t || m.fonts.color,
2588
+ ...o
2589
+ }, V = {
2590
+ ...y
2591
+ }, k = [Ut.section, s].filter(Boolean).join(" ");
2592
+ return /* @__PURE__ */ S("section", { className: k, style: b, ...d, children: /* @__PURE__ */ S("div", { className: Ut.innerDiv, style: V, children: e }) });
2593
+ }, go = "Hero-module__hero___IB2tg", po = "Hero-module__content___rkkfQ", Ht = {
2594
+ hero: go,
2595
+ content: po
2596
+ }, vo = ({
2597
+ isMd: e = !1,
2598
+ isLg: r = !1
2599
+ }) => ge(() => {
2600
+ let t = "3rem 0", s = "2rem", o = "1.125rem";
2601
+ return r ? (t = "6rem 0", s = "3.5rem", o = "1.5rem") : e && (t = "5rem 0", s = "3rem", o = "1.25rem"), {
2602
+ "--hero-padding": t,
2603
+ "--hero-h1-font-size": s,
2604
+ "--hero-p-font-size": o
2605
+ };
2606
+ }, [e, r]), Xo = ({
2607
+ children: e,
2608
+ className: r,
2609
+ color: t,
2610
+ breakPointMd: s,
2611
+ breakPointLg: o,
2612
+ style: n,
2613
+ ...a
2614
+ }) => {
2615
+ const l = U(), d = [Ht.hero, r].filter(Boolean).join(" "), m = s || l.breakpoints.md, f = o || l.breakpoints.lg, _ = ce(`(min-width: ${m})`), y = ce(`(min-width: ${f})`), b = vo({ isMd: _, isLg: y });
2616
+ return /* @__PURE__ */ S(
2617
+ ut,
2618
+ {
2619
+ className: d,
2620
+ color: t || l.fonts.color,
2621
+ style: { ...b, ...n },
2622
+ ...a,
2623
+ children: /* @__PURE__ */ S("div", { className: Ht.content, children: e })
2624
+ }
2625
+ );
2626
+ }, bo = "Footer-module__footer___A76NF", So = {
2627
+ footer: bo
2628
+ }, Yo = ({
2629
+ children: e,
2630
+ className: r,
2631
+ style: t,
2632
+ background: s,
2633
+ color: o
2634
+ }) => {
2635
+ const n = U(), a = [So.footer, r].filter(Boolean).join(" "), l = {
2636
+ background: s,
2637
+ color: o || n.fonts.color,
2638
+ ...t
2639
+ };
2640
+ return /* @__PURE__ */ S(ut, { className: a, style: l, children: e });
2641
+ }, Fo = "FeatureCard-module__card___XQt66", wo = "FeatureCard-module__icon___dXJ92", ko = "FeatureCard-module__title___KxXyA", xo = "FeatureCard-module__content___68xkw", De = {
2642
+ card: Fo,
2643
+ icon: wo,
2644
+ title: ko,
2645
+ content: xo
2646
+ }, Vo = ({
2647
+ isMd: e = !1
2648
+ }) => ge(() => ({
2649
+ "--feature-icon-font-size": e ? "3rem" : "2.5rem",
2650
+ "--feature-title-font-size": e ? "1.5rem" : "1.25rem"
2651
+ }), [e]), en = ({
2652
+ icon: e,
2653
+ title: r,
2654
+ children: t,
2655
+ className: s,
2656
+ style: o,
2657
+ breakPointMd: n
2658
+ }) => {
2659
+ const a = U(), l = [De.card, s].filter(Boolean).join(" "), d = n || a.breakpoints.md, m = ce(`(min-width: ${d})`), f = Vo({ isMd: m });
2660
+ return /* @__PURE__ */ J("div", { className: l, style: { ...f, ...o }, children: [
2661
+ e && /* @__PURE__ */ S("div", { className: De.icon, children: e }),
2662
+ /* @__PURE__ */ S("h3", { className: De.title, children: r }),
2663
+ /* @__PURE__ */ S("div", { className: De.content, children: t })
2664
+ ] });
2665
+ }, Co = "FeatureGridSection-module__section___wZrbC", Eo = "FeatureGridSection-module__grid___iwPJv", jt = {
2666
+ section: Co,
2667
+ grid: Eo
2668
+ }, zo = ({
2669
+ columns: e,
2670
+ isMd: r = !1,
2671
+ isLg: t = !1
2672
+ }) => ge(() => r ? r && !t && (e === 3 || e === 4) ? {
2673
+ "--grid-template-columns": "repeat(2, 1fr)"
2674
+ } : {
2675
+ "--grid-template-columns": {
2676
+ 1: "1fr",
2677
+ 2: "repeat(2, 1fr)",
2678
+ 3: "repeat(3, 1fr)",
2679
+ 4: "repeat(4, 1fr)"
2680
+ }[e]
2681
+ } : {
2682
+ "--grid-template-columns": "1fr"
2683
+ }, [e, r, t]), tn = ({
2684
+ children: e,
2685
+ columns: r = 3,
2686
+ className: t,
2687
+ breakPointMd: s,
2688
+ breakPointLg: o,
2689
+ style: n,
2690
+ ...a
2691
+ }) => {
2692
+ const l = U(), d = [jt.section, t].filter(Boolean).join(" "), m = s || l.breakpoints.md, f = o || l.breakpoints.lg, _ = ce(`(min-width: ${m})`), y = ce(`(min-width: ${f})`), b = zo({ columns: r, isMd: _, isLg: y });
2693
+ return /* @__PURE__ */ S(ut, { className: d, ...a, children: /* @__PURE__ */ S("div", { className: jt.grid, style: { ...b, ...n }, children: e }) });
2694
+ }, Ao = "PageLayout-module__layoutContainer___diLdT", Do = "PageLayout-module__content___h2mBr", Po = "PageLayout-module__header___ChdTF", No = "PageLayout-module__main___Sw7Pv", Ro = "PageLayout-module__mainPadded___ZKio3", Bo = "PageLayout-module__footer___DUw6m", he = {
2695
+ layoutContainer: Ao,
2696
+ content: Do,
2697
+ header: Po,
2698
+ main: No,
2699
+ mainPadded: Ro,
2700
+ footer: Bo
2701
+ }, rn = ({
2702
+ children: e,
2703
+ header: r,
2704
+ footer: t,
2705
+ pagePadding: s = !1,
2706
+ className: o,
2707
+ style: n
2708
+ }) => {
2709
+ const a = [he.layoutContainer, o].filter(Boolean).join(" "), l = [
2710
+ he.main,
2711
+ s ? he.mainPadded : ""
2712
+ ].filter(Boolean).join(" ");
2713
+ return /* @__PURE__ */ J("div", { className: a, style: n, children: [
2714
+ /* @__PURE__ */ J("div", { className: he.content, children: [
2715
+ r && /* @__PURE__ */ S("header", { className: he.header, children: r }),
2716
+ /* @__PURE__ */ S("main", { className: l, children: e })
2717
+ ] }),
2718
+ t && /* @__PURE__ */ S("footer", { className: he.footer, children: t })
2719
+ ] });
2545
2720
  };
2546
2721
  export {
2547
- uo as Button,
2548
- fo as CSSReset,
2549
- Ar as Checkbox,
2550
- yo as Form,
2551
- go as FormCheckbox,
2552
- gs as FormError,
2553
- Se as FormField,
2554
- xs as FormGroup,
2555
- mo as FormInput,
2556
- ms as FormLabel,
2557
- po as FormRadio,
2558
- _o as FormSelect,
2559
- ho as FormTextarea,
2560
- Zs as Hamburger,
2561
- vo as Header,
2562
- Cs as Input,
2563
- ro as LoadingSpinner,
2564
- Us as Radio,
2565
- bo as ResponsiveNav,
2566
- Ts as Select,
2567
- xo as Stack,
2568
- So as StyleLoader,
2569
- Ps as Textarea,
2570
- co as ThemeProvider,
2571
- cs as useFormContext,
2572
- q as useTheme
2722
+ Mo as Button,
2723
+ Io as CSSReset,
2724
+ Mr as Checkbox,
2725
+ en as FeatureCard,
2726
+ tn as FeatureGridSection,
2727
+ Yo as Footer,
2728
+ Uo as Form,
2729
+ qo as FormCheckbox,
2730
+ ws as FormError,
2731
+ ke as FormField,
2732
+ zs as FormGroup,
2733
+ Ho as FormInput,
2734
+ tt as FormLabel,
2735
+ Go as FormRadio,
2736
+ Wo as FormSelect,
2737
+ jo as FormTextarea,
2738
+ eo as Hamburger,
2739
+ Zo as Header,
2740
+ Xo as Hero,
2741
+ Rs as Input,
2742
+ co as LoadingSpinner,
2743
+ rn as PageLayout,
2744
+ Qs as Radio,
2745
+ Qo as ResponsiveNav,
2746
+ ut as ResponsiveSection,
2747
+ js as Select,
2748
+ Jo as Stack,
2749
+ Ko as StyleLoader,
2750
+ Ts as Textarea,
2751
+ To as ThemeProvider,
2752
+ vs as useFormContext,
2753
+ U as useTheme
2573
2754
  };