digital-rabbit-cl 2.1.1 → 2.2.0

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 (27) hide show
  1. package/dist/components/{NavItem/NavItem.d.ts → NavDropdown/NavDropdown.d.ts} +7 -5
  2. package/dist/components/NavDropdown/NavDropdown.d.ts.map +1 -0
  3. package/dist/components/NavDropdown/index.d.ts +3 -0
  4. package/dist/components/NavDropdown/index.d.ts.map +1 -0
  5. package/dist/components/NavLink/NavLink.d.ts +25 -0
  6. package/dist/components/NavLink/NavLink.d.ts.map +1 -0
  7. package/dist/components/NavLink/index.d.ts +5 -0
  8. package/dist/components/NavLink/index.d.ts.map +1 -0
  9. package/dist/components/NavLink/useNavLinkStyles.d.ts +18 -0
  10. package/dist/components/NavLink/useNavLinkStyles.d.ts.map +1 -0
  11. package/dist/components/Popover/Popover.d.ts.map +1 -1
  12. package/dist/components/Popover/usePanelAnimation.d.ts +7 -0
  13. package/dist/components/Popover/usePanelAnimation.d.ts.map +1 -0
  14. package/dist/components/Popover/usePopupPosition.d.ts +6 -0
  15. package/dist/components/Popover/usePopupPosition.d.ts.map +1 -0
  16. package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +5 -5
  17. package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
  18. package/dist/components/ResponsiveNav/useResponsiveNavStyles.d.ts +3 -4
  19. package/dist/components/ResponsiveNav/useResponsiveNavStyles.d.ts.map +1 -1
  20. package/dist/digital-rabbit-cl.es.js +1505 -1456
  21. package/dist/digital-rabbit-cl.umd.js +4 -4
  22. package/dist/index.d.ts +4 -2
  23. package/dist/index.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/dist/components/NavItem/NavItem.d.ts.map +0 -1
  26. package/dist/components/NavItem/index.d.ts +0 -3
  27. package/dist/components/NavItem/index.d.ts.map +0 -1
@@ -1,5 +1,5 @@
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;min-height:100%;text-align:left;text-transform:uppercase;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.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)}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavItem-module__trigger___og97w{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:700;gap:.375rem;padding:0;text-decoration:none}.NavItem-module__trigger___og97w:hover,.NavItem-module__triggerOpen___7lIFg{opacity:var(--desktop-hover-opacity, .5)}.NavItem-module__chevron___awf4c{align-items:center;display:inline-flex;transition:transform .2s ease}.NavItem-module__chevronOpen___ZtUGj{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.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
- (function(N,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(N=typeof globalThis<"u"?globalThis:N||self,h(N.DigitalRabbitCL={},N.jsxRuntime,N.React,N.ReactDOM))})(this,(function(N,h,p,je){"use strict";const ze={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},Lr=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const i=t||a.colors.primary,f=a.buttons.textColor;let d,u,g;n?(d="transparent",u=i,g=i,e&&(d=o||i,u=o||i,g=s||f)):(d=i,u=i,g=f,e&&(d=o||i,u=o||i,g=s||f));let m=1;return r?m=.3:e&&!o&&(m=.75),{backgroundColor:d,borderColor:u,color:g,opacity:m}};function vt(e,r){const t={...e};return $e(e)&&$e(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];$e(s)&&$e(n)?t[o]=vt(n,s):s!==void 0&&(t[o]=s)}),t}function $e(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const We={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},Ue={colors:We,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",paddingHorizontal:.35,primary:{textColor:We.secondary}},inputs:{paddingHorizontal:.27},sizes:{small:{paddingVertical:.07},large:{paddingVertical:.17}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"},modal:{backgroundColor:We.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},bt=p.createContext(Ue),Br=({theme:e,children:r})=>{const t=e?vt(Ue,e):Ue;return h.jsx(bt.Provider,{value:t,children:r})},j=()=>p.useContext(bt),St=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:i,style:f,buttonProps:d={},onClick:u,children:g})=>{const m=j(),[x,k]=p.useState(!1),F={...Lr({isActive:x,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:m}),fontSize:m.fonts.size,borderWidth:m.border.width,borderRadius:m.border.radius,"--button-padding-small":`calc(${m.fonts.rhythm} * ${m.sizes.small.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${m.fonts.rhythm} * ${m.sizes.large.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,...f},$=[ze.button,s==="small"?ze.sizeSmall:ze.sizeLarge,n?ze.outline:"",i].filter(Boolean).join(" ");return h.jsx("button",{...d,className:$,disabled:o,onClick:u,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),type:a,style:F,children:g})};var Ct=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Pr=new Uint8Array(16);function Or(){if(!Ct)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ct(Pr)}for(var kt=[],Ee=0;Ee<256;++Ee)kt[Ee]=(Ee+256).toString(16).substr(1);function Mr(e,r){var t=0,o=kt;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function wt(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Or)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Mr(s)}const qe={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Dr=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},Ft={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Hr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),Ae=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:i})=>{const f=j(),d=f.colors.error,u=t?d:e||f.colors.primary,g=Hr({color:u,disabled:r,fontSize:".85em"}),m={"--form-label-padding-bottom":`calc(${f.fonts.rhythm} * 0.17)`,color:g.color,fontSize:g.fontSize,opacity:g.opacity,cursor:g.cursor,...a},x=[Ft.label,r?Ft.disabled:"",n].filter(Boolean).join(" ");return h.jsx("label",{...i,className:x,htmlFor:o,style:m,children:s})},Ne=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:i,onChange:f,label:d,labelStyle:u,className:g,style:m,divProps:x})=>{const k=j(),_=i||wt(),F=k.colors.error,$=n?F:e||k.colors.primary,v=Dr({color:$,checkmarkColor:r,disabled:s,inverted:o}),z=O=>{s||f(O)},E={cursor:v.cursor,fontSize:k.fonts.size,opacity:v.opacity,...m},A={width:"1em"},D={fill:o&&t?v.checkboxColor:"transparent",strokeWidth:"25",stroke:v.checkboxColor},I={stroke:v.checkmarkColor,strokeWidth:"15",fill:"transparent"},K=[qe.container,g].filter(Boolean).join(" ");return h.jsxs("div",{...x,className:K,style:E,children:[h.jsx("input",{id:_,checked:t,disabled:s,onChange:O=>z({target:{checked:O.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>z({target:{checked:!t,name:a,type:"checkbox"}}),style:A,className:qe.svg,children:[h.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:D}),t&&h.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:I})]}),d&&h.jsx(Ae,{htmlFor:_,className:qe.label,style:{paddingBottom:0,...u},color:v.checkboxColor,disabled:s,error:n,children:d})]})},Tr=()=>{const e=j();return p.useLayoutEffect(()=>{const r=document.documentElement;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))},[e]),null};var Ce=e=>e.type==="checkbox",he=e=>e instanceof Date,te=e=>e==null;const Vt=e=>typeof e=="object";var G=e=>!te(e)&&!Array.isArray(e)&&Vt(e)&&!he(e),xt=e=>G(e)&&e.target?Ce(e.target)?e.target.checked:e.target.value:e,Ir=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zt=(e,r)=>e.has(Ir(r)),jr=e=>{const r=e.constructor&&e.constructor.prototype;return G(r)&&r.hasOwnProperty("isPrototypeOf")},Ge=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Q(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Ge&&(e instanceof Blob||o))&&(t||G(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!jr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=Q(e[s]));else return e;return r}var Le=e=>/^\w*$/.test(e),U=e=>e===void 0,Ze=e=>Array.isArray(e)?e.filter(Boolean):[],Qe=e=>Ze(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,r,t)=>{if(!r||!G(e))return t;const o=(Le(r)?[r]:Qe(r)).reduce((s,n)=>te(s)?s:s[n],e);return U(o)||o===e?U(e[r])?t:e[r]:o},re=e=>typeof e=="boolean",M=(e,r,t)=>{let o=-1;const s=Le(r)?[r]:Qe(r),n=s.length,a=n-1;for(;++o<n;){const i=s[o];let f=t;if(o!==a){const d=e[i];f=G(d)||Array.isArray(d)?d:isNaN(+s[o+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=f,e=e[i]}};const Be={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},le={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ue={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},$t=p.createContext(null);$t.displayName="HookFormContext";const Ke=()=>p.useContext($t);var Et=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==le.all&&(r._proxyFormState[a]=!o||le.all),t&&(t[a]=!0),e[a]}});return s};const Je=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Wr(e){const r=Ke(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,i]=p.useState(t._formState),f=p.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Je(()=>t._subscribe({name:s,formState:f.current,exact:n,callback:d=>{!o&&i({...t._formState,...d})}}),[s,o,n]),p.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),p.useMemo(()=>Et(a,t,f.current,!1),[a,t])}var oe=e=>typeof e=="string",Xe=(e,r,t,o,s)=>oe(e)?(o&&r.watch.add(e),C(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),C(t,n))):(o&&(r.watchAll=!0),t),Ye=e=>te(e)||!Vt(e);function ie(e,r,t=new WeakSet){if(Ye(e)||Ye(r))return e===r;if(he(e)&&he(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const i=r[n];if(he(a)&&he(i)||G(a)&&G(i)||Array.isArray(a)&&Array.isArray(i)?!ie(a,i,t):a!==i)return!1}}return!0}function Ur(e){const r=Ke(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:i}=e||{},f=p.useRef(s),d=p.useRef(i),u=p.useRef(void 0),g=p.useRef(t),m=p.useRef(o);d.current=i;const[x,k]=p.useState(()=>{const E=t._getWatch(o,f.current);return d.current?d.current(E):E}),_=p.useCallback(E=>{const A=Xe(o,t._names,E||t._formValues,!1,f.current);return d.current?d.current(A):A},[t._formValues,t._names,o]),F=p.useCallback(E=>{if(!n){const A=Xe(o,t._names,E||t._formValues,!1,f.current);if(d.current){const D=d.current(A);ie(D,u.current)||(k(D),u.current=D)}else k(A)}},[t._formValues,t._names,n,o]);Je(()=>((g.current!==t||!ie(m.current,o))&&(g.current=t,m.current=o,F()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:E=>{F(E.values)}})),[t,a,o,F]),p.useEffect(()=>t._removeUnmounted());const $=g.current!==t,v=m.current,z=p.useMemo(()=>{if(n)return null;const E=!$&&!ie(v,o);return $||E?_():null},[n,$,o,v,_]);return z!==null?z:x}function qr(e){const r=Ke(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,i=zt(s._names.array,t),f=p.useMemo(()=>C(s._formValues,t,C(s._defaultValues,t,a)),[s,t,a]),d=Ur({control:s,name:t,defaultValue:f,exact:!0}),u=Wr({control:s,name:t,exact:!0}),g=p.useRef(e),m=p.useRef(void 0),x=p.useRef(s.register(t,{...e.rules,value:d,...re(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const k=p.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!C(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!C(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!C(u.validatingFields,t)},error:{enumerable:!0,get:()=>C(u.errors,t)}}),[u,t]),_=p.useCallback(z=>x.current.onChange({target:{value:xt(z),name:t},type:Be.CHANGE}),[t]),F=p.useCallback(()=>x.current.onBlur({target:{value:C(s._formValues,t),name:t},type:Be.BLUR}),[t,s._formValues]),$=p.useCallback(z=>{const E=C(s._fields,t);E&&z&&(E._f.ref={focus:()=>z.focus&&z.focus(),select:()=>z.select&&z.select(),setCustomValidity:A=>z.setCustomValidity(A),reportValidity:()=>z.reportValidity()})},[s._fields,t]),v=p.useMemo(()=>({name:t,value:d,...re(o)||u.disabled?{disabled:u.disabled||o}:{},onChange:_,onBlur:F,ref:$}),[t,o,u.disabled,_,F,$,d]);return p.useEffect(()=>{const z=s._options.shouldUnregister||n,E=m.current;E&&E!==t&&!i&&s.unregister(E),s.register(t,{...g.current.rules,...re(g.current.disabled)?{disabled:g.current.disabled}:{}});const A=(D,I)=>{const K=C(s._fields,D);K&&K._f&&(K._f.mount=I)};if(A(t,!0),z){const D=Q(C(s._options.defaultValues,t,g.current.defaultValue));M(s._defaultValues,t,D),U(C(s._formValues,t))&&M(s._formValues,t,D)}return!i&&s.register(t),m.current=t,()=>{(i?z&&!s._state.action:z)?s.unregister(t):A(t,!1)}},[t,s,i,n]),p.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),p.useMemo(()=>({field:v,formState:u,fieldState:k}),[v,u,k])}var Re=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},ke=e=>Array.isArray(e)?e:[e],At=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Nt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&G(s)&&n){const a=Nt(s,n);G(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var ee=e=>G(e)&&!Object.keys(e).length,et=e=>e.type==="file",ce=e=>typeof e=="function",Pe=e=>{if(!Ge)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Lt=e=>e.type==="select-multiple",tt=e=>e.type==="radio",Gr=e=>tt(e)||Ce(e),rt=e=>Pe(e)&&e.isConnected;function Zr(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=U(e)?o++:e[r[o++]];return e}function Qr(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function Z(e,r){const t=Array.isArray(r)?r:Le(r)?[r]:Qe(r),o=t.length===1?e:Zr(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(G(o)&&ee(o)||Array.isArray(o)&&Qr(o))&&Z(e,t.slice(0,-1)),e}var Kr=e=>{for(const r in e)if(ce(e[r]))return!0;return!1};function Bt(e){return Array.isArray(e)||G(e)&&!Kr(e)}function ot(e,r={}){for(const t in e)Bt(e[t])?(r[t]=Array.isArray(e[t])?[]:{},ot(e[t],r[t])):U(e[t])||(r[t]=!0);return r}function pe(e,r,t){t||(t=ot(r));for(const o in e)Bt(e[o])?U(r)||Ye(t[o])?t[o]=ot(e[o],Array.isArray(e[o])?[]:{}):pe(e[o],te(r)?{}:r[o],t[o]):t[o]=!ie(e[o],r[o]);return t}const Pt={value:!1,isValid:!1},Ot={value:!0,isValid:!0};var Mt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?Ot:{value:e[0].value,isValid:!0}:Ot:Pt}return Pt},Dt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>U(e)?e:r?e===""?NaN:e&&+e:t&&oe(e)?new Date(e):o?o(e):e;const Ht={isValid:!1,value:null};var Tt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ht):Ht;function It(e){const r=e.ref;return et(r)?r.files:tt(r)?Tt(e.refs).value:Lt(r)?[...r.selectedOptions].map(({value:t})=>t):Ce(r)?Mt(e.refs).value:Dt(U(r.value)?e.ref.value:r.value,e)}var Jr=(e,r,t,o)=>{const s={};for(const n of e){const a=C(r,n);a&&M(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Oe=e=>e instanceof RegExp,we=e=>U(e)?e:Oe(e)?e.source:G(e)?Oe(e.value)?e.value.source:e.value:e,jt=e=>({isOnSubmit:!e||e===le.onSubmit,isOnBlur:e===le.onBlur,isOnChange:e===le.onChange,isOnAll:e===le.all,isOnTouch:e===le.onTouched});const Wt="AsyncFunction";var Xr=e=>!!e&&!!e.validate&&!!(ce(e.validate)&&e.validate.constructor.name===Wt||G(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Wt)),Yr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ut=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Fe=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=C(e,s);if(n){const{_f:a,...i}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(Fe(i,r))break}else if(G(i)&&Fe(i,r))break}}};function qt(e,r,t){const o=C(e,t);if(o||Le(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=C(r,n),i=C(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(i&&i.type)return{name:n,error:i};if(i&&i.root&&i.root.type)return{name:`${n}.root`,error:i.root};s.pop()}return{name:t}}var Rr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return ee(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||le.all))},eo=(e,r,t)=>!e||!r||e===r||ke(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),to=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,ro=(e,r)=>!Ze(C(e,r)).length&&Z(e,r),oo=(e,r,t)=>{const o=ke(C(e,t));return M(o,"root",r[t]),M(e,t,o),e};function Gt(e,r,t="validate"){if(oe(e)||Array.isArray(e)&&e.every(oe)||re(e)&&!e)return{type:t,message:oe(e)?e:"",ref:r}}var ve=e=>G(e)&&!Oe(e)?e:{value:e,message:""},Zt=async(e,r,t,o,s,n)=>{const{ref:a,refs:i,required:f,maxLength:d,minLength:u,min:g,max:m,pattern:x,validate:k,name:_,valueAsNumber:F,mount:$}=e._f,v=C(t,_);if(!$||r.has(_))return{};const z=i?i[0]:a,E=L=>{s&&z.reportValidity&&(z.setCustomValidity(re(L)?"":L||""),z.reportValidity())},A={},D=tt(a),I=Ce(a),K=D||I,O=(F||et(a))&&U(a.value)&&U(v)||Pe(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,J=Re.bind(null,_,o,A),X=(L,B,P,q=ue.maxLength,Y=ue.minLength)=>{const ne=L?B:P;A[_]={type:L?q:Y,message:ne,ref:a,...J(L?q:Y,ne)}};if(n?!Array.isArray(v)||!v.length:f&&(!K&&(O||te(v))||re(v)&&!v||I&&!Mt(i).isValid||D&&!Tt(i).isValid)){const{value:L,message:B}=oe(f)?{value:!!f,message:f}:ve(f);if(L&&(A[_]={type:ue.required,message:B,ref:z,...J(ue.required,B)},!o))return E(B),A}if(!O&&(!te(g)||!te(m))){let L,B;const P=ve(m),q=ve(g);if(!te(v)&&!isNaN(v)){const Y=a.valueAsNumber||v&&+v;te(P.value)||(L=Y>P.value),te(q.value)||(B=Y<q.value)}else{const Y=a.valueAsDate||new Date(v),ne=R=>new Date(new Date().toDateString()+" "+R),ge=a.type=="time",H=a.type=="week";oe(P.value)&&v&&(L=ge?ne(v)>ne(P.value):H?v>P.value:Y>new Date(P.value)),oe(q.value)&&v&&(B=ge?ne(v)<ne(q.value):H?v<q.value:Y<new Date(q.value))}if((L||B)&&(X(!!L,P.message,q.message,ue.max,ue.min),!o))return E(A[_].message),A}if((d||u)&&!O&&(oe(v)||n&&Array.isArray(v))){const L=ve(d),B=ve(u),P=!te(L.value)&&v.length>+L.value,q=!te(B.value)&&v.length<+B.value;if((P||q)&&(X(P,L.message,B.message),!o))return E(A[_].message),A}if(x&&!O&&oe(v)){const{value:L,message:B}=ve(x);if(Oe(L)&&!v.match(L)&&(A[_]={type:ue.pattern,message:B,ref:a,...J(ue.pattern,B)},!o))return E(B),A}if(k){if(ce(k)){const L=await k(v,t),B=Gt(L,z);if(B&&(A[_]={...B,...J(ue.validate,B.message)},!o))return E(B.message),A}else if(G(k)){let L={};for(const B in k){if(!ee(L)&&!o)break;const P=Gt(await k[B](v,t),z,B);P&&(L={...P,...J(B,P.message)},E(P.message),o&&(A[_]=L))}if(!ee(L)&&(A[_]={ref:z,...L},!o))return A}}return E(!0),A};const so={mode:le.onSubmit,reValidateMode:le.onChange,shouldFocusError:!0};function no(e={}){let r={...so,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:ce(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=G(r.defaultValues)||G(r.values)?Q(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:Q(s),a={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...u};const m={array:At(),state:At()},x=r.criteriaMode===le.all,k=l=>c=>{clearTimeout(d),d=setTimeout(l,c)},_=async l=>{if(!r.disabled&&(u.isValid||g.isValid||l)){const c=r.resolver?ee((await I()).errors):await O(o,!0);c!==t.isValid&&m.state.next({isValid:c})}},F=(l,c)=>{!r.disabled&&(u.isValidating||u.validatingFields||g.isValidating||g.validatingFields)&&((l||Array.from(i.mount)).forEach(y=>{y&&(c?M(t.validatingFields,y,c):Z(t.validatingFields,y))}),m.state.next({validatingFields:t.validatingFields,isValidating:!ee(t.validatingFields)}))},$=(l,c=[],y,w,S=!0,b=!0)=>{if(w&&y&&!r.disabled){if(a.action=!0,b&&Array.isArray(C(o,l))){const V=y(C(o,l),w.argA,w.argB);S&&M(o,l,V)}if(b&&Array.isArray(C(t.errors,l))){const V=y(C(t.errors,l),w.argA,w.argB);S&&M(t.errors,l,V),ro(t.errors,l)}if((u.touchedFields||g.touchedFields)&&b&&Array.isArray(C(t.touchedFields,l))){const V=y(C(t.touchedFields,l),w.argA,w.argB);S&&M(t.touchedFields,l,V)}(u.dirtyFields||g.dirtyFields)&&(t.dirtyFields=pe(s,n)),m.state.next({name:l,isDirty:X(l,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else M(n,l,c)},v=(l,c)=>{M(t.errors,l,c),m.state.next({errors:t.errors})},z=l=>{t.errors=l,m.state.next({errors:t.errors,isValid:!1})},E=(l,c,y,w)=>{const S=C(o,l);if(S){const b=C(n,l,U(y)?C(s,l):y);U(b)||w&&w.defaultChecked||c?M(n,l,c?b:It(S._f)):P(l,b),a.mount&&_()}},A=(l,c,y,w,S)=>{let b=!1,V=!1;const T={name:l};if(!r.disabled){if(!y||w){(u.isDirty||g.isDirty)&&(V=t.isDirty,t.isDirty=T.isDirty=X(),b=V!==T.isDirty);const W=ie(C(s,l),c);V=!!C(t.dirtyFields,l),W?Z(t.dirtyFields,l):M(t.dirtyFields,l,!0),T.dirtyFields=t.dirtyFields,b=b||(u.dirtyFields||g.dirtyFields)&&V!==!W}if(y){const W=C(t.touchedFields,l);W||(M(t.touchedFields,l,y),T.touchedFields=t.touchedFields,b=b||(u.touchedFields||g.touchedFields)&&W!==y)}b&&S&&m.state.next(T)}return b?T:{}},D=(l,c,y,w)=>{const S=C(t.errors,l),b=(u.isValid||g.isValid)&&re(c)&&t.isValid!==c;if(r.delayError&&y?(f=k(()=>v(l,y)),f(r.delayError)):(clearTimeout(d),f=null,y?M(t.errors,l,y):Z(t.errors,l)),(y?!ie(S,y):S)||!ee(w)||b){const V={...w,...b&&re(c)?{isValid:c}:{},errors:t.errors,name:l};t={...t,...V},m.state.next(V)}},I=async l=>{F(l,!0);const c=await r.resolver(n,r.context,Jr(l||i.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(l),c},K=async l=>{const{errors:c}=await I(l);if(l)for(const y of l){const w=C(c,y);w?M(t.errors,y,w):Z(t.errors,y)}else t.errors=c;return c},O=async(l,c,y={valid:!0})=>{for(const w in l){const S=l[w];if(S){const{_f:b,...V}=S;if(b){const T=i.array.has(b.name),W=S._f&&Xr(S._f);W&&u.validatingFields&&F([b.name],!0);const ae=await Zt(S,i.disabled,n,x,r.shouldUseNativeValidation&&!c,T);if(W&&u.validatingFields&&F([b.name]),ae[b.name]&&(y.valid=!1,c))break;!c&&(C(ae,b.name)?T?oo(t.errors,ae,b.name):M(t.errors,b.name,ae[b.name]):Z(t.errors,b.name))}!ee(V)&&await O(V,c,y)}}return y.valid},J=()=>{for(const l of i.unMount){const c=C(o,l);c&&(c._f.refs?c._f.refs.every(y=>!rt(y)):!rt(c._f.ref))&&ht(l)}i.unMount=new Set},X=(l,c)=>!r.disabled&&(l&&c&&M(n,l,c),!ie(R(),s)),L=(l,c,y)=>Xe(l,i,{...a.mount?n:U(c)?s:oe(l)?{[l]:c}:c},y,c),B=l=>Ze(C(a.mount?n:s,l,r.shouldUnregister?C(s,l,[]):[])),P=(l,c,y={})=>{const w=C(o,l);let S=c;if(w){const b=w._f;b&&(!b.disabled&&M(n,l,Dt(c,b)),S=Pe(b.ref)&&te(c)?"":c,Lt(b.ref)?[...b.ref.options].forEach(V=>V.selected=S.includes(V.value)):b.refs?Ce(b.ref)?b.refs.forEach(V=>{(!V.defaultChecked||!V.disabled)&&(Array.isArray(S)?V.checked=!!S.find(T=>T===V.value):V.checked=S===V.value||!!S)}):b.refs.forEach(V=>V.checked=V.value===S):et(b.ref)?b.ref.value="":(b.ref.value=S,b.ref.type||m.state.next({name:l,values:Q(n)})))}(y.shouldDirty||y.shouldTouch)&&A(l,S,y.shouldTouch,y.shouldDirty,!0),y.shouldValidate&&H(l)},q=(l,c,y)=>{for(const w in c){if(!c.hasOwnProperty(w))return;const S=c[w],b=l+"."+w,V=C(o,b);(i.array.has(l)||G(S)||V&&!V._f)&&!he(S)?q(b,S,y):P(b,S,y)}},Y=(l,c,y={})=>{const w=C(o,l),S=i.array.has(l),b=Q(c);M(n,l,b),S?(m.array.next({name:l,values:Q(n)}),(u.isDirty||u.dirtyFields||g.isDirty||g.dirtyFields)&&y.shouldDirty&&m.state.next({name:l,dirtyFields:pe(s,n),isDirty:X(l,b)})):w&&!w._f&&!te(b)?q(l,b,y):P(l,b,y),Ut(l,i)&&m.state.next({...t,name:l}),m.state.next({name:a.mount?l:void 0,values:Q(n)})},ne=async l=>{a.mount=!0;const c=l.target;let y=c.name,w=!0;const S=C(o,y),b=W=>{w=Number.isNaN(W)||he(W)&&isNaN(W.getTime())||ie(W,C(n,y,W))},V=jt(r.mode),T=jt(r.reValidateMode);if(S){let W,ae;const Ie=c.type?It(S._f):xt(l),ye=l.type===Be.BLUR||l.type===Be.FOCUS_OUT,es=!Yr(S._f)&&!r.resolver&&!C(t.errors,y)&&!S._f.deps||to(ye,C(t.touchedFields,y),t.isSubmitted,T,V),_t=Ut(y,i,ye);M(n,y,Ie),ye?(!c||!c.readOnly)&&(S._f.onBlur&&S._f.onBlur(l),f&&f(0)):S._f.onChange&&S._f.onChange(l);const pt=A(y,Ie,ye),ts=!ee(pt)||_t;if(!ye&&m.state.next({name:y,type:l.type,values:Q(n)}),es)return(u.isValid||g.isValid)&&(r.mode==="onBlur"?ye&&_():ye||_()),ts&&m.state.next({name:y,..._t?{}:pt});if(!ye&&_t&&m.state.next({...t}),r.resolver){const{errors:Ar}=await I([y]);if(b(Ie),w){const rs=qt(t.errors,o,y),Nr=qt(Ar,o,rs.name||y);W=Nr.error,y=Nr.name,ae=ee(Ar)}}else F([y],!0),W=(await Zt(S,i.disabled,n,x,r.shouldUseNativeValidation))[y],F([y]),b(Ie),w&&(W?ae=!1:(u.isValid||g.isValid)&&(ae=await O(o,!0)));w&&(S._f.deps&&(!Array.isArray(S._f.deps)||S._f.deps.length>0)&&H(S._f.deps),D(y,ae,W,pt))}},ge=(l,c)=>{if(C(t.errors,c)&&l.focus)return l.focus(),1},H=async(l,c={})=>{let y,w;const S=ke(l);if(r.resolver){const b=await K(U(l)?l:S);y=ee(b),w=l?!S.some(V=>C(b,V)):y}else l?(w=(await Promise.all(S.map(async b=>{const V=C(o,b);return await O(V&&V._f?{[b]:V}:V)}))).every(Boolean),!(!w&&!t.isValid)&&_()):w=y=await O(o);return m.state.next({...!oe(l)||(u.isValid||g.isValid)&&y!==t.isValid?{}:{name:l},...r.resolver||!l?{isValid:y}:{},errors:t.errors}),c.shouldFocus&&!w&&Fe(o,ge,l?S:i.mount),w},R=(l,c)=>{let y={...a.mount?n:s};return c&&(y=Nt(c.dirtyFields?t.dirtyFields:t.touchedFields,y)),U(l)?y:oe(l)?C(y,l):l.map(w=>C(y,w))},xe=(l,c)=>({invalid:!!C((c||t).errors,l),isDirty:!!C((c||t).dirtyFields,l),error:C((c||t).errors,l),isValidating:!!C(t.validatingFields,l),isTouched:!!C((c||t).touchedFields,l)}),Te=l=>{l&&ke(l).forEach(c=>Z(t.errors,c)),m.state.next({errors:l?t.errors:{}})},wr=(l,c,y)=>{const w=(C(o,l,{_f:{}})._f||{}).ref,S=C(t.errors,l)||{},{ref:b,message:V,type:T,...W}=S;M(t.errors,l,{...W,...c,ref:w}),m.state.next({name:l,errors:t.errors,isValid:!1}),y&&y.shouldFocus&&w&&w.focus&&w.focus()},Qo=(l,c)=>ce(l)?m.state.subscribe({next:y=>"values"in y&&l(L(void 0,c),y)}):L(l,c,!0),Fr=l=>m.state.subscribe({next:c=>{eo(l.name,c.name,l.exact)&&Rr(c,l.formState||u,Ro,l.reRenderRoot)&&l.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,Ko=l=>(a.mount=!0,g={...g,...l.formState},Fr({...l,formState:g})),ht=(l,c={})=>{for(const y of l?ke(l):i.mount)i.mount.delete(y),i.array.delete(y),c.keepValue||(Z(o,y),Z(n,y)),!c.keepError&&Z(t.errors,y),!c.keepDirty&&Z(t.dirtyFields,y),!c.keepTouched&&Z(t.touchedFields,y),!c.keepIsValidating&&Z(t.validatingFields,y),!r.shouldUnregister&&!c.keepDefaultValue&&Z(s,y);m.state.next({values:Q(n)}),m.state.next({...t,...c.keepDirty?{isDirty:X()}:{}}),!c.keepIsValid&&_()},Vr=({disabled:l,name:c})=>{(re(l)&&a.mount||l||i.disabled.has(c))&&(l?i.disabled.add(c):i.disabled.delete(c))},mt=(l,c={})=>{let y=C(o,l);const w=re(c.disabled)||re(r.disabled);return M(o,l,{...y||{},_f:{...y&&y._f?y._f:{ref:{name:l}},name:l,mount:!0,...c}}),i.mount.add(l),y?Vr({disabled:re(c.disabled)?c.disabled:r.disabled,name:l}):E(l,!0,c.value),{...w?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:we(c.min),max:we(c.max),minLength:we(c.minLength),maxLength:we(c.maxLength),pattern:we(c.pattern)}:{},name:l,onChange:ne,onBlur:ne,ref:S=>{if(S){mt(l,c),y=C(o,l);const b=U(S.value)&&S.querySelectorAll&&S.querySelectorAll("input,select,textarea")[0]||S,V=Gr(b),T=y._f.refs||[];if(V?T.find(W=>W===b):b===y._f.ref)return;M(o,l,{_f:{...y._f,...V?{refs:[...T.filter(rt),b,...Array.isArray(C(s,l))?[{}]:[]],ref:{type:b.type,name:l}}:{ref:b}}}),E(l,!1,void 0,b)}else y=C(o,l,{}),y._f&&(y._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(zt(i.array,l)&&a.action)&&i.unMount.add(l)}}},gt=()=>r.shouldFocusError&&Fe(o,ge,i.mount),Jo=l=>{re(l)&&(m.state.next({disabled:l}),Fe(o,(c,y)=>{const w=C(o,y);w&&(c.disabled=w._f.disabled||l,Array.isArray(w._f.refs)&&w._f.refs.forEach(S=>{S.disabled=w._f.disabled||l}))},0,!1))},xr=(l,c)=>async y=>{let w;y&&(y.preventDefault&&y.preventDefault(),y.persist&&y.persist());let S=Q(n);if(m.state.next({isSubmitting:!0}),r.resolver){const{errors:b,values:V}=await I();t.errors=b,S=Q(V)}else await O(o);if(i.disabled.size)for(const b of i.disabled)Z(S,b);if(Z(t.errors,"root"),ee(t.errors)){m.state.next({errors:{}});try{await l(S,y)}catch(b){w=b}}else c&&await c({...t.errors},y),gt(),setTimeout(gt);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ee(t.errors)&&!w,submitCount:t.submitCount+1,errors:t.errors}),w)throw w},Xo=(l,c={})=>{C(o,l)&&(U(c.defaultValue)?Y(l,Q(C(s,l))):(Y(l,c.defaultValue),M(s,l,Q(c.defaultValue))),c.keepTouched||Z(t.touchedFields,l),c.keepDirty||(Z(t.dirtyFields,l),t.isDirty=c.defaultValue?X(l,Q(C(s,l))):X()),c.keepError||(Z(t.errors,l),u.isValid&&_()),m.state.next({...t}))},zr=(l,c={})=>{const y=l?Q(l):s,w=Q(y),S=ee(l),b=S?s:w;if(c.keepDefaultValues||(s=y),!c.keepValues){if(c.keepDirtyValues){const V=new Set([...i.mount,...Object.keys(pe(s,n))]);for(const T of Array.from(V))C(t.dirtyFields,T)?M(b,T,C(n,T)):Y(T,C(b,T))}else{if(Ge&&U(l))for(const V of i.mount){const T=C(o,V);if(T&&T._f){const W=Array.isArray(T._f.refs)?T._f.refs[0]:T._f.ref;if(Pe(W)){const ae=W.closest("form");if(ae){ae.reset();break}}}}if(c.keepFieldsRef)for(const V of i.mount)Y(V,C(b,V));else o={}}n=r.shouldUnregister?c.keepDefaultValues?Q(s):{}:Q(b),m.array.next({values:{...b}}),m.state.next({values:{...b}})}i={mount:c.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!ee(b),a.watch=!!r.shouldUnregister,m.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:S?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ie(l,s)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:S?{}:c.keepDirtyValues?c.keepDefaultValues&&n?pe(s,n):t.dirtyFields:c.keepDefaultValues&&l?pe(s,l):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},$r=(l,c)=>zr(ce(l)?l(n):l,c),Yo=(l,c={})=>{const y=C(o,l),w=y&&y._f;if(w){const S=w.refs?w.refs[0]:w.ref;S.focus&&(S.focus(),c.shouldSelect&&ce(S.select)&&S.select())}},Ro=l=>{t={...t,...l}},Er={control:{register:mt,unregister:ht,getFieldState:xe,handleSubmit:xr,setError:wr,_subscribe:Fr,_runSchema:I,_focusError:gt,_getWatch:L,_getDirty:X,_setValid:_,_setFieldArray:$,_setDisabledField:Vr,_setErrors:z,_getFieldArray:B,_reset:zr,_resetDefaultValues:()=>ce(r.defaultValues)&&r.defaultValues().then(l=>{$r(l,r.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:Jo,_subjects:m,_proxyFormState:u,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(l){a=l},get _defaultValues(){return s},get _names(){return i},set _names(l){i=l},get _formState(){return t},get _options(){return r},set _options(l){r={...r,...l}}},subscribe:Ko,trigger:H,register:mt,handleSubmit:xr,watch:Qo,setValue:Y,getValues:R,reset:$r,resetField:Xo,clearErrors:Te,unregister:ht,setError:wr,setFocus:Yo,getFieldState:xe};return{...Er,formControl:Er}}function ao(e={}){const r=p.useRef(void 0),t=p.useRef(void 0),[o,s]=p.useState({isDirty:!1,isValidating:!1,isLoading:ce(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ce(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!ce(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...i}=no(e);r.current={...i,formState:o}}const n=r.current.control;return n._options=e,Je(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(i=>({...i,isReady:!0})),n._formState.isReady=!0,a},[n]),p.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),p.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),p.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),p.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),p.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),p.useEffect(()=>{e.values&&!ie(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),p.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=Et(o,n),r.current}const Qt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=C(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},st=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Qt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Qt(s,t,e))}},Kt=(e,r)=>{r.shouldUseNativeValidation&&st(e,r);const t={};for(const o in e){const s=C(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(lo(r.names||Object.keys(e),o)){const a=Object.assign({},C(t,o));M(a,"root",n),M(t,o,a)}else M(t,o,n)}return t},lo=(e,r)=>{const t=Jt(r);return e.some(o=>Jt(o).match(`^${t}\\.\\d+`))};function Jt(e){return e.replace(/\]|\[/g,"")}function Xt(e,r,t){function o(i,f){var d;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(d=i._zod).traits??(d.traits=new Set),i._zod.traits.add(e),r(i,f);for(const u in a.prototype)u in i||Object.defineProperty(i,u,{value:a.prototype[u].bind(i)});i._zod.constr=a,i._zod.def=f}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(i){var f;const d=t!=null&&t.Parent?new n:this;o(d,i),(f=d._zod).deferred??(f.deferred=[]);for(const u of d._zod.deferred)u();return d}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:i=>{var f,d;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(d=(f=i==null?void 0:i._zod)==null?void 0:f.traits)==null?void 0:d.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class io extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const co={};function Yt(e){return co}function uo(e,r){return typeof r=="bigint"?r.toString():r}const Rt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Me(e){return typeof e=="string"?e:e==null?void 0:e.message}function er(e,r,t){var s,n,a,i,f,d;const o={...e,path:e.path??[]};if(!e.message){const u=Me((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??Me((i=r==null?void 0:r.error)==null?void 0:i.call(r,e))??Me((f=t.customError)==null?void 0:f.call(t,e))??Me((d=t.localeError)==null?void 0:d.call(t,e))??"Invalid input";o.message=u}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const tr=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,uo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fo=Xt("$ZodError",tr),rr=Xt("$ZodError",tr,{Parent:Error}),yo=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new io;if(a.issues.length){const i=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>er(f,n,Yt())));throw Rt(i,s==null?void 0:s.callee),i}return a.value})(rr),ho=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const i=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>er(f,n,Yt())));throw Rt(i,s==null?void 0:s.callee),i}return a.value})(rr);function or(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function mo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var i=o.unionErrors[0].errors[0];t[a]={message:i.message,type:i.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(u){return u.errors.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,d=f&&f[o.code];t[a]=Re(a,r,t,s,d?[].concat(d,o.message):o.message)}e.shift()}return t}function go(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var i=o.errors[0][0];t[a]={message:i.message,type:i.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(u){return u.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,d=f&&f[o.code];t[a]=Re(a,r,t,s,d?[].concat(d,o.message):o.message)}e.shift()}return t}function _o(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(or(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(i){return Array.isArray(i==null?void 0:i.issues)})(a))return{values:{},errors:Kt(mo(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(or(function(){return Promise.resolve((t.mode==="sync"?yo:ho)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(i){return i instanceof fo})(a))return{values:{},errors:Kt(go(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const sr=p.createContext(null);function nr(){const e=p.useContext(sr);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function po({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:i,formProps:f}){const d=ao({resolver:t?_o(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),u=d.handleSubmit(e);return h.jsx(sr.Provider,{value:d,children:h.jsx("form",{...f,className:a,style:i,onSubmit:u,children:typeof r=="function"?r(d):r})})}const vo=po,bo={formError:"FormError-module__formError___kaUBn"},ar=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=j(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},i=[bo.formError,t].filter(Boolean).join(" ");return h.jsx("div",{...s,className:i,style:a,role:"alert","aria-live":"polite",children:r})},be={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},lr=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:i,children:f,className:d,style:u,divProps:g})=>{const m=j(),x=[be.formGroup,r?be.error:"",e?be.disabled:"",d].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${m.fonts.rhythm} * 0.35)`,...u},_=p.Children.map(f,F=>{if(p.isValidElement(F)){const $={};if(e&&F.props.disabled===void 0&&($.disabled=!0),r&&F.props.error===void 0&&($.error=!0),s&&F.props.id===void 0&&F.type!==p.Fragment&&($.id=s),Object.keys($).length>0)return p.cloneElement(F,$)}return F});return h.jsxs("div",{...g,className:x,style:k,children:[n&&h.jsxs(Ae,{htmlFor:s,disabled:e,error:r,...i,children:[n,t&&h.jsxs("span",{className:be.required,"aria-label":"required",children:[" ","*"]})]}),h.jsx("div",{className:`${be.inputWrapper} ${o?be.indented:""}`,children:_}),r&&a&&h.jsx(ar,{children:a})]})};function fe({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:i,indent:f,labelProps:d}){const{control:u}=nr(),{field:g,fieldState:{error:m}}=qr({name:e,control:u,rules:s});return h.jsx(lr,{label:r,name:e,error:!!m,errorMessage:m==null?void 0:m.message,disabled:n,required:t,className:a,style:i,indent:f,labelProps:d,children:o({value:g.value,onChange:g.onChange,onBlur:g.onBlur,name:g.name,error:!!m,indent:f})})}const nt={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},So=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),ir=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:i=.3,type:f="text",value:d="",onChange:u,onBlur:g,className:m,style:x,inputProps:k})=>{const _=j(),F=_.colors.error,$=r?F:t||_.colors.primary,v=So({color:$,disabled:e,fontSize:_.fonts.size,placeholderOpacity:i}),z={"--placeholder-opacity":v.placeholderOpacity,"--input-padding-small":`calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,"--input-padding-large":`calc(${_.fonts.rhythm} * ${_.sizes.large.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,borderColor:v.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:v.color,fontSize:v.fontSize,opacity:v.opacity,...x},E=[nt.input,o==="small"?nt.sizeSmall:nt.sizeLarge,m].filter(Boolean).join(" ");return h.jsx("input",{...k,className:E,disabled:e,id:s,name:n,onChange:u,onBlur:g,placeholder:a,type:f,value:d,style:z})};function Co({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...i}){return h.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:d,onBlur:u,name:g,error:m})=>h.jsx(ir,{...i,name:g,value:f||"",onChange:x=>d(x.target.value),onBlur:u,error:m})})}const at={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},ko=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),cr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:i=.3,rows:f=3,value:d="",onChange:u,onBlur:g,className:m,style:x,textareaProps:k})=>{const _=j(),F=_.colors.error,$=r?F:t||_.colors.primary,v=ko({color:$,disabled:e,placeholderOpacity:i}),z={"--placeholder-opacity":v.placeholderOpacity,"--textarea-padding-small":`calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,"--textarea-padding-large":`calc(${_.fonts.rhythm} * ${_.sizes.large.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,borderColor:v.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:v.color,fontSize:_.fonts.size,opacity:v.opacity,...x},E=[at.textarea,o==="small"?at.sizeSmall:at.sizeLarge,m].filter(Boolean).join(" ");return h.jsx("textarea",{...k,className:E,disabled:e,id:s,name:n,onChange:u,onBlur:g,placeholder:a,rows:f,value:d,style:z})};function wo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...i}){return h.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:d,onBlur:u,name:g,error:m})=>h.jsx(cr,{...i,name:g,value:f||"",onChange:x=>d(x.target.value),onBlur:u,error:m})})}const lt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},Fo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
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__navMobile___h795P{flex-direction:column;font-size:2rem;min-height:100%;text-align:left;text-transform:uppercase;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.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>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}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.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
+ (function(z,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],m):(z=typeof globalThis<"u"?globalThis:z||self,m(z.DigitalRabbitCL={},z.jsxRuntime,z.React,z.ReactDOM))})(this,(function(z,m,_,Te){"use strict";const Ve={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},Ar=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const l=t||a.colors.primary,f=a.buttons.textColor;let u,d,g;n?(u="transparent",d=l,g=l,e&&(u=o||l,d=o||l,g=s||f)):(u=l,d=l,g=f,e&&(u=o||l,d=o||l,g=s||f));let y=1;return r?y=.3:e&&!o&&(y=.75),{backgroundColor:u,borderColor:d,color:g,opacity:y}};function _t(e,r){const t={...e};return xe(e)&&xe(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];xe(s)&&xe(n)?t[o]=_t(n,s):s!==void 0&&(t[o]=s)}),t}function xe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function me(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const He={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},je={colors:He,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",paddingHorizontal:.35,primary:{textColor:He.secondary}},inputs:{paddingHorizontal:.27},sizes:{small:{paddingVertical:.07},large:{paddingVertical:.17}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"},modal:{backgroundColor:He.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},vt=_.createContext(je),Pr=({theme:e,children:r})=>{const t=e?_t(je,e):je;return m.jsx(vt.Provider,{value:t,children:r})},j=()=>_.useContext(vt),bt=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:l,style:f,buttonProps:u={},onClick:d,children:g})=>{const y=j(),[V,C]=_.useState(!1),F={...Ar({isActive:V,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:y}),fontSize:y.fonts.size,borderWidth:y.border.width,borderRadius:y.border.radius,"--button-padding-small":`calc(${y.fonts.rhythm} * ${y.sizes.small.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${y.fonts.rhythm} * ${y.sizes.large.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,...f},N=[Ve.button,s==="small"?Ve.sizeSmall:Ve.sizeLarge,n?Ve.outline:"",l].filter(Boolean).join(" ");return m.jsx("button",{...u,className:N,disabled:o,onClick:d,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),type:a,style:F,children:g})};var St=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Br=new Uint8Array(16);function Mr(){if(!St)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return St(Br)}for(var wt=[],Ee=0;Ee<256;++Ee)wt[Ee]=(Ee+256).toString(16).substr(1);function Dr(e,r){var t=0,o=wt;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function Ct(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Mr)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Dr(s)}const Ie={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Or=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},kt={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Tr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),ze=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const f=j(),u=f.colors.error,d=t?u:e||f.colors.primary,g=Tr({color:d,disabled:r,fontSize:".85em"}),y={"--form-label-padding-bottom":`calc(${f.fonts.rhythm} * 0.17)`,color:g.color,fontSize:g.fontSize,opacity:g.opacity,cursor:g.cursor,...a},V=[kt.label,r?kt.disabled:"",n].filter(Boolean).join(" ");return m.jsx("label",{...l,className:V,htmlFor:o,style:y,children:s})},$e=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:f,label:u,labelStyle:d,className:g,style:y,divProps:V})=>{const C=j(),p=l||Ct(),F=C.colors.error,N=n?F:e||C.colors.primary,b=Or({color:N,checkmarkColor:r,disabled:s,inverted:o}),E=A=>{s||f(A)},$={cursor:b.cursor,fontSize:C.fonts.size,opacity:b.opacity,...y},L={width:"1em"},H={fill:o&&t?b.checkboxColor:"transparent",strokeWidth:"25",stroke:b.checkboxColor},D={stroke:b.checkmarkColor,strokeWidth:"15",fill:"transparent"},J=[Ie.container,g].filter(Boolean).join(" ");return m.jsxs("div",{...V,className:J,style:$,children:[m.jsx("input",{id:p,checked:t,disabled:s,onChange:A=>E({target:{checked:A.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>E({target:{checked:!t,name:a,type:"checkbox"}}),style:L,className:Ie.svg,children:[m.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:H}),t&&m.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:D})]}),u&&m.jsx(ze,{htmlFor:p,className:Ie.label,style:{paddingBottom:0,...d},color:b.checkboxColor,disabled:s,error:n,children:u})]})},Hr=()=>{const e=j();return _.useLayoutEffect(()=>{const r=document.documentElement;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))},[e]),null};var Se=e=>e.type==="checkbox",ye=e=>e instanceof Date,R=e=>e==null;const Ft=e=>typeof e=="object";var q=e=>!R(e)&&!Array.isArray(e)&&Ft(e)&&!ye(e),Vt=e=>q(e)&&e.target?Se(e.target)?e.target.checked:e.target.value:e,jr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,xt=(e,r)=>e.has(jr(r)),Ir=e=>{const r=e.constructor&&e.constructor.prototype;return q(r)&&r.hasOwnProperty("isPrototypeOf")},We=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Z(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(We&&(e instanceof Blob||o))&&(t||q(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Ir(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=Z(e[s]));else return e;return r}var Ne=e=>/^\w*$/.test(e),U=e=>e===void 0,Ue=e=>Array.isArray(e)?e.filter(Boolean):[],qe=e=>Ue(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,r,t)=>{if(!r||!q(e))return t;const o=(Ne(r)?[r]:qe(r)).reduce((s,n)=>R(s)?s:s[n],e);return U(o)||o===e?U(e[r])?t:e[r]:o},ee=e=>typeof e=="boolean",M=(e,r,t)=>{let o=-1;const s=Ne(r)?[r]:qe(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let f=t;if(o!==a){const u=e[l];f=q(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=f,e=e[l]}};const Le={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ce={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Et=_.createContext(null);Et.displayName="HookFormContext";const Ge=()=>_.useContext(Et);var zt=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==ne.all&&(r._proxyFormState[a]=!o||ne.all),t&&(t[a]=!0),e[a]}});return s};const Ze=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Wr(e){const r=Ge(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=_.useState(t._formState),f=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ze(()=>t._subscribe({name:s,formState:f.current,exact:n,callback:u=>{!o&&l({...t._formState,...u})}}),[s,o,n]),_.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),_.useMemo(()=>zt(a,t,f.current,!1),[a,t])}var te=e=>typeof e=="string",Qe=(e,r,t,o,s)=>te(e)?(o&&r.watch.add(e),w(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),w(t,n))):(o&&(r.watchAll=!0),t),Ke=e=>R(e)||!Ft(e);function ae(e,r,t=new WeakSet){if(Ke(e)||Ke(r))return e===r;if(ye(e)&&ye(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(ye(a)&&ye(l)||q(a)&&q(l)||Array.isArray(a)&&Array.isArray(l)?!ae(a,l,t):a!==l)return!1}}return!0}function Ur(e){const r=Ge(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},f=_.useRef(s),u=_.useRef(l),d=_.useRef(void 0),g=_.useRef(t),y=_.useRef(o);u.current=l;const[V,C]=_.useState(()=>{const $=t._getWatch(o,f.current);return u.current?u.current($):$}),p=_.useCallback($=>{const L=Qe(o,t._names,$||t._formValues,!1,f.current);return u.current?u.current(L):L},[t._formValues,t._names,o]),F=_.useCallback($=>{if(!n){const L=Qe(o,t._names,$||t._formValues,!1,f.current);if(u.current){const H=u.current(L);ae(H,d.current)||(C(H),d.current=H)}else C(L)}},[t._formValues,t._names,n,o]);Ze(()=>((g.current!==t||!ae(y.current,o))&&(g.current=t,y.current=o,F()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:$=>{F($.values)}})),[t,a,o,F]),_.useEffect(()=>t._removeUnmounted());const N=g.current!==t,b=y.current,E=_.useMemo(()=>{if(n)return null;const $=!N&&!ae(b,o);return N||$?p():null},[n,N,o,b,p]);return E!==null?E:V}function qr(e){const r=Ge(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=xt(s._names.array,t),f=_.useMemo(()=>w(s._formValues,t,w(s._defaultValues,t,a)),[s,t,a]),u=Ur({control:s,name:t,defaultValue:f,exact:!0}),d=Wr({control:s,name:t,exact:!0}),g=_.useRef(e),y=_.useRef(void 0),V=_.useRef(s.register(t,{...e.rules,value:u,...ee(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const C=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(d.errors,t)},isDirty:{enumerable:!0,get:()=>!!w(d.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!w(d.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!w(d.validatingFields,t)},error:{enumerable:!0,get:()=>w(d.errors,t)}}),[d,t]),p=_.useCallback(E=>V.current.onChange({target:{value:Vt(E),name:t},type:Le.CHANGE}),[t]),F=_.useCallback(()=>V.current.onBlur({target:{value:w(s._formValues,t),name:t},type:Le.BLUR}),[t,s._formValues]),N=_.useCallback(E=>{const $=w(s._fields,t);$&&E&&($._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:L=>E.setCustomValidity(L),reportValidity:()=>E.reportValidity()})},[s._fields,t]),b=_.useMemo(()=>({name:t,value:u,...ee(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:p,onBlur:F,ref:N}),[t,o,d.disabled,p,F,N,u]);return _.useEffect(()=>{const E=s._options.shouldUnregister||n,$=y.current;$&&$!==t&&!l&&s.unregister($),s.register(t,{...g.current.rules,...ee(g.current.disabled)?{disabled:g.current.disabled}:{}});const L=(H,D)=>{const J=w(s._fields,H);J&&J._f&&(J._f.mount=D)};if(L(t,!0),E){const H=Z(w(s._options.defaultValues,t,g.current.defaultValue));M(s._defaultValues,t,H),U(w(s._formValues,t))&&M(s._formValues,t,H)}return!l&&s.register(t),y.current=t,()=>{(l?E&&!s._state.action:E)?s.unregister(t):L(t,!1)}},[t,s,l,n]),_.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),_.useMemo(()=>({field:b,formState:d,fieldState:C}),[b,d,C])}var Je=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},we=e=>Array.isArray(e)?e:[e],$t=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Nt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&q(s)&&n){const a=Nt(s,n);q(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var K=e=>q(e)&&!Object.keys(e).length,Xe=e=>e.type==="file",le=e=>typeof e=="function",Ae=e=>{if(!We)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Lt=e=>e.type==="select-multiple",Ye=e=>e.type==="radio",Gr=e=>Ye(e)||Se(e),Re=e=>Ae(e)&&e.isConnected;function Zr(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=U(e)?o++:e[r[o++]];return e}function Qr(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function G(e,r){const t=Array.isArray(r)?r:Ne(r)?[r]:qe(r),o=t.length===1?e:Zr(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(q(o)&&K(o)||Array.isArray(o)&&Qr(o))&&G(e,t.slice(0,-1)),e}var Kr=e=>{for(const r in e)if(le(e[r]))return!0;return!1};function At(e){return Array.isArray(e)||q(e)&&!Kr(e)}function et(e,r={}){for(const t in e)At(e[t])?(r[t]=Array.isArray(e[t])?[]:{},et(e[t],r[t])):U(e[t])||(r[t]=!0);return r}function ge(e,r,t){t||(t=et(r));for(const o in e)At(e[o])?U(r)||Ke(t[o])?t[o]=et(e[o],Array.isArray(e[o])?[]:{}):ge(e[o],R(r)?{}:r[o],t[o]):t[o]=!ae(e[o],r[o]);return t}const Pt={value:!1,isValid:!1},Bt={value:!0,isValid:!0};var Mt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?Bt:{value:e[0].value,isValid:!0}:Bt:Pt}return Pt},Dt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>U(e)?e:r?e===""?NaN:e&&+e:t&&te(e)?new Date(e):o?o(e):e;const Ot={isValid:!1,value:null};var Tt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ot):Ot;function Ht(e){const r=e.ref;return Xe(r)?r.files:Ye(r)?Tt(e.refs).value:Lt(r)?[...r.selectedOptions].map(({value:t})=>t):Se(r)?Mt(e.refs).value:Dt(U(r.value)?e.ref.value:r.value,e)}var Jr=(e,r,t,o)=>{const s={};for(const n of e){const a=w(r,n);a&&M(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Pe=e=>e instanceof RegExp,Ce=e=>U(e)?e:Pe(e)?e.source:q(e)?Pe(e.value)?e.value.source:e.value:e,jt=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched});const It="AsyncFunction";var Xr=e=>!!e&&!!e.validate&&!!(le(e.validate)&&e.validate.constructor.name===It||q(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===It)),Yr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Wt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const ke=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=w(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(ke(l,r))break}else if(q(l)&&ke(l,r))break}}};function Ut(e,r,t){const o=w(e,t);if(o||Ne(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=w(r,n),l=w(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var Rr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return K(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||ne.all))},eo=(e,r,t)=>!e||!r||e===r||we(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),to=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,ro=(e,r)=>!Ue(w(e,r)).length&&G(e,r),oo=(e,r,t)=>{const o=we(w(e,t));return M(o,"root",r[t]),M(e,t,o),e};function qt(e,r,t="validate"){if(te(e)||Array.isArray(e)&&e.every(te)||ee(e)&&!e)return{type:t,message:te(e)?e:"",ref:r}}var pe=e=>q(e)&&!Pe(e)?e:{value:e,message:""},Gt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:f,maxLength:u,minLength:d,min:g,max:y,pattern:V,validate:C,name:p,valueAsNumber:F,mount:N}=e._f,b=w(t,p);if(!N||r.has(p))return{};const E=l?l[0]:a,$=P=>{s&&E.reportValidity&&(E.setCustomValidity(ee(P)?"":P||""),E.reportValidity())},L={},H=Ye(a),D=Se(a),J=H||D,A=(F||Xe(a))&&U(a.value)&&U(b)||Ae(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,X=Je.bind(null,p,o,L),Y=(P,B,W,O=ce.maxLength,Q=ce.minLength)=>{const re=P?B:W;L[p]={type:P?O:Q,message:re,ref:a,...X(P?O:Q,re)}};if(n?!Array.isArray(b)||!b.length:f&&(!J&&(A||R(b))||ee(b)&&!b||D&&!Mt(l).isValid||H&&!Tt(l).isValid)){const{value:P,message:B}=te(f)?{value:!!f,message:f}:pe(f);if(P&&(L[p]={type:ce.required,message:B,ref:E,...X(ce.required,B)},!o))return $(B),L}if(!A&&(!R(g)||!R(y))){let P,B;const W=pe(y),O=pe(g);if(!R(b)&&!isNaN(b)){const Q=a.valueAsNumber||b&&+b;R(W.value)||(P=Q>W.value),R(O.value)||(B=Q<O.value)}else{const Q=a.valueAsDate||new Date(b),re=De=>new Date(new Date().toDateString()+" "+De),de=a.type=="time",be=a.type=="week";te(W.value)&&b&&(P=de?re(b)>re(W.value):be?b>W.value:Q>new Date(W.value)),te(O.value)&&b&&(B=de?re(b)<re(O.value):be?b<O.value:Q<new Date(O.value))}if((P||B)&&(Y(!!P,W.message,O.message,ce.max,ce.min),!o))return $(L[p].message),L}if((u||d)&&!A&&(te(b)||n&&Array.isArray(b))){const P=pe(u),B=pe(d),W=!R(P.value)&&b.length>+P.value,O=!R(B.value)&&b.length<+B.value;if((W||O)&&(Y(W,P.message,B.message),!o))return $(L[p].message),L}if(V&&!A&&te(b)){const{value:P,message:B}=pe(V);if(Pe(P)&&!b.match(P)&&(L[p]={type:ce.pattern,message:B,ref:a,...X(ce.pattern,B)},!o))return $(B),L}if(C){if(le(C)){const P=await C(b,t),B=qt(P,E);if(B&&(L[p]={...B,...X(ce.validate,B.message)},!o))return $(B.message),L}else if(q(C)){let P={};for(const B in C){if(!K(P)&&!o)break;const W=qt(await C[B](b,t),E,B);W&&(P={...W,...X(B,W.message)},$(W.message),o&&(L[p]=P))}if(!K(P)&&(L[p]={ref:E,...P},!o))return L}}return $(!0),L};const so={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0};function no(e={}){let r={...so,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:le(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=q(r.defaultValues)||q(r.values)?Z(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:Z(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...d};const y={array:$t(),state:$t()},V=r.criteriaMode===ne.all,C=i=>c=>{clearTimeout(u),u=setTimeout(i,c)},p=async i=>{if(!r.disabled&&(d.isValid||g.isValid||i)){const c=r.resolver?K((await D()).errors):await A(o,!0);c!==t.isValid&&y.state.next({isValid:c})}},F=(i,c)=>{!r.disabled&&(d.isValidating||d.validatingFields||g.isValidating||g.validatingFields)&&((i||Array.from(l.mount)).forEach(h=>{h&&(c?M(t.validatingFields,h,c):G(t.validatingFields,h))}),y.state.next({validatingFields:t.validatingFields,isValidating:!K(t.validatingFields)}))},N=(i,c=[],h,k,S=!0,v=!0)=>{if(k&&h&&!r.disabled){if(a.action=!0,v&&Array.isArray(w(o,i))){const x=h(w(o,i),k.argA,k.argB);S&&M(o,i,x)}if(v&&Array.isArray(w(t.errors,i))){const x=h(w(t.errors,i),k.argA,k.argB);S&&M(t.errors,i,x),ro(t.errors,i)}if((d.touchedFields||g.touchedFields)&&v&&Array.isArray(w(t.touchedFields,i))){const x=h(w(t.touchedFields,i),k.argA,k.argB);S&&M(t.touchedFields,i,x)}(d.dirtyFields||g.dirtyFields)&&(t.dirtyFields=ge(s,n)),y.state.next({name:i,isDirty:Y(i,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else M(n,i,c)},b=(i,c)=>{M(t.errors,i,c),y.state.next({errors:t.errors})},E=i=>{t.errors=i,y.state.next({errors:t.errors,isValid:!1})},$=(i,c,h,k)=>{const S=w(o,i);if(S){const v=w(n,i,U(h)?w(s,i):h);U(v)||k&&k.defaultChecked||c?M(n,i,c?v:Ht(S._f)):W(i,v),a.mount&&p()}},L=(i,c,h,k,S)=>{let v=!1,x=!1;const T={name:i};if(!r.disabled){if(!h||k){(d.isDirty||g.isDirty)&&(x=t.isDirty,t.isDirty=T.isDirty=Y(),v=x!==T.isDirty);const I=ae(w(s,i),c);x=!!w(t.dirtyFields,i),I?G(t.dirtyFields,i):M(t.dirtyFields,i,!0),T.dirtyFields=t.dirtyFields,v=v||(d.dirtyFields||g.dirtyFields)&&x!==!I}if(h){const I=w(t.touchedFields,i);I||(M(t.touchedFields,i,h),T.touchedFields=t.touchedFields,v=v||(d.touchedFields||g.touchedFields)&&I!==h)}v&&S&&y.state.next(T)}return v?T:{}},H=(i,c,h,k)=>{const S=w(t.errors,i),v=(d.isValid||g.isValid)&&ee(c)&&t.isValid!==c;if(r.delayError&&h?(f=C(()=>b(i,h)),f(r.delayError)):(clearTimeout(u),f=null,h?M(t.errors,i,h):G(t.errors,i)),(h?!ae(S,h):S)||!K(k)||v){const x={...k,...v&&ee(c)?{isValid:c}:{},errors:t.errors,name:i};t={...t,...x},y.state.next(x)}},D=async i=>{F(i,!0);const c=await r.resolver(n,r.context,Jr(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(i),c},J=async i=>{const{errors:c}=await D(i);if(i)for(const h of i){const k=w(c,h);k?M(t.errors,h,k):G(t.errors,h)}else t.errors=c;return c},A=async(i,c,h={valid:!0})=>{for(const k in i){const S=i[k];if(S){const{_f:v,...x}=S;if(v){const T=l.array.has(v.name),I=S._f&&Xr(S._f);I&&d.validatingFields&&F([v.name],!0);const se=await Gt(S,l.disabled,n,V,r.shouldUseNativeValidation&&!c,T);if(I&&d.validatingFields&&F([v.name]),se[v.name]&&(h.valid=!1,c))break;!c&&(w(se,v.name)?T?oo(t.errors,se,v.name):M(t.errors,v.name,se[v.name]):G(t.errors,v.name))}!K(x)&&await A(x,c,h)}}return h.valid},X=()=>{for(const i of l.unMount){const c=w(o,i);c&&(c._f.refs?c._f.refs.every(h=>!Re(h)):!Re(c._f.ref))&&yt(i)}l.unMount=new Set},Y=(i,c)=>!r.disabled&&(i&&c&&M(n,i,c),!ae(De(),s)),P=(i,c,h)=>Qe(i,l,{...a.mount?n:U(c)?s:te(i)?{[i]:c}:c},h,c),B=i=>Ue(w(a.mount?n:s,i,r.shouldUnregister?w(s,i,[]):[])),W=(i,c,h={})=>{const k=w(o,i);let S=c;if(k){const v=k._f;v&&(!v.disabled&&M(n,i,Dt(c,v)),S=Ae(v.ref)&&R(c)?"":c,Lt(v.ref)?[...v.ref.options].forEach(x=>x.selected=S.includes(x.value)):v.refs?Se(v.ref)?v.refs.forEach(x=>{(!x.defaultChecked||!x.disabled)&&(Array.isArray(S)?x.checked=!!S.find(T=>T===x.value):x.checked=S===x.value||!!S)}):v.refs.forEach(x=>x.checked=x.value===S):Xe(v.ref)?v.ref.value="":(v.ref.value=S,v.ref.type||y.state.next({name:i,values:Z(n)})))}(h.shouldDirty||h.shouldTouch)&&L(i,S,h.shouldTouch,h.shouldDirty,!0),h.shouldValidate&&be(i)},O=(i,c,h)=>{for(const k in c){if(!c.hasOwnProperty(k))return;const S=c[k],v=i+"."+k,x=w(o,v);(l.array.has(i)||q(S)||x&&!x._f)&&!ye(S)?O(v,S,h):W(v,S,h)}},Q=(i,c,h={})=>{const k=w(o,i),S=l.array.has(i),v=Z(c);M(n,i,v),S?(y.array.next({name:i,values:Z(n)}),(d.isDirty||d.dirtyFields||g.isDirty||g.dirtyFields)&&h.shouldDirty&&y.state.next({name:i,dirtyFields:ge(s,n),isDirty:Y(i,v)})):k&&!k._f&&!R(v)?O(i,v,h):W(i,v,h),Wt(i,l)&&y.state.next({...t,name:i}),y.state.next({name:a.mount?i:void 0,values:Z(n)})},re=async i=>{a.mount=!0;const c=i.target;let h=c.name,k=!0;const S=w(o,h),v=I=>{k=Number.isNaN(I)||ye(I)&&isNaN(I.getTime())||ae(I,w(n,h,I))},x=jt(r.mode),T=jt(r.reValidateMode);if(S){let I,se;const Oe=c.type?Ht(S._f):Vt(i),fe=i.type===Le.BLUR||i.type===Le.FOCUS_OUT,as=!Yr(S._f)&&!r.resolver&&!w(t.errors,h)&&!S._f.deps||to(fe,w(t.touchedFields,h),t.isSubmitted,T,x),gt=Wt(h,l,fe);M(n,h,Oe),fe?(!c||!c.readOnly)&&(S._f.onBlur&&S._f.onBlur(i),f&&f(0)):S._f.onChange&&S._f.onChange(i);const pt=L(h,Oe,fe),ls=!K(pt)||gt;if(!fe&&y.state.next({name:h,type:i.type,values:Z(n)}),as)return(d.isValid||g.isValid)&&(r.mode==="onBlur"?fe&&p():fe||p()),ls&&y.state.next({name:h,...gt?{}:pt});if(!fe&&gt&&y.state.next({...t}),r.resolver){const{errors:Nr}=await D([h]);if(v(Oe),k){const is=Ut(t.errors,o,h),Lr=Ut(Nr,o,is.name||h);I=Lr.error,h=Lr.name,se=K(Nr)}}else F([h],!0),I=(await Gt(S,l.disabled,n,V,r.shouldUseNativeValidation))[h],F([h]),v(Oe),k&&(I?se=!1:(d.isValid||g.isValid)&&(se=await A(o,!0)));k&&(S._f.deps&&(!Array.isArray(S._f.deps)||S._f.deps.length>0)&&be(S._f.deps),H(h,se,I,pt))}},de=(i,c)=>{if(w(t.errors,c)&&i.focus)return i.focus(),1},be=async(i,c={})=>{let h,k;const S=we(i);if(r.resolver){const v=await J(U(i)?i:S);h=K(v),k=i?!S.some(x=>w(v,x)):h}else i?(k=(await Promise.all(S.map(async v=>{const x=w(o,v);return await A(x&&x._f?{[v]:x}:x)}))).every(Boolean),!(!k&&!t.isValid)&&p()):k=h=await A(o);return y.state.next({...!te(i)||(d.isValid||g.isValid)&&h!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:h}:{},errors:t.errors}),c.shouldFocus&&!k&&ke(o,de,i?S:l.mount),k},De=(i,c)=>{let h={...a.mount?n:s};return c&&(h=Nt(c.dirtyFields?t.dirtyFields:t.touchedFields,h)),U(i)?h:te(i)?w(h,i):i.map(k=>w(h,k))},Cr=(i,c)=>({invalid:!!w((c||t).errors,i),isDirty:!!w((c||t).dirtyFields,i),error:w((c||t).errors,i),isValidating:!!w(t.validatingFields,i),isTouched:!!w((c||t).touchedFields,i)}),Ro=i=>{i&&we(i).forEach(c=>G(t.errors,c)),y.state.next({errors:i?t.errors:{}})},kr=(i,c,h)=>{const k=(w(o,i,{_f:{}})._f||{}).ref,S=w(t.errors,i)||{},{ref:v,message:x,type:T,...I}=S;M(t.errors,i,{...I,...c,ref:k}),y.state.next({name:i,errors:t.errors,isValid:!1}),h&&h.shouldFocus&&k&&k.focus&&k.focus()},es=(i,c)=>le(i)?y.state.subscribe({next:h=>"values"in h&&i(P(void 0,c),h)}):P(i,c,!0),Fr=i=>y.state.subscribe({next:c=>{eo(i.name,c.name,i.exact)&&Rr(c,i.formState||d,ns,i.reRenderRoot)&&i.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,ts=i=>(a.mount=!0,g={...g,...i.formState},Fr({...i,formState:g})),yt=(i,c={})=>{for(const h of i?we(i):l.mount)l.mount.delete(h),l.array.delete(h),c.keepValue||(G(o,h),G(n,h)),!c.keepError&&G(t.errors,h),!c.keepDirty&&G(t.dirtyFields,h),!c.keepTouched&&G(t.touchedFields,h),!c.keepIsValidating&&G(t.validatingFields,h),!r.shouldUnregister&&!c.keepDefaultValue&&G(s,h);y.state.next({values:Z(n)}),y.state.next({...t,...c.keepDirty?{isDirty:Y()}:{}}),!c.keepIsValid&&p()},Vr=({disabled:i,name:c})=>{(ee(i)&&a.mount||i||l.disabled.has(c))&&(i?l.disabled.add(c):l.disabled.delete(c))},ht=(i,c={})=>{let h=w(o,i);const k=ee(c.disabled)||ee(r.disabled);return M(o,i,{...h||{},_f:{...h&&h._f?h._f:{ref:{name:i}},name:i,mount:!0,...c}}),l.mount.add(i),h?Vr({disabled:ee(c.disabled)?c.disabled:r.disabled,name:i}):$(i,!0,c.value),{...k?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:Ce(c.min),max:Ce(c.max),minLength:Ce(c.minLength),maxLength:Ce(c.maxLength),pattern:Ce(c.pattern)}:{},name:i,onChange:re,onBlur:re,ref:S=>{if(S){ht(i,c),h=w(o,i);const v=U(S.value)&&S.querySelectorAll&&S.querySelectorAll("input,select,textarea")[0]||S,x=Gr(v),T=h._f.refs||[];if(x?T.find(I=>I===v):v===h._f.ref)return;M(o,i,{_f:{...h._f,...x?{refs:[...T.filter(Re),v,...Array.isArray(w(s,i))?[{}]:[]],ref:{type:v.type,name:i}}:{ref:v}}}),$(i,!1,void 0,v)}else h=w(o,i,{}),h._f&&(h._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(xt(l.array,i)&&a.action)&&l.unMount.add(i)}}},mt=()=>r.shouldFocusError&&ke(o,de,l.mount),rs=i=>{ee(i)&&(y.state.next({disabled:i}),ke(o,(c,h)=>{const k=w(o,h);k&&(c.disabled=k._f.disabled||i,Array.isArray(k._f.refs)&&k._f.refs.forEach(S=>{S.disabled=k._f.disabled||i}))},0,!1))},xr=(i,c)=>async h=>{let k;h&&(h.preventDefault&&h.preventDefault(),h.persist&&h.persist());let S=Z(n);if(y.state.next({isSubmitting:!0}),r.resolver){const{errors:v,values:x}=await D();t.errors=v,S=Z(x)}else await A(o);if(l.disabled.size)for(const v of l.disabled)G(S,v);if(G(t.errors,"root"),K(t.errors)){y.state.next({errors:{}});try{await i(S,h)}catch(v){k=v}}else c&&await c({...t.errors},h),mt(),setTimeout(mt);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:K(t.errors)&&!k,submitCount:t.submitCount+1,errors:t.errors}),k)throw k},os=(i,c={})=>{w(o,i)&&(U(c.defaultValue)?Q(i,Z(w(s,i))):(Q(i,c.defaultValue),M(s,i,Z(c.defaultValue))),c.keepTouched||G(t.touchedFields,i),c.keepDirty||(G(t.dirtyFields,i),t.isDirty=c.defaultValue?Y(i,Z(w(s,i))):Y()),c.keepError||(G(t.errors,i),d.isValid&&p()),y.state.next({...t}))},Er=(i,c={})=>{const h=i?Z(i):s,k=Z(h),S=K(i),v=S?s:k;if(c.keepDefaultValues||(s=h),!c.keepValues){if(c.keepDirtyValues){const x=new Set([...l.mount,...Object.keys(ge(s,n))]);for(const T of Array.from(x))w(t.dirtyFields,T)?M(v,T,w(n,T)):Q(T,w(v,T))}else{if(We&&U(i))for(const x of l.mount){const T=w(o,x);if(T&&T._f){const I=Array.isArray(T._f.refs)?T._f.refs[0]:T._f.ref;if(Ae(I)){const se=I.closest("form");if(se){se.reset();break}}}}if(c.keepFieldsRef)for(const x of l.mount)Q(x,w(v,x));else o={}}n=r.shouldUnregister?c.keepDefaultValues?Z(s):{}:Z(v),y.array.next({values:{...v}}),y.state.next({values:{...v}})}l={mount:c.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!K(v),a.watch=!!r.shouldUnregister,y.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:S?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ae(i,s)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:S?{}:c.keepDirtyValues?c.keepDefaultValues&&n?ge(s,n):t.dirtyFields:c.keepDefaultValues&&i?ge(s,i):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},zr=(i,c)=>Er(le(i)?i(n):i,c),ss=(i,c={})=>{const h=w(o,i),k=h&&h._f;if(k){const S=k.refs?k.refs[0]:k.ref;S.focus&&(S.focus(),c.shouldSelect&&le(S.select)&&S.select())}},ns=i=>{t={...t,...i}},$r={control:{register:ht,unregister:yt,getFieldState:Cr,handleSubmit:xr,setError:kr,_subscribe:Fr,_runSchema:D,_focusError:mt,_getWatch:P,_getDirty:Y,_setValid:p,_setFieldArray:N,_setDisabledField:Vr,_setErrors:E,_getFieldArray:B,_reset:Er,_resetDefaultValues:()=>le(r.defaultValues)&&r.defaultValues().then(i=>{zr(i,r.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:rs,_subjects:y,_proxyFormState:d,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:ts,trigger:be,register:ht,handleSubmit:xr,watch:es,setValue:Q,getValues:De,reset:zr,resetField:os,clearErrors:Ro,unregister:yt,setError:kr,setFocus:ss,getFieldState:Cr};return{...$r,formControl:$r}}function ao(e={}){const r=_.useRef(void 0),t=_.useRef(void 0),[o,s]=_.useState({isDirty:!1,isValidating:!1,isLoading:le(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:le(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!le(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=no(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Ze(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),_.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),_.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),_.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),_.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),_.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),_.useEffect(()=>{e.values&&!ae(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),_.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=zt(o,n),r.current}const Zt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=w(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},tt=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Zt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Zt(s,t,e))}},Qt=(e,r)=>{r.shouldUseNativeValidation&&tt(e,r);const t={};for(const o in e){const s=w(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(lo(r.names||Object.keys(e),o)){const a=Object.assign({},w(t,o));M(a,"root",n),M(t,o,a)}else M(t,o,n)}return t},lo=(e,r)=>{const t=Kt(r);return e.some(o=>Kt(o).match(`^${t}\\.\\d+`))};function Kt(e){return e.replace(/\]|\[/g,"")}function Jt(e,r,t){function o(l,f){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),r(l,f);for(const d in a.prototype)d in l||Object.defineProperty(l,d,{value:a.prototype[d].bind(l)});l._zod.constr=a,l._zod.def=f}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var f;const u=t!=null&&t.Parent?new n:this;o(u,l),(f=u._zod).deferred??(f.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var f,u;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(u=(f=l==null?void 0:l._zod)==null?void 0:f.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class io extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const co={};function Xt(e){return co}function uo(e,r){return typeof r=="bigint"?r.toString():r}const Yt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Be(e){return typeof e=="string"?e:e==null?void 0:e.message}function Rt(e,r,t){var s,n,a,l,f,u;const o={...e,path:e.path??[]};if(!e.message){const d=Be((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??Be((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??Be((f=t.customError)==null?void 0:f.call(t,e))??Be((u=t.localeError)==null?void 0:u.call(t,e))??"Invalid input";o.message=d}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const er=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,uo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fo=Jt("$ZodError",er),tr=Jt("$ZodError",er,{Parent:Error}),yo=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new io;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Rt(f,n,Xt())));throw Yt(l,s==null?void 0:s.callee),l}return a.value})(tr),ho=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Rt(f,n,Xt())));throw Yt(l,s==null?void 0:s.callee),l}return a.value})(tr);function rr(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function mo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(d){return d.errors.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Je(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function go(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(d){return d.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Je(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function po(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(rr(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&tt({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Qt(mo(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(rr(function(){return Promise.resolve((t.mode==="sync"?yo:ho)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&tt({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof fo})(a))return{values:{},errors:Qt(go(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const or=_.createContext(null);function sr(){const e=_.useContext(or);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function _o({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:f}){const u=ao({resolver:t?po(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),d=u.handleSubmit(e);return m.jsx(or.Provider,{value:u,children:m.jsx("form",{...f,className:a,style:l,onSubmit:d,children:typeof r=="function"?r(u):r})})}const vo=_o,bo={formError:"FormError-module__formError___kaUBn"},nr=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=j(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[bo.formError,t].filter(Boolean).join(" ");return m.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},_e={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},ar=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:f,className:u,style:d,divProps:g})=>{const y=j(),V=[_e.formGroup,r?_e.error:"",e?_e.disabled:"",u].filter(Boolean).join(" "),C={"--form-group-margin-bottom":`calc(${y.fonts.rhythm} * 0.35)`,...d},p=_.Children.map(f,F=>{if(_.isValidElement(F)){const N={};if(e&&F.props.disabled===void 0&&(N.disabled=!0),r&&F.props.error===void 0&&(N.error=!0),s&&F.props.id===void 0&&F.type!==_.Fragment&&(N.id=s),Object.keys(N).length>0)return _.cloneElement(F,N)}return F});return m.jsxs("div",{...g,className:V,style:C,children:[n&&m.jsxs(ze,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&m.jsxs("span",{className:_e.required,"aria-label":"required",children:[" ","*"]})]}),m.jsx("div",{className:`${_e.inputWrapper} ${o?_e.indented:""}`,children:p}),r&&a&&m.jsx(nr,{children:a})]})};function ue({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:f,labelProps:u}){const{control:d}=sr(),{field:g,fieldState:{error:y}}=qr({name:e,control:d,rules:s});return m.jsx(ar,{label:r,name:e,error:!!y,errorMessage:y==null?void 0:y.message,disabled:n,required:t,className:a,style:l,indent:f,labelProps:u,children:o({value:g.value,onChange:g.onChange,onBlur:g.onBlur,name:g.name,error:!!y,indent:f})})}const rt={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},So=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),lr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:f="text",value:u="",onChange:d,onBlur:g,className:y,style:V,inputProps:C})=>{const p=j(),F=p.colors.error,N=r?F:t||p.colors.primary,b=So({color:N,disabled:e,fontSize:p.fonts.size,placeholderOpacity:l}),E={"--placeholder-opacity":b.placeholderOpacity,"--input-padding-small":`calc(${p.fonts.rhythm} * ${p.sizes.small.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,"--input-padding-large":`calc(${p.fonts.rhythm} * ${p.sizes.large.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,borderColor:b.borderColor,borderWidth:p.border.width,borderRadius:p.border.radius,color:b.color,fontSize:b.fontSize,opacity:b.opacity,...V},$=[rt.input,o==="small"?rt.sizeSmall:rt.sizeLarge,y].filter(Boolean).join(" ");return m.jsx("input",{...C,className:$,disabled:e,id:s,name:n,onChange:d,onBlur:g,placeholder:a,type:f,value:u,style:E})};function wo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:g,error:y})=>m.jsx(lr,{...l,name:g,value:f||"",onChange:V=>u(V.target.value),onBlur:d,error:y})})}const ot={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},Co=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),ir=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:f=3,value:u="",onChange:d,onBlur:g,className:y,style:V,textareaProps:C})=>{const p=j(),F=p.colors.error,N=r?F:t||p.colors.primary,b=Co({color:N,disabled:e,placeholderOpacity:l}),E={"--placeholder-opacity":b.placeholderOpacity,"--textarea-padding-small":`calc(${p.fonts.rhythm} * ${p.sizes.small.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,"--textarea-padding-large":`calc(${p.fonts.rhythm} * ${p.sizes.large.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,borderColor:b.borderColor,borderWidth:p.border.width,borderRadius:p.border.radius,color:b.color,fontSize:p.fonts.size,opacity:b.opacity,...V},$=[ot.textarea,o==="small"?ot.sizeSmall:ot.sizeLarge,y].filter(Boolean).join(" ");return m.jsx("textarea",{...C,className:$,disabled:e,id:s,name:n,onChange:d,onBlur:g,placeholder:a,rows:f,value:u,style:E})};function ko({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:g,error:y})=>m.jsx(ir,{...l,name:g,value:f||"",onChange:V=>u(V.target.value),onBlur:d,error:y})})}const st={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},Fo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
3
3
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
4
4
  <path
5
5
  d="M 30 42.5 L 50 22.5 L 70 42.5"
@@ -14,9 +14,9 @@
14
14
  fill="transparent"
15
15
  />
16
16
  </svg>
17
- `.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),dr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:i="",onChange:f,onBlur:d,children:u,className:g,style:m,selectProps:x})=>{const k=j(),_=k.colors.error,F=r?_:t||k.colors.primary,$=Fo({color:F,disabled:e}),v={"--select-padding-small":`calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * 1.2) calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * 1.4) calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,backgroundImage:$.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:$.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:$.color,cursor:$.cursor,fontSize:k.fonts.size,opacity:$.opacity,...m},z=[lt.select,o==="small"?lt.sizeSmall:lt.sizeLarge,g].filter(Boolean).join(" ");return h.jsxs("select",{...x,className:z,disabled:e,id:s,name:n,onChange:f,onBlur:d,value:i,style:v,children:[a!==""&&h.jsx("option",{disabled:!0,value:"",children:a}),u]})};function Vo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:i,...f}){return h.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:u,onBlur:g,name:m,error:x})=>h.jsx(dr,{...f,name:m,value:d||"",onChange:k=>u(k.target.value),onBlur:g,error:x,children:i})})}function xo({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return h.jsx(fe,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:i,onChange:f,name:d,error:u})=>h.jsx(Ne,{...a,name:d,checked:!!i,onChange:g=>f(g.target.checked),error:u})})}const it={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},zo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),ct=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:i,labelStyle:f,className:d,style:u,divProps:g})=>{const m=j(),x=n||wt(),k=m.colors.error,_=o?k:e||m.colors.primary,F=zo({color:_,disabled:t}),$=I=>{t||a(I)},v={cursor:F.cursor,fontSize:m.fonts.size,opacity:F.opacity,...u},z={width:"1em"},E={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},A={fill:F.radioColor},D=[it.container,d].filter(Boolean).join(" ");return h.jsxs("div",{...g,className:D,style:v,children:[h.jsx("input",{id:x,checked:r,disabled:t,name:s,onChange:I=>$({target:{checked:I.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>$({target:{checked:!r,name:s,type:"radio"}}),className:it.svg,style:z,children:[h.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:E}),r&&h.jsx("circle",{cx:"50",cy:"50",r:"25",style:A})]}),i&&h.jsx(Ae,{htmlFor:x,className:it.label,style:{paddingBottom:0,...f},color:F.radioColor,disabled:t,error:o,children:i})]})};function $o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:i,...f}){return h.jsx(fe,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:u,name:g,error:m})=>h.jsx(ct,{...f,name:g,checked:d===i,onChange:()=>u(i),error:m,label:r})})}function Eo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:i=!0}){return h.jsx(fe,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:i,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:d,name:u,error:g})=>h.jsx(h.Fragment,{children:o.map(m=>h.jsx(ct,{name:u,checked:f===m.value,onChange:()=>d(m.value),label:m.label,disabled:s||m.disabled,error:g},m.value))})})}function Ao({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:i,indent:f=!0}){return h.jsx(fe,{name:e,label:r,required:t,disabled:n,className:a,style:i,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:d,onChange:u,name:g,error:m})=>{const x=Array.isArray(d)?d:[],k=(_,F)=>{u(F?[...x,_]:x.filter($=>$!==_))};return h.jsx(h.Fragment,{children:o?o.map(_=>h.jsx(Ne,{name:`${g}[]`,checked:x.includes(_.value),onChange:F=>k(_.value,F.target.checked),label:_.label,disabled:n||_.disabled,error:m},_.value)):p.Children.map(s,_=>{if(p.isValidElement(_)&&_.type===Ne){const F=_.props.value||_.props.name;return p.cloneElement(_,{name:`${g}[]`,checked:x.includes(F),onChange:$=>k(F,$.target.checked),error:m||_.props.error,disabled:n||_.props.disabled})}return _})})}})}const Ve={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},No=({compact:e,color:r,visible:t,border:o})=>{const s=j(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},ur=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:i,style:f})=>{const d=No({compact:t,color:e,visible:r,border:n}),u=[Ve.hamburger,s?Ve.open:"",i].filter(Boolean).join(" ");return h.jsxs("button",{ref:o,className:u,onClick:()=>a(!s),style:{...d,...f},"aria-label":"Toggle menu","aria-expanded":s,children:[h.jsx("div",{className:Ve.line}),h.jsx("div",{className:Ve.line}),h.jsx("div",{className:Ve.line})]})},fr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Lo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:i,gap:f,backgroundColor:d,color:u}={})=>{const g=j();return{"--header-max-width":r||g.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||g.layout.paddingSm:a||g.layout.padding,"--header-margin":i,"--header-gap":f,backgroundColor:d,color:u}},se=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return p.useSyncExternalStore(t,o,s)},yr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:d,breakpoint:u,fixed:g=!1,children:m,className:x,style:k,headerProps:_})=>{const F=j(),$=u||F.breakpoints.sm,{maxWidth:v,unit:z}=_e($),E=se(`(max-width: ${v}${z})`),A=Lo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:i,padding:a,margin:f,gap:d,backgroundColor:e,color:r}),D=[fr.container,x].filter(Boolean).join(" "),I=g?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return h.jsx("header",{..._,className:fr.header,style:I,children:h.jsx("div",{className:D,style:{...A,...k},children:m})})},Se={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},de={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"},dt=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:i="75%",backdropColor:f="rgba(0, 0, 0, 0.5)",hideCloseButton:d=!1,closeOnBackdropClick:u=!0,className:g,style:m,popoverProps:x})=>{const k=j(),_=o!==void 0,[F,$]=p.useState(!1),v=_?o:F,[z,E]=p.useState(!1),[A,D]=p.useState(!1),I=p.useRef(null),K=p.useRef(null),[O,J]=p.useState({}),X=p.useCallback(H=>{_||$(H),s==null||s(H)},[_,s]),L=p.useCallback(()=>X(!v),[v,X]),B=p.useCallback(()=>X(!1),[X]);p.useEffect(()=>{t==="panel"&&(v?E(!0):D(!1))},[v,t]),p.useEffect(()=>{if(t!=="panel"||!z||!v)return;let H,R;return H=requestAnimationFrame(()=>{R=requestAnimationFrame(()=>D(!0))}),()=>{cancelAnimationFrame(H),cancelAnimationFrame(R)}},[z,v,t]);const P=p.useCallback(()=>{if(t!=="popup"||!I.current)return;const H=I.current.getBoundingClientRect(),R={position:"fixed",top:H.bottom+4,zIndex:999};J(n==="bottom-start"?{...R,left:H.left}:n==="bottom"?{...R,left:H.left+H.width/2,transform:"translateX(-50%)"}:{...R,left:H.right,transform:"translateX(-100%)"})},[t,n]);p.useEffect(()=>{v&&t==="popup"&&P()},[v,t,P]),p.useEffect(()=>{if(!(!v||t!=="popup"))return window.addEventListener("scroll",P,!0),window.addEventListener("resize",P),()=>{window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P)}},[v,t,P]),p.useEffect(()=>{if(!v||t!=="popup")return;const H=R=>{var xe,Te;(xe=K.current)!=null&&xe.contains(R.target)||(Te=I.current)!=null&&Te.contains(R.target)||B()};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[v,t,B]),p.useEffect(()=>{if(!v)return;const H=R=>{R.key==="Escape"&&B()};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[v,B]),p.useEffect(()=>{if(!v||t!=="panel")return;const H=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${H}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,H)}},[v,t]);const q=e?typeof e=="function"?e({onClick:L,isOpen:v}):h.jsx("span",{onClick:L,style:{cursor:"pointer",display:"contents"},children:e}):null,Y=e?h.jsx("span",{ref:I,className:de.triggerWrapper,children:q}):null;if(t==="popup"){const H={backgroundColor:k.colors.secondary,borderRadius:k.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...O,...m};return h.jsxs(h.Fragment,{children:[Y,v&&je.createPortal(h.jsx("div",{ref:K,className:[de.popup,g].filter(Boolean).join(" "),style:H,...x,children:r}),document.body)]})}const ne={width:i,backgroundColor:k.colors.secondary,...m},ge=()=>{A||E(!1)};return h.jsxs(h.Fragment,{children:[Y,z&&je.createPortal(h.jsxs("div",{className:[de.panelOverlay,A?de.panelOverlayVisible:""].filter(Boolean).join(" "),children:[h.jsx("div",{className:de.backdrop,style:{backgroundColor:A?f:"transparent"},onClick:u?B:void 0,role:"presentation"}),h.jsxs("div",{ref:K,className:[de.panel,a==="right"?de.panelRight:de.panelLeft,A?de.panelOpen:"",g].filter(Boolean).join(" "),style:ne,role:"dialog","aria-modal":"true",onTransitionEnd:ge,...x,children:[!d&&h.jsx("button",{className:de.panelCloseButton,onClick:B,"aria-label":"Close panel",type:"button",children:h.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:h.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},Bo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=j();return p.useMemo(()=>{if(e){const n=(t==null?void 0:t.backgroundColor)||s.colors.primary,a=(t==null?void 0:t.color)||s.colors.secondary,i=(t==null?void 0:t.activeBackgroundColor)||s.colors.secondary,f=(t==null?void 0:t.activeColor)||s.colors.primary,d=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:n,color:a,fontSize:d,...t==null?void 0:t.style},linkActiveStyles:{backgroundColor:i,color:f},linkHoverStyles:{}}}else{const n=o==null?void 0:o.backgroundColor,a=(o==null?void 0:o.color)||s.fonts.color,i=(o==null?void 0:o.hoverOpacity)??.5,f=o==null?void 0:o.activeBackgroundColor,d=o==null?void 0:o.activeColor;return{navStyles:{...n&&{backgroundColor:n},color:a,...o==null?void 0:o.style},linkActiveStyles:{...f&&{backgroundColor:f},...d&&{color:d},opacity:f||d?1:i},linkHoverStyles:{opacity:i}}}},[e,r,t,o,s])},hr=p.createContext({isMobile:!1,setOpen:()=>{}}),Po=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:i=!1})=>{const[f,d]=p.useState(!1),u=p.useRef(null),g=j(),m={...g.breakpoints,...t},{maxWidth:x,unit:k}=_e(m.md),{maxWidth:_,unit:F}=_e(m.sm),$=se(`(max-width: ${x}${k})`),v=se(`(max-width: ${_}${F})`),z=i?!1:$,E=i?!1:v,{navStyles:A,linkActiveStyles:D,linkHoverStyles:I}=Bo({isMobile:z,isCompact:E,mobile:e,desktop:r}),K={...A,...D.backgroundColor&&{"--mobile-active-bg":D.backgroundColor},...D.color&&{"--mobile-active-color":D.color},...I.opacity!==void 0&&{"--desktop-hover-opacity":I.opacity}},O=P=>{const q=P.target;q.closest("[data-navitem-trigger]")||q.closest("a, button")&&d(!1)},J=[Se.nav,Se.navMobile,E||e!=null&&e.compact?Se.compact:"",s].filter(Boolean).join(" "),X=[Se.nav,Se.navDesktop,s].filter(Boolean).join(" "),L=(e==null?void 0:e.content)||o,B=(r==null?void 0:r.content)||o;return h.jsx(hr.Provider,{value:{isMobile:z,setOpen:d},children:h.jsx(h.Fragment,{children:z?h.jsx(dt,{variant:"panel",side:"right",panelWidth:"100%",isOpen:f,onOpenChange:d,hideCloseButton:!0,style:{padding:0,backgroundColor:A.backgroundColor},trigger:({isOpen:P})=>h.jsx("div",{style:P?{position:"relative",zIndex:1001}:void 0,children:h.jsx(ur,{hamburgerRef:u,visible:!0,compact:E,open:P,setOpen:q=>d(q),color:P?(e==null?void 0:e.hamburgerColor)||(e==null?void 0:e.color)||g.colors.secondary:void 0,...e==null?void 0:e.hamburgerProps})}),children:h.jsxs("nav",{...a,className:J,style:{...K,...n},onClickCapture:O,children:[h.jsx("div",{className:Se.navHeader}),typeof L=="function"?L({setOpen:d}):L]})}):h.jsx("nav",{...a,className:X,style:{...K,...n},children:typeof B=="function"?B({setOpen:d}):B})})})},De={trigger:"NavItem-module__trigger___og97w",triggerOpen:"NavItem-module__triggerOpen___7lIFg",chevron:"NavItem-module__chevron___awf4c",chevronOpen:"NavItem-module__chevronOpen___ZtUGj"},Oo=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,className:a,style:i,buttonProps:f})=>{const d=j(),u=n||d.fonts.color;return h.jsx(dt,{variant:t,side:o,panelWidth:s,trigger:({onClick:g,isOpen:m})=>h.jsxs("button",{type:"button",className:[De.trigger,m?De.triggerOpen:"",a].filter(Boolean).join(" "),style:{color:u,...i},"data-navitem-trigger":!0,onClick:g,...f,children:[e,h.jsx("span",{className:[De.chevron,m?De.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:h.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},mr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=j(),i=e||a.colors.primary,f=r||a.colors.secondary,d=h.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${i}`,borderTop:`0.1em solid ${f}`}}),u=h.jsxs(h.Fragment,{children:[d,h.jsx("style",{children:`
17
+ `.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),cr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:f,onBlur:u,children:d,className:g,style:y,selectProps:V})=>{const C=j(),p=C.colors.error,F=r?p:t||C.colors.primary,N=Fo({color:F,disabled:e}),b={"--select-padding-small":`calc(${C.fonts.rhythm} * ${C.sizes.small.paddingVertical}) calc(${C.fonts.rhythm} * 1.2) calc(${C.fonts.rhythm} * ${C.sizes.small.paddingVertical}) calc(${C.fonts.rhythm} * ${C.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${C.fonts.rhythm} * ${C.sizes.large.paddingVertical}) calc(${C.fonts.rhythm} * 1.4) calc(${C.fonts.rhythm} * ${C.sizes.large.paddingVertical}) calc(${C.fonts.rhythm} * ${C.inputs.paddingHorizontal})`,backgroundImage:N.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:N.borderColor,borderWidth:C.border.width,borderRadius:C.border.radius,color:N.color,cursor:N.cursor,fontSize:C.fonts.size,opacity:N.opacity,...y},E=[st.select,o==="small"?st.sizeSmall:st.sizeLarge,g].filter(Boolean).join(" ");return m.jsxs("select",{...V,className:E,disabled:e,id:s,name:n,onChange:f,onBlur:u,value:l,style:b,children:[a!==""&&m.jsx("option",{disabled:!0,value:"",children:a}),d]})};function Vo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...f}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,onBlur:g,name:y,error:V})=>m.jsx(cr,{...f,name:y,value:u||"",onChange:C=>d(C.target.value),onBlur:g,error:V,children:l})})}function xo({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return m.jsx(ue,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:f,name:u,error:d})=>m.jsx($e,{...a,name:u,checked:!!l,onChange:g=>f(g.target.checked),error:d})})}const nt={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Eo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),at=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:f,className:u,style:d,divProps:g})=>{const y=j(),V=n||Ct(),C=y.colors.error,p=o?C:e||y.colors.primary,F=Eo({color:p,disabled:t}),N=D=>{t||a(D)},b={cursor:F.cursor,fontSize:y.fonts.size,opacity:F.opacity,...d},E={width:"1em"},$={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},L={fill:F.radioColor},H=[nt.container,u].filter(Boolean).join(" ");return m.jsxs("div",{...g,className:H,style:b,children:[m.jsx("input",{id:V,checked:r,disabled:t,name:s,onChange:D=>N({target:{checked:D.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>N({target:{checked:!r,name:s,type:"radio"}}),className:nt.svg,style:E,children:[m.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:$}),r&&m.jsx("circle",{cx:"50",cy:"50",r:"25",style:L})]}),l&&m.jsx(ze,{htmlFor:V,className:nt.label,style:{paddingBottom:0,...f},color:F.radioColor,disabled:t,error:o,children:l})]})};function zo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...f}){return m.jsx(ue,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,name:g,error:y})=>m.jsx(at,{...f,name:g,checked:u===l,onChange:()=>d(l),error:y,label:r})})}function $o({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return m.jsx(ue,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:u,name:d,error:g})=>m.jsx(m.Fragment,{children:o.map(y=>m.jsx(at,{name:d,checked:f===y.value,onChange:()=>u(y.value),label:y.label,disabled:s||y.disabled,error:g},y.value))})})}function No({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:f=!0}){return m.jsx(ue,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:u,onChange:d,name:g,error:y})=>{const V=Array.isArray(u)?u:[],C=(p,F)=>{d(F?[...V,p]:V.filter(N=>N!==p))};return m.jsx(m.Fragment,{children:o?o.map(p=>m.jsx($e,{name:`${g}[]`,checked:V.includes(p.value),onChange:F=>C(p.value,F.target.checked),label:p.label,disabled:n||p.disabled,error:y},p.value)):_.Children.map(s,p=>{if(_.isValidElement(p)&&p.type===$e){const F=p.props.value||p.props.name;return _.cloneElement(p,{name:`${g}[]`,checked:V.includes(F),onChange:N=>C(F,N.target.checked),error:y||p.props.error,disabled:n||p.props.disabled})}return p})})}})}const Fe={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},Lo=({compact:e,color:r,visible:t,border:o})=>{const s=j(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},ur=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:f})=>{const u=Lo({compact:t,color:e,visible:r,border:n}),d=[Fe.hamburger,s?Fe.open:"",l].filter(Boolean).join(" ");return m.jsxs("button",{ref:o,className:d,onClick:()=>a(!s),style:{...u,...f},"aria-label":"Toggle menu","aria-expanded":s,children:[m.jsx("div",{className:Fe.line}),m.jsx("div",{className:Fe.line}),m.jsx("div",{className:Fe.line})]})},dr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Ao=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const g=j();return{"--header-max-width":r||g.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||g.layout.paddingSm:a||g.layout.padding,"--header-margin":l,"--header-gap":f,backgroundColor:u,color:d}},oe=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return _.useSyncExternalStore(t,o,s)},fr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakpoint:d,fixed:g=!1,children:y,className:V,style:C,headerProps:p})=>{const F=j(),N=d||F.breakpoints.sm,{maxWidth:b,unit:E}=me(N),$=oe(`(max-width: ${b}${E})`),L=Ao({isSmallScreen:$,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),H=[dr.container,V].filter(Boolean).join(" "),D=g?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return m.jsx("header",{...p,className:dr.header,style:D,children:m.jsx("div",{className:H,style:{...L,...C},children:y})})},ve={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},ie={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"};function Po(e,r){const[t,o]=_.useState(!1),[s,n]=_.useState(!1);_.useEffect(()=>{r==="panel"&&(e?o(!0):n(!1))},[e,r]),_.useEffect(()=>{if(r!=="panel"||!t||!e)return;let l,f;return l=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>n(!0))}),()=>{cancelAnimationFrame(l),cancelAnimationFrame(f)}},[t,e,r]);const a=_.useCallback(()=>{s||o(!1)},[s]);return{panelMounted:t,panelVisible:s,handleTransitionEnd:a}}function Bo(e,r,t,o){const[s,n]=_.useState({}),a=_.useCallback(()=>{if(r!=="popup"||!t.current)return;const l=t.current.getBoundingClientRect(),f={position:"fixed",top:l.bottom+4,zIndex:999};n(o==="bottom-start"?{...f,left:l.left}:o==="bottom"?{...f,left:l.left+l.width/2,transform:"translateX(-50%)"}:{...f,left:l.right,transform:"translateX(-100%)"})},[r,o,t]);return _.useEffect(()=>{e&&r==="popup"&&a()},[e,r,a]),_.useEffect(()=>{if(!(!e||r!=="popup"))return window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[e,r,a]),{popupPositionStyle:s}}const lt=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:l="75%",backdropColor:f="rgba(0, 0, 0, 0.5)",hideCloseButton:u=!1,closeOnBackdropClick:d=!0,className:g,style:y,popoverProps:V})=>{const C=j(),p=o!==void 0,[F,N]=_.useState(!1),b=p?o:F,E=_.useRef(null),$=_.useRef(null),L=_.useCallback(O=>{p||N(O),s==null||s(O)},[p,s]),H=_.useCallback(()=>L(!b),[b,L]),D=_.useCallback(()=>L(!1),[L]),{panelMounted:J,panelVisible:A,handleTransitionEnd:X}=Po(b,t),{popupPositionStyle:Y}=Bo(b,t,E,n);_.useEffect(()=>{if(!b||t!=="popup")return;const O=Q=>{var re,de;(re=$.current)!=null&&re.contains(Q.target)||(de=E.current)!=null&&de.contains(Q.target)||D()};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[b,t,D]),_.useEffect(()=>{if(!b)return;const O=Q=>{Q.key==="Escape"&&D()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[b,D]),_.useEffect(()=>{if(!b||t!=="panel")return;const O=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${O}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,O)}},[b,t]);const P=e?typeof e=="function"?e({onClick:H,isOpen:b}):m.jsx("span",{onClick:H,style:{cursor:"pointer",display:"contents"},children:e}):null,B=e?m.jsx("span",{ref:E,className:ie.triggerWrapper,children:P}):null;if(t==="popup"){const O={backgroundColor:C.colors.secondary,borderRadius:C.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...Y,...y};return m.jsxs(m.Fragment,{children:[B,b&&Te.createPortal(m.jsx("div",{ref:$,className:[ie.popup,g].filter(Boolean).join(" "),style:O,...V,children:r}),document.body)]})}const W={width:l,backgroundColor:C.colors.secondary,...y};return m.jsxs(m.Fragment,{children:[B,J&&Te.createPortal(m.jsxs("div",{className:[ie.panelOverlay,A?ie.panelOverlayVisible:""].filter(Boolean).join(" "),children:[m.jsx("div",{className:ie.backdrop,style:{backgroundColor:A?f:"transparent"},onClick:d?D:void 0,role:"presentation"}),m.jsxs("div",{ref:$,className:[ie.panel,a==="right"?ie.panelRight:ie.panelLeft,A?ie.panelOpen:"",g].filter(Boolean).join(" "),style:W,role:"dialog","aria-modal":"true",onTransitionEnd:X,...V,children:[!u&&m.jsx("button",{className:ie.panelCloseButton,onClick:D,"aria-label":"Close panel",type:"button",children:m.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:m.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},Mo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=j();return _.useMemo(()=>{if(e){const n=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:(t==null?void 0:t.backgroundColor)||s.colors.primary,color:(t==null?void 0:t.color)||s.colors.secondary,fontSize:n,...t==null?void 0:t.style}}}return{navStyles:{...(o==null?void 0:o.backgroundColor)&&{backgroundColor:o.backgroundColor},color:(o==null?void 0:o.color)||s.fonts.color,...o==null?void 0:o.style}}},[e,r,t,o,s])},yr=_.createContext({isMobile:!1,setOpen:()=>{}}),Do=({open:e,setOpen:r,hamburgerRef:t,isCompact:o,mobile:s,hamburgerOpenColor:n,panelBackground:a,navClassName:l,cssProps:f,navProps:u,content:d,onNavClick:g})=>m.jsx(lt,{variant:"panel",side:"right",panelWidth:"100%",isOpen:e,onOpenChange:r,hideCloseButton:!0,style:{padding:0,backgroundColor:a},trigger:({isOpen:y})=>m.jsx("div",{style:y?{position:"relative",zIndex:1001}:void 0,children:m.jsx(ur,{hamburgerRef:t,visible:!0,compact:o,open:y,setOpen:r,color:y?n:void 0,...s==null?void 0:s.hamburgerProps})}),children:m.jsxs("nav",{...u,className:l,style:f,onClickCapture:g,children:[m.jsx("div",{className:ve.navHeader}),typeof d=="function"?d({setOpen:r}):d]})}),Oo=({setOpen:e,navClassName:r,cssProps:t,navProps:o,content:s})=>m.jsx("nav",{...o,className:r,style:t,children:typeof s=="function"?s({setOpen:e}):s}),To=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:l=!1})=>{const[f,u]=_.useState(!1),d=_.useRef(null),g=j(),y={...g.breakpoints,...t},{maxWidth:V,unit:C}=me(y.md),{maxWidth:p,unit:F}=me(y.sm),N=oe(`(max-width: ${V}${C})`),b=oe(`(max-width: ${p}${F})`),E=l?!1:N,$=l?!1:b,{navStyles:L}=Mo({isMobile:E,isCompact:$,mobile:e,desktop:r}),H={...L,...n},D=X=>{const Y=X.target;Y.closest("[data-navdropdown-trigger]")||Y.closest("a, button")&&u(!1)},J=[ve.nav,ve.navMobile,$||e!=null&&e.compact?ve.compact:"",s].filter(Boolean).join(" "),A=[ve.nav,ve.navDesktop,s].filter(Boolean).join(" ");return m.jsx(yr.Provider,{value:{isMobile:E,setOpen:u},children:E?m.jsx(Do,{open:f,setOpen:u,hamburgerRef:d,isCompact:$,mobile:e,hamburgerOpenColor:(e==null?void 0:e.hamburgerColor)||(e==null?void 0:e.color)||g.colors.secondary,panelBackground:L.backgroundColor,navClassName:J,cssProps:H,navProps:a,content:(e==null?void 0:e.content)||o,onNavClick:D}):m.jsx(Oo,{setOpen:u,navClassName:A,cssProps:H,navProps:a,content:(r==null?void 0:r.content)||o})})},it={trigger:"NavDropdown-module__trigger___1PQZp",chevron:"NavDropdown-module__chevron___ZLAV7",chevronOpen:"NavDropdown-module__chevronOpen___9mgjr"};function ct({isActive:e=!1,hoverOpacity:r=.5,color:t}={}){const o=j(),[s,n]=_.useState(!1);return{style:{color:t||o.fonts.color,fontWeight:700,textDecoration:"none",opacity:e||s?r:1},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}}const Ho=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,hoverOpacity:a,className:l,style:f,buttonProps:u})=>{const[d,g]=_.useState(!1),{style:y,onMouseEnter:V,onMouseLeave:C}=ct({isActive:d,color:n,hoverOpacity:a});return m.jsx(lt,{variant:t,side:o,panelWidth:s,isOpen:d,onOpenChange:g,trigger:({onClick:p})=>m.jsxs("button",{type:"button",className:[it.trigger,l].filter(Boolean).join(" "),style:{...y,...f},"data-navdropdown-trigger":!0,onClick:p,onMouseEnter:V,onMouseLeave:C,...u,children:[e,m.jsx("span",{className:[it.chevron,d?it.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},jo=({isActive:e,hoverOpacity:r,color:t,children:o})=>{const{style:s,onMouseEnter:n,onMouseLeave:a}=ct({isActive:e,hoverOpacity:r,color:t});return _.cloneElement(o,{style:{...s,...o.props.style},onMouseEnter:l=>{var f,u;n(),(u=(f=o.props).onMouseEnter)==null||u.call(f,l)},onMouseLeave:l=>{var f,u;a(),(u=(f=o.props).onMouseLeave)==null||u.call(f,l)}})},hr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=j(),l=e||a.colors.primary,f=r||a.colors.secondary,u=m.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${f}`}}),d=m.jsxs(m.Fragment,{children:[u,m.jsx("style",{children:`
18
18
  @keyframes spin {
19
19
  0% { transform: rotate(0deg); }
20
20
  100% { transform: rotate(360deg); }
21
21
  }
22
- `})]});return t?h.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:u}):u},Mo=({children:e,loadingComponent:r})=>{const[t,o]=p.useState(!1);return p.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?h.jsx(h.Fragment,{children:e}):r||h.jsx(mr,{})},me={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},ut={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},gr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[ut.stack,e==="column"?ut.vertical:ut.horizontal,t].filter(Boolean).join(" ");return h.jsx("div",{...s,className:n,style:o,children:r})},_r=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:i=[],resolveModal:f,width:d="500px",maxWidth:u="90vw",backgroundColor:g,backdropColor:m="rgba(0, 0, 0, 0.5)",className:x,style:k,divProps:_})=>{const F=j(),$=p.useRef(null),v=p.useRef(null),{maxWidth:z}=_e(F.breakpoints.md),E=se(`(max-width: ${z-1}px)`);p.useEffect(()=>{if(e)return v.current=document.activeElement,document.body.style.overflow="hidden",$.current&&$.current.focus(),()=>{document.body.style.overflow="",v.current&&v.current.focus()}},[e]),p.useEffect(()=>{if(!e||!a)return;const O=J=>{J.key==="Escape"&&r()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[e,a,r]);const A=O=>{O.target===O.currentTarget&&n&&r()};if(!e)return null;const D={width:d,maxWidth:u,backgroundColor:g||F.colors.secondary,borderRadius:F.border.radius,...k},I={backgroundColor:m},K=h.jsx("div",{className:me.backdrop,style:I,onClick:A,role:"presentation",children:h.jsxs("div",{ref:$,className:[me.modal,x].filter(Boolean).join(" "),style:D,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,..._,children:[h.jsxs("div",{className:me.header,children:[o&&h.jsx("h2",{id:"modal-title",className:me.title,children:o}),!s&&h.jsx("button",{className:me.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:h.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:h.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),h.jsx("div",{className:me.content,children:t}),i.length>0&&h.jsx(gr,{direction:E?"column":"row",className:me.actions,children:i.map((O,J)=>h.jsx(St,{color:O.color,outline:O.variant==="outline",disabled:O.disabled,onClick:()=>{O.onClick?O.onClick(f||r):f?f(O.value):r()},children:O.label},J))})]})});return je.createPortal(K,document.body)},pr=p.createContext(null),Do=({children:e})=>{const[r,t]=p.useState(null),o=p.useCallback(d=>new Promise((u,g)=>{const m=Math.random().toString(36).substr(2,9);t({id:m,content:d.content,title:d.title,actions:d.actions,options:d.options,resolve:u,reject:g})}),[]),s=p.useCallback(d=>{t(u=>(u&&u.resolve(d),null))},[]),n=p.useCallback(d=>o({title:d.title||"Confirm",content:d.message,actions:[{label:d.cancelLabel||"Cancel",variant:"outline",onClick:u=>u(!1)},{label:d.confirmLabel||"Confirm",color:d.confirmColor,onClick:u=>u(!0)}],options:d.options}),[o]),a=p.useCallback(d=>o({title:d.title||"Alert",content:d.message,actions:[{label:d.okLabel||"OK",color:d.okColor,onClick:u=>u()}],options:d.options}),[o]),i=p.useCallback(()=>{s()},[s]),f=p.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return h.jsxs(pr.Provider,{value:f,children:[e,r&&h.jsx(_r,{isOpen:!0,onClose:i,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Ho=()=>{const e=p.useContext(pr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},vr={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},ft=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:d,verticalRhythm:u=3,children:g,className:m,style:x,sectionProps:k})=>{const _=j(),F=se(`(min-width: ${_.breakpoints.sm})`),$={backgroundColor:e,color:r||_.fonts.color,margin:f,...x},v=`calc(${_.fonts.rhythm} * ${u})`,z=F?a||_.layout.padding:i||_.layout.paddingSm,E={"--max-width":t||_.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${v} ${z}`,"--gap":d},A=[vr.section,m].filter(Boolean).join(" ");return h.jsx("section",{...k,className:A,style:$,children:h.jsx("div",{className:vr.innerDiv,style:E,children:g})})},br={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},To=({isMd:e=!1,isLg:r=!1,theme:t})=>p.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),Io=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=j(),i=[br.hero,o].filter(Boolean).join(" "),f=(r==null?void 0:r.md)||a.breakpoints.md,d=(r==null?void 0:r.lg)||a.breakpoints.lg,u=se(`(min-width: ${f})`),g=se(`(min-width: ${d})`),m=To({isMd:u,isLg:g,theme:a});return h.jsx(ft,{className:i,color:e||a.fonts.color,style:{...m,...s},...n,children:h.jsx("div",{className:br.content,children:t})})},Sr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},jo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:i,gap:f,backgroundColor:d,color:u}={})=>{const g=j();return{maxWidth:r||g.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||g.layout.paddingSm:a||g.layout.padding,margin:i,gap:f,backgroundColor:d,color:u||g.fonts.color}},Cr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:d,breakPoint:u,children:g,className:m,style:x,footerProps:k})=>{const _=j(),F=u||_.breakpoints.sm,{maxWidth:$,unit:v}=_e(F),z=se(`(max-width: ${$}${v})`),E=jo({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:i,padding:a,margin:f,gap:d,backgroundColor:e,color:r}),A=[Sr.container,m].filter(Boolean).join(" ");return h.jsx("footer",{...k,className:Sr.footer,children:h.jsx("div",{className:A,style:{...E,...x},children:g})})},He={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Wo=({isMd:e=!1,theme:r})=>p.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),Uo=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const i=j(),f=[He.card,s].filter(Boolean).join(" "),d=e||i.breakpoints.md,u=se(`(min-width: ${d})`),g=Wo({isMd:u,theme:i});return h.jsxs("div",{...a,className:f,style:{...g,...n},children:[r&&h.jsx("div",{className:He.icon,children:r}),h.jsx("h3",{className:He.title,children:t}),h.jsx("div",{className:He.content,children:o})]})},kr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},qo=({columns:e,isMd:r=!1,isLg:t=!1})=>p.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),Go=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const i=j(),f=[kr.section,s].filter(Boolean).join(" "),d=(r==null?void 0:r.md)||i.breakpoints.md,u=(r==null?void 0:r.lg)||i.breakpoints.lg,g=se(`(min-width: ${d})`),m=se(`(min-width: ${u})`),x=qo({columns:e,isMd:g,isLg:m}),k={"--section-padding-vertical":`calc(${i.fonts.rhythm} * 2)`},_={...x,gap:t,...n};return h.jsx(ft,{className:f,style:k,...a,children:h.jsx("div",{className:kr.grid,style:_,children:o})})},yt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},Zo=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:i,mainProps:f})=>{const d=[yt.layoutContainer,o].filter(Boolean).join(" ");return h.jsxs("div",{...i,className:d,style:s,children:[h.jsxs("div",{className:yt.content,children:[e&&h.jsx(yr,{...n,children:e}),h.jsx("main",{...f,className:yt.main,children:t})]}),r&&h.jsx(Cr,{...a,children:r})]})};N.Button=St,N.CSSReset=Tr,N.Checkbox=Ne,N.FeatureCard=Uo,N.FeatureGridSection=Go,N.Footer=Cr,N.Form=vo,N.FormCheckbox=xo,N.FormCheckboxGroup=Ao,N.FormError=ar,N.FormField=fe,N.FormGroup=lr,N.FormInput=Co,N.FormLabel=Ae,N.FormRadio=$o,N.FormRadioGroup=Eo,N.FormSelect=Vo,N.FormTextarea=wo,N.Hamburger=ur,N.Header=yr,N.Hero=Io,N.Input=ir,N.LoadingSpinner=mr,N.Modal=_r,N.ModalProvider=Do,N.NavItem=Oo,N.PageLayout=Zo,N.Popover=dt,N.Radio=ct,N.ResponsiveNav=Po,N.ResponsiveNavContext=hr,N.ResponsiveSection=ft,N.Select=dr,N.Stack=gr,N.StyleLoader=Mo,N.Textarea=cr,N.ThemeProvider=Br,N.parseBreakpoint=_e,N.useFormContext=nr,N.useMediaQuery=se,N.useModal=Ho,N.useTheme=j,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
22
+ `})]});return t?m.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:d}):d},Io=({children:e,loadingComponent:r})=>{const[t,o]=_.useState(!1);return _.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?m.jsx(m.Fragment,{children:e}):r||m.jsx(hr,{})},he={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},ut={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},mr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[ut.stack,e==="column"?ut.vertical:ut.horizontal,t].filter(Boolean).join(" ");return m.jsx("div",{...s,className:n,style:o,children:r})},gr=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:f,width:u="500px",maxWidth:d="90vw",backgroundColor:g,backdropColor:y="rgba(0, 0, 0, 0.5)",className:V,style:C,divProps:p})=>{const F=j(),N=_.useRef(null),b=_.useRef(null),{maxWidth:E}=me(F.breakpoints.md),$=oe(`(max-width: ${E-1}px)`);_.useEffect(()=>{if(e)return b.current=document.activeElement,document.body.style.overflow="hidden",N.current&&N.current.focus(),()=>{document.body.style.overflow="",b.current&&b.current.focus()}},[e]),_.useEffect(()=>{if(!e||!a)return;const A=X=>{X.key==="Escape"&&r()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[e,a,r]);const L=A=>{A.target===A.currentTarget&&n&&r()};if(!e)return null;const H={width:u,maxWidth:d,backgroundColor:g||F.colors.secondary,borderRadius:F.border.radius,...C},D={backgroundColor:y},J=m.jsx("div",{className:he.backdrop,style:D,onClick:L,role:"presentation",children:m.jsxs("div",{ref:N,className:[he.modal,V].filter(Boolean).join(" "),style:H,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,...p,children:[m.jsxs("div",{className:he.header,children:[o&&m.jsx("h2",{id:"modal-title",className:he.title,children:o}),!s&&m.jsx("button",{className:he.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:m.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:m.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),m.jsx("div",{className:he.content,children:t}),l.length>0&&m.jsx(mr,{direction:$?"column":"row",className:he.actions,children:l.map((A,X)=>m.jsx(bt,{color:A.color,outline:A.variant==="outline",disabled:A.disabled,onClick:()=>{A.onClick?A.onClick(f||r):f?f(A.value):r()},children:A.label},X))})]})});return Te.createPortal(J,document.body)},pr=_.createContext(null),Wo=({children:e})=>{const[r,t]=_.useState(null),o=_.useCallback(u=>new Promise((d,g)=>{const y=Math.random().toString(36).substr(2,9);t({id:y,content:u.content,title:u.title,actions:u.actions,options:u.options,resolve:d,reject:g})}),[]),s=_.useCallback(u=>{t(d=>(d&&d.resolve(u),null))},[]),n=_.useCallback(u=>o({title:u.title||"Confirm",content:u.message,actions:[{label:u.cancelLabel||"Cancel",variant:"outline",onClick:d=>d(!1)},{label:u.confirmLabel||"Confirm",color:u.confirmColor,onClick:d=>d(!0)}],options:u.options}),[o]),a=_.useCallback(u=>o({title:u.title||"Alert",content:u.message,actions:[{label:u.okLabel||"OK",color:u.okColor,onClick:d=>d()}],options:u.options}),[o]),l=_.useCallback(()=>{s()},[s]),f=_.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return m.jsxs(pr.Provider,{value:f,children:[e,r&&m.jsx(gr,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Uo=()=>{const e=_.useContext(pr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},_r={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},dt=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,verticalRhythm:d=3,children:g,className:y,style:V,sectionProps:C})=>{const p=j(),F=oe(`(min-width: ${p.breakpoints.sm})`),N={backgroundColor:e,color:r||p.fonts.color,margin:f,...V},b=`calc(${p.fonts.rhythm} * ${d})`,E=F?a||p.layout.padding:l||p.layout.paddingSm,$={"--max-width":t||p.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${b} ${E}`,"--gap":u},L=[_r.section,y].filter(Boolean).join(" ");return m.jsx("section",{...C,className:L,style:N,children:m.jsx("div",{className:_r.innerDiv,style:$,children:g})})},vr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},qo=({isMd:e=!1,isLg:r=!1,theme:t})=>_.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),Go=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=j(),l=[vr.hero,o].filter(Boolean).join(" "),f=(r==null?void 0:r.md)||a.breakpoints.md,u=(r==null?void 0:r.lg)||a.breakpoints.lg,d=oe(`(min-width: ${f})`),g=oe(`(min-width: ${u})`),y=qo({isMd:d,isLg:g,theme:a});return m.jsx(dt,{className:l,color:e||a.fonts.color,style:{...y,...s},...n,children:m.jsx("div",{className:vr.content,children:t})})},br={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},Zo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const g=j();return{maxWidth:r||g.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||g.layout.paddingSm:a||g.layout.padding,margin:l,gap:f,backgroundColor:u,color:d||g.fonts.color}},Sr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakPoint:d,children:g,className:y,style:V,footerProps:C})=>{const p=j(),F=d||p.breakpoints.sm,{maxWidth:N,unit:b}=me(F),E=oe(`(max-width: ${N}${b})`),$=Zo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),L=[br.container,y].filter(Boolean).join(" ");return m.jsx("footer",{...C,className:br.footer,children:m.jsx("div",{className:L,style:{...$,...V},children:g})})},Me={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Qo=({isMd:e=!1,theme:r})=>_.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),Ko=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=j(),f=[Me.card,s].filter(Boolean).join(" "),u=e||l.breakpoints.md,d=oe(`(min-width: ${u})`),g=Qo({isMd:d,theme:l});return m.jsxs("div",{...a,className:f,style:{...g,...n},children:[r&&m.jsx("div",{className:Me.icon,children:r}),m.jsx("h3",{className:Me.title,children:t}),m.jsx("div",{className:Me.content,children:o})]})},wr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},Jo=({columns:e,isMd:r=!1,isLg:t=!1})=>_.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),Xo=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const l=j(),f=[wr.section,s].filter(Boolean).join(" "),u=(r==null?void 0:r.md)||l.breakpoints.md,d=(r==null?void 0:r.lg)||l.breakpoints.lg,g=oe(`(min-width: ${u})`),y=oe(`(min-width: ${d})`),V=Jo({columns:e,isMd:g,isLg:y}),C={"--section-padding-vertical":`calc(${l.fonts.rhythm} * 2)`},p={...V,gap:t,...n};return m.jsx(dt,{className:f,style:C,...a,children:m.jsx("div",{className:wr.grid,style:p,children:o})})},ft={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},Yo=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:f})=>{const u=[ft.layoutContainer,o].filter(Boolean).join(" ");return m.jsxs("div",{...l,className:u,style:s,children:[m.jsxs("div",{className:ft.content,children:[e&&m.jsx(fr,{...n,children:e}),m.jsx("main",{...f,className:ft.main,children:t})]}),r&&m.jsx(Sr,{...a,children:r})]})};z.Button=bt,z.CSSReset=Hr,z.Checkbox=$e,z.FeatureCard=Ko,z.FeatureGridSection=Xo,z.Footer=Sr,z.Form=vo,z.FormCheckbox=xo,z.FormCheckboxGroup=No,z.FormError=nr,z.FormField=ue,z.FormGroup=ar,z.FormInput=wo,z.FormLabel=ze,z.FormRadio=zo,z.FormRadioGroup=$o,z.FormSelect=Vo,z.FormTextarea=ko,z.Hamburger=ur,z.Header=fr,z.Hero=Go,z.Input=lr,z.LoadingSpinner=hr,z.Modal=gr,z.ModalProvider=Wo,z.NavDropdown=Ho,z.NavLink=jo,z.PageLayout=Yo,z.Popover=lt,z.Radio=at,z.ResponsiveNav=To,z.ResponsiveNavContext=yr,z.ResponsiveSection=dt,z.Select=cr,z.Stack=mr,z.StyleLoader=Io,z.Textarea=ir,z.ThemeProvider=Pr,z.parseBreakpoint=me,z.useFormContext=sr,z.useMediaQuery=oe,z.useModal=Uo,z.useNavLinkStyles=ct,z.useTheme=j,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
package/dist/index.d.ts CHANGED
@@ -12,7 +12,8 @@ export { default as Select } from './components/Select';
12
12
  export { default as Textarea } from './components/Textarea';
13
13
  export { default as Header } from './components/Header';
14
14
  export { default as ResponsiveNav, ResponsiveNavContext } from './components/ResponsiveNav';
15
- export { default as NavItem } from './components/NavItem';
15
+ export { default as NavDropdown } from './components/NavDropdown';
16
+ export { default as NavLink, useNavLinkStyles } from './components/NavLink';
16
17
  export { default as Popover } from './components/Popover';
17
18
  export { default as StyleLoader } from './components/StyleLoader';
18
19
  export { default as LoadingSpinner } from './components/LoadingSpinner';
@@ -43,7 +44,8 @@ export type { SelectProps } from './components/Select';
43
44
  export type { TextareaProps } from './components/Textarea';
44
45
  export type { HeaderProps } from './components/Header';
45
46
  export type { ResponsiveNavProps, ResponsiveNavContextValue } from './components/ResponsiveNav';
46
- export type { NavItemProps } from './components/NavItem';
47
+ export type { NavDropdownProps } from './components/NavDropdown';
48
+ export type { NavLinkProps, UseNavLinkStylesParams, UseNavLinkStylesResult, } from './components/NavLink';
47
49
  export type { PopoverProps, PopoverVariant, PopoverPlacement, PopoverSide, } from './components/Popover';
48
50
  export type { StyleLoaderProps } from './components/StyleLoader';
49
51
  export type { LoadingSpinnerProps } from './components/LoadingSpinner';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAChG,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAChG,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EACV,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digital-rabbit-cl",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "dependencies": {
5
5
  "@hookform/resolvers": "^5.2.2",
6
6
  "react-hook-form": "^7.66.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItE,MAAM,WAAW,YAAY;IAC3B,4BAA4B;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yCAAyC;IACzC,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,0EAA0E;IAC1E,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;CACxF;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyDnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default } from './NavItem';
2
- export * from './NavItem';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC"}