digital-rabbit-cl 1.3.9 → 1.3.11

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 (53) hide show
  1. package/dist/components/Button/Button.d.ts +1 -1
  2. package/dist/components/Button/Button.d.ts.map +1 -1
  3. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  4. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  5. package/dist/components/FeatureCard/FeatureCard.d.ts +1 -1
  6. package/dist/components/FeatureCard/FeatureCard.d.ts.map +1 -1
  7. package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +1 -1
  8. package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +1 -1
  9. package/dist/components/Footer/Footer.d.ts +1 -1
  10. package/dist/components/Footer/Footer.d.ts.map +1 -1
  11. package/dist/components/FormError/FormError.d.ts +1 -1
  12. package/dist/components/FormError/FormError.d.ts.map +1 -1
  13. package/dist/components/FormGroup/FormGroup.d.ts +1 -1
  14. package/dist/components/FormGroup/FormGroup.d.ts.map +1 -1
  15. package/dist/components/FormLabel/FormLabel.d.ts +1 -1
  16. package/dist/components/FormLabel/FormLabel.d.ts.map +1 -1
  17. package/dist/components/Hamburger/Hamburger.d.ts +1 -1
  18. package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
  19. package/dist/components/Hamburger/useHamburgerStyles.d.ts +5 -2
  20. package/dist/components/Hamburger/useHamburgerStyles.d.ts.map +1 -1
  21. package/dist/components/Header/Header.d.ts +1 -1
  22. package/dist/components/Header/Header.d.ts.map +1 -1
  23. package/dist/components/Hero/Hero.d.ts +1 -1
  24. package/dist/components/Hero/Hero.d.ts.map +1 -1
  25. package/dist/components/Input/Input.d.ts +1 -1
  26. package/dist/components/Input/Input.d.ts.map +1 -1
  27. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  28. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  29. package/dist/components/PageLayout/PageLayout.d.ts +1 -1
  30. package/dist/components/PageLayout/PageLayout.d.ts.map +1 -1
  31. package/dist/components/Radio/Radio.d.ts +1 -1
  32. package/dist/components/Radio/Radio.d.ts.map +1 -1
  33. package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +60 -6
  34. package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
  35. package/dist/components/ResponsiveNav/index.d.ts +1 -1
  36. package/dist/components/ResponsiveNav/index.d.ts.map +1 -1
  37. package/dist/components/ResponsiveNav/useResponsiveNavStyles.d.ts +14 -16
  38. package/dist/components/ResponsiveNav/useResponsiveNavStyles.d.ts.map +1 -1
  39. package/dist/components/ResponsiveSection/ResponsiveSection.d.ts +1 -1
  40. package/dist/components/ResponsiveSection/ResponsiveSection.d.ts.map +1 -1
  41. package/dist/components/Select/Select.d.ts +1 -1
  42. package/dist/components/Select/Select.d.ts.map +1 -1
  43. package/dist/components/Stack/Stack.d.ts +1 -1
  44. package/dist/components/Stack/Stack.d.ts.map +1 -1
  45. package/dist/components/Textarea/Textarea.d.ts +1 -1
  46. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  47. package/dist/digital-rabbit-cl.es.js +958 -939
  48. package/dist/digital-rabbit-cl.umd.js +4 -4
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/types/component-props.d.ts +18 -0
  52. package/dist/types/component-props.d.ts.map +1 -1
  53. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{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:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.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:var(--form-label-padding-bottom)}.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:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.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-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:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;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:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.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-style:solid;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:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.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:relative;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, var(--accent-color));color:var(--mobile-nav-color, var(--primary-color));flex-direction:column;font-size:2rem;height:100vh;padding-top:var(--nav-padding-top);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:var(--nav-link-padding);text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, var(--primary-color));color:var(--mobile-nav-active-color, var(--accent-color))}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:var(--nav-button-margin)}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, var(--accent-color))!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);margin:0 auto;padding:var(--section-padding)}.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:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 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__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as F, jsxs as K, Fragment as Se } from "react/jsx-runtime";
3
- import z, { createContext as Cr, useContext as zr, useState as rt, useLayoutEffect as $r, useSyncExternalStore as Er, useMemo as Pe, useRef as xt, useEffect as qt } from "react";
4
- const Ar = "Button-module__button___2ZuB7", Nr = "Button-module__sizeSmall___DRT8P", Rr = "Button-module__sizeLarge___yeZSH", we = {
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{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:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.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:var(--form-label-padding-bottom)}.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:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.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-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:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;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:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.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-style:solid;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:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.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:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.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);position:relative}.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{flex-direction:column;font-size:2rem;height:100vh;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%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.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:var(--desktop-hover-opacity)}.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);margin:0 auto;padding:var(--section-padding)}.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:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 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__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as F, jsxs as Z, Fragment as xe } from "react/jsx-runtime";
3
+ import $, { createContext as kr, useContext as zr, useState as st, useLayoutEffect as $r, useSyncExternalStore as Er, useMemo as De, useRef as Ft, useEffect as Ke } from "react";
4
+ const Ar = "Button-module__button___2ZuB7", Nr = "Button-module__sizeSmall___DRT8P", Rr = "Button-module__sizeLarge___yeZSH", Ce = {
5
5
  button: Ar,
6
6
  sizeSmall: Nr,
7
7
  sizeLarge: Rr
8
- }, Dr = ({
8
+ }, Pr = ({
9
9
  isActive: e,
10
10
  disabled: r,
11
11
  buttonColor: t = "#FFF",
@@ -14,13 +14,13 @@ const Ar = "Button-module__button___2ZuB7", Nr = "Button-module__sizeSmall___DRT
14
14
  hoverTextColor: n,
15
15
  outline: i
16
16
  }) => {
17
- let l, d, m;
18
- i ? (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));
17
+ let l, d, y;
18
+ i ? (l = "transparent", d = t, y = t, e && (l = o || t, d = o || t, y = n || s)) : (l = t, d = t, y = s, e && (l = o || t, d = o || t, y = n || s));
19
19
  let f = 1;
20
20
  return r ? f = 0.3 : e && (f = o ? 1 : 0.75), {
21
21
  backgroundColor: l,
22
22
  borderColor: d,
23
- color: m,
23
+ color: y,
24
24
  opacity: f
25
25
  };
26
26
  };
@@ -52,15 +52,15 @@ function Ae(e) {
52
52
  unit: s
53
53
  };
54
54
  }
55
- const Ft = {
55
+ const wt = {
56
56
  primary: "#000",
57
57
  secondary: "#FFF",
58
58
  accent: "#4381C1",
59
59
  error: "#F00",
60
60
  success: "#008000",
61
61
  warning: "#FFEB3B"
62
- }, Ke = {
63
- colors: Ft,
62
+ }, Je = {
63
+ colors: wt,
64
64
  fonts: {
65
65
  color: "#000",
66
66
  lineHeight: 1.5,
@@ -79,7 +79,7 @@ const Ft = {
79
79
  textColor: "#FFF",
80
80
  paddingHorizontal: 0.35,
81
81
  primary: {
82
- textColor: Ft.secondary
82
+ textColor: wt.secondary
83
83
  }
84
84
  },
85
85
  inputs: {
@@ -108,10 +108,10 @@ const Ft = {
108
108
  paddingSm: "0.5rem",
109
109
  padding: "1rem"
110
110
  }
111
- }, Zt = Cr(Ke), Mo = ({ theme: e, children: r }) => {
112
- const t = e ? Gt(Ke, e) : Ke;
111
+ }, Zt = kr(Je), Io = ({ theme: e, children: r }) => {
112
+ const t = e ? Gt(Je, e) : Je;
113
113
  return /* @__PURE__ */ F(Zt.Provider, { value: t, children: r });
114
- }, O = () => zr(Zt), jo = ({
114
+ }, H = () => zr(Zt), Uo = ({
115
115
  // Color props
116
116
  backgroundColor: e,
117
117
  color: r,
@@ -124,77 +124,77 @@ const Ft = {
124
124
  type: l = "button",
125
125
  // Standard React props
126
126
  className: d,
127
- style: m,
127
+ style: y,
128
128
  buttonProps: f = {},
129
- onClick: y,
129
+ onClick: h,
130
130
  children: g
131
131
  }) => {
132
- const x = O(), [V, h] = rt(!1);
133
- let w;
134
- r ? w = r : w = e ? x.buttons.textColor : x.buttons.primary.textColor;
135
- const E = e || x.colors.primary, $ = {
136
- ...Dr({
137
- isActive: V,
132
+ const w = H(), [x, m] = st(!1);
133
+ let V;
134
+ r ? V = r : V = e ? w.buttons.textColor : w.buttons.primary.textColor;
135
+ const C = e || w.colors.primary, E = {
136
+ ...Pr({
137
+ isActive: x,
138
138
  disabled: o,
139
- buttonColor: E,
140
- textColor: w,
139
+ buttonColor: C,
140
+ textColor: V,
141
141
  hoverBackgroundColor: t,
142
142
  hoverTextColor: s,
143
143
  outline: i
144
144
  }),
145
- fontSize: x.fonts.size,
146
- borderWidth: x.border.width,
147
- borderRadius: x.border.radius,
148
- "--button-padding-small": `calc(${x.fonts.rhythm} * ${x.sizes.small.paddingVertical}) calc(${x.fonts.rhythm} * ${x.buttons.paddingHorizontal})`,
149
- "--button-padding-large": `calc(${x.fonts.rhythm} * ${x.sizes.large.paddingVertical}) calc(${x.fonts.rhythm} * ${x.buttons.paddingHorizontal})`,
150
- ...m
145
+ fontSize: w.fonts.size,
146
+ borderWidth: w.border.width,
147
+ borderRadius: w.border.radius,
148
+ "--button-padding-small": `calc(${w.fonts.rhythm} * ${w.sizes.small.paddingVertical}) calc(${w.fonts.rhythm} * ${w.buttons.paddingHorizontal})`,
149
+ "--button-padding-large": `calc(${w.fonts.rhythm} * ${w.sizes.large.paddingVertical}) calc(${w.fonts.rhythm} * ${w.buttons.paddingHorizontal})`,
150
+ ...y
151
151
  // Top-level style overrides
152
- }, C = [
153
- we.button,
154
- n === "small" ? we.sizeSmall : we.sizeLarge,
155
- i ? we.outline : "",
152
+ }, z = [
153
+ Ce.button,
154
+ n === "small" ? Ce.sizeSmall : Ce.sizeLarge,
155
+ i ? Ce.outline : "",
156
156
  d
157
157
  ].filter(Boolean).join(" ");
158
158
  return /* @__PURE__ */ F(
159
159
  "button",
160
160
  {
161
161
  ...f,
162
- className: C,
162
+ className: z,
163
163
  disabled: o,
164
- onClick: y,
165
- onMouseEnter: () => h(!0),
166
- onMouseLeave: () => h(!1),
164
+ onClick: h,
165
+ onMouseEnter: () => m(!0),
166
+ onMouseLeave: () => m(!1),
167
167
  type: l,
168
- style: $,
168
+ style: E,
169
169
  children: g
170
170
  }
171
171
  );
172
172
  };
173
- var Vt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Pr = new Uint8Array(16);
174
- function Lr() {
173
+ var Vt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Dr = new Uint8Array(16);
174
+ function Br() {
175
175
  if (!Vt)
176
176
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
177
- return Vt(Pr);
177
+ return Vt(Dr);
178
178
  }
179
179
  var Qt = [];
180
- for (var Ce = 0; Ce < 256; ++Ce)
181
- Qt[Ce] = (Ce + 256).toString(16).substr(1);
182
- function Br(e, r) {
180
+ for (var ze = 0; ze < 256; ++ze)
181
+ Qt[ze] = (ze + 256).toString(16).substr(1);
182
+ function Lr(e, r) {
183
183
  var t = 0, s = Qt;
184
184
  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("");
185
185
  }
186
186
  function Kt(e, r, t) {
187
187
  var s = r && t || 0;
188
188
  typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
189
- var o = e.random || (e.rng || Lr)();
189
+ var o = e.random || (e.rng || Br)();
190
190
  if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, r)
191
191
  for (var n = 0; n < 16; ++n)
192
192
  r[s + n] = o[n];
193
- return r || Br(o);
193
+ return r || Lr(o);
194
194
  }
195
- const Or = "Checkbox-module__container___aV9qz", Hr = "Checkbox-module__svg___kkluC", Tr = "Checkbox-module__label___cwRtI", je = {
196
- container: Or,
197
- svg: Hr,
195
+ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kkluC", Tr = "Checkbox-module__label___cwRtI", je = {
196
+ container: Hr,
197
+ svg: Or,
198
198
  label: Tr
199
199
  }, Mr = ({
200
200
  color: e = "#000",
@@ -209,7 +209,7 @@ const Or = "Checkbox-module__container___aV9qz", Hr = "Checkbox-module__svg___kk
209
209
  cursor: t ? "default" : "pointer",
210
210
  opacity: t ? 0.3 : 1
211
211
  };
212
- }, jr = "FormLabel-module__label___0M-fo", Ir = "FormLabel-module__disabled___ktIFp", wt = {
212
+ }, jr = "FormLabel-module__label___0M-fo", Ir = "FormLabel-module__disabled___ktIFp", Ct = {
213
213
  label: jr,
214
214
  disabled: Ir
215
215
  }, Ur = ({
@@ -221,7 +221,7 @@ const Or = "Checkbox-module__container___aV9qz", Hr = "Checkbox-module__svg___kk
221
221
  fontSize: t,
222
222
  opacity: r ? 0.5 : 1,
223
223
  cursor: r ? "not-allowed" : "default"
224
- }), st = ({
224
+ }), ot = ({
225
225
  // Color prop
226
226
  color: e,
227
227
  // State props
@@ -237,21 +237,21 @@ const Or = "Checkbox-module__container___aV9qz", Hr = "Checkbox-module__svg___kk
237
237
  // Element-specific props
238
238
  labelProps: l
239
239
  }) => {
240
- const d = O(), m = d.colors.error, f = t ? m : e || d.colors.primary, y = Ur({
240
+ const d = H(), y = d.colors.error, f = t ? y : e || d.colors.primary, h = Ur({
241
241
  color: f,
242
242
  disabled: r,
243
243
  fontSize: ".85em"
244
244
  }), g = {
245
245
  "--form-label-padding-bottom": `calc(${d.fonts.rhythm} * 0.17)`,
246
- color: y.color,
247
- fontSize: y.fontSize,
248
- opacity: y.opacity,
249
- cursor: y.cursor,
246
+ color: h.color,
247
+ fontSize: h.fontSize,
248
+ opacity: h.opacity,
249
+ cursor: h.cursor,
250
250
  ...i
251
251
  // Top level style prop overrides
252
- }, x = [wt.label, r ? wt.disabled : "", n].filter(Boolean).join(" ");
253
- return /* @__PURE__ */ F("label", { ...l, className: x, htmlFor: s, style: g, children: o });
254
- }, Je = ({
252
+ }, w = [Ct.label, r ? Ct.disabled : "", n].filter(Boolean).join(" ");
253
+ return /* @__PURE__ */ F("label", { ...l, className: w, htmlFor: s, style: g, children: o });
254
+ }, Ye = ({
255
255
  // Color props
256
256
  color: e,
257
257
  checkmarkColor: r,
@@ -264,97 +264,97 @@ const Or = "Checkbox-module__container___aV9qz", Hr = "Checkbox-module__svg___kk
264
264
  name: i,
265
265
  id: l,
266
266
  onChange: d,
267
- label: m,
267
+ label: y,
268
268
  labelStyle: f,
269
269
  // Style overrides
270
- className: y,
270
+ className: h,
271
271
  style: g,
272
272
  // Element-specific props
273
- divProps: x
273
+ divProps: w
274
274
  }) => {
275
- const V = O(), h = l || Kt(), w = V.colors.error, E = n ? w : e || V.colors.primary, S = Mr({
276
- color: E,
275
+ const x = H(), m = l || Kt(), V = x.colors.error, C = n ? V : e || x.colors.primary, b = Mr({
276
+ color: C,
277
277
  checkmarkColor: r,
278
278
  disabled: o,
279
279
  inverted: s
280
- }), $ = (j) => {
281
- o || d(j);
282
- }, C = {
283
- cursor: S.cursor,
284
- fontSize: V.fonts.size,
285
- opacity: S.opacity,
280
+ }), E = (U) => {
281
+ o || d(U);
282
+ }, z = {
283
+ cursor: b.cursor,
284
+ fontSize: x.fonts.size,
285
+ opacity: b.opacity,
286
286
  ...g
287
287
  // Top-level style prop overrides
288
288
  }, A = {
289
289
  width: "1em"
290
- }, H = {
291
- fill: s && t ? S.checkboxColor : "transparent",
290
+ }, O = {
291
+ fill: s && t ? b.checkboxColor : "transparent",
292
292
  strokeWidth: "25",
293
- stroke: S.checkboxColor
293
+ stroke: b.checkboxColor
294
294
  }, M = {
295
- stroke: S.checkmarkColor,
295
+ stroke: b.checkmarkColor,
296
296
  strokeWidth: "15",
297
297
  fill: "transparent"
298
- }, ee = [je.container, y].filter(Boolean).join(" ");
299
- return /* @__PURE__ */ K("div", { ...x, className: ee, style: C, children: [
298
+ }, te = [je.container, h].filter(Boolean).join(" ");
299
+ return /* @__PURE__ */ Z("div", { ...w, className: te, style: z, children: [
300
300
  /* @__PURE__ */ F(
301
301
  "input",
302
302
  {
303
- id: h,
303
+ id: m,
304
304
  checked: t,
305
305
  disabled: o,
306
- onChange: (j) => $({ target: { checked: j.target.checked, name: i, type: "checkbox" } }),
306
+ onChange: (U) => E({ target: { checked: U.target.checked, name: i, type: "checkbox" } }),
307
307
  name: i,
308
308
  style: { display: "none" },
309
309
  type: "checkbox"
310
310
  }
311
311
  ),
312
- /* @__PURE__ */ K(
312
+ /* @__PURE__ */ Z(
313
313
  "svg",
314
314
  {
315
315
  xmlns: "http://www.w3.org/2000/svg",
316
316
  viewBox: "0 0 100 100",
317
- onClick: () => $({ target: { checked: !t, name: i, type: "checkbox" } }),
317
+ onClick: () => E({ target: { checked: !t, name: i, type: "checkbox" } }),
318
318
  style: A,
319
319
  className: je.svg,
320
320
  children: [
321
- /* @__PURE__ */ F("rect", { x: "0", y: "0", height: "100", width: "100", style: H }),
321
+ /* @__PURE__ */ F("rect", { x: "0", y: "0", height: "100", width: "100", style: O }),
322
322
  t && /* @__PURE__ */ F("path", { d: "M 25 45 L 45 65 L 75 30", style: M })
323
323
  ]
324
324
  }
325
325
  ),
326
- m && /* @__PURE__ */ F(
327
- st,
326
+ y && /* @__PURE__ */ F(
327
+ ot,
328
328
  {
329
- htmlFor: h,
329
+ htmlFor: m,
330
330
  className: je.label,
331
331
  style: { paddingBottom: 0, ...f },
332
- color: S.checkboxColor,
332
+ color: b.checkboxColor,
333
333
  disabled: o,
334
334
  error: n,
335
- children: m
335
+ children: y
336
336
  }
337
337
  )
338
338
  ] });
339
- }, Io = () => {
340
- const e = O();
339
+ }, Wo = () => {
340
+ const e = H();
341
341
  return $r(() => {
342
342
  const r = document.documentElement;
343
343
  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.paddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.paddingSm), e.layout.padding && r.style.setProperty("--layout-wrapper-padding", e.layout.padding));
344
344
  }, [e]), null;
345
345
  };
346
- var xe = (e) => e.type === "checkbox", ue = (e) => e instanceof Date, Q = (e) => e == null;
346
+ var Fe = (e) => e.type === "checkbox", ue = (e) => e instanceof Date, K = (e) => e == null;
347
347
  const Jt = (e) => typeof e == "object";
348
- var U = (e) => !Q(e) && !Array.isArray(e) && Jt(e) && !ue(e), Xt = (e) => U(e) && e.target ? xe(e.target) ? e.target.checked : e.target.value : e, Wr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Yt = (e, r) => e.has(Wr(r)), qr = (e) => {
348
+ var I = (e) => !K(e) && !Array.isArray(e) && Jt(e) && !ue(e), Yt = (e) => I(e) && e.target ? Fe(e.target) ? e.target.checked : e.target.value : e, Wr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Xt = (e, r) => e.has(Wr(r)), qr = (e) => {
349
349
  const r = e.constructor && e.constructor.prototype;
350
- return U(r) && r.hasOwnProperty("isPrototypeOf");
351
- }, ot = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
350
+ return I(r) && r.hasOwnProperty("isPrototypeOf");
351
+ }, nt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
352
352
  function W(e) {
353
353
  let r;
354
354
  const t = Array.isArray(e), s = typeof FileList < "u" ? e instanceof FileList : !1;
355
355
  if (e instanceof Date)
356
356
  r = new Date(e);
357
- else if (!(ot && (e instanceof Blob || s)) && (t || U(e)))
357
+ else if (!(nt && (e instanceof Blob || s)) && (t || I(e)))
358
358
  if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !qr(e))
359
359
  r = e;
360
360
  else
@@ -364,20 +364,20 @@ function W(e) {
364
364
  return e;
365
365
  return r;
366
366
  }
367
- var Le = (e) => /^\w*$/.test(e), B = (e) => e === void 0, nt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], it = (e) => nt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), v = (e, r, t) => {
368
- if (!r || !U(e))
367
+ var Be = (e) => /^\w*$/.test(e), L = (e) => e === void 0, it = (e) => Array.isArray(e) ? e.filter(Boolean) : [], at = (e) => it(e.replace(/["|']|\]/g, "").split(/\.|\[/)), v = (e, r, t) => {
368
+ if (!r || !I(e))
369
369
  return t;
370
- const s = (Le(r) ? [r] : it(r)).reduce((o, n) => Q(o) ? o : o[n], e);
371
- return B(s) || s === e ? B(e[r]) ? t : e[r] : s;
372
- }, J = (e) => typeof e == "boolean", D = (e, r, t) => {
370
+ const s = (Be(r) ? [r] : at(r)).reduce((o, n) => K(o) ? o : o[n], e);
371
+ return L(s) || s === e ? L(e[r]) ? t : e[r] : s;
372
+ }, Y = (e) => typeof e == "boolean", D = (e, r, t) => {
373
373
  let s = -1;
374
- const o = Le(r) ? [r] : it(r), n = o.length, i = n - 1;
374
+ const o = Be(r) ? [r] : at(r), n = o.length, i = n - 1;
375
375
  for (; ++s < n; ) {
376
376
  const l = o[s];
377
377
  let d = t;
378
378
  if (s !== i) {
379
- const m = e[l];
380
- d = U(m) || Array.isArray(m) ? m : isNaN(+o[s + 1]) ? {} : [];
379
+ const y = e[l];
380
+ d = I(y) || Array.isArray(y) ? y : isNaN(+o[s + 1]) ? {} : [];
381
381
  }
382
382
  if (l === "__proto__" || l === "constructor" || l === "prototype")
383
383
  return;
@@ -402,9 +402,9 @@ const Ne = {
402
402
  pattern: "pattern",
403
403
  required: "required",
404
404
  validate: "validate"
405
- }, er = z.createContext(null);
405
+ }, er = $.createContext(null);
406
406
  er.displayName = "HookFormContext";
407
- const at = () => z.useContext(er);
407
+ const lt = () => $.useContext(er);
408
408
  var tr = (e, r, t, s = !0) => {
409
409
  const o = {
410
410
  defaultValues: r._defaultValues
@@ -418,9 +418,9 @@ var tr = (e, r, t, s = !0) => {
418
418
  });
419
419
  return o;
420
420
  };
421
- const lt = typeof window < "u" ? z.useLayoutEffect : z.useEffect;
421
+ const ct = typeof window < "u" ? $.useLayoutEffect : $.useEffect;
422
422
  function Gr(e) {
423
- const r = at(), { control: t = r.control, disabled: s, name: o, exact: n } = e || {}, [i, l] = z.useState(t._formState), d = z.useRef({
423
+ const r = lt(), { control: t = r.control, disabled: s, name: o, exact: n } = e || {}, [i, l] = $.useState(t._formState), d = $.useRef({
424
424
  isDirty: !1,
425
425
  isLoading: !1,
426
426
  dirtyFields: !1,
@@ -430,23 +430,23 @@ function Gr(e) {
430
430
  isValid: !1,
431
431
  errors: !1
432
432
  });
433
- return lt(() => t._subscribe({
433
+ return ct(() => t._subscribe({
434
434
  name: o,
435
435
  formState: d.current,
436
436
  exact: n,
437
- callback: (m) => {
437
+ callback: (y) => {
438
438
  !s && l({
439
439
  ...t._formState,
440
- ...m
440
+ ...y
441
441
  });
442
442
  }
443
- }), [o, s, n]), z.useEffect(() => {
443
+ }), [o, s, n]), $.useEffect(() => {
444
444
  d.current.isValid && t._setValid(!0);
445
- }, [t]), z.useMemo(() => tr(i, t, d.current, !1), [i, t]);
445
+ }, [t]), $.useMemo(() => tr(i, t, d.current, !1), [i, t]);
446
446
  }
447
- var X = (e) => typeof e == "string", Xe = (e, r, t, s, o) => X(e) ? (s && r.watch.add(e), v(t, e, o)) : Array.isArray(e) ? e.map((n) => (s && r.watch.add(n), v(t, n))) : (s && (r.watchAll = !0), t), Ye = (e) => Q(e) || !Jt(e);
447
+ var X = (e) => typeof e == "string", Xe = (e, r, t, s, o) => X(e) ? (s && r.watch.add(e), v(t, e, o)) : Array.isArray(e) ? e.map((n) => (s && r.watch.add(n), v(t, n))) : (s && (r.watchAll = !0), t), et = (e) => K(e) || !Jt(e);
448
448
  function se(e, r, t = /* @__PURE__ */ new WeakSet()) {
449
- if (Ye(e) || Ye(r))
449
+ if (et(e) || et(r))
450
450
  return e === r;
451
451
  if (ue(e) && ue(r))
452
452
  return e.getTime() === r.getTime();
@@ -462,51 +462,51 @@ function se(e, r, t = /* @__PURE__ */ new WeakSet()) {
462
462
  return !1;
463
463
  if (n !== "ref") {
464
464
  const l = r[n];
465
- if (ue(i) && ue(l) || U(i) && U(l) || Array.isArray(i) && Array.isArray(l) ? !se(i, l, t) : i !== l)
465
+ if (ue(i) && ue(l) || I(i) && I(l) || Array.isArray(i) && Array.isArray(l) ? !se(i, l, t) : i !== l)
466
466
  return !1;
467
467
  }
468
468
  }
469
469
  return !0;
470
470
  }
471
471
  function Zr(e) {
472
- const r = at(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: i, compute: l } = e || {}, d = z.useRef(o), m = z.useRef(l), f = z.useRef(void 0), y = z.useRef(t), g = z.useRef(s);
473
- m.current = l;
474
- const [x, V] = z.useState(() => {
475
- const C = t._getWatch(s, d.current);
476
- return m.current ? m.current(C) : C;
477
- }), h = z.useCallback((C) => {
478
- const A = Xe(s, t._names, C || t._formValues, !1, d.current);
479
- return m.current ? m.current(A) : A;
480
- }, [t._formValues, t._names, s]), w = z.useCallback((C) => {
472
+ const r = lt(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: i, compute: l } = e || {}, d = $.useRef(o), y = $.useRef(l), f = $.useRef(void 0), h = $.useRef(t), g = $.useRef(s);
473
+ y.current = l;
474
+ const [w, x] = $.useState(() => {
475
+ const z = t._getWatch(s, d.current);
476
+ return y.current ? y.current(z) : z;
477
+ }), m = $.useCallback((z) => {
478
+ const A = Xe(s, t._names, z || t._formValues, !1, d.current);
479
+ return y.current ? y.current(A) : A;
480
+ }, [t._formValues, t._names, s]), V = $.useCallback((z) => {
481
481
  if (!n) {
482
- const A = Xe(s, t._names, C || t._formValues, !1, d.current);
483
- if (m.current) {
484
- const H = m.current(A);
485
- se(H, f.current) || (V(H), f.current = H);
482
+ const A = Xe(s, t._names, z || t._formValues, !1, d.current);
483
+ if (y.current) {
484
+ const O = y.current(A);
485
+ se(O, f.current) || (x(O), f.current = O);
486
486
  } else
487
- V(A);
487
+ x(A);
488
488
  }
489
489
  }, [t._formValues, t._names, n, s]);
490
- lt(() => ((y.current !== t || !se(g.current, s)) && (y.current = t, g.current = s, w()), t._subscribe({
490
+ ct(() => ((h.current !== t || !se(g.current, s)) && (h.current = t, g.current = s, V()), t._subscribe({
491
491
  name: s,
492
492
  formState: {
493
493
  values: !0
494
494
  },
495
495
  exact: i,
496
- callback: (C) => {
497
- w(C.values);
496
+ callback: (z) => {
497
+ V(z.values);
498
498
  }
499
- })), [t, i, s, w]), z.useEffect(() => t._removeUnmounted());
500
- const E = y.current !== t, S = g.current, $ = z.useMemo(() => {
499
+ })), [t, i, s, V]), $.useEffect(() => t._removeUnmounted());
500
+ const C = h.current !== t, b = g.current, E = $.useMemo(() => {
501
501
  if (n)
502
502
  return null;
503
- const C = !E && !se(S, s);
504
- return E || C ? h() : null;
505
- }, [n, E, s, S, h]);
506
- return $ !== null ? $ : x;
503
+ const z = !C && !se(b, s);
504
+ return C || z ? m() : null;
505
+ }, [n, C, s, b, m]);
506
+ return E !== null ? E : w;
507
507
  }
508
508
  function Qr(e) {
509
- const r = at(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: i } = e, l = Yt(o._names.array, t), d = z.useMemo(() => v(o._formValues, t, v(o._defaultValues, t, i)), [o, t, i]), m = Zr({
509
+ const r = lt(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: i } = e, l = Xt(o._names.array, t), d = $.useMemo(() => v(o._formValues, t, v(o._defaultValues, t, i)), [o, t, i]), y = Zr({
510
510
  control: o,
511
511
  name: t,
512
512
  defaultValue: d,
@@ -515,13 +515,13 @@ function Qr(e) {
515
515
  control: o,
516
516
  name: t,
517
517
  exact: !0
518
- }), y = z.useRef(e), g = z.useRef(void 0), x = z.useRef(o.register(t, {
518
+ }), h = $.useRef(e), g = $.useRef(void 0), w = $.useRef(o.register(t, {
519
519
  ...e.rules,
520
- value: m,
521
- ...J(e.disabled) ? { disabled: e.disabled } : {}
520
+ value: y,
521
+ ...Y(e.disabled) ? { disabled: e.disabled } : {}
522
522
  }));
523
- y.current = e;
524
- const V = z.useMemo(() => Object.defineProperties({}, {
523
+ h.current = e;
524
+ const x = $.useMemo(() => Object.defineProperties({}, {
525
525
  invalid: {
526
526
  enumerable: !0,
527
527
  get: () => !!v(f.errors, t)
@@ -542,69 +542,69 @@ function Qr(e) {
542
542
  enumerable: !0,
543
543
  get: () => v(f.errors, t)
544
544
  }
545
- }), [f, t]), h = z.useCallback(($) => x.current.onChange({
545
+ }), [f, t]), m = $.useCallback((E) => w.current.onChange({
546
546
  target: {
547
- value: Xt($),
547
+ value: Yt(E),
548
548
  name: t
549
549
  },
550
550
  type: Ne.CHANGE
551
- }), [t]), w = z.useCallback(() => x.current.onBlur({
551
+ }), [t]), V = $.useCallback(() => w.current.onBlur({
552
552
  target: {
553
553
  value: v(o._formValues, t),
554
554
  name: t
555
555
  },
556
556
  type: Ne.BLUR
557
- }), [t, o._formValues]), E = z.useCallback(($) => {
558
- const C = v(o._fields, t);
559
- C && $ && (C._f.ref = {
560
- focus: () => $.focus && $.focus(),
561
- select: () => $.select && $.select(),
562
- setCustomValidity: (A) => $.setCustomValidity(A),
563
- reportValidity: () => $.reportValidity()
557
+ }), [t, o._formValues]), C = $.useCallback((E) => {
558
+ const z = v(o._fields, t);
559
+ z && E && (z._f.ref = {
560
+ focus: () => E.focus && E.focus(),
561
+ select: () => E.select && E.select(),
562
+ setCustomValidity: (A) => E.setCustomValidity(A),
563
+ reportValidity: () => E.reportValidity()
564
564
  });
565
- }, [o._fields, t]), S = z.useMemo(() => ({
565
+ }, [o._fields, t]), b = $.useMemo(() => ({
566
566
  name: t,
567
- value: m,
568
- ...J(s) || f.disabled ? { disabled: f.disabled || s } : {},
569
- onChange: h,
570
- onBlur: w,
571
- ref: E
572
- }), [t, s, f.disabled, h, w, E, m]);
573
- return z.useEffect(() => {
574
- const $ = o._options.shouldUnregister || n, C = g.current;
575
- C && C !== t && !l && o.unregister(C), o.register(t, {
576
- ...y.current.rules,
577
- ...J(y.current.disabled) ? { disabled: y.current.disabled } : {}
567
+ value: y,
568
+ ...Y(s) || f.disabled ? { disabled: f.disabled || s } : {},
569
+ onChange: m,
570
+ onBlur: V,
571
+ ref: C
572
+ }), [t, s, f.disabled, m, V, C, y]);
573
+ return $.useEffect(() => {
574
+ const E = o._options.shouldUnregister || n, z = g.current;
575
+ z && z !== t && !l && o.unregister(z), o.register(t, {
576
+ ...h.current.rules,
577
+ ...Y(h.current.disabled) ? { disabled: h.current.disabled } : {}
578
578
  });
579
- const A = (H, M) => {
580
- const ee = v(o._fields, H);
581
- ee && ee._f && (ee._f.mount = M);
579
+ const A = (O, M) => {
580
+ const te = v(o._fields, O);
581
+ te && te._f && (te._f.mount = M);
582
582
  };
583
- if (A(t, !0), $) {
584
- const H = W(v(o._options.defaultValues, t, y.current.defaultValue));
585
- D(o._defaultValues, t, H), B(v(o._formValues, t)) && D(o._formValues, t, H);
583
+ if (A(t, !0), E) {
584
+ const O = W(v(o._options.defaultValues, t, h.current.defaultValue));
585
+ D(o._defaultValues, t, O), L(v(o._formValues, t)) && D(o._formValues, t, O);
586
586
  }
587
587
  return !l && o.register(t), g.current = t, () => {
588
- (l ? $ && !o._state.action : $) ? o.unregister(t) : A(t, !1);
588
+ (l ? E && !o._state.action : E) ? o.unregister(t) : A(t, !1);
589
589
  };
590
- }, [t, o, l, n]), z.useEffect(() => {
590
+ }, [t, o, l, n]), $.useEffect(() => {
591
591
  o._setDisabledField({
592
592
  disabled: s,
593
593
  name: t
594
594
  });
595
- }, [s, t, o]), z.useMemo(() => ({
596
- field: S,
595
+ }, [s, t, o]), $.useMemo(() => ({
596
+ field: b,
597
597
  formState: f,
598
- fieldState: V
599
- }), [S, f, V]);
598
+ fieldState: x
599
+ }), [b, f, x]);
600
600
  }
601
- var ct = (e, r, t, s, o) => r ? {
601
+ var ut = (e, r, t, s, o) => r ? {
602
602
  ...t[e],
603
603
  types: {
604
604
  ...t[e] && t[e].types ? t[e].types : {},
605
605
  [s]: o || !0
606
606
  }
607
- } : {}, ve = (e) => Array.isArray(e) ? e : [e], kt = () => {
607
+ } : {}, be = (e) => Array.isArray(e) ? e : [e], kt = () => {
608
608
  let e = [];
609
609
  return {
610
610
  get observers() {
@@ -629,60 +629,60 @@ function rr(e, r) {
629
629
  for (const s in e)
630
630
  if (e.hasOwnProperty(s)) {
631
631
  const o = e[s], n = r[s];
632
- if (o && U(o) && n) {
632
+ if (o && I(o) && n) {
633
633
  const i = rr(o, n);
634
- U(i) && (t[s] = i);
634
+ I(i) && (t[s] = i);
635
635
  } else e[s] && (t[s] = n);
636
636
  }
637
637
  return t;
638
638
  }
639
- var G = (e) => U(e) && !Object.keys(e).length, ut = (e) => e.type === "file", oe = (e) => typeof e == "function", Re = (e) => {
640
- if (!ot)
639
+ var G = (e) => I(e) && !Object.keys(e).length, dt = (e) => e.type === "file", oe = (e) => typeof e == "function", Re = (e) => {
640
+ if (!nt)
641
641
  return !1;
642
642
  const r = e ? e.ownerDocument : 0;
643
643
  return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
644
- }, sr = (e) => e.type === "select-multiple", dt = (e) => e.type === "radio", Kr = (e) => dt(e) || xe(e), Ie = (e) => Re(e) && e.isConnected;
644
+ }, sr = (e) => e.type === "select-multiple", ft = (e) => e.type === "radio", Kr = (e) => ft(e) || Fe(e), Ie = (e) => Re(e) && e.isConnected;
645
645
  function Jr(e, r) {
646
646
  const t = r.slice(0, -1).length;
647
647
  let s = 0;
648
648
  for (; s < t; )
649
- e = B(e) ? s++ : e[r[s++]];
649
+ e = L(e) ? s++ : e[r[s++]];
650
650
  return e;
651
651
  }
652
- function Xr(e) {
652
+ function Yr(e) {
653
653
  for (const r in e)
654
- if (e.hasOwnProperty(r) && !B(e[r]))
654
+ if (e.hasOwnProperty(r) && !L(e[r]))
655
655
  return !1;
656
656
  return !0;
657
657
  }
658
- function I(e, r) {
659
- const t = Array.isArray(r) ? r : Le(r) ? [r] : it(r), s = t.length === 1 ? e : Jr(e, t), o = t.length - 1, n = t[o];
660
- return s && delete s[n], o !== 0 && (U(s) && G(s) || Array.isArray(s) && Xr(s)) && I(e, t.slice(0, -1)), e;
658
+ function j(e, r) {
659
+ const t = Array.isArray(r) ? r : Be(r) ? [r] : at(r), s = t.length === 1 ? e : Jr(e, t), o = t.length - 1, n = t[o];
660
+ return s && delete s[n], o !== 0 && (I(s) && G(s) || Array.isArray(s) && Yr(s)) && j(e, t.slice(0, -1)), e;
661
661
  }
662
- var Yr = (e) => {
662
+ var Xr = (e) => {
663
663
  for (const r in e)
664
664
  if (oe(e[r]))
665
665
  return !0;
666
666
  return !1;
667
667
  };
668
668
  function or(e) {
669
- return Array.isArray(e) || U(e) && !Yr(e);
669
+ return Array.isArray(e) || I(e) && !Xr(e);
670
670
  }
671
- function et(e, r = {}) {
671
+ function tt(e, r = {}) {
672
672
  for (const t in e)
673
- or(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, et(e[t], r[t])) : B(e[t]) || (r[t] = !0);
673
+ or(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, tt(e[t], r[t])) : L(e[t]) || (r[t] = !0);
674
674
  return r;
675
675
  }
676
- function he(e, r, t) {
677
- t || (t = et(r));
676
+ function ge(e, r, t) {
677
+ t || (t = tt(r));
678
678
  for (const s in e)
679
- or(e[s]) ? B(r) || Ye(t[s]) ? t[s] = et(e[s], Array.isArray(e[s]) ? [] : {}) : he(e[s], Q(r) ? {} : r[s], t[s]) : t[s] = !se(e[s], r[s]);
679
+ or(e[s]) ? L(r) || et(t[s]) ? t[s] = tt(e[s], Array.isArray(e[s]) ? [] : {}) : ge(e[s], K(r) ? {} : r[s], t[s]) : t[s] = !se(e[s], r[s]);
680
680
  return t;
681
681
  }
682
- const Ct = {
682
+ const zt = {
683
683
  value: !1,
684
684
  isValid: !1
685
- }, zt = { value: !0, isValid: !0 };
685
+ }, $t = { value: !0, isValid: !0 };
686
686
  var nr = (e) => {
687
687
  if (Array.isArray(e)) {
688
688
  if (e.length > 1) {
@@ -691,22 +691,22 @@ var nr = (e) => {
691
691
  }
692
692
  return e[0].checked && !e[0].disabled ? (
693
693
  // @ts-expect-error expected to work in the browser
694
- e[0].attributes && !B(e[0].attributes.value) ? B(e[0].value) || e[0].value === "" ? zt : { value: e[0].value, isValid: !0 } : zt
695
- ) : Ct;
694
+ e[0].attributes && !L(e[0].attributes.value) ? L(e[0].value) || e[0].value === "" ? $t : { value: e[0].value, isValid: !0 } : $t
695
+ ) : zt;
696
696
  }
697
- return Ct;
698
- }, ir = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => B(e) ? e : r ? e === "" ? NaN : e && +e : t && X(e) ? new Date(e) : s ? s(e) : e;
699
- const $t = {
697
+ return zt;
698
+ }, ir = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => L(e) ? e : r ? e === "" ? NaN : e && +e : t && X(e) ? new Date(e) : s ? s(e) : e;
699
+ const Et = {
700
700
  isValid: !1,
701
701
  value: null
702
702
  };
703
703
  var ar = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
704
704
  isValid: !0,
705
705
  value: t.value
706
- } : r, $t) : $t;
707
- function Et(e) {
706
+ } : r, Et) : Et;
707
+ function At(e) {
708
708
  const r = e.ref;
709
- return ut(r) ? r.files : dt(r) ? ar(e.refs).value : sr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : xe(r) ? nr(e.refs).value : ir(B(r.value) ? e.ref.value : r.value, e);
709
+ return dt(r) ? r.files : ft(r) ? ar(e.refs).value : sr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Fe(r) ? nr(e.refs).value : ir(L(r.value) ? e.ref.value : r.value, e);
710
710
  }
711
711
  var es = (e, r, t, s) => {
712
712
  const o = {};
@@ -720,16 +720,16 @@ var es = (e, r, t, s) => {
720
720
  fields: o,
721
721
  shouldUseNativeValidation: s
722
722
  };
723
- }, De = (e) => e instanceof RegExp, _e = (e) => B(e) ? e : De(e) ? e.source : U(e) ? De(e.value) ? e.value.source : e.value : e, At = (e) => ({
723
+ }, Pe = (e) => e instanceof RegExp, pe = (e) => L(e) ? e : Pe(e) ? e.source : I(e) ? Pe(e.value) ? e.value.source : e.value : e, Nt = (e) => ({
724
724
  isOnSubmit: !e || e === re.onSubmit,
725
725
  isOnBlur: e === re.onBlur,
726
726
  isOnChange: e === re.onChange,
727
727
  isOnAll: e === re.all,
728
728
  isOnTouch: e === re.onTouched
729
729
  });
730
- const Nt = "AsyncFunction";
731
- var ts = (e) => !!e && !!e.validate && !!(oe(e.validate) && e.validate.constructor.name === Nt || U(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Nt)), rs = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Rt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
732
- const be = (e, r, t, s) => {
730
+ const Rt = "AsyncFunction";
731
+ var ts = (e) => !!e && !!e.validate && !!(oe(e.validate) && e.validate.constructor.name === Rt || I(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Rt)), rs = (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))));
732
+ const Se = (e, r, t, s) => {
733
733
  for (const o of t || Object.keys(e)) {
734
734
  const n = v(e, o);
735
735
  if (n) {
@@ -739,16 +739,16 @@ const be = (e, r, t, s) => {
739
739
  return !0;
740
740
  if (i.ref && r(i.ref, i.name) && !s)
741
741
  return !0;
742
- if (be(l, r))
742
+ if (Se(l, r))
743
743
  break;
744
- } else if (U(l) && be(l, r))
744
+ } else if (I(l) && Se(l, r))
745
745
  break;
746
746
  }
747
747
  }
748
748
  };
749
749
  function Dt(e, r, t) {
750
750
  const s = v(e, t);
751
- if (s || Le(t))
751
+ if (s || Be(t))
752
752
  return {
753
753
  error: s,
754
754
  name: t
@@ -778,101 +778,101 @@ var ss = (e, r, t, s) => {
778
778
  t(e);
779
779
  const { name: o, ...n } = e;
780
780
  return G(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((i) => r[i] === (!s || re.all));
781
- }, os = (e, r, t) => !e || !r || e === r || ve(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), ns = (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, is = (e, r) => !nt(v(e, r)).length && I(e, r), as = (e, r, t) => {
782
- const s = ve(v(e, t));
781
+ }, os = (e, r, t) => !e || !r || e === r || be(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), ns = (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, is = (e, r) => !it(v(e, r)).length && j(e, r), as = (e, r, t) => {
782
+ const s = be(v(e, t));
783
783
  return D(s, "root", r[t]), D(e, t, s), e;
784
784
  };
785
- function Pt(e, r, t = "validate") {
786
- if (X(e) || Array.isArray(e) && e.every(X) || J(e) && !e)
785
+ function Bt(e, r, t = "validate") {
786
+ if (X(e) || Array.isArray(e) && e.every(X) || Y(e) && !e)
787
787
  return {
788
788
  type: t,
789
789
  message: X(e) ? e : "",
790
790
  ref: r
791
791
  };
792
792
  }
793
- var me = (e) => U(e) && !De(e) ? e : {
793
+ var ye = (e) => I(e) && !Pe(e) ? e : {
794
794
  value: e,
795
795
  message: ""
796
796
  }, Lt = async (e, r, t, s, o, n) => {
797
- const { ref: i, refs: l, required: d, maxLength: m, minLength: f, min: y, max: g, pattern: x, validate: V, name: h, valueAsNumber: w, mount: E } = e._f, S = v(t, h);
798
- if (!E || r.has(h))
797
+ const { ref: i, refs: l, required: d, maxLength: y, minLength: f, min: h, max: g, pattern: w, validate: x, name: m, valueAsNumber: V, mount: C } = e._f, b = v(t, m);
798
+ if (!C || r.has(m))
799
799
  return {};
800
- const $ = l ? l[0] : i, C = (N) => {
801
- o && $.reportValidity && ($.setCustomValidity(J(N) ? "" : N || ""), $.reportValidity());
802
- }, A = {}, H = dt(i), M = xe(i), ee = H || M, j = (w || ut(i)) && B(i.value) && B(S) || Re(i) && i.value === "" || S === "" || Array.isArray(S) && !S.length, te = ct.bind(null, h, s, A), ne = (N, P, T, q = le.maxLength, Z = le.minLength) => {
803
- const ie = N ? P : T;
804
- A[h] = {
805
- type: N ? q : Z,
806
- message: ie,
800
+ const E = l ? l[0] : i, z = (N) => {
801
+ o && E.reportValidity && (E.setCustomValidity(Y(N) ? "" : N || ""), E.reportValidity());
802
+ }, A = {}, O = ft(i), M = Fe(i), te = O || M, U = (V || dt(i)) && L(i.value) && L(b) || Re(i) && i.value === "" || b === "" || Array.isArray(b) && !b.length, ae = ut.bind(null, m, s, A), J = (N, R, T, q = le.maxLength, Q = le.minLength) => {
803
+ const ne = N ? R : T;
804
+ A[m] = {
805
+ type: N ? q : Q,
806
+ message: ne,
807
807
  ref: i,
808
- ...te(N ? q : Z, ie)
808
+ ...ae(N ? q : Q, ne)
809
809
  };
810
810
  };
811
- if (n ? !Array.isArray(S) || !S.length : d && (!ee && (j || Q(S)) || J(S) && !S || M && !nr(l).isValid || H && !ar(l).isValid)) {
812
- const { value: N, message: P } = X(d) ? { value: !!d, message: d } : me(d);
813
- if (N && (A[h] = {
811
+ if (n ? !Array.isArray(b) || !b.length : d && (!te && (U || K(b)) || Y(b) && !b || M && !nr(l).isValid || O && !ar(l).isValid)) {
812
+ const { value: N, message: R } = X(d) ? { value: !!d, message: d } : ye(d);
813
+ if (N && (A[m] = {
814
814
  type: le.required,
815
- message: P,
816
- ref: $,
817
- ...te(le.required, P)
815
+ message: R,
816
+ ref: E,
817
+ ...ae(le.required, R)
818
818
  }, !s))
819
- return C(P), A;
819
+ return z(R), A;
820
820
  }
821
- if (!j && (!Q(y) || !Q(g))) {
822
- let N, P;
823
- const T = me(g), q = me(y);
824
- if (!Q(S) && !isNaN(S)) {
825
- const Z = i.valueAsNumber || S && +S;
826
- Q(T.value) || (N = Z > T.value), Q(q.value) || (P = Z < q.value);
821
+ if (!U && (!K(h) || !K(g))) {
822
+ let N, R;
823
+ const T = ye(g), q = ye(h);
824
+ if (!K(b) && !isNaN(b)) {
825
+ const Q = i.valueAsNumber || b && +b;
826
+ K(T.value) || (N = Q > T.value), K(q.value) || (R = Q < q.value);
827
827
  } else {
828
- const Z = i.valueAsDate || new Date(S), ie = (Fe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Fe), ge = i.type == "time", fe = i.type == "week";
829
- X(T.value) && S && (N = ge ? ie(S) > ie(T.value) : fe ? S > T.value : Z > new Date(T.value)), X(q.value) && S && (P = ge ? ie(S) < ie(q.value) : fe ? S < q.value : Z < new Date(q.value));
828
+ const Q = i.valueAsDate || new Date(b), ne = (we) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + we), _e = i.type == "time", fe = i.type == "week";
829
+ X(T.value) && b && (N = _e ? ne(b) > ne(T.value) : fe ? b > T.value : Q > new Date(T.value)), X(q.value) && b && (R = _e ? ne(b) < ne(q.value) : fe ? b < q.value : Q < new Date(q.value));
830
830
  }
831
- if ((N || P) && (ne(!!N, T.message, q.message, le.max, le.min), !s))
832
- return C(A[h].message), A;
831
+ if ((N || R) && (J(!!N, T.message, q.message, le.max, le.min), !s))
832
+ return z(A[m].message), A;
833
833
  }
834
- if ((m || f) && !j && (X(S) || n && Array.isArray(S))) {
835
- const N = me(m), P = me(f), T = !Q(N.value) && S.length > +N.value, q = !Q(P.value) && S.length < +P.value;
836
- if ((T || q) && (ne(T, N.message, P.message), !s))
837
- return C(A[h].message), A;
834
+ if ((y || f) && !U && (X(b) || n && Array.isArray(b))) {
835
+ const N = ye(y), R = ye(f), T = !K(N.value) && b.length > +N.value, q = !K(R.value) && b.length < +R.value;
836
+ if ((T || q) && (J(T, N.message, R.message), !s))
837
+ return z(A[m].message), A;
838
838
  }
839
- if (x && !j && X(S)) {
840
- const { value: N, message: P } = me(x);
841
- if (De(N) && !S.match(N) && (A[h] = {
839
+ if (w && !U && X(b)) {
840
+ const { value: N, message: R } = ye(w);
841
+ if (Pe(N) && !b.match(N) && (A[m] = {
842
842
  type: le.pattern,
843
- message: P,
843
+ message: R,
844
844
  ref: i,
845
- ...te(le.pattern, P)
845
+ ...ae(le.pattern, R)
846
846
  }, !s))
847
- return C(P), A;
847
+ return z(R), A;
848
848
  }
849
- if (V) {
850
- if (oe(V)) {
851
- const N = await V(S, t), P = Pt(N, $);
852
- if (P && (A[h] = {
853
- ...P,
854
- ...te(le.validate, P.message)
849
+ if (x) {
850
+ if (oe(x)) {
851
+ const N = await x(b, t), R = Bt(N, E);
852
+ if (R && (A[m] = {
853
+ ...R,
854
+ ...ae(le.validate, R.message)
855
855
  }, !s))
856
- return C(P.message), A;
857
- } else if (U(V)) {
856
+ return z(R.message), A;
857
+ } else if (I(x)) {
858
858
  let N = {};
859
- for (const P in V) {
859
+ for (const R in x) {
860
860
  if (!G(N) && !s)
861
861
  break;
862
- const T = Pt(await V[P](S, t), $, P);
862
+ const T = Bt(await x[R](b, t), E, R);
863
863
  T && (N = {
864
864
  ...T,
865
- ...te(P, T.message)
866
- }, C(T.message), s && (A[h] = N));
865
+ ...ae(R, T.message)
866
+ }, z(T.message), s && (A[m] = N));
867
867
  }
868
- if (!G(N) && (A[h] = {
869
- ref: $,
868
+ if (!G(N) && (A[m] = {
869
+ ref: E,
870
870
  ...N
871
871
  }, !s))
872
872
  return A;
873
873
  }
874
874
  }
875
- return C(!0), A;
875
+ return z(!0), A;
876
876
  };
877
877
  const ls = {
878
878
  mode: re.onSubmit,
@@ -898,7 +898,7 @@ function cs(e = {}) {
898
898
  validatingFields: {},
899
899
  errors: r.errors || {},
900
900
  disabled: r.disabled || !1
901
- }, s = {}, o = U(r.defaultValues) || U(r.values) ? W(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : W(o), i = {
901
+ }, s = {}, o = I(r.defaultValues) || I(r.values) ? W(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : W(o), i = {
902
902
  action: !1,
903
903
  mount: !1,
904
904
  watch: !1
@@ -908,7 +908,7 @@ function cs(e = {}) {
908
908
  unMount: /* @__PURE__ */ new Set(),
909
909
  array: /* @__PURE__ */ new Set(),
910
910
  watch: /* @__PURE__ */ new Set()
911
- }, d, m = 0;
911
+ }, d, y = 0;
912
912
  const f = {
913
913
  isDirty: !1,
914
914
  dirtyFields: !1,
@@ -918,90 +918,90 @@ function cs(e = {}) {
918
918
  isValid: !1,
919
919
  errors: !1
920
920
  };
921
- let y = {
921
+ let h = {
922
922
  ...f
923
923
  };
924
924
  const g = {
925
925
  array: kt(),
926
926
  state: kt()
927
- }, x = r.criteriaMode === re.all, V = (a) => (c) => {
928
- clearTimeout(m), m = setTimeout(a, c);
929
- }, h = async (a) => {
930
- if (!r.disabled && (f.isValid || y.isValid || a)) {
931
- const c = r.resolver ? G((await M()).errors) : await j(s, !0);
927
+ }, w = r.criteriaMode === re.all, x = (a) => (c) => {
928
+ clearTimeout(y), y = setTimeout(a, c);
929
+ }, m = async (a) => {
930
+ if (!r.disabled && (f.isValid || h.isValid || a)) {
931
+ const c = r.resolver ? G((await M()).errors) : await U(s, !0);
932
932
  c !== t.isValid && g.state.next({
933
933
  isValid: c
934
934
  });
935
935
  }
936
- }, w = (a, c) => {
937
- !r.disabled && (f.isValidating || f.validatingFields || y.isValidating || y.validatingFields) && ((a || Array.from(l.mount)).forEach((u) => {
938
- u && (c ? D(t.validatingFields, u, c) : I(t.validatingFields, u));
936
+ }, V = (a, c) => {
937
+ !r.disabled && (f.isValidating || f.validatingFields || h.isValidating || h.validatingFields) && ((a || Array.from(l.mount)).forEach((u) => {
938
+ u && (c ? D(t.validatingFields, u, c) : j(t.validatingFields, u));
939
939
  }), g.state.next({
940
940
  validatingFields: t.validatingFields,
941
941
  isValidating: !G(t.validatingFields)
942
942
  }));
943
- }, E = (a, c = [], u, b, p = !0, _ = !0) => {
944
- if (b && u && !r.disabled) {
943
+ }, C = (a, c = [], u, S, p = !0, _ = !0) => {
944
+ if (S && u && !r.disabled) {
945
945
  if (i.action = !0, _ && Array.isArray(v(s, a))) {
946
- const k = u(v(s, a), b.argA, b.argB);
946
+ const k = u(v(s, a), S.argA, S.argB);
947
947
  p && D(s, a, k);
948
948
  }
949
949
  if (_ && Array.isArray(v(t.errors, a))) {
950
- const k = u(v(t.errors, a), b.argA, b.argB);
950
+ const k = u(v(t.errors, a), S.argA, S.argB);
951
951
  p && D(t.errors, a, k), is(t.errors, a);
952
952
  }
953
- if ((f.touchedFields || y.touchedFields) && _ && Array.isArray(v(t.touchedFields, a))) {
954
- const k = u(v(t.touchedFields, a), b.argA, b.argB);
953
+ if ((f.touchedFields || h.touchedFields) && _ && Array.isArray(v(t.touchedFields, a))) {
954
+ const k = u(v(t.touchedFields, a), S.argA, S.argB);
955
955
  p && D(t.touchedFields, a, k);
956
956
  }
957
- (f.dirtyFields || y.dirtyFields) && (t.dirtyFields = he(o, n)), g.state.next({
957
+ (f.dirtyFields || h.dirtyFields) && (t.dirtyFields = ge(o, n)), g.state.next({
958
958
  name: a,
959
- isDirty: ne(a, c),
959
+ isDirty: J(a, c),
960
960
  dirtyFields: t.dirtyFields,
961
961
  errors: t.errors,
962
962
  isValid: t.isValid
963
963
  });
964
964
  } else
965
965
  D(n, a, c);
966
- }, S = (a, c) => {
966
+ }, b = (a, c) => {
967
967
  D(t.errors, a, c), g.state.next({
968
968
  errors: t.errors
969
969
  });
970
- }, $ = (a) => {
970
+ }, E = (a) => {
971
971
  t.errors = a, g.state.next({
972
972
  errors: t.errors,
973
973
  isValid: !1
974
974
  });
975
- }, C = (a, c, u, b) => {
975
+ }, z = (a, c, u, S) => {
976
976
  const p = v(s, a);
977
977
  if (p) {
978
- const _ = v(n, a, B(u) ? v(o, a) : u);
979
- B(_) || b && b.defaultChecked || c ? D(n, a, c ? _ : Et(p._f)) : T(a, _), i.mount && h();
978
+ const _ = v(n, a, L(u) ? v(o, a) : u);
979
+ L(_) || S && S.defaultChecked || c ? D(n, a, c ? _ : At(p._f)) : T(a, _), i.mount && m();
980
980
  }
981
- }, A = (a, c, u, b, p) => {
981
+ }, A = (a, c, u, S, p) => {
982
982
  let _ = !1, k = !1;
983
- const R = {
983
+ const P = {
984
984
  name: a
985
985
  };
986
986
  if (!r.disabled) {
987
- if (!u || b) {
988
- (f.isDirty || y.isDirty) && (k = t.isDirty, t.isDirty = R.isDirty = ne(), _ = k !== R.isDirty);
989
- const L = se(v(o, a), c);
990
- k = !!v(t.dirtyFields, a), L ? I(t.dirtyFields, a) : D(t.dirtyFields, a, !0), R.dirtyFields = t.dirtyFields, _ = _ || (f.dirtyFields || y.dirtyFields) && k !== !L;
987
+ if (!u || S) {
988
+ (f.isDirty || h.isDirty) && (k = t.isDirty, t.isDirty = P.isDirty = J(), _ = k !== P.isDirty);
989
+ const B = se(v(o, a), c);
990
+ k = !!v(t.dirtyFields, a), B ? j(t.dirtyFields, a) : D(t.dirtyFields, a, !0), P.dirtyFields = t.dirtyFields, _ = _ || (f.dirtyFields || h.dirtyFields) && k !== !B;
991
991
  }
992
992
  if (u) {
993
- const L = v(t.touchedFields, a);
994
- L || (D(t.touchedFields, a, u), R.touchedFields = t.touchedFields, _ = _ || (f.touchedFields || y.touchedFields) && L !== u);
993
+ const B = v(t.touchedFields, a);
994
+ B || (D(t.touchedFields, a, u), P.touchedFields = t.touchedFields, _ = _ || (f.touchedFields || h.touchedFields) && B !== u);
995
995
  }
996
- _ && p && g.state.next(R);
996
+ _ && p && g.state.next(P);
997
997
  }
998
- return _ ? R : {};
999
- }, H = (a, c, u, b) => {
1000
- const p = v(t.errors, a), _ = (f.isValid || y.isValid) && J(c) && t.isValid !== c;
1001
- if (r.delayError && u ? (d = V(() => S(a, u)), d(r.delayError)) : (clearTimeout(m), d = null, u ? D(t.errors, a, u) : I(t.errors, a)), (u ? !se(p, u) : p) || !G(b) || _) {
998
+ return _ ? P : {};
999
+ }, O = (a, c, u, S) => {
1000
+ const p = v(t.errors, a), _ = (f.isValid || h.isValid) && Y(c) && t.isValid !== c;
1001
+ if (r.delayError && u ? (d = x(() => b(a, u)), d(r.delayError)) : (clearTimeout(y), d = null, u ? D(t.errors, a, u) : j(t.errors, a)), (u ? !se(p, u) : p) || !G(S) || _) {
1002
1002
  const k = {
1003
- ...b,
1004
- ..._ && J(c) ? { isValid: c } : {},
1003
+ ...S,
1004
+ ..._ && Y(c) ? { isValid: c } : {},
1005
1005
  errors: t.errors,
1006
1006
  name: a
1007
1007
  };
@@ -1011,154 +1011,154 @@ function cs(e = {}) {
1011
1011
  }, g.state.next(k);
1012
1012
  }
1013
1013
  }, M = async (a) => {
1014
- w(a, !0);
1014
+ V(a, !0);
1015
1015
  const c = await r.resolver(n, r.context, es(a || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
1016
- return w(a), c;
1017
- }, ee = async (a) => {
1016
+ return V(a), c;
1017
+ }, te = async (a) => {
1018
1018
  const { errors: c } = await M(a);
1019
1019
  if (a)
1020
1020
  for (const u of a) {
1021
- const b = v(c, u);
1022
- b ? D(t.errors, u, b) : I(t.errors, u);
1021
+ const S = v(c, u);
1022
+ S ? D(t.errors, u, S) : j(t.errors, u);
1023
1023
  }
1024
1024
  else
1025
1025
  t.errors = c;
1026
1026
  return c;
1027
- }, j = async (a, c, u = {
1027
+ }, U = async (a, c, u = {
1028
1028
  valid: !0
1029
1029
  }) => {
1030
- for (const b in a) {
1031
- const p = a[b];
1030
+ for (const S in a) {
1031
+ const p = a[S];
1032
1032
  if (p) {
1033
1033
  const { _f: _, ...k } = p;
1034
1034
  if (_) {
1035
- const R = l.array.has(_.name), L = p._f && ts(p._f);
1036
- L && f.validatingFields && w([_.name], !0);
1037
- const Y = await Lt(p, l.disabled, n, x, r.shouldUseNativeValidation && !c, R);
1038
- if (L && f.validatingFields && w([_.name]), Y[_.name] && (u.valid = !1, c))
1035
+ const P = l.array.has(_.name), B = p._f && ts(p._f);
1036
+ B && f.validatingFields && V([_.name], !0);
1037
+ const ee = await Lt(p, l.disabled, n, w, r.shouldUseNativeValidation && !c, P);
1038
+ if (B && f.validatingFields && V([_.name]), ee[_.name] && (u.valid = !1, c))
1039
1039
  break;
1040
- !c && (v(Y, _.name) ? R ? as(t.errors, Y, _.name) : D(t.errors, _.name, Y[_.name]) : I(t.errors, _.name));
1040
+ !c && (v(ee, _.name) ? P ? as(t.errors, ee, _.name) : D(t.errors, _.name, ee[_.name]) : j(t.errors, _.name));
1041
1041
  }
1042
- !G(k) && await j(k, c, u);
1042
+ !G(k) && await U(k, c, u);
1043
1043
  }
1044
1044
  }
1045
1045
  return u.valid;
1046
- }, te = () => {
1046
+ }, ae = () => {
1047
1047
  for (const a of l.unMount) {
1048
1048
  const c = v(s, a);
1049
- c && (c._f.refs ? c._f.refs.every((u) => !Ie(u)) : !Ie(c._f.ref)) && Be(a);
1049
+ c && (c._f.refs ? c._f.refs.every((u) => !Ie(u)) : !Ie(c._f.ref)) && Le(a);
1050
1050
  }
1051
1051
  l.unMount = /* @__PURE__ */ new Set();
1052
- }, ne = (a, c) => !r.disabled && (a && c && D(n, a, c), !se(Fe(), o)), N = (a, c, u) => Xe(a, l, {
1053
- ...i.mount ? n : B(c) ? o : X(a) ? { [a]: c } : c
1054
- }, u, c), P = (a) => nt(v(i.mount ? n : o, a, r.shouldUnregister ? v(o, a, []) : [])), T = (a, c, u = {}) => {
1055
- const b = v(s, a);
1052
+ }, J = (a, c) => !r.disabled && (a && c && D(n, a, c), !se(we(), o)), N = (a, c, u) => Xe(a, l, {
1053
+ ...i.mount ? n : L(c) ? o : X(a) ? { [a]: c } : c
1054
+ }, u, c), R = (a) => it(v(i.mount ? n : o, a, r.shouldUnregister ? v(o, a, []) : [])), T = (a, c, u = {}) => {
1055
+ const S = v(s, a);
1056
1056
  let p = c;
1057
- if (b) {
1058
- const _ = b._f;
1059
- _ && (!_.disabled && D(n, a, ir(c, _)), p = Re(_.ref) && Q(c) ? "" : c, sr(_.ref) ? [..._.ref.options].forEach((k) => k.selected = p.includes(k.value)) : _.refs ? xe(_.ref) ? _.refs.forEach((k) => {
1060
- (!k.defaultChecked || !k.disabled) && (Array.isArray(p) ? k.checked = !!p.find((R) => R === k.value) : k.checked = p === k.value || !!p);
1061
- }) : _.refs.forEach((k) => k.checked = k.value === p) : ut(_.ref) ? _.ref.value = "" : (_.ref.value = p, _.ref.type || g.state.next({
1057
+ if (S) {
1058
+ const _ = S._f;
1059
+ _ && (!_.disabled && D(n, a, ir(c, _)), p = Re(_.ref) && K(c) ? "" : c, sr(_.ref) ? [..._.ref.options].forEach((k) => k.selected = p.includes(k.value)) : _.refs ? Fe(_.ref) ? _.refs.forEach((k) => {
1060
+ (!k.defaultChecked || !k.disabled) && (Array.isArray(p) ? k.checked = !!p.find((P) => P === k.value) : k.checked = p === k.value || !!p);
1061
+ }) : _.refs.forEach((k) => k.checked = k.value === p) : dt(_.ref) ? _.ref.value = "" : (_.ref.value = p, _.ref.type || g.state.next({
1062
1062
  name: a,
1063
1063
  values: W(n)
1064
1064
  })));
1065
1065
  }
1066
1066
  (u.shouldDirty || u.shouldTouch) && A(a, p, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && fe(a);
1067
1067
  }, q = (a, c, u) => {
1068
- for (const b in c) {
1069
- if (!c.hasOwnProperty(b))
1068
+ for (const S in c) {
1069
+ if (!c.hasOwnProperty(S))
1070
1070
  return;
1071
- const p = c[b], _ = a + "." + b, k = v(s, _);
1072
- (l.array.has(a) || U(p) || k && !k._f) && !ue(p) ? q(_, p, u) : T(_, p, u);
1071
+ const p = c[S], _ = a + "." + S, k = v(s, _);
1072
+ (l.array.has(a) || I(p) || k && !k._f) && !ue(p) ? q(_, p, u) : T(_, p, u);
1073
1073
  }
1074
- }, Z = (a, c, u = {}) => {
1075
- const b = v(s, a), p = l.array.has(a), _ = W(c);
1074
+ }, Q = (a, c, u = {}) => {
1075
+ const S = v(s, a), p = l.array.has(a), _ = W(c);
1076
1076
  D(n, a, _), p ? (g.array.next({
1077
1077
  name: a,
1078
1078
  values: W(n)
1079
- }), (f.isDirty || f.dirtyFields || y.isDirty || y.dirtyFields) && u.shouldDirty && g.state.next({
1079
+ }), (f.isDirty || f.dirtyFields || h.isDirty || h.dirtyFields) && u.shouldDirty && g.state.next({
1080
1080
  name: a,
1081
- dirtyFields: he(o, n),
1082
- isDirty: ne(a, _)
1083
- })) : b && !b._f && !Q(_) ? q(a, _, u) : T(a, _, u), Rt(a, l) && g.state.next({ ...t, name: a }), g.state.next({
1081
+ dirtyFields: ge(o, n),
1082
+ isDirty: J(a, _)
1083
+ })) : S && !S._f && !K(_) ? q(a, _, u) : T(a, _, u), Pt(a, l) && g.state.next({ ...t, name: a }), g.state.next({
1084
1084
  name: i.mount ? a : void 0,
1085
1085
  values: W(n)
1086
1086
  });
1087
- }, ie = async (a) => {
1087
+ }, ne = async (a) => {
1088
1088
  i.mount = !0;
1089
1089
  const c = a.target;
1090
- let u = c.name, b = !0;
1091
- const p = v(s, u), _ = (L) => {
1092
- b = Number.isNaN(L) || ue(L) && isNaN(L.getTime()) || se(L, v(n, u, L));
1093
- }, k = At(r.mode), R = At(r.reValidateMode);
1090
+ let u = c.name, S = !0;
1091
+ const p = v(s, u), _ = (B) => {
1092
+ S = Number.isNaN(B) || ue(B) && isNaN(B.getTime()) || se(B, v(n, u, B));
1093
+ }, k = Nt(r.mode), P = Nt(r.reValidateMode);
1094
1094
  if (p) {
1095
- let L, Y;
1096
- const Ve = c.type ? Et(p._f) : Xt(a), ce = a.type === Ne.BLUR || a.type === Ne.FOCUS_OUT, Vr = !rs(p._f) && !r.resolver && !v(t.errors, u) && !p._f.deps || ns(ce, v(t.touchedFields, u), t.isSubmitted, R, k), Te = Rt(u, l, ce);
1095
+ let B, ee;
1096
+ const Ve = c.type ? At(p._f) : Yt(a), ce = a.type === Ne.BLUR || a.type === Ne.FOCUS_OUT, wr = !rs(p._f) && !r.resolver && !v(t.errors, u) && !p._f.deps || ns(ce, v(t.touchedFields, u), t.isSubmitted, P, k), Te = Pt(u, l, ce);
1097
1097
  D(n, u, Ve), ce ? (!c || !c.readOnly) && (p._f.onBlur && p._f.onBlur(a), d && d(0)) : p._f.onChange && p._f.onChange(a);
1098
- const Me = A(u, Ve, ce), wr = !G(Me) || Te;
1098
+ const Me = A(u, Ve, ce), Vr = !G(Me) || Te;
1099
1099
  if (!ce && g.state.next({
1100
1100
  name: u,
1101
1101
  type: a.type,
1102
1102
  values: W(n)
1103
- }), Vr)
1104
- return (f.isValid || y.isValid) && (r.mode === "onBlur" ? ce && h() : ce || h()), wr && g.state.next({ name: u, ...Te ? {} : Me });
1103
+ }), wr)
1104
+ return (f.isValid || h.isValid) && (r.mode === "onBlur" ? ce && m() : ce || m()), Vr && g.state.next({ name: u, ...Te ? {} : Me });
1105
1105
  if (!ce && Te && g.state.next({ ...t }), r.resolver) {
1106
- const { errors: bt } = await M([u]);
1107
- if (_(Ve), b) {
1108
- const kr = Dt(t.errors, s, u), St = Dt(bt, s, kr.name || u);
1109
- L = St.error, u = St.name, Y = G(bt);
1106
+ const { errors: St } = await M([u]);
1107
+ if (_(Ve), S) {
1108
+ const Cr = Dt(t.errors, s, u), xt = Dt(St, s, Cr.name || u);
1109
+ B = xt.error, u = xt.name, ee = G(St);
1110
1110
  }
1111
1111
  } else
1112
- w([u], !0), L = (await Lt(p, l.disabled, n, x, r.shouldUseNativeValidation))[u], w([u]), _(Ve), b && (L ? Y = !1 : (f.isValid || y.isValid) && (Y = await j(s, !0)));
1113
- b && (p._f.deps && (!Array.isArray(p._f.deps) || p._f.deps.length > 0) && fe(p._f.deps), H(u, Y, L, Me));
1112
+ V([u], !0), B = (await Lt(p, l.disabled, n, w, r.shouldUseNativeValidation))[u], V([u]), _(Ve), S && (B ? ee = !1 : (f.isValid || h.isValid) && (ee = await U(s, !0)));
1113
+ S && (p._f.deps && (!Array.isArray(p._f.deps) || p._f.deps.length > 0) && fe(p._f.deps), O(u, ee, B, Me));
1114
1114
  }
1115
- }, ge = (a, c) => {
1115
+ }, _e = (a, c) => {
1116
1116
  if (v(t.errors, c) && a.focus)
1117
1117
  return a.focus(), 1;
1118
1118
  }, fe = async (a, c = {}) => {
1119
- let u, b;
1120
- const p = ve(a);
1119
+ let u, S;
1120
+ const p = be(a);
1121
1121
  if (r.resolver) {
1122
- const _ = await ee(B(a) ? a : p);
1123
- u = G(_), b = a ? !p.some((k) => v(_, k)) : u;
1124
- } else a ? (b = (await Promise.all(p.map(async (_) => {
1122
+ const _ = await te(L(a) ? a : p);
1123
+ u = G(_), S = a ? !p.some((k) => v(_, k)) : u;
1124
+ } else a ? (S = (await Promise.all(p.map(async (_) => {
1125
1125
  const k = v(s, _);
1126
- return await j(k && k._f ? { [_]: k } : k);
1127
- }))).every(Boolean), !(!b && !t.isValid) && h()) : b = u = await j(s);
1126
+ return await U(k && k._f ? { [_]: k } : k);
1127
+ }))).every(Boolean), !(!S && !t.isValid) && m()) : S = u = await U(s);
1128
1128
  return g.state.next({
1129
- ...!X(a) || (f.isValid || y.isValid) && u !== t.isValid ? {} : { name: a },
1129
+ ...!X(a) || (f.isValid || h.isValid) && u !== t.isValid ? {} : { name: a },
1130
1130
  ...r.resolver || !a ? { isValid: u } : {},
1131
1131
  errors: t.errors
1132
- }), c.shouldFocus && !b && be(s, ge, a ? p : l.mount), b;
1133
- }, Fe = (a, c) => {
1132
+ }), c.shouldFocus && !S && Se(s, _e, a ? p : l.mount), S;
1133
+ }, we = (a, c) => {
1134
1134
  let u = {
1135
1135
  ...i.mount ? n : o
1136
1136
  };
1137
- return c && (u = rr(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), B(a) ? u : X(a) ? v(u, a) : a.map((b) => v(u, b));
1138
- }, ft = (a, c) => ({
1137
+ return c && (u = rr(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), L(a) ? u : X(a) ? v(u, a) : a.map((S) => v(u, S));
1138
+ }, yt = (a, c) => ({
1139
1139
  invalid: !!v((c || t).errors, a),
1140
1140
  isDirty: !!v((c || t).dirtyFields, a),
1141
1141
  error: v((c || t).errors, a),
1142
1142
  isValidating: !!v(t.validatingFields, a),
1143
1143
  isTouched: !!v((c || t).touchedFields, a)
1144
1144
  }), _r = (a) => {
1145
- a && ve(a).forEach((c) => I(t.errors, c)), g.state.next({
1145
+ a && be(a).forEach((c) => j(t.errors, c)), g.state.next({
1146
1146
  errors: a ? t.errors : {}
1147
1147
  });
1148
1148
  }, mt = (a, c, u) => {
1149
- const b = (v(s, a, { _f: {} })._f || {}).ref, p = v(t.errors, a) || {}, { ref: _, message: k, type: R, ...L } = p;
1149
+ const S = (v(s, a, { _f: {} })._f || {}).ref, p = v(t.errors, a) || {}, { ref: _, message: k, type: P, ...B } = p;
1150
1150
  D(t.errors, a, {
1151
- ...L,
1151
+ ...B,
1152
1152
  ...c,
1153
- ref: b
1153
+ ref: S
1154
1154
  }), g.state.next({
1155
1155
  name: a,
1156
1156
  errors: t.errors,
1157
1157
  isValid: !1
1158
- }), u && u.shouldFocus && b && b.focus && b.focus();
1158
+ }), u && u.shouldFocus && S && S.focus && S.focus();
1159
1159
  }, pr = (a, c) => oe(a) ? g.state.subscribe({
1160
1160
  next: (u) => "values" in u && a(N(void 0, c), u)
1161
- }) : N(a, c, !0), yt = (a) => g.state.subscribe({
1161
+ }) : N(a, c, !0), ht = (a) => g.state.subscribe({
1162
1162
  next: (c) => {
1163
1163
  os(a.name, c.name, a.exact) && ss(c, a.formState || f, Fr, a.reRenderRoot) && a.callback({
1164
1164
  values: { ...n },
@@ -1167,26 +1167,26 @@ function cs(e = {}) {
1167
1167
  defaultValues: o
1168
1168
  });
1169
1169
  }
1170
- }).unsubscribe, vr = (a) => (i.mount = !0, y = {
1171
- ...y,
1170
+ }).unsubscribe, vr = (a) => (i.mount = !0, h = {
1171
+ ...h,
1172
1172
  ...a.formState
1173
- }, yt({
1173
+ }, ht({
1174
1174
  ...a,
1175
- formState: y
1176
- })), Be = (a, c = {}) => {
1177
- for (const u of a ? ve(a) : l.mount)
1178
- l.mount.delete(u), l.array.delete(u), c.keepValue || (I(s, u), I(n, u)), !c.keepError && I(t.errors, u), !c.keepDirty && I(t.dirtyFields, u), !c.keepTouched && I(t.touchedFields, u), !c.keepIsValidating && I(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && I(o, u);
1175
+ formState: h
1176
+ })), Le = (a, c = {}) => {
1177
+ for (const u of a ? be(a) : l.mount)
1178
+ l.mount.delete(u), l.array.delete(u), c.keepValue || (j(s, u), j(n, u)), !c.keepError && j(t.errors, u), !c.keepDirty && j(t.dirtyFields, u), !c.keepTouched && j(t.touchedFields, u), !c.keepIsValidating && j(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && j(o, u);
1179
1179
  g.state.next({
1180
1180
  values: W(n)
1181
1181
  }), g.state.next({
1182
1182
  ...t,
1183
- ...c.keepDirty ? { isDirty: ne() } : {}
1184
- }), !c.keepIsValid && h();
1185
- }, ht = ({ disabled: a, name: c }) => {
1186
- (J(a) && i.mount || a || l.disabled.has(c)) && (a ? l.disabled.add(c) : l.disabled.delete(c));
1187
- }, Oe = (a, c = {}) => {
1183
+ ...c.keepDirty ? { isDirty: J() } : {}
1184
+ }), !c.keepIsValid && m();
1185
+ }, gt = ({ disabled: a, name: c }) => {
1186
+ (Y(a) && i.mount || a || l.disabled.has(c)) && (a ? l.disabled.add(c) : l.disabled.delete(c));
1187
+ }, He = (a, c = {}) => {
1188
1188
  let u = v(s, a);
1189
- const b = J(c.disabled) || J(r.disabled);
1189
+ const S = Y(c.disabled) || Y(r.disabled);
1190
1190
  return D(s, a, {
1191
1191
  ...u || {},
1192
1192
  _f: {
@@ -1195,54 +1195,54 @@ function cs(e = {}) {
1195
1195
  mount: !0,
1196
1196
  ...c
1197
1197
  }
1198
- }), l.mount.add(a), u ? ht({
1199
- disabled: J(c.disabled) ? c.disabled : r.disabled,
1198
+ }), l.mount.add(a), u ? gt({
1199
+ disabled: Y(c.disabled) ? c.disabled : r.disabled,
1200
1200
  name: a
1201
- }) : C(a, !0, c.value), {
1202
- ...b ? { disabled: c.disabled || r.disabled } : {},
1201
+ }) : z(a, !0, c.value), {
1202
+ ...S ? { disabled: c.disabled || r.disabled } : {},
1203
1203
  ...r.progressive ? {
1204
1204
  required: !!c.required,
1205
- min: _e(c.min),
1206
- max: _e(c.max),
1207
- minLength: _e(c.minLength),
1208
- maxLength: _e(c.maxLength),
1209
- pattern: _e(c.pattern)
1205
+ min: pe(c.min),
1206
+ max: pe(c.max),
1207
+ minLength: pe(c.minLength),
1208
+ maxLength: pe(c.maxLength),
1209
+ pattern: pe(c.pattern)
1210
1210
  } : {},
1211
1211
  name: a,
1212
- onChange: ie,
1213
- onBlur: ie,
1212
+ onChange: ne,
1213
+ onBlur: ne,
1214
1214
  ref: (p) => {
1215
1215
  if (p) {
1216
- Oe(a, c), u = v(s, a);
1217
- const _ = B(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, k = Kr(_), R = u._f.refs || [];
1218
- if (k ? R.find((L) => L === _) : _ === u._f.ref)
1216
+ He(a, c), u = v(s, a);
1217
+ const _ = L(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, k = Kr(_), P = u._f.refs || [];
1218
+ if (k ? P.find((B) => B === _) : _ === u._f.ref)
1219
1219
  return;
1220
1220
  D(s, a, {
1221
1221
  _f: {
1222
1222
  ...u._f,
1223
1223
  ...k ? {
1224
1224
  refs: [
1225
- ...R.filter(Ie),
1225
+ ...P.filter(Ie),
1226
1226
  _,
1227
1227
  ...Array.isArray(v(o, a)) ? [{}] : []
1228
1228
  ],
1229
1229
  ref: { type: _.type, name: a }
1230
1230
  } : { ref: _ }
1231
1231
  }
1232
- }), C(a, !1, void 0, _);
1232
+ }), z(a, !1, void 0, _);
1233
1233
  } else
1234
- u = v(s, a, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Yt(l.array, a) && i.action) && l.unMount.add(a);
1234
+ u = v(s, a, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Xt(l.array, a) && i.action) && l.unMount.add(a);
1235
1235
  }
1236
1236
  };
1237
- }, He = () => r.shouldFocusError && be(s, ge, l.mount), br = (a) => {
1238
- J(a) && (g.state.next({ disabled: a }), be(s, (c, u) => {
1239
- const b = v(s, u);
1240
- b && (c.disabled = b._f.disabled || a, Array.isArray(b._f.refs) && b._f.refs.forEach((p) => {
1241
- p.disabled = b._f.disabled || a;
1237
+ }, Oe = () => r.shouldFocusError && Se(s, _e, l.mount), br = (a) => {
1238
+ Y(a) && (g.state.next({ disabled: a }), Se(s, (c, u) => {
1239
+ const S = v(s, u);
1240
+ S && (c.disabled = S._f.disabled || a, Array.isArray(S._f.refs) && S._f.refs.forEach((p) => {
1241
+ p.disabled = S._f.disabled || a;
1242
1242
  }));
1243
1243
  }, 0, !1));
1244
- }, gt = (a, c) => async (u) => {
1245
- let b;
1244
+ }, _t = (a, c) => async (u) => {
1245
+ let S;
1246
1246
  u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
1247
1247
  let p = W(n);
1248
1248
  if (g.state.next({
@@ -1251,51 +1251,51 @@ function cs(e = {}) {
1251
1251
  const { errors: _, values: k } = await M();
1252
1252
  t.errors = _, p = W(k);
1253
1253
  } else
1254
- await j(s);
1254
+ await U(s);
1255
1255
  if (l.disabled.size)
1256
1256
  for (const _ of l.disabled)
1257
- I(p, _);
1258
- if (I(t.errors, "root"), G(t.errors)) {
1257
+ j(p, _);
1258
+ if (j(t.errors, "root"), G(t.errors)) {
1259
1259
  g.state.next({
1260
1260
  errors: {}
1261
1261
  });
1262
1262
  try {
1263
1263
  await a(p, u);
1264
1264
  } catch (_) {
1265
- b = _;
1265
+ S = _;
1266
1266
  }
1267
1267
  } else
1268
- c && await c({ ...t.errors }, u), He(), setTimeout(He);
1268
+ c && await c({ ...t.errors }, u), Oe(), setTimeout(Oe);
1269
1269
  if (g.state.next({
1270
1270
  isSubmitted: !0,
1271
1271
  isSubmitting: !1,
1272
- isSubmitSuccessful: G(t.errors) && !b,
1272
+ isSubmitSuccessful: G(t.errors) && !S,
1273
1273
  submitCount: t.submitCount + 1,
1274
1274
  errors: t.errors
1275
- }), b)
1276
- throw b;
1275
+ }), S)
1276
+ throw S;
1277
1277
  }, Sr = (a, c = {}) => {
1278
- v(s, a) && (B(c.defaultValue) ? Z(a, W(v(o, a))) : (Z(a, c.defaultValue), D(o, a, W(c.defaultValue))), c.keepTouched || I(t.touchedFields, a), c.keepDirty || (I(t.dirtyFields, a), t.isDirty = c.defaultValue ? ne(a, W(v(o, a))) : ne()), c.keepError || (I(t.errors, a), f.isValid && h()), g.state.next({ ...t }));
1279
- }, _t = (a, c = {}) => {
1280
- const u = a ? W(a) : o, b = W(u), p = G(a), _ = p ? o : b;
1278
+ v(s, a) && (L(c.defaultValue) ? Q(a, W(v(o, a))) : (Q(a, c.defaultValue), D(o, a, W(c.defaultValue))), c.keepTouched || j(t.touchedFields, a), c.keepDirty || (j(t.dirtyFields, a), t.isDirty = c.defaultValue ? J(a, W(v(o, a))) : J()), c.keepError || (j(t.errors, a), f.isValid && m()), g.state.next({ ...t }));
1279
+ }, pt = (a, c = {}) => {
1280
+ const u = a ? W(a) : o, S = W(u), p = G(a), _ = p ? o : S;
1281
1281
  if (c.keepDefaultValues || (o = u), !c.keepValues) {
1282
1282
  if (c.keepDirtyValues) {
1283
1283
  const k = /* @__PURE__ */ new Set([
1284
1284
  ...l.mount,
1285
- ...Object.keys(he(o, n))
1285
+ ...Object.keys(ge(o, n))
1286
1286
  ]);
1287
- for (const R of Array.from(k))
1288
- v(t.dirtyFields, R) ? D(_, R, v(n, R)) : Z(R, v(_, R));
1287
+ for (const P of Array.from(k))
1288
+ v(t.dirtyFields, P) ? D(_, P, v(n, P)) : Q(P, v(_, P));
1289
1289
  } else {
1290
- if (ot && B(a))
1290
+ if (nt && L(a))
1291
1291
  for (const k of l.mount) {
1292
- const R = v(s, k);
1293
- if (R && R._f) {
1294
- const L = Array.isArray(R._f.refs) ? R._f.refs[0] : R._f.ref;
1295
- if (Re(L)) {
1296
- const Y = L.closest("form");
1297
- if (Y) {
1298
- Y.reset();
1292
+ const P = v(s, k);
1293
+ if (P && P._f) {
1294
+ const B = Array.isArray(P._f.refs) ? P._f.refs[0] : P._f.ref;
1295
+ if (Re(B)) {
1296
+ const ee = B.closest("form");
1297
+ if (ee) {
1298
+ ee.reset();
1299
1299
  break;
1300
1300
  }
1301
1301
  }
@@ -1303,7 +1303,7 @@ function cs(e = {}) {
1303
1303
  }
1304
1304
  if (c.keepFieldsRef)
1305
1305
  for (const k of l.mount)
1306
- Z(k, v(_, k));
1306
+ Q(k, v(_, k));
1307
1307
  else
1308
1308
  s = {};
1309
1309
  }
@@ -1325,17 +1325,17 @@ function cs(e = {}) {
1325
1325
  submitCount: c.keepSubmitCount ? t.submitCount : 0,
1326
1326
  isDirty: p ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !se(a, o)),
1327
1327
  isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
1328
- dirtyFields: p ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? he(o, n) : t.dirtyFields : c.keepDefaultValues && a ? he(o, a) : c.keepDirty ? t.dirtyFields : {},
1328
+ dirtyFields: p ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? ge(o, n) : t.dirtyFields : c.keepDefaultValues && a ? ge(o, a) : c.keepDirty ? t.dirtyFields : {},
1329
1329
  touchedFields: c.keepTouched ? t.touchedFields : {},
1330
1330
  errors: c.keepErrors ? t.errors : {},
1331
1331
  isSubmitSuccessful: c.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
1332
1332
  isSubmitting: !1,
1333
1333
  defaultValues: o
1334
1334
  });
1335
- }, pt = (a, c) => _t(oe(a) ? a(n) : a, c), xr = (a, c = {}) => {
1336
- const u = v(s, a), b = u && u._f;
1337
- if (b) {
1338
- const p = b.refs ? b.refs[0] : b.ref;
1335
+ }, vt = (a, c) => pt(oe(a) ? a(n) : a, c), xr = (a, c = {}) => {
1336
+ const u = v(s, a), S = u && u._f;
1337
+ if (S) {
1338
+ const p = S.refs ? S.refs[0] : S.ref;
1339
1339
  p.focus && (p.focus(), c.shouldSelect && oe(p.select) && p.select());
1340
1340
  }
1341
1341
  }, Fr = (a) => {
@@ -1343,30 +1343,30 @@ function cs(e = {}) {
1343
1343
  ...t,
1344
1344
  ...a
1345
1345
  };
1346
- }, vt = {
1346
+ }, bt = {
1347
1347
  control: {
1348
- register: Oe,
1349
- unregister: Be,
1350
- getFieldState: ft,
1351
- handleSubmit: gt,
1348
+ register: He,
1349
+ unregister: Le,
1350
+ getFieldState: yt,
1351
+ handleSubmit: _t,
1352
1352
  setError: mt,
1353
- _subscribe: yt,
1353
+ _subscribe: ht,
1354
1354
  _runSchema: M,
1355
- _focusError: He,
1355
+ _focusError: Oe,
1356
1356
  _getWatch: N,
1357
- _getDirty: ne,
1358
- _setValid: h,
1359
- _setFieldArray: E,
1360
- _setDisabledField: ht,
1361
- _setErrors: $,
1362
- _getFieldArray: P,
1363
- _reset: _t,
1357
+ _getDirty: J,
1358
+ _setValid: m,
1359
+ _setFieldArray: C,
1360
+ _setDisabledField: gt,
1361
+ _setErrors: E,
1362
+ _getFieldArray: R,
1363
+ _reset: pt,
1364
1364
  _resetDefaultValues: () => oe(r.defaultValues) && r.defaultValues().then((a) => {
1365
- pt(a, r.resetOptions), g.state.next({
1365
+ vt(a, r.resetOptions), g.state.next({
1366
1366
  isLoading: !1
1367
1367
  });
1368
1368
  }),
1369
- _removeUnmounted: te,
1369
+ _removeUnmounted: ae,
1370
1370
  _disableForm: br,
1371
1371
  _subjects: g,
1372
1372
  _proxyFormState: f,
@@ -1406,26 +1406,26 @@ function cs(e = {}) {
1406
1406
  },
1407
1407
  subscribe: vr,
1408
1408
  trigger: fe,
1409
- register: Oe,
1410
- handleSubmit: gt,
1409
+ register: He,
1410
+ handleSubmit: _t,
1411
1411
  watch: pr,
1412
- setValue: Z,
1413
- getValues: Fe,
1414
- reset: pt,
1412
+ setValue: Q,
1413
+ getValues: we,
1414
+ reset: vt,
1415
1415
  resetField: Sr,
1416
1416
  clearErrors: _r,
1417
- unregister: Be,
1417
+ unregister: Le,
1418
1418
  setError: mt,
1419
1419
  setFocus: xr,
1420
- getFieldState: ft
1420
+ getFieldState: yt
1421
1421
  };
1422
1422
  return {
1423
- ...vt,
1424
- formControl: vt
1423
+ ...bt,
1424
+ formControl: bt
1425
1425
  };
1426
1426
  }
1427
1427
  function us(e = {}) {
1428
- const r = z.useRef(void 0), t = z.useRef(void 0), [s, o] = z.useState({
1428
+ const r = $.useRef(void 0), t = $.useRef(void 0), [s, o] = $.useState({
1429
1429
  isDirty: !1,
1430
1430
  isValidating: !1,
1431
1431
  isLoading: oe(e.defaultValues),
@@ -1456,7 +1456,7 @@ function us(e = {}) {
1456
1456
  };
1457
1457
  }
1458
1458
  const n = r.current.control;
1459
- return n._options = e, lt(() => {
1459
+ return n._options = e, ct(() => {
1460
1460
  const i = n._subscribe({
1461
1461
  formState: n._proxyFormState,
1462
1462
  callback: () => o({ ...n._formState }),
@@ -1466,42 +1466,42 @@ function us(e = {}) {
1466
1466
  ...l,
1467
1467
  isReady: !0
1468
1468
  })), n._formState.isReady = !0, i;
1469
- }, [n]), z.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), z.useEffect(() => {
1469
+ }, [n]), $.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), $.useEffect(() => {
1470
1470
  e.mode && (n._options.mode = e.mode), e.reValidateMode && (n._options.reValidateMode = e.reValidateMode);
1471
- }, [n, e.mode, e.reValidateMode]), z.useEffect(() => {
1471
+ }, [n, e.mode, e.reValidateMode]), $.useEffect(() => {
1472
1472
  e.errors && (n._setErrors(e.errors), n._focusError());
1473
- }, [n, e.errors]), z.useEffect(() => {
1473
+ }, [n, e.errors]), $.useEffect(() => {
1474
1474
  e.shouldUnregister && n._subjects.state.next({
1475
1475
  values: n._getWatch()
1476
1476
  });
1477
- }, [n, e.shouldUnregister]), z.useEffect(() => {
1477
+ }, [n, e.shouldUnregister]), $.useEffect(() => {
1478
1478
  if (n._proxyFormState.isDirty) {
1479
1479
  const i = n._getDirty();
1480
1480
  i !== s.isDirty && n._subjects.state.next({
1481
1481
  isDirty: i
1482
1482
  });
1483
1483
  }
1484
- }, [n, s.isDirty]), z.useEffect(() => {
1484
+ }, [n, s.isDirty]), $.useEffect(() => {
1485
1485
  e.values && !se(e.values, t.current) ? (n._reset(e.values, {
1486
1486
  keepFieldsRef: !0,
1487
1487
  ...n._options.resetOptions
1488
1488
  }), t.current = e.values, o((i) => ({ ...i }))) : n._resetDefaultValues();
1489
- }, [n, e.values]), z.useEffect(() => {
1489
+ }, [n, e.values]), $.useEffect(() => {
1490
1490
  n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
1491
1491
  }), r.current.formState = tr(s, n), r.current;
1492
1492
  }
1493
- const Bt = (e, r, t) => {
1493
+ const Ht = (e, r, t) => {
1494
1494
  if (e && "reportValidity" in e) {
1495
1495
  const s = v(t, r);
1496
1496
  e.setCustomValidity(s && s.message || ""), e.reportValidity();
1497
1497
  }
1498
- }, tt = (e, r) => {
1498
+ }, rt = (e, r) => {
1499
1499
  for (const t in r.fields) {
1500
1500
  const s = r.fields[t];
1501
- s && s.ref && "reportValidity" in s.ref ? Bt(s.ref, t, e) : s && s.refs && s.refs.forEach((o) => Bt(o, t, e));
1501
+ s && s.ref && "reportValidity" in s.ref ? Ht(s.ref, t, e) : s && s.refs && s.refs.forEach((o) => Ht(o, t, e));
1502
1502
  }
1503
1503
  }, Ot = (e, r) => {
1504
- r.shouldUseNativeValidation && tt(e, r);
1504
+ r.shouldUseNativeValidation && rt(e, r);
1505
1505
  const t = {};
1506
1506
  for (const s in e) {
1507
1507
  const o = v(r.fields, s), n = Object.assign(e[s] || {}, { ref: o && o.ref });
@@ -1512,19 +1512,19 @@ const Bt = (e, r, t) => {
1512
1512
  }
1513
1513
  return t;
1514
1514
  }, ds = (e, r) => {
1515
- const t = Ht(r);
1516
- return e.some((s) => Ht(s).match(`^${t}\\.\\d+`));
1515
+ const t = Tt(r);
1516
+ return e.some((s) => Tt(s).match(`^${t}\\.\\d+`));
1517
1517
  };
1518
- function Ht(e) {
1518
+ function Tt(e) {
1519
1519
  return e.replace(/\]|\[/g, "");
1520
1520
  }
1521
1521
  function lr(e, r, t) {
1522
1522
  function s(l, d) {
1523
- var m;
1523
+ var y;
1524
1524
  Object.defineProperty(l, "_zod", {
1525
1525
  value: l._zod ?? {},
1526
1526
  enumerable: !1
1527
- }), (m = l._zod).traits ?? (m.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, d);
1527
+ }), (y = l._zod).traits ?? (y.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, d);
1528
1528
  for (const f in i.prototype)
1529
1529
  f in l || Object.defineProperty(l, f, { value: i.prototype[f].bind(l) });
1530
1530
  l._zod.constr = i, l._zod.def = d;
@@ -1535,16 +1535,16 @@ function lr(e, r, t) {
1535
1535
  Object.defineProperty(n, "name", { value: e });
1536
1536
  function i(l) {
1537
1537
  var d;
1538
- const m = t != null && t.Parent ? new n() : this;
1539
- s(m, l), (d = m._zod).deferred ?? (d.deferred = []);
1540
- for (const f of m._zod.deferred)
1538
+ const y = t != null && t.Parent ? new n() : this;
1539
+ s(y, l), (d = y._zod).deferred ?? (d.deferred = []);
1540
+ for (const f of y._zod.deferred)
1541
1541
  f();
1542
- return m;
1542
+ return y;
1543
1543
  }
1544
1544
  return Object.defineProperty(i, "init", { value: s }), Object.defineProperty(i, Symbol.hasInstance, {
1545
1545
  value: (l) => {
1546
- var d, m;
1547
- 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);
1546
+ var d, y;
1547
+ return t != null && t.Parent && l instanceof t.Parent ? !0 : (y = (d = l == null ? void 0 : l._zod) == null ? void 0 : d.traits) == null ? void 0 : y.has(e);
1548
1548
  }
1549
1549
  }), Object.defineProperty(i, "name", { value: e }), i;
1550
1550
  }
@@ -1553,23 +1553,23 @@ class fs extends Error {
1553
1553
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
1554
1554
  }
1555
1555
  }
1556
- const ms = {};
1556
+ const ys = {};
1557
1557
  function cr(e) {
1558
- return ms;
1558
+ return ys;
1559
1559
  }
1560
- function ys(e, r) {
1560
+ function ms(e, r) {
1561
1561
  return typeof r == "bigint" ? r.toString() : r;
1562
1562
  }
1563
1563
  const ur = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1564
1564
  };
1565
- function ze(e) {
1565
+ function $e(e) {
1566
1566
  return typeof e == "string" ? e : e == null ? void 0 : e.message;
1567
1567
  }
1568
1568
  function dr(e, r, t) {
1569
- var o, n, i, l, d, m;
1569
+ var o, n, i, l, d, y;
1570
1570
  const s = { ...e, path: e.path ?? [] };
1571
1571
  if (!e.message) {
1572
- const f = ze((i = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : i.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";
1572
+ const f = $e((i = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : i.call(n, e)) ?? $e((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? $e((d = t.customError) == null ? void 0 : d.call(t, e)) ?? $e((y = t.localeError) == null ? void 0 : y.call(t, e)) ?? "Invalid input";
1573
1573
  s.message = f;
1574
1574
  }
1575
1575
  return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
@@ -1581,11 +1581,11 @@ const fr = (e, r) => {
1581
1581
  }), Object.defineProperty(e, "issues", {
1582
1582
  value: r,
1583
1583
  enumerable: !1
1584
- }), e.message = JSON.stringify(r, ys, 2), Object.defineProperty(e, "toString", {
1584
+ }), e.message = JSON.stringify(r, ms, 2), Object.defineProperty(e, "toString", {
1585
1585
  value: () => e.message,
1586
1586
  enumerable: !1
1587
1587
  });
1588
- }, hs = lr("$ZodError", fr), mr = lr("$ZodError", fr, { Parent: Error }), gs = (e) => (r, t, s, o) => {
1588
+ }, hs = lr("$ZodError", fr), yr = lr("$ZodError", fr, { Parent: Error }), gs = (e) => (r, t, s, o) => {
1589
1589
  const n = s ? Object.assign(s, { async: !1 }) : { async: !1 }, i = r._zod.run({ value: t, issues: [] }, n);
1590
1590
  if (i instanceof Promise)
1591
1591
  throw new fs();
@@ -1594,7 +1594,7 @@ const fr = (e, r) => {
1594
1594
  throw ur(l, o == null ? void 0 : o.callee), l;
1595
1595
  }
1596
1596
  return i.value;
1597
- }, _s = /* @__PURE__ */ gs(mr), ps = (e) => async (r, t, s, o) => {
1597
+ }, _s = /* @__PURE__ */ gs(yr), ps = (e) => async (r, t, s, o) => {
1598
1598
  const n = s ? Object.assign(s, { async: !0 }) : { async: !0 };
1599
1599
  let i = r._zod.run({ value: t, issues: [] }, n);
1600
1600
  if (i instanceof Promise && (i = await i), i.issues.length) {
@@ -1602,8 +1602,8 @@ const fr = (e, r) => {
1602
1602
  throw ur(l, o == null ? void 0 : o.callee), l;
1603
1603
  }
1604
1604
  return i.value;
1605
- }, vs = /* @__PURE__ */ ps(mr);
1606
- function Tt(e, r) {
1605
+ }, vs = /* @__PURE__ */ ps(yr);
1606
+ function Mt(e, r) {
1607
1607
  try {
1608
1608
  var t = e();
1609
1609
  } catch (s) {
@@ -1619,12 +1619,12 @@ function bs(e, r) {
1619
1619
  t[i] = { message: l.message, type: l.code };
1620
1620
  } else t[i] = { message: n, type: o };
1621
1621
  if ("unionErrors" in s && s.unionErrors.forEach(function(f) {
1622
- return f.errors.forEach(function(y) {
1623
- return e.push(y);
1622
+ return f.errors.forEach(function(h) {
1623
+ return e.push(h);
1624
1624
  });
1625
1625
  }), r) {
1626
- var d = t[i].types, m = d && d[s.code];
1627
- t[i] = ct(i, r, t, o, m ? [].concat(m, s.message) : s.message);
1626
+ var d = t[i].types, y = d && d[s.code];
1627
+ t[i] = ut(i, r, t, o, y ? [].concat(y, s.message) : s.message);
1628
1628
  }
1629
1629
  e.shift();
1630
1630
  }
@@ -1638,12 +1638,12 @@ function Ss(e, r) {
1638
1638
  t[i] = { message: l.message, type: l.code };
1639
1639
  } else t[i] = { message: n, type: o };
1640
1640
  if (s.code === "invalid_union" && s.errors.forEach(function(f) {
1641
- return f.forEach(function(y) {
1642
- return e.push(y);
1641
+ return f.forEach(function(h) {
1642
+ return e.push(h);
1643
1643
  });
1644
1644
  }), r) {
1645
- var d = t[i].types, m = d && d[s.code];
1646
- t[i] = ct(i, r, t, o, m ? [].concat(m, s.message) : s.message);
1645
+ var d = t[i].types, y = d && d[s.code];
1646
+ t[i] = ut(i, r, t, o, y ? [].concat(y, s.message) : s.message);
1647
1647
  }
1648
1648
  e.shift();
1649
1649
  }
@@ -1654,9 +1654,9 @@ function xs(e, r, t) {
1654
1654
  return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
1655
1655
  })(e)) return function(s, o, n) {
1656
1656
  try {
1657
- return Promise.resolve(Tt(function() {
1657
+ return Promise.resolve(Mt(function() {
1658
1658
  return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(i) {
1659
- return n.shouldUseNativeValidation && tt({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : i };
1659
+ return n.shouldUseNativeValidation && rt({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : i };
1660
1660
  });
1661
1661
  }, function(i) {
1662
1662
  if ((function(l) {
@@ -1672,9 +1672,9 @@ function xs(e, r, t) {
1672
1672
  return "_zod" in s && typeof s._zod == "object";
1673
1673
  })(e)) return function(s, o, n) {
1674
1674
  try {
1675
- return Promise.resolve(Tt(function() {
1675
+ return Promise.resolve(Mt(function() {
1676
1676
  return Promise.resolve((t.mode === "sync" ? _s : vs)(e, s, r)).then(function(i) {
1677
- return n.shouldUseNativeValidation && tt({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : i };
1677
+ return n.shouldUseNativeValidation && rt({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : i };
1678
1678
  });
1679
1679
  }, function(i) {
1680
1680
  if ((function(l) {
@@ -1688,14 +1688,14 @@ function xs(e, r, t) {
1688
1688
  };
1689
1689
  throw new Error("Invalid input: not a Zod schema");
1690
1690
  }
1691
- const yr = z.createContext(null);
1691
+ const mr = $.createContext(null);
1692
1692
  function Fs() {
1693
- const e = z.useContext(yr);
1693
+ const e = $.useContext(mr);
1694
1694
  if (!e)
1695
1695
  throw new Error("useFormContext must be used within a Form component");
1696
1696
  return e;
1697
1697
  }
1698
- function Vs({
1698
+ function ws({
1699
1699
  onSubmit: e,
1700
1700
  children: r,
1701
1701
  schema: t,
@@ -1706,17 +1706,17 @@ function Vs({
1706
1706
  style: l,
1707
1707
  formProps: d
1708
1708
  }) {
1709
- const m = us({
1709
+ const y = us({
1710
1710
  resolver: t ? xs(t) : void 0,
1711
1711
  defaultValues: s,
1712
1712
  mode: o,
1713
1713
  reValidateMode: n
1714
- }), f = m.handleSubmit(e);
1715
- return /* @__PURE__ */ F(yr.Provider, { value: m, children: /* @__PURE__ */ F("form", { ...d, className: i, style: l, onSubmit: f, children: typeof r == "function" ? r(m) : r }) });
1714
+ }), f = y.handleSubmit(e);
1715
+ return /* @__PURE__ */ F(mr.Provider, { value: y, children: /* @__PURE__ */ F("form", { ...d, className: i, style: l, onSubmit: f, children: typeof r == "function" ? r(y) : r }) });
1716
1716
  }
1717
- const Uo = Vs, ws = "FormError-module__formError___kaUBn", ks = {
1718
- formError: ws
1719
- }, Cs = ({
1717
+ const qo = ws, Vs = "FormError-module__formError___kaUBn", Cs = {
1718
+ formError: Vs
1719
+ }, ks = ({
1720
1720
  // Color prop
1721
1721
  color: e,
1722
1722
  // Content
@@ -1727,14 +1727,14 @@ const Uo = Vs, ws = "FormError-module__formError___kaUBn", ks = {
1727
1727
  // Element-specific props
1728
1728
  divProps: o
1729
1729
  }) => {
1730
- const n = O(), i = {
1730
+ const n = H(), i = {
1731
1731
  "--form-error-margin-top": `calc(${n.fonts.rhythm} * 0.17)`,
1732
1732
  color: e || n.colors.error,
1733
1733
  ...s
1734
1734
  // Top level style prop overrides
1735
- }, l = [ks.formError, t].filter(Boolean).join(" ");
1735
+ }, l = [Cs.formError, t].filter(Boolean).join(" ");
1736
1736
  return /* @__PURE__ */ F("div", { ...o, className: l, style: i, role: "alert", "aria-live": "polite", children: r });
1737
- }, zs = "FormGroup-module__formGroup___aVI-B", $s = "FormGroup-module__inputWrapper___429QE", Es = "FormGroup-module__indented___t61iz", As = "FormGroup-module__disabled___W-tJ0", Ns = "FormGroup-module__required___mO3xA", ye = {
1737
+ }, zs = "FormGroup-module__formGroup___aVI-B", $s = "FormGroup-module__inputWrapper___429QE", Es = "FormGroup-module__indented___t61iz", As = "FormGroup-module__disabled___W-tJ0", Ns = "FormGroup-module__required___mO3xA", me = {
1738
1738
  formGroup: zs,
1739
1739
  inputWrapper: $s,
1740
1740
  indented: Es,
@@ -1755,37 +1755,37 @@ const Uo = Vs, ws = "FormError-module__formError___kaUBn", ks = {
1755
1755
  // Content
1756
1756
  children: d,
1757
1757
  // Style overrides
1758
- className: m,
1758
+ className: y,
1759
1759
  style: f,
1760
1760
  // Element-specific props
1761
- divProps: y
1761
+ divProps: h
1762
1762
  }) => {
1763
- const g = O(), x = [
1764
- ye.formGroup,
1765
- r ? ye.error : "",
1766
- e ? ye.disabled : "",
1767
- m
1768
- ].filter(Boolean).join(" "), V = {
1763
+ const g = H(), w = [
1764
+ me.formGroup,
1765
+ r ? me.error : "",
1766
+ e ? me.disabled : "",
1767
+ y
1768
+ ].filter(Boolean).join(" "), x = {
1769
1769
  "--form-group-margin-bottom": `calc(${g.fonts.rhythm} * 0.35)`,
1770
1770
  ...f
1771
- }, h = z.Children.map(d, (w) => {
1772
- if (z.isValidElement(w)) {
1773
- const E = {};
1774
- if (e && w.props.disabled === void 0 && (E.disabled = !0), r && w.props.error === void 0 && (E.error = !0), o && w.props.id === void 0 && (E.id = o), Object.keys(E).length > 0)
1775
- return z.cloneElement(w, E);
1771
+ }, m = $.Children.map(d, (V) => {
1772
+ if ($.isValidElement(V)) {
1773
+ const C = {};
1774
+ if (e && V.props.disabled === void 0 && (C.disabled = !0), r && V.props.error === void 0 && (C.error = !0), o && V.props.id === void 0 && (C.id = o), Object.keys(C).length > 0)
1775
+ return $.cloneElement(V, C);
1776
1776
  }
1777
- return w;
1777
+ return V;
1778
1778
  });
1779
- return /* @__PURE__ */ K("div", { ...y, className: x, style: V, children: [
1780
- n && /* @__PURE__ */ K(st, { htmlFor: o, disabled: e, error: r, ...l, children: [
1779
+ return /* @__PURE__ */ Z("div", { ...h, className: w, style: x, children: [
1780
+ n && /* @__PURE__ */ Z(ot, { htmlFor: o, disabled: e, error: r, ...l, children: [
1781
1781
  n,
1782
- t && /* @__PURE__ */ K("span", { className: ye.required, "aria-label": "required", children: [
1782
+ t && /* @__PURE__ */ Z("span", { className: me.required, "aria-label": "required", children: [
1783
1783
  " ",
1784
1784
  "*"
1785
1785
  ] })
1786
1786
  ] }),
1787
- /* @__PURE__ */ F("div", { className: `${ye.inputWrapper} ${s ? ye.indented : ""}`, children: h }),
1788
- r && i && /* @__PURE__ */ F(Cs, { children: i })
1787
+ /* @__PURE__ */ F("div", { className: `${me.inputWrapper} ${s ? me.indented : ""}`, children: m }),
1788
+ r && i && /* @__PURE__ */ F(ks, { children: i })
1789
1789
  ] });
1790
1790
  };
1791
1791
  function de({
@@ -1798,10 +1798,10 @@ function de({
1798
1798
  className: i,
1799
1799
  style: l,
1800
1800
  indent: d,
1801
- labelProps: m
1801
+ labelProps: y
1802
1802
  }) {
1803
1803
  const { control: f } = Fs(), {
1804
- field: y,
1804
+ field: h,
1805
1805
  fieldState: { error: g }
1806
1806
  } = Qr({
1807
1807
  name: e,
@@ -1820,23 +1820,23 @@ function de({
1820
1820
  className: i,
1821
1821
  style: l,
1822
1822
  indent: d,
1823
- labelProps: m,
1823
+ labelProps: y,
1824
1824
  children: s({
1825
- value: y.value,
1826
- onChange: y.onChange,
1827
- onBlur: y.onBlur,
1828
- name: y.name,
1825
+ value: h.value,
1826
+ onChange: h.onChange,
1827
+ onBlur: h.onBlur,
1828
+ name: h.name,
1829
1829
  error: !!g,
1830
1830
  indent: d
1831
1831
  })
1832
1832
  }
1833
1833
  );
1834
1834
  }
1835
- const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi", Ls = "Input-module__sizeLarge___4Boj3", Ue = {
1836
- input: Ds,
1837
- sizeSmall: Ps,
1838
- sizeLarge: Ls
1839
- }, Bs = ({
1835
+ const Ps = "Input-module__input___WjT81", Ds = "Input-module__sizeSmall___NFvsi", Bs = "Input-module__sizeLarge___4Boj3", Ue = {
1836
+ input: Ps,
1837
+ sizeSmall: Ds,
1838
+ sizeLarge: Bs
1839
+ }, Ls = ({
1840
1840
  color: e = "#000",
1841
1841
  disabled: r = !1,
1842
1842
  fontSize: t = "1em",
@@ -1847,7 +1847,7 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
1847
1847
  fontSize: t,
1848
1848
  opacity: r ? 0.3 : 1,
1849
1849
  placeholderOpacity: s
1850
- }), Os = ({
1850
+ }), Hs = ({
1851
1851
  // State props
1852
1852
  disabled: e = !1,
1853
1853
  error: r = !1,
@@ -1861,34 +1861,34 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
1861
1861
  placeholder: i,
1862
1862
  placeholderOpacity: l = 0.3,
1863
1863
  type: d = "text",
1864
- value: m = "",
1864
+ value: y = "",
1865
1865
  // Event handlers
1866
1866
  onChange: f,
1867
- onBlur: y,
1867
+ onBlur: h,
1868
1868
  // Standard React props
1869
1869
  className: g,
1870
- style: x,
1870
+ style: w,
1871
1871
  // Element-specific props
1872
- inputProps: V
1872
+ inputProps: x
1873
1873
  }) => {
1874
- const h = O(), w = h.colors.error, E = r ? w : t || h.colors.primary, S = Bs({
1875
- color: E,
1874
+ const m = H(), V = m.colors.error, C = r ? V : t || m.colors.primary, b = Ls({
1875
+ color: C,
1876
1876
  disabled: e,
1877
- fontSize: h.fonts.size,
1877
+ fontSize: m.fonts.size,
1878
1878
  placeholderOpacity: l
1879
- }), $ = {
1880
- "--placeholder-opacity": S.placeholderOpacity,
1881
- "--input-padding-small": `calc(${h.fonts.rhythm} * ${h.sizes.small.paddingVertical}) calc(${h.fonts.rhythm} * ${h.inputs.paddingHorizontal})`,
1882
- "--input-padding-large": `calc(${h.fonts.rhythm} * ${h.sizes.large.paddingVertical}) calc(${h.fonts.rhythm} * ${h.inputs.paddingHorizontal})`,
1883
- borderColor: S.borderColor,
1884
- borderWidth: h.border.width,
1885
- borderRadius: h.border.radius,
1886
- color: S.color,
1887
- fontSize: S.fontSize,
1888
- opacity: S.opacity,
1889
- ...x
1879
+ }), E = {
1880
+ "--placeholder-opacity": b.placeholderOpacity,
1881
+ "--input-padding-small": `calc(${m.fonts.rhythm} * ${m.sizes.small.paddingVertical}) calc(${m.fonts.rhythm} * ${m.inputs.paddingHorizontal})`,
1882
+ "--input-padding-large": `calc(${m.fonts.rhythm} * ${m.sizes.large.paddingVertical}) calc(${m.fonts.rhythm} * ${m.inputs.paddingHorizontal})`,
1883
+ borderColor: b.borderColor,
1884
+ borderWidth: m.border.width,
1885
+ borderRadius: m.border.radius,
1886
+ color: b.color,
1887
+ fontSize: b.fontSize,
1888
+ opacity: b.opacity,
1889
+ ...w
1890
1890
  // Top level style prop overrides
1891
- }, C = [
1891
+ }, z = [
1892
1892
  Ue.input,
1893
1893
  s === "small" ? Ue.sizeSmall : Ue.sizeLarge,
1894
1894
  g
@@ -1896,21 +1896,21 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
1896
1896
  return /* @__PURE__ */ F(
1897
1897
  "input",
1898
1898
  {
1899
- ...V,
1900
- className: C,
1899
+ ...x,
1900
+ className: z,
1901
1901
  disabled: e,
1902
1902
  id: o,
1903
1903
  name: n,
1904
1904
  onChange: f,
1905
- onBlur: y,
1905
+ onBlur: h,
1906
1906
  placeholder: i,
1907
1907
  type: d,
1908
- value: m,
1909
- style: $
1908
+ value: y,
1909
+ style: E
1910
1910
  }
1911
1911
  );
1912
1912
  };
1913
- function Wo({
1913
+ function Go({
1914
1914
  name: e,
1915
1915
  label: r,
1916
1916
  required: t,
@@ -1930,13 +1930,13 @@ function Wo({
1930
1930
  disabled: o,
1931
1931
  className: n,
1932
1932
  style: i,
1933
- children: ({ value: d, onChange: m, onBlur: f, name: y, error: g }) => /* @__PURE__ */ F(
1934
- Os,
1933
+ children: ({ value: d, onChange: y, onBlur: f, name: h, error: g }) => /* @__PURE__ */ F(
1934
+ Hs,
1935
1935
  {
1936
1936
  ...l,
1937
- name: y,
1937
+ name: h,
1938
1938
  value: d || "",
1939
- onChange: (x) => m(x.target.value),
1939
+ onChange: (w) => y(w.target.value),
1940
1940
  inputProps: { onBlur: f },
1941
1941
  error: g
1942
1942
  }
@@ -1944,8 +1944,8 @@ function Wo({
1944
1944
  }
1945
1945
  );
1946
1946
  }
1947
- const Hs = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall___HHFEM", Ms = "Textarea-module__sizeLarge___5a3sf", We = {
1948
- textarea: Hs,
1947
+ const Os = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall___HHFEM", Ms = "Textarea-module__sizeLarge___5a3sf", We = {
1948
+ textarea: Os,
1949
1949
  sizeSmall: Ts,
1950
1950
  sizeLarge: Ms
1951
1951
  }, js = ({
@@ -1971,33 +1971,33 @@ const Hs = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall
1971
1971
  placeholder: i,
1972
1972
  placeholderOpacity: l = 0.3,
1973
1973
  rows: d = 3,
1974
- value: m = "",
1974
+ value: y = "",
1975
1975
  // Event handlers
1976
1976
  onChange: f,
1977
- onBlur: y,
1977
+ onBlur: h,
1978
1978
  // Standard React props
1979
1979
  className: g,
1980
- style: x,
1980
+ style: w,
1981
1981
  // Element-specific props
1982
- textareaProps: V
1982
+ textareaProps: x
1983
1983
  }) => {
1984
- const h = O(), w = h.colors.error, E = r ? w : t || h.colors.primary, S = js({
1985
- color: E,
1984
+ const m = H(), V = m.colors.error, C = r ? V : t || m.colors.primary, b = js({
1985
+ color: C,
1986
1986
  disabled: e,
1987
1987
  placeholderOpacity: l
1988
- }), $ = {
1989
- "--placeholder-opacity": S.placeholderOpacity,
1990
- "--textarea-padding-small": `calc(${h.fonts.rhythm} * ${h.sizes.small.paddingVertical}) calc(${h.fonts.rhythm} * ${h.inputs.paddingHorizontal})`,
1991
- "--textarea-padding-large": `calc(${h.fonts.rhythm} * ${h.sizes.large.paddingVertical}) calc(${h.fonts.rhythm} * ${h.inputs.paddingHorizontal})`,
1992
- borderColor: S.borderColor,
1993
- borderWidth: h.border.width,
1994
- borderRadius: h.border.radius,
1995
- color: S.color,
1996
- fontSize: h.fonts.size,
1997
- opacity: S.opacity,
1998
- ...x
1988
+ }), E = {
1989
+ "--placeholder-opacity": b.placeholderOpacity,
1990
+ "--textarea-padding-small": `calc(${m.fonts.rhythm} * ${m.sizes.small.paddingVertical}) calc(${m.fonts.rhythm} * ${m.inputs.paddingHorizontal})`,
1991
+ "--textarea-padding-large": `calc(${m.fonts.rhythm} * ${m.sizes.large.paddingVertical}) calc(${m.fonts.rhythm} * ${m.inputs.paddingHorizontal})`,
1992
+ borderColor: b.borderColor,
1993
+ borderWidth: m.border.width,
1994
+ borderRadius: m.border.radius,
1995
+ color: b.color,
1996
+ fontSize: m.fonts.size,
1997
+ opacity: b.opacity,
1998
+ ...w
1999
1999
  // Top level style overrides
2000
- }, C = [
2000
+ }, z = [
2001
2001
  We.textarea,
2002
2002
  s === "small" ? We.sizeSmall : We.sizeLarge,
2003
2003
  g
@@ -2005,21 +2005,21 @@ const Hs = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall
2005
2005
  return /* @__PURE__ */ F(
2006
2006
  "textarea",
2007
2007
  {
2008
- ...V,
2009
- className: C,
2008
+ ...x,
2009
+ className: z,
2010
2010
  disabled: e,
2011
2011
  id: o,
2012
2012
  name: n,
2013
2013
  onChange: f,
2014
- onBlur: y,
2014
+ onBlur: h,
2015
2015
  placeholder: i,
2016
2016
  rows: d,
2017
- value: m,
2018
- style: $
2017
+ value: y,
2018
+ style: E
2019
2019
  }
2020
2020
  );
2021
2021
  };
2022
- function qo({
2022
+ function Zo({
2023
2023
  name: e,
2024
2024
  label: r,
2025
2025
  required: t,
@@ -2039,13 +2039,13 @@ function qo({
2039
2039
  disabled: o,
2040
2040
  className: n,
2041
2041
  style: i,
2042
- children: ({ value: d, onChange: m, onBlur: f, name: y, error: g }) => /* @__PURE__ */ F(
2042
+ children: ({ value: d, onChange: y, onBlur: f, name: h, error: g }) => /* @__PURE__ */ F(
2043
2043
  Is,
2044
2044
  {
2045
2045
  ...l,
2046
- name: y,
2046
+ name: h,
2047
2047
  value: d || "",
2048
- onChange: (x) => m(x.target.value),
2048
+ onChange: (w) => y(w.target.value),
2049
2049
  onBlur: f,
2050
2050
  error: g
2051
2051
  }
@@ -2099,51 +2099,51 @@ const Us = "Select-module__select___cjdcr", Ws = "Select-module__sizeSmall___i1q
2099
2099
  value: l = "",
2100
2100
  // Event handlers
2101
2101
  onChange: d,
2102
- onBlur: m,
2102
+ onBlur: y,
2103
2103
  // Standard React props
2104
2104
  children: f,
2105
- className: y,
2105
+ className: h,
2106
2106
  style: g,
2107
2107
  // Element-specific props
2108
- selectProps: x
2108
+ selectProps: w
2109
2109
  }) => {
2110
- const V = O(), h = V.colors.error, w = r ? h : t || V.colors.primary, E = Gs({
2111
- color: w,
2110
+ const x = H(), m = x.colors.error, V = r ? m : t || x.colors.primary, C = Gs({
2111
+ color: V,
2112
2112
  disabled: e
2113
- }), S = {
2114
- "--select-padding-small": `calc(${V.fonts.rhythm} * ${V.sizes.small.paddingVertical}) calc(${V.fonts.rhythm} * 1.2) calc(${V.fonts.rhythm} * ${V.sizes.small.paddingVertical}) calc(${V.fonts.rhythm} * ${V.inputs.paddingHorizontal})`,
2115
- "--select-padding-large": `calc(${V.fonts.rhythm} * ${V.sizes.large.paddingVertical}) calc(${V.fonts.rhythm} * 1.4) calc(${V.fonts.rhythm} * ${V.sizes.large.paddingVertical}) calc(${V.fonts.rhythm} * ${V.inputs.paddingHorizontal})`,
2116
- backgroundImage: E.backgroundImage,
2113
+ }), b = {
2114
+ "--select-padding-small": `calc(${x.fonts.rhythm} * ${x.sizes.small.paddingVertical}) calc(${x.fonts.rhythm} * 1.2) calc(${x.fonts.rhythm} * ${x.sizes.small.paddingVertical}) calc(${x.fonts.rhythm} * ${x.inputs.paddingHorizontal})`,
2115
+ "--select-padding-large": `calc(${x.fonts.rhythm} * ${x.sizes.large.paddingVertical}) calc(${x.fonts.rhythm} * 1.4) calc(${x.fonts.rhythm} * ${x.sizes.large.paddingVertical}) calc(${x.fonts.rhythm} * ${x.inputs.paddingHorizontal})`,
2116
+ backgroundImage: C.backgroundImage,
2117
2117
  backgroundPosition: "right center",
2118
2118
  backgroundRepeat: "no-repeat",
2119
2119
  backgroundSize: "auto 85%",
2120
2120
  backgroundColor: "transparent",
2121
- borderColor: E.borderColor,
2122
- borderWidth: V.border.width,
2123
- borderRadius: V.border.radius,
2124
- color: E.color,
2125
- cursor: E.cursor,
2126
- fontSize: V.fonts.size,
2127
- opacity: E.opacity,
2121
+ borderColor: C.borderColor,
2122
+ borderWidth: x.border.width,
2123
+ borderRadius: x.border.radius,
2124
+ color: C.color,
2125
+ cursor: C.cursor,
2126
+ fontSize: x.fonts.size,
2127
+ opacity: C.opacity,
2128
2128
  ...g
2129
2129
  // Top level style overrides
2130
- }, $ = [
2130
+ }, E = [
2131
2131
  qe.select,
2132
2132
  s === "small" ? qe.sizeSmall : qe.sizeLarge,
2133
- y
2133
+ h
2134
2134
  ].filter(Boolean).join(" ");
2135
- return /* @__PURE__ */ K(
2135
+ return /* @__PURE__ */ Z(
2136
2136
  "select",
2137
2137
  {
2138
- ...x,
2139
- className: $,
2138
+ ...w,
2139
+ className: E,
2140
2140
  disabled: e,
2141
2141
  id: o,
2142
2142
  name: n,
2143
2143
  onChange: d,
2144
- onBlur: m,
2144
+ onBlur: y,
2145
2145
  value: l,
2146
- style: S,
2146
+ style: b,
2147
2147
  children: [
2148
2148
  i !== "" && /* @__PURE__ */ F("option", { disabled: !0, value: "", children: i }),
2149
2149
  f
@@ -2151,7 +2151,7 @@ const Us = "Select-module__select___cjdcr", Ws = "Select-module__sizeSmall___i1q
2151
2151
  }
2152
2152
  );
2153
2153
  };
2154
- function Go({
2154
+ function Qo({
2155
2155
  name: e,
2156
2156
  label: r,
2157
2157
  required: t,
@@ -2172,22 +2172,22 @@ function Go({
2172
2172
  disabled: o,
2173
2173
  className: n,
2174
2174
  style: i,
2175
- children: ({ value: m, onChange: f, onBlur: y, name: g, error: x }) => /* @__PURE__ */ F(
2175
+ children: ({ value: y, onChange: f, onBlur: h, name: g, error: w }) => /* @__PURE__ */ F(
2176
2176
  Zs,
2177
2177
  {
2178
2178
  ...d,
2179
2179
  name: g,
2180
- value: m || "",
2181
- onChange: (V) => f(V.target.value),
2182
- onBlur: y,
2183
- error: x,
2180
+ value: y || "",
2181
+ onChange: (x) => f(x.target.value),
2182
+ onBlur: h,
2183
+ error: w,
2184
2184
  children: l
2185
2185
  }
2186
2186
  )
2187
2187
  }
2188
2188
  );
2189
2189
  }
2190
- function Zo({
2190
+ function Ko({
2191
2191
  name: e,
2192
2192
  required: r,
2193
2193
  rules: t,
@@ -2205,13 +2205,13 @@ function Zo({
2205
2205
  disabled: s,
2206
2206
  className: o,
2207
2207
  style: n,
2208
- children: ({ value: l, onChange: d, name: m, error: f }) => /* @__PURE__ */ F(
2209
- Je,
2208
+ children: ({ value: l, onChange: d, name: y, error: f }) => /* @__PURE__ */ F(
2209
+ Ye,
2210
2210
  {
2211
2211
  ...i,
2212
- name: m,
2212
+ name: y,
2213
2213
  checked: !!l,
2214
- onChange: (y) => d(y.target.checked),
2214
+ onChange: (h) => d(h.target.checked),
2215
2215
  error: f
2216
2216
  }
2217
2217
  )
@@ -2222,7 +2222,7 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
2222
2222
  container: Qs,
2223
2223
  svg: Ks,
2224
2224
  label: Js
2225
- }, Xs = ({
2225
+ }, Ys = ({
2226
2226
  color: e = "#000",
2227
2227
  disabled: r = !1
2228
2228
  }) => ({
@@ -2243,65 +2243,65 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
2243
2243
  label: l,
2244
2244
  labelStyle: d,
2245
2245
  // Style overrides
2246
- className: m,
2246
+ className: y,
2247
2247
  style: f,
2248
2248
  // Element-specific props
2249
- divProps: y
2249
+ divProps: h
2250
2250
  }) => {
2251
- const g = O(), x = n || Kt(), V = g.colors.error, h = s ? V : e || g.colors.primary, w = Xs({
2252
- color: h,
2251
+ const g = H(), w = n || Kt(), x = g.colors.error, m = s ? x : e || g.colors.primary, V = Ys({
2252
+ color: m,
2253
2253
  disabled: t
2254
- }), E = (M) => {
2254
+ }), C = (M) => {
2255
2255
  t || i(M);
2256
- }, S = {
2257
- cursor: w.cursor,
2256
+ }, b = {
2257
+ cursor: V.cursor,
2258
2258
  fontSize: g.fonts.size,
2259
- opacity: w.opacity,
2259
+ opacity: V.opacity,
2260
2260
  ...f
2261
2261
  // Top level style overrides
2262
- }, $ = {
2262
+ }, E = {
2263
2263
  width: "1em"
2264
- }, C = {
2264
+ }, z = {
2265
2265
  fill: "transparent",
2266
2266
  strokeWidth: "12.5",
2267
- stroke: w.radioColor
2267
+ stroke: V.radioColor
2268
2268
  }, A = {
2269
- fill: w.radioColor
2270
- }, H = [Ge.container, m].filter(Boolean).join(" ");
2271
- return /* @__PURE__ */ K("div", { ...y, className: H, style: S, children: [
2269
+ fill: V.radioColor
2270
+ }, O = [Ge.container, y].filter(Boolean).join(" ");
2271
+ return /* @__PURE__ */ Z("div", { ...h, className: O, style: b, children: [
2272
2272
  /* @__PURE__ */ F(
2273
2273
  "input",
2274
2274
  {
2275
- id: x,
2275
+ id: w,
2276
2276
  checked: r,
2277
2277
  disabled: t,
2278
2278
  name: o,
2279
- onChange: (M) => E({ target: { checked: M.target.checked, name: o, type: "radio" } }),
2279
+ onChange: (M) => C({ target: { checked: M.target.checked, name: o, type: "radio" } }),
2280
2280
  style: { display: "none" },
2281
2281
  type: "radio"
2282
2282
  }
2283
2283
  ),
2284
- /* @__PURE__ */ K(
2284
+ /* @__PURE__ */ Z(
2285
2285
  "svg",
2286
2286
  {
2287
2287
  xmlns: "http://www.w3.org/2000/svg",
2288
2288
  viewBox: "0 0 100 100",
2289
- onClick: () => E({ target: { checked: !r, name: o, type: "radio" } }),
2289
+ onClick: () => C({ target: { checked: !r, name: o, type: "radio" } }),
2290
2290
  className: Ge.svg,
2291
- style: $,
2291
+ style: E,
2292
2292
  children: [
2293
- /* @__PURE__ */ F("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: C }),
2293
+ /* @__PURE__ */ F("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: z }),
2294
2294
  r && /* @__PURE__ */ F("circle", { cx: "50", cy: "50", r: "25", style: A })
2295
2295
  ]
2296
2296
  }
2297
2297
  ),
2298
2298
  l && /* @__PURE__ */ F(
2299
- st,
2299
+ ot,
2300
2300
  {
2301
- htmlFor: x,
2301
+ htmlFor: w,
2302
2302
  className: Ge.label,
2303
2303
  style: { paddingBottom: 0, ...d },
2304
- color: w.radioColor,
2304
+ color: V.radioColor,
2305
2305
  disabled: t,
2306
2306
  error: s,
2307
2307
  children: l
@@ -2309,7 +2309,7 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
2309
2309
  )
2310
2310
  ] });
2311
2311
  };
2312
- function Qo({
2312
+ function Jo({
2313
2313
  name: e,
2314
2314
  label: r,
2315
2315
  required: t,
@@ -2329,12 +2329,12 @@ function Qo({
2329
2329
  disabled: o,
2330
2330
  className: n,
2331
2331
  style: i,
2332
- children: ({ value: m, onChange: f, name: y, error: g }) => /* @__PURE__ */ F(
2332
+ children: ({ value: y, onChange: f, name: h, error: g }) => /* @__PURE__ */ F(
2333
2333
  hr,
2334
2334
  {
2335
2335
  ...d,
2336
- name: y,
2337
- checked: m === l,
2336
+ name: h,
2337
+ checked: y === l,
2338
2338
  onChange: () => f(l),
2339
2339
  error: g,
2340
2340
  label: r
@@ -2343,7 +2343,7 @@ function Qo({
2343
2343
  }
2344
2344
  );
2345
2345
  }
2346
- function Ko({
2346
+ function Yo({
2347
2347
  name: e,
2348
2348
  label: r,
2349
2349
  required: t,
@@ -2368,22 +2368,22 @@ function Ko({
2368
2368
  marginBottom: ".25em"
2369
2369
  }
2370
2370
  },
2371
- children: ({ value: d, onChange: m, name: f, error: y }) => /* @__PURE__ */ F(Se, { children: s.map((g) => /* @__PURE__ */ F(
2371
+ children: ({ value: d, onChange: y, name: f, error: h }) => /* @__PURE__ */ F(xe, { children: s.map((g) => /* @__PURE__ */ F(
2372
2372
  hr,
2373
2373
  {
2374
2374
  name: f,
2375
2375
  checked: d === g.value,
2376
- onChange: () => m(g.value),
2376
+ onChange: () => y(g.value),
2377
2377
  label: g.label,
2378
2378
  disabled: o || g.disabled,
2379
- error: y
2379
+ error: h
2380
2380
  },
2381
2381
  g.value
2382
2382
  )) })
2383
2383
  }
2384
2384
  );
2385
2385
  }
2386
- function Jo({
2386
+ function Xo({
2387
2387
  name: e,
2388
2388
  label: r,
2389
2389
  required: t,
@@ -2409,40 +2409,40 @@ function Jo({
2409
2409
  marginBottom: ".25em"
2410
2410
  }
2411
2411
  },
2412
- children: ({ value: m, onChange: f, name: y, error: g }) => {
2413
- const x = Array.isArray(m) ? m : [], V = (h, w) => {
2414
- f(w ? [...x, h] : x.filter((E) => E !== h));
2412
+ children: ({ value: y, onChange: f, name: h, error: g }) => {
2413
+ const w = Array.isArray(y) ? y : [], x = (m, V) => {
2414
+ f(V ? [...w, m] : w.filter((C) => C !== m));
2415
2415
  };
2416
- return /* @__PURE__ */ F(Se, { children: s ? s.map((h) => /* @__PURE__ */ F(
2417
- Je,
2416
+ return /* @__PURE__ */ F(xe, { children: s ? s.map((m) => /* @__PURE__ */ F(
2417
+ Ye,
2418
2418
  {
2419
- name: `${y}[]`,
2420
- checked: x.includes(h.value),
2421
- onChange: (w) => V(h.value, w.target.checked),
2422
- label: h.label,
2423
- disabled: n || h.disabled,
2419
+ name: `${h}[]`,
2420
+ checked: w.includes(m.value),
2421
+ onChange: (V) => x(m.value, V.target.checked),
2422
+ label: m.label,
2423
+ disabled: n || m.disabled,
2424
2424
  error: g
2425
2425
  },
2426
- h.value
2427
- )) : z.Children.map(o, (h) => {
2428
- if (z.isValidElement(h) && h.type === Je) {
2429
- const w = h.props.value || h.props.name;
2430
- return z.cloneElement(h, {
2431
- name: `${y}[]`,
2432
- checked: x.includes(w),
2433
- onChange: (E) => V(w, E.target.checked),
2434
- error: g || h.props.error,
2435
- disabled: n || h.props.disabled
2426
+ m.value
2427
+ )) : $.Children.map(o, (m) => {
2428
+ if ($.isValidElement(m) && m.type === Ye) {
2429
+ const V = m.props.value || m.props.name;
2430
+ return $.cloneElement(m, {
2431
+ name: `${h}[]`,
2432
+ checked: w.includes(V),
2433
+ onChange: (C) => x(V, C.target.checked),
2434
+ error: g || m.props.error,
2435
+ disabled: n || m.props.disabled
2436
2436
  });
2437
2437
  }
2438
- return h;
2438
+ return m;
2439
2439
  }) });
2440
2440
  }
2441
2441
  }
2442
2442
  );
2443
2443
  }
2444
- const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line___gybZM", to = "Hamburger-module__open___gRswh", pe = {
2445
- hamburger: Ys,
2444
+ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line___gybZM", to = "Hamburger-module__open___gRswh", ve = {
2445
+ hamburger: Xs,
2446
2446
  line: eo,
2447
2447
  open: to
2448
2448
  }, ro = ({
@@ -2451,11 +2451,13 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2451
2451
  visible: t,
2452
2452
  border: s
2453
2453
  }) => {
2454
- const o = O();
2454
+ const o = H(), n = e ? "1.5em" : "2em";
2455
2455
  return {
2456
2456
  "--hamburger-border-radius": (s == null ? void 0 : s.radius) || o.border.radius,
2457
2457
  color: r || "inherit",
2458
- display: t ? "flex" : "none"
2458
+ display: t ? "flex" : "none",
2459
+ width: n,
2460
+ height: n
2459
2461
  };
2460
2462
  }, so = ({
2461
2463
  // Color props
@@ -2473,34 +2475,29 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2473
2475
  className: l,
2474
2476
  style: d
2475
2477
  }) => {
2476
- const m = ro({
2478
+ const y = ro({
2477
2479
  compact: t,
2478
2480
  color: e,
2479
2481
  visible: r,
2480
2482
  border: n
2481
- }), f = o ? {
2482
- position: "fixed",
2483
- right: t ? "0.5em" : "1em",
2484
- top: "1em",
2485
- zIndex: 11
2486
- } : {}, y = [pe.hamburger, o ? pe.open : "", l].filter(Boolean).join(" ");
2487
- return /* @__PURE__ */ K(
2483
+ }), f = [ve.hamburger, o ? ve.open : "", l].filter(Boolean).join(" ");
2484
+ return /* @__PURE__ */ Z(
2488
2485
  "button",
2489
2486
  {
2490
2487
  ref: s,
2491
- className: y,
2488
+ className: f,
2492
2489
  onClick: () => i(!o),
2493
- style: { ...m, ...f, ...d },
2490
+ style: { ...y, ...d },
2494
2491
  "aria-label": "Toggle menu",
2495
2492
  "aria-expanded": o,
2496
2493
  children: [
2497
- /* @__PURE__ */ F("div", { className: pe.line }),
2498
- /* @__PURE__ */ F("div", { className: pe.line }),
2499
- /* @__PURE__ */ F("div", { className: pe.line })
2494
+ /* @__PURE__ */ F("div", { className: ve.line }),
2495
+ /* @__PURE__ */ F("div", { className: ve.line }),
2496
+ /* @__PURE__ */ F("div", { className: ve.line })
2500
2497
  ]
2501
2498
  }
2502
2499
  );
2503
- }, oo = "Header-module__header___RUooH", no = "Header-module__container___t68M9", Mt = {
2500
+ }, oo = "Header-module__header___RUooH", no = "Header-module__container___t68M9", jt = {
2504
2501
  header: oo,
2505
2502
  container: no
2506
2503
  }, io = ({
@@ -2513,22 +2510,22 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2513
2510
  padding: i,
2514
2511
  margin: l,
2515
2512
  gap: d,
2516
- backgroundColor: m,
2513
+ backgroundColor: y,
2517
2514
  color: f
2518
2515
  } = {}) => {
2519
- const y = O();
2516
+ const h = H();
2520
2517
  return {
2521
- "--header-max-width": r || y.layout.maxWidth,
2518
+ "--header-max-width": r || h.layout.maxWidth,
2522
2519
  "--header-min-width": t,
2523
2520
  "--header-width": s,
2524
2521
  "--header-height": o,
2525
- "--header-padding": e ? n || y.layout.paddingSm : i || y.layout.padding,
2522
+ "--header-padding": e ? n || h.layout.paddingSm : i || h.layout.padding,
2526
2523
  "--header-margin": l,
2527
2524
  "--header-gap": d,
2528
- backgroundColor: m,
2525
+ backgroundColor: y,
2529
2526
  color: f
2530
2527
  };
2531
- }, ae = (e) => {
2528
+ }, ie = (e) => {
2532
2529
  const r = typeof window < "u" && typeof window.matchMedia == "function";
2533
2530
  return Er((n) => {
2534
2531
  if (!r) return () => {
@@ -2548,19 +2545,19 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2548
2545
  padding: i,
2549
2546
  paddingSm: l,
2550
2547
  margin: d,
2551
- gap: m,
2548
+ gap: y,
2552
2549
  breakpoint: f,
2553
- fixed: y = !1,
2550
+ fixed: h = !1,
2554
2551
  // Content
2555
2552
  children: g,
2556
2553
  // Style overrides
2557
- className: x,
2558
- style: V,
2554
+ className: w,
2555
+ style: x,
2559
2556
  // Element-specific props
2560
- headerProps: h
2557
+ headerProps: m
2561
2558
  }) => {
2562
- const w = O(), E = f || w.breakpoints.sm, { maxWidth: S, unit: $ } = Ae(E), C = ae(`(max-width: ${S}${$})`), A = io({
2563
- isSmallScreen: C,
2559
+ const V = H(), C = f || V.breakpoints.sm, { maxWidth: b, unit: E } = Ae(C), z = ie(`(max-width: ${b}${E})`), A = io({
2560
+ isSmallScreen: z,
2564
2561
  maxWidth: t,
2565
2562
  minWidth: s,
2566
2563
  width: o,
@@ -2568,126 +2565,148 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2568
2565
  paddingSm: l,
2569
2566
  padding: i,
2570
2567
  margin: d,
2571
- gap: m,
2568
+ gap: y,
2572
2569
  backgroundColor: e,
2573
2570
  color: r
2574
- }), H = [Mt.container, x].filter(Boolean).join(" "), M = y ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
2575
- return /* @__PURE__ */ F("header", { ...h, className: Mt.header, style: M, children: /* @__PURE__ */ F(
2571
+ }), O = [jt.container, w].filter(Boolean).join(" "), M = h ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
2572
+ return /* @__PURE__ */ F("header", { ...m, className: jt.header, style: M, children: /* @__PURE__ */ F(
2576
2573
  "div",
2577
2574
  {
2578
- className: H,
2579
- style: { ...A, ...V },
2575
+ className: O,
2576
+ style: { ...A, ...x },
2580
2577
  children: g
2581
2578
  }
2582
2579
  ) });
2583
- }, lo = "ResponsiveNav-module__nav___xOfv5", co = "ResponsiveNav-module__navMobile___h795P", uo = "ResponsiveNav-module__open___WDCAf", fo = "ResponsiveNav-module__navDesktop___9wscZ", $e = {
2580
+ }, lo = "ResponsiveNav-module__nav___xOfv5", co = "ResponsiveNav-module__navMobile___h795P", uo = "ResponsiveNav-module__navHeader___Me8bB", fo = "ResponsiveNav-module__compact___UhuAE", yo = "ResponsiveNav-module__open___WDCAf", mo = "ResponsiveNav-module__navDesktop___9wscZ", he = {
2584
2581
  nav: lo,
2585
2582
  navMobile: co,
2586
- open: uo,
2587
- navDesktop: fo
2588
- }, mo = ({
2583
+ navHeader: uo,
2584
+ compact: fo,
2585
+ open: yo,
2586
+ navDesktop: mo
2587
+ }, ho = ({
2589
2588
  isMobile: e,
2590
2589
  isCompact: r,
2591
- mobileBackground: t,
2592
- mobileColor: s,
2593
- mobileActiveBackground: o,
2594
- mobileActiveColor: n,
2595
- mobileButtonHoverColor: i
2590
+ mobile: t,
2591
+ desktop: s
2596
2592
  }) => {
2597
- const l = O();
2598
- return Pe(() => {
2599
- const { rhythm: d } = l.fonts;
2600
- return {
2601
- ...e ? {
2602
- "--mobile-nav-background": t || l.colors.accent,
2603
- "--mobile-nav-color": s || l.colors.primary,
2604
- "--mobile-nav-active-background": o || l.colors.primary,
2605
- "--mobile-nav-active-color": n || l.colors.accent,
2606
- "--mobile-nav-button-hover-text-color": i || t || l.colors.accent,
2607
- "--nav-padding-top": `calc(${d} * 3)`,
2608
- "--nav-link-padding": `calc(${d} * 0.35) calc(${d} * 2)`,
2609
- "--nav-button-margin": `calc(${d} * 0.5) calc(${d} * 1.4)`
2610
- } : {}
2611
- };
2612
- }, [
2613
- t,
2614
- s,
2615
- o,
2616
- n,
2617
- i,
2618
- l.colors.accent,
2619
- l.colors.primary,
2620
- l.fonts,
2621
- e,
2622
- r
2623
- ]);
2624
- }, Xo = ({
2625
- // Color props
2626
- mobileBackground: e,
2627
- mobileColor: r,
2628
- mobileActiveBackground: t,
2629
- mobileActiveColor: s,
2630
- mobileButtonHoverColor: o,
2631
- // Layout props
2632
- breakpoints: n,
2633
- // Content
2634
- children: i,
2635
- // Style overrides
2636
- className: l,
2637
- style: d,
2638
- // Element-specific props
2639
- navProps: m
2593
+ const o = H(), n = o.fonts.rhythm;
2594
+ return De(() => {
2595
+ if (e) {
2596
+ const i = (t == null ? void 0 : t.backgroundColor) || o.colors.primary, l = (t == null ? void 0 : t.color) || o.colors.secondary, d = (t == null ? void 0 : t.activeBackgroundColor) || o.colors.accent, y = (t == null ? void 0 : t.activeColor) || o.colors.primary, f = r || t != null && t.compact ? "1.5rem" : "2rem";
2597
+ return {
2598
+ navStyles: {
2599
+ backgroundColor: i,
2600
+ color: l,
2601
+ fontSize: f,
2602
+ ...t == null ? void 0 : t.style
2603
+ },
2604
+ linkActiveStyles: {
2605
+ backgroundColor: d,
2606
+ color: y
2607
+ },
2608
+ linkHoverStyles: {
2609
+ // No hover styles on mobile (touch devices)
2610
+ }
2611
+ };
2612
+ } else {
2613
+ const i = s == null ? void 0 : s.backgroundColor, l = (s == null ? void 0 : s.color) || o.fonts.color, d = (s == null ? void 0 : s.hoverOpacity) ?? 0.5;
2614
+ return {
2615
+ navStyles: {
2616
+ ...i && { backgroundColor: i },
2617
+ color: l,
2618
+ ...s == null ? void 0 : s.style
2619
+ },
2620
+ linkActiveStyles: {
2621
+ opacity: d
2622
+ },
2623
+ linkHoverStyles: {
2624
+ opacity: d
2625
+ }
2626
+ };
2627
+ }
2628
+ }, [e, r, t, s, o, n]);
2629
+ }, en = ({
2630
+ mobile: e,
2631
+ desktop: r,
2632
+ breakpoints: t,
2633
+ children: s,
2634
+ className: o,
2635
+ style: n,
2636
+ navProps: i
2640
2637
  }) => {
2641
- const [f, y] = rt(!1), g = xt(null), x = xt(null), h = { ...O().breakpoints, ...n }, { maxWidth: w, unit: E } = Ae(h.md), { maxWidth: S, unit: $ } = Ae(h.sm), C = ae(`(max-width: ${w}${E})`), A = ae(`(max-width: ${S}${$})`), H = mo({
2638
+ var J;
2639
+ const [l, d] = st(!1), y = Ft(null), f = Ft(null), h = H(), g = { ...h.breakpoints, ...t }, { maxWidth: w, unit: x } = Ae(g.md), { maxWidth: m, unit: V } = Ae(g.sm), C = ie(`(max-width: ${w}${x})`), b = ie(`(max-width: ${m}${V})`), { navStyles: E, linkActiveStyles: z, linkHoverStyles: A } = ho({
2642
2640
  isMobile: C,
2643
- isCompact: A,
2644
- mobileBackground: e,
2645
- mobileColor: r,
2646
- mobileActiveBackground: t,
2647
- mobileActiveColor: s,
2648
- mobileButtonHoverColor: o
2649
- });
2650
- qt(() => {
2651
- const j = (te) => {
2652
- !x.current || x.current.contains(te.target) || g.current && g.current.contains(te.target) || y(!1);
2641
+ isCompact: b,
2642
+ mobile: e,
2643
+ desktop: r
2644
+ }), O = {
2645
+ ...E,
2646
+ // Mobile active state colors
2647
+ ...z.backgroundColor && {
2648
+ "--mobile-active-bg": z.backgroundColor
2649
+ },
2650
+ ...z.color && { "--mobile-active-color": z.color },
2651
+ // Desktop hover opacity
2652
+ ...A.opacity !== void 0 && {
2653
+ "--desktop-hover-opacity": A.opacity
2654
+ }
2655
+ };
2656
+ Ke(() => {
2657
+ if (C && l) {
2658
+ const N = window.scrollY;
2659
+ return document.body.style.position = "fixed", document.body.style.top = `-${N}px`, document.body.style.width = "100%", () => {
2660
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, N);
2661
+ };
2662
+ }
2663
+ }, [C, l]), Ke(() => {
2664
+ const N = (R) => {
2665
+ !f.current || f.current.contains(R.target) || y.current && y.current.contains(R.target) || d(!1);
2653
2666
  };
2654
- return document.addEventListener("mousedown", j), () => {
2655
- document.removeEventListener("mousedown", j);
2667
+ return document.addEventListener("mousedown", N), () => {
2668
+ document.removeEventListener("mousedown", N);
2656
2669
  };
2657
- }, [g, x, y]);
2670
+ }, [y, f, d]);
2658
2671
  const M = [
2659
- $e.nav,
2660
- C ? $e.navMobile : $e.navDesktop,
2661
- C && f ? $e.open : "",
2662
- l
2663
- ].filter(Boolean).join(" "), ee = (j) => {
2672
+ he.nav,
2673
+ C ? he.navMobile : he.navDesktop,
2674
+ C && l ? he.open : "",
2675
+ C && (b || e != null && e.compact) ? he.compact : "",
2676
+ o
2677
+ ].filter(Boolean).join(" "), te = (N) => {
2664
2678
  if (!C) return;
2665
- j.target.closest("a, button") && y(!1);
2666
- };
2667
- return /* @__PURE__ */ K(Se, { children: [
2679
+ N.target.closest("a, button") && d(!1);
2680
+ }, U = C ? (e == null ? void 0 : e.content) || s : (r == null ? void 0 : r.content) || s, ae = l ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || h.colors.secondary : (J = e == null ? void 0 : e.hamburgerProps) == null ? void 0 : J.color;
2681
+ return /* @__PURE__ */ Z(xe, { children: [
2668
2682
  /* @__PURE__ */ F(
2669
2683
  so,
2670
2684
  {
2671
- hamburgerRef: g,
2685
+ hamburgerRef: y,
2672
2686
  visible: C,
2673
- compact: A,
2674
- open: f,
2675
- setOpen: y
2687
+ compact: b,
2688
+ open: l,
2689
+ setOpen: d,
2690
+ color: ae,
2691
+ ...e == null ? void 0 : e.hamburgerProps
2676
2692
  }
2677
2693
  ),
2678
- /* @__PURE__ */ F(
2694
+ /* @__PURE__ */ Z(
2679
2695
  "nav",
2680
2696
  {
2681
- ...m,
2682
- ref: x,
2697
+ ...i,
2698
+ ref: f,
2683
2699
  className: M,
2684
- style: { ...H, ...d },
2685
- onClickCapture: ee,
2686
- children: typeof i == "function" ? i({ setOpen: y }) : i
2700
+ style: { ...O, ...n },
2701
+ onClickCapture: te,
2702
+ children: [
2703
+ C && l && /* @__PURE__ */ F("div", { className: he.navHeader }),
2704
+ typeof U == "function" ? U({ setOpen: d }) : U
2705
+ ]
2687
2706
  }
2688
2707
  )
2689
2708
  ] });
2690
- }, yo = ({
2709
+ }, go = ({
2691
2710
  // Color props
2692
2711
  color: e,
2693
2712
  backgroundColor: r,
@@ -2699,7 +2718,7 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2699
2718
  // Element-specific props
2700
2719
  divProps: n
2701
2720
  }) => {
2702
- const i = O(), l = e || i.colors.primary, d = r || i.colors.secondary, m = /* @__PURE__ */ F(
2721
+ const i = H(), l = e || i.colors.primary, d = r || i.colors.secondary, y = /* @__PURE__ */ F(
2703
2722
  "div",
2704
2723
  {
2705
2724
  ...t ? void 0 : n,
@@ -2718,8 +2737,8 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2718
2737
  borderTop: `0.1em solid ${d}`
2719
2738
  }
2720
2739
  }
2721
- ), f = /* @__PURE__ */ K(Se, { children: [
2722
- m,
2740
+ ), f = /* @__PURE__ */ Z(xe, { children: [
2741
+ y,
2723
2742
  /* @__PURE__ */ F("style", { children: `
2724
2743
  @keyframes spin {
2725
2744
  0% { transform: rotate(0deg); }
@@ -2744,18 +2763,18 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2744
2763
  children: f
2745
2764
  }
2746
2765
  ) : f;
2747
- }, Yo = ({ children: e, loadingComponent: r }) => {
2748
- const [t, s] = rt(!1);
2749
- return qt(() => {
2766
+ }, tn = ({ children: e, loadingComponent: r }) => {
2767
+ const [t, s] = st(!1);
2768
+ return Ke(() => {
2750
2769
  requestAnimationFrame(() => {
2751
2770
  s(!0);
2752
2771
  });
2753
- }, []), t ? /* @__PURE__ */ F(Se, { children: e }) : r || /* @__PURE__ */ F(yo, {});
2754
- }, ho = "Stack-module__stack___yUU-B", go = "Stack-module__vertical___sKTyQ", _o = "Stack-module__horizontal___YsvtV", Ze = {
2755
- stack: ho,
2756
- vertical: go,
2757
- horizontal: _o
2758
- }, en = ({
2772
+ }, []), t ? /* @__PURE__ */ F(xe, { children: e }) : r || /* @__PURE__ */ F(go, {});
2773
+ }, _o = "Stack-module__stack___yUU-B", po = "Stack-module__vertical___sKTyQ", vo = "Stack-module__horizontal___YsvtV", Ze = {
2774
+ stack: _o,
2775
+ vertical: po,
2776
+ horizontal: vo
2777
+ }, rn = ({
2759
2778
  // Layout props
2760
2779
  direction: e = "column",
2761
2780
  // Content
@@ -2772,9 +2791,9 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2772
2791
  t
2773
2792
  ].filter(Boolean).join(" ");
2774
2793
  return /* @__PURE__ */ F("div", { ...o, className: n, style: s, children: r });
2775
- }, po = "ResponsiveSection-module__section___gBESK", vo = "ResponsiveSection-module__innerDiv___r1bky", jt = {
2776
- section: po,
2777
- innerDiv: vo
2794
+ }, bo = "ResponsiveSection-module__section___gBESK", So = "ResponsiveSection-module__innerDiv___r1bky", It = {
2795
+ section: bo,
2796
+ innerDiv: So
2778
2797
  }, gr = ({
2779
2798
  // Color props
2780
2799
  backgroundColor: e,
@@ -2787,39 +2806,39 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2787
2806
  padding: i,
2788
2807
  paddingSm: l,
2789
2808
  margin: d,
2790
- gap: m,
2809
+ gap: y,
2791
2810
  verticalRhythm: f = 3,
2792
2811
  // Content
2793
- children: y,
2812
+ children: h,
2794
2813
  // Style overrides
2795
2814
  className: g,
2796
- style: x,
2815
+ style: w,
2797
2816
  // Element-specific props
2798
- sectionProps: V
2817
+ sectionProps: x
2799
2818
  }) => {
2800
- const h = O(), w = ae(`(min-width: ${h.breakpoints.sm})`), E = {
2819
+ const m = H(), V = ie(`(min-width: ${m.breakpoints.sm})`), C = {
2801
2820
  backgroundColor: e,
2802
- color: r || h.fonts.color,
2821
+ color: r || m.fonts.color,
2803
2822
  margin: d,
2804
- ...x
2823
+ ...w
2805
2824
  // Top level style prop overrides
2806
- }, S = `calc(${h.fonts.rhythm} * ${f})`, $ = w ? i || h.layout.padding : l || h.layout.paddingSm, C = {
2807
- "--max-width": t || h.layout.maxWidth,
2825
+ }, b = `calc(${m.fonts.rhythm} * ${f})`, E = V ? i || m.layout.padding : l || m.layout.paddingSm, z = {
2826
+ "--max-width": t || m.layout.maxWidth,
2808
2827
  "--min-width": s,
2809
2828
  "--width": o,
2810
2829
  "--height": n,
2811
- "--section-padding": `${S} ${$}`,
2812
- "--gap": m
2813
- }, A = [jt.section, g].filter(Boolean).join(" ");
2814
- return /* @__PURE__ */ F("section", { ...V, className: A, style: E, children: /* @__PURE__ */ F("div", { className: jt.innerDiv, style: C, children: y }) });
2815
- }, bo = "Hero-module__hero___IB2tg", So = "Hero-module__content___rkkfQ", It = {
2816
- hero: bo,
2817
- content: So
2818
- }, xo = ({
2830
+ "--section-padding": `${b} ${E}`,
2831
+ "--gap": y
2832
+ }, A = [It.section, g].filter(Boolean).join(" ");
2833
+ return /* @__PURE__ */ F("section", { ...x, className: A, style: C, children: /* @__PURE__ */ F("div", { className: It.innerDiv, style: z, children: h }) });
2834
+ }, xo = "Hero-module__hero___IB2tg", Fo = "Hero-module__content___rkkfQ", Ut = {
2835
+ hero: xo,
2836
+ content: Fo
2837
+ }, wo = ({
2819
2838
  isMd: e = !1,
2820
2839
  isLg: r = !1,
2821
2840
  theme: t
2822
- }) => Pe(() => {
2841
+ }) => De(() => {
2823
2842
  const { rhythm: s } = t.fonts;
2824
2843
  let o = `calc(${s} * 2) 0`, n = "2rem", i = "1.125rem";
2825
2844
  return r ? (o = `calc(${s} * 4) 0`, n = "3.5rem", i = "1.5rem") : e && (o = `calc(${s} * 3.5) 0`, n = "3rem", i = "1.25rem"), {
@@ -2828,7 +2847,7 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2828
2847
  "--hero-p-font-size": i,
2829
2848
  "--hero-h1-margin-bottom": `calc(${s} * 0.7)`
2830
2849
  };
2831
- }, [e, r, t.fonts]), tn = ({
2850
+ }, [e, r, t.fonts]), sn = ({
2832
2851
  // Color props
2833
2852
  color: e,
2834
2853
  // Layout props
@@ -2840,7 +2859,7 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2840
2859
  style: o,
2841
2860
  ...n
2842
2861
  }) => {
2843
- const i = O(), l = [It.hero, s].filter(Boolean).join(" "), d = (r == null ? void 0 : r.md) || i.breakpoints.md, m = (r == null ? void 0 : r.lg) || i.breakpoints.lg, f = ae(`(min-width: ${d})`), y = ae(`(min-width: ${m})`), g = xo({ isMd: f, isLg: y, theme: i });
2862
+ const i = H(), l = [Ut.hero, s].filter(Boolean).join(" "), d = (r == null ? void 0 : r.md) || i.breakpoints.md, y = (r == null ? void 0 : r.lg) || i.breakpoints.lg, f = ie(`(min-width: ${d})`), h = ie(`(min-width: ${y})`), g = wo({ isMd: f, isLg: h, theme: i });
2844
2863
  return /* @__PURE__ */ F(
2845
2864
  gr,
2846
2865
  {
@@ -2848,13 +2867,13 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2848
2867
  color: e || i.fonts.color,
2849
2868
  style: { ...g, ...o },
2850
2869
  ...n,
2851
- children: /* @__PURE__ */ F("div", { className: It.content, children: t })
2870
+ children: /* @__PURE__ */ F("div", { className: Ut.content, children: t })
2852
2871
  }
2853
2872
  );
2854
- }, Fo = "Footer-module__footer___A76NF", Vo = "Footer-module__container___QneNs", Ut = {
2855
- footer: Fo,
2856
- container: Vo
2857
- }, wo = ({
2873
+ }, Vo = "Footer-module__footer___A76NF", Co = "Footer-module__container___QneNs", Wt = {
2874
+ footer: Vo,
2875
+ container: Co
2876
+ }, ko = ({
2858
2877
  isSmallScreen: e = !1,
2859
2878
  maxWidth: r,
2860
2879
  minWidth: t,
@@ -2864,22 +2883,22 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2864
2883
  padding: i,
2865
2884
  margin: l,
2866
2885
  gap: d,
2867
- backgroundColor: m,
2886
+ backgroundColor: y,
2868
2887
  color: f
2869
2888
  } = {}) => {
2870
- const y = O();
2889
+ const h = H();
2871
2890
  return {
2872
- maxWidth: r || y.layout.maxWidth,
2891
+ maxWidth: r || h.layout.maxWidth,
2873
2892
  minWidth: t,
2874
2893
  width: s,
2875
2894
  height: o,
2876
- padding: e ? n || y.layout.paddingSm : i || y.layout.padding,
2895
+ padding: e ? n || h.layout.paddingSm : i || h.layout.padding,
2877
2896
  margin: l,
2878
2897
  gap: d,
2879
- backgroundColor: m,
2880
- color: f || y.fonts.color
2898
+ backgroundColor: y,
2899
+ color: f || h.fonts.color
2881
2900
  };
2882
- }, ko = ({
2901
+ }, zo = ({
2883
2902
  // Color props
2884
2903
  backgroundColor: e,
2885
2904
  color: r,
@@ -2891,18 +2910,18 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2891
2910
  padding: i,
2892
2911
  paddingSm: l,
2893
2912
  margin: d,
2894
- gap: m,
2913
+ gap: y,
2895
2914
  breakPoint: f,
2896
2915
  // Content
2897
- children: y,
2916
+ children: h,
2898
2917
  // Style overrides
2899
2918
  className: g,
2900
- style: x,
2919
+ style: w,
2901
2920
  // Element-specific props
2902
- footerProps: V
2921
+ footerProps: x
2903
2922
  }) => {
2904
- const h = O(), w = f || h.breakpoints.sm, { maxWidth: E, unit: S } = Ae(w), $ = ae(`(max-width: ${E}${S})`), C = wo({
2905
- isSmallScreen: $,
2923
+ const m = H(), V = f || m.breakpoints.sm, { maxWidth: C, unit: b } = Ae(V), E = ie(`(max-width: ${C}${b})`), z = ko({
2924
+ isSmallScreen: E,
2906
2925
  maxWidth: t,
2907
2926
  minWidth: s,
2908
2927
  width: o,
@@ -2910,20 +2929,20 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2910
2929
  paddingSm: l,
2911
2930
  padding: i,
2912
2931
  margin: d,
2913
- gap: m,
2932
+ gap: y,
2914
2933
  backgroundColor: e,
2915
2934
  color: r
2916
- }), A = [Ut.container, g].filter(Boolean).join(" ");
2917
- return /* @__PURE__ */ F("footer", { ...V, className: Ut.footer, children: /* @__PURE__ */ F("div", { className: A, style: { ...C, ...x }, children: y }) });
2918
- }, Co = "FeatureCard-module__card___XQt66", zo = "FeatureCard-module__icon___dXJ92", $o = "FeatureCard-module__title___KxXyA", Eo = "FeatureCard-module__content___68xkw", Ee = {
2919
- card: Co,
2920
- icon: zo,
2921
- title: $o,
2922
- content: Eo
2923
- }, Ao = ({
2935
+ }), A = [Wt.container, g].filter(Boolean).join(" ");
2936
+ return /* @__PURE__ */ F("footer", { ...x, className: Wt.footer, children: /* @__PURE__ */ F("div", { className: A, style: { ...z, ...w }, children: h }) });
2937
+ }, $o = "FeatureCard-module__card___XQt66", Eo = "FeatureCard-module__icon___dXJ92", Ao = "FeatureCard-module__title___KxXyA", No = "FeatureCard-module__content___68xkw", Ee = {
2938
+ card: $o,
2939
+ icon: Eo,
2940
+ title: Ao,
2941
+ content: No
2942
+ }, Ro = ({
2924
2943
  isMd: e = !1,
2925
2944
  theme: r
2926
- }) => Pe(() => {
2945
+ }) => De(() => {
2927
2946
  const { rhythm: t } = r.fonts;
2928
2947
  return {
2929
2948
  "--feature-icon-font-size": e ? "3rem" : "2.5rem",
@@ -2932,7 +2951,7 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2932
2951
  "--feature-icon-margin-bottom": `calc(${t} * 0.7)`,
2933
2952
  "--feature-title-margin-bottom": `calc(${t} * 0.5)`
2934
2953
  };
2935
- }, [e, r.fonts]), rn = ({
2954
+ }, [e, r.fonts]), on = ({
2936
2955
  // Layout props
2937
2956
  breakpoint: e,
2938
2957
  // Content
@@ -2945,13 +2964,13 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2945
2964
  // Element-specific props
2946
2965
  divProps: i
2947
2966
  }) => {
2948
- const l = O(), d = [Ee.card, o].filter(Boolean).join(" "), m = e || l.breakpoints.md, f = ae(`(min-width: ${m})`), y = Ao({ isMd: f, theme: l });
2949
- return /* @__PURE__ */ K(
2967
+ const l = H(), d = [Ee.card, o].filter(Boolean).join(" "), y = e || l.breakpoints.md, f = ie(`(min-width: ${y})`), h = Ro({ isMd: f, theme: l });
2968
+ return /* @__PURE__ */ Z(
2950
2969
  "div",
2951
2970
  {
2952
2971
  ...i,
2953
2972
  className: d,
2954
- style: { ...y, ...n },
2973
+ style: { ...h, ...n },
2955
2974
  children: [
2956
2975
  r && /* @__PURE__ */ F("div", { className: Ee.icon, children: r }),
2957
2976
  /* @__PURE__ */ F("h3", { className: Ee.title, children: t }),
@@ -2959,14 +2978,14 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2959
2978
  ]
2960
2979
  }
2961
2980
  );
2962
- }, No = "FeatureGridSection-module__section___wZrbC", Ro = "FeatureGridSection-module__grid___iwPJv", Wt = {
2963
- section: No,
2964
- grid: Ro
2965
- }, Do = ({
2981
+ }, Po = "FeatureGridSection-module__section___wZrbC", Do = "FeatureGridSection-module__grid___iwPJv", qt = {
2982
+ section: Po,
2983
+ grid: Do
2984
+ }, Bo = ({
2966
2985
  columns: e,
2967
2986
  isMd: r = !1,
2968
2987
  isLg: t = !1
2969
- }) => Pe(() => r ? r && !t && (e === 3 || e === 4) ? {
2988
+ }) => De(() => r ? r && !t && (e === 3 || e === 4) ? {
2970
2989
  "--grid-template-columns": "repeat(2, 1fr)"
2971
2990
  } : {
2972
2991
  "--grid-template-columns": {
@@ -2977,7 +2996,7 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2977
2996
  }[e]
2978
2997
  } : {
2979
2998
  "--grid-template-columns": "1fr"
2980
- }, [e, r, t]), sn = ({
2999
+ }, [e, r, t]), nn = ({
2981
3000
  // Layout props
2982
3001
  columns: e = 3,
2983
3002
  breakpoints: r,
@@ -2989,19 +3008,19 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
2989
3008
  style: n,
2990
3009
  ...i
2991
3010
  }) => {
2992
- const l = O(), d = [Wt.section, o].filter(Boolean).join(" "), m = (r == null ? void 0 : r.md) || l.breakpoints.md, f = (r == null ? void 0 : r.lg) || l.breakpoints.lg, y = ae(`(min-width: ${m})`), g = ae(`(min-width: ${f})`), x = Do({ columns: e, isMd: y, isLg: g }), V = {
3011
+ const l = H(), d = [qt.section, o].filter(Boolean).join(" "), y = (r == null ? void 0 : r.md) || l.breakpoints.md, f = (r == null ? void 0 : r.lg) || l.breakpoints.lg, h = ie(`(min-width: ${y})`), g = ie(`(min-width: ${f})`), w = Bo({ columns: e, isMd: h, isLg: g }), x = {
2993
3012
  "--section-padding-vertical": `calc(${l.fonts.rhythm} * 2)`
2994
- }, h = {
2995
- ...x,
3013
+ }, m = {
3014
+ ...w,
2996
3015
  gap: t,
2997
3016
  ...n
2998
3017
  };
2999
- return /* @__PURE__ */ F(gr, { className: d, style: V, ...i, children: /* @__PURE__ */ F("div", { className: Wt.grid, style: h, children: s }) });
3000
- }, Po = "PageLayout-module__layoutContainer___diLdT", Lo = "PageLayout-module__content___h2mBr", Bo = "PageLayout-module__main___Sw7Pv", Qe = {
3001
- layoutContainer: Po,
3002
- content: Lo,
3003
- main: Bo
3004
- }, on = ({
3018
+ return /* @__PURE__ */ F(gr, { className: d, style: x, ...i, children: /* @__PURE__ */ F("div", { className: qt.grid, style: m, children: s }) });
3019
+ }, Lo = "PageLayout-module__layoutContainer___diLdT", Ho = "PageLayout-module__content___h2mBr", Oo = "PageLayout-module__main___Sw7Pv", Qe = {
3020
+ layoutContainer: Lo,
3021
+ content: Ho,
3022
+ main: Oo
3023
+ }, an = ({
3005
3024
  // Content
3006
3025
  header: e,
3007
3026
  footer: r,
@@ -3015,49 +3034,49 @@ const Ys = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
3015
3034
  divProps: l,
3016
3035
  mainProps: d
3017
3036
  }) => {
3018
- const m = [Qe.layoutContainer, s].filter(Boolean).join(" ");
3019
- return /* @__PURE__ */ K("div", { ...l, className: m, style: o, children: [
3020
- /* @__PURE__ */ K("div", { className: Qe.content, children: [
3037
+ const y = [Qe.layoutContainer, s].filter(Boolean).join(" ");
3038
+ return /* @__PURE__ */ Z("div", { ...l, className: y, style: o, children: [
3039
+ /* @__PURE__ */ Z("div", { className: Qe.content, children: [
3021
3040
  e && /* @__PURE__ */ F(ao, { ...n, children: e }),
3022
3041
  /* @__PURE__ */ F("main", { ...d, className: Qe.main, children: t })
3023
3042
  ] }),
3024
- r && /* @__PURE__ */ F(ko, { ...i, children: r })
3043
+ r && /* @__PURE__ */ F(zo, { ...i, children: r })
3025
3044
  ] });
3026
3045
  };
3027
3046
  export {
3028
- jo as Button,
3029
- Io as CSSReset,
3030
- Je as Checkbox,
3031
- rn as FeatureCard,
3032
- sn as FeatureGridSection,
3033
- ko as Footer,
3034
- Uo as Form,
3035
- Zo as FormCheckbox,
3036
- Jo as FormCheckboxGroup,
3037
- Cs as FormError,
3047
+ Uo as Button,
3048
+ Wo as CSSReset,
3049
+ Ye as Checkbox,
3050
+ on as FeatureCard,
3051
+ nn as FeatureGridSection,
3052
+ zo as Footer,
3053
+ qo as Form,
3054
+ Ko as FormCheckbox,
3055
+ Xo as FormCheckboxGroup,
3056
+ ks as FormError,
3038
3057
  de as FormField,
3039
3058
  Rs as FormGroup,
3040
- Wo as FormInput,
3041
- st as FormLabel,
3042
- Qo as FormRadio,
3043
- Ko as FormRadioGroup,
3044
- Go as FormSelect,
3045
- qo as FormTextarea,
3059
+ Go as FormInput,
3060
+ ot as FormLabel,
3061
+ Jo as FormRadio,
3062
+ Yo as FormRadioGroup,
3063
+ Qo as FormSelect,
3064
+ Zo as FormTextarea,
3046
3065
  so as Hamburger,
3047
3066
  ao as Header,
3048
- tn as Hero,
3049
- Os as Input,
3050
- yo as LoadingSpinner,
3051
- on as PageLayout,
3067
+ sn as Hero,
3068
+ Hs as Input,
3069
+ go as LoadingSpinner,
3070
+ an as PageLayout,
3052
3071
  hr as Radio,
3053
- Xo as ResponsiveNav,
3072
+ en as ResponsiveNav,
3054
3073
  gr as ResponsiveSection,
3055
3074
  Zs as Select,
3056
- en as Stack,
3057
- Yo as StyleLoader,
3075
+ rn as Stack,
3076
+ tn as StyleLoader,
3058
3077
  Is as Textarea,
3059
- Mo as ThemeProvider,
3078
+ Io as ThemeProvider,
3060
3079
  Ae as parseBreakpoint,
3061
3080
  Fs as useFormContext,
3062
- O as useTheme
3081
+ H as useTheme
3063
3082
  };