digital-rabbit-cl 2.1.0 → 2.1.2

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.
@@ -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;position:relative;z-index:1001}.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,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):(N=typeof globalThis<"u"?globalThis:N||self,m(N.DigitalRabbitCL={},N.jsxRuntime,N.React,N.ReactDOM))})(this,(function(N,m,p,je){"use strict";const $e={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 u,d,g;n?(u="transparent",d=i,g=i,e&&(u=o||i,d=o||i,g=s||f)):(u=i,d=i,g=f,e&&(u=o||i,d=o||i,g=s||f));let h=1;return r?h=.3:e&&!o&&(h=.75),{backgroundColor:u,borderColor:d,color:g,opacity:h}};function vt(e,r){const t={...e};return ze(e)&&ze(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];ze(s)&&ze(n)?t[o]=vt(n,s):s!==void 0&&(t[o]=s)}),t}function ze(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 m.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:u={},onClick:d,children:g})=>{const h=j(),[x,k]=p.useState(!1),F={...Lr({isActive:x,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:h}),fontSize:h.fonts.size,borderWidth:h.border.width,borderRadius:h.border.radius,"--button-padding-small":`calc(${h.fonts.rhythm} * ${h.sizes.small.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${h.fonts.rhythm} * ${h.sizes.large.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,...f},z=[$e.button,s==="small"?$e.sizeSmall:$e.sizeLarge,n?$e.outline:"",i].filter(Boolean).join(" ");return m.jsx("button",{...u,className:z,disabled:o,onClick:d,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(),u=f.colors.error,d=t?u:e||f.colors.primary,g=Hr({color:d,disabled:r,fontSize:".85em"}),h={"--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 m.jsx("label",{...i,className:x,htmlFor:o,style:h,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:u,labelStyle:d,className:g,style:h,divProps:x})=>{const k=j(),_=i||wt(),F=k.colors.error,z=n?F:e||k.colors.primary,v=Dr({color:z,checkmarkColor:r,disabled:s,inverted:o}),$=O=>{s||f(O)},E={cursor:v.cursor,fontSize:k.fonts.size,opacity:v.opacity,...h},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 m.jsxs("div",{...x,className:K,style:E,children:[m.jsx("input",{id:_,checked:t,disabled:s,onChange:O=>$({target:{checked:O.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:()=>$({target:{checked:!t,name:a,type:"checkbox"}}),style:A,className:qe.svg,children:[m.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:D}),t&&m.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:I})]}),u&&m.jsx(Ae,{htmlFor:_,className:qe.label,style:{paddingBottom:0,...d},color:v.checkboxColor,disabled:s,error:n,children:u})]})},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,$t=(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 u=e[i];f=G(u)||Array.isArray(u)?u: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"},de={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},zt=p.createContext(null);zt.displayName="HookFormContext";const Ke=()=>p.useContext(zt);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:u=>{!o&&i({...t._formState,...u})}}),[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),u=p.useRef(i),d=p.useRef(void 0),g=p.useRef(t),h=p.useRef(o);u.current=i;const[x,k]=p.useState(()=>{const E=t._getWatch(o,f.current);return u.current?u.current(E):E}),_=p.useCallback(E=>{const A=Xe(o,t._names,E||t._formValues,!1,f.current);return u.current?u.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(u.current){const D=u.current(A);ie(D,d.current)||(k(D),d.current=D)}else k(A)}},[t._formValues,t._names,n,o]);Je(()=>((g.current!==t||!ie(h.current,o))&&(g.current=t,h.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 z=g.current!==t,v=h.current,$=p.useMemo(()=>{if(n)return null;const E=!z&&!ie(v,o);return z||E?_():null},[n,z,o,v,_]);return $!==null?$:x}function qr(e){const r=Ke(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,i=$t(s._names.array,t),f=p.useMemo(()=>C(s._formValues,t,C(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=p.useRef(e),h=p.useRef(void 0),x=p.useRef(s.register(t,{...e.rules,value:u,...re(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const k=p.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(d.errors,t)},isDirty:{enumerable:!0,get:()=>!!C(d.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!C(d.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!C(d.validatingFields,t)},error:{enumerable:!0,get:()=>C(d.errors,t)}}),[d,t]),_=p.useCallback($=>x.current.onChange({target:{value:xt($),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]),z=p.useCallback($=>{const E=C(s._fields,t);E&&$&&(E._f.ref={focus:()=>$.focus&&$.focus(),select:()=>$.select&&$.select(),setCustomValidity:A=>$.setCustomValidity(A),reportValidity:()=>$.reportValidity()})},[s._fields,t]),v=p.useMemo(()=>({name:t,value:u,...re(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:_,onBlur:F,ref:z}),[t,o,d.disabled,_,F,z,u]);return p.useEffect(()=>{const $=s._options.shouldUnregister||n,E=h.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),$){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),h.current=t,()=>{(i?$&&!s._state.action:$)?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:d,fieldState:k}),[v,d,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:u,minLength:d,min:g,max:h,pattern:x,validate:k,name:_,valueAsNumber:F,mount:z}=e._f,v=C(t,_);if(!z||r.has(_))return{};const $=i?i[0]:a,E=L=>{s&&$.reportValidity&&($.setCustomValidity(re(L)?"":L||""),$.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=de.maxLength,Y=de.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:de.required,message:B,ref:$,...J(de.required,B)},!o))return E(B),A}if(!O&&(!te(g)||!te(h))){let L,B;const P=ve(h),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,de.max,de.min),!o))return E(A[_].message),A}if((u||d)&&!O&&(oe(v)||n&&Array.isArray(v))){const L=ve(u),B=ve(d),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:de.pattern,message:B,ref:a,...J(de.pattern,B)},!o))return E(B),A}if(k){if(ce(k)){const L=await k(v,t),B=Gt(L,$);if(B&&(A[_]={...B,...J(de.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),$,B);P&&(L={...P,...J(B,P.message)},E(P.message),o&&(A[_]=L))}if(!ee(L)&&(A[_]={ref:$,...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,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...d};const h={array:At(),state:At()},x=r.criteriaMode===le.all,k=l=>c=>{clearTimeout(u),u=setTimeout(l,c)},_=async l=>{if(!r.disabled&&(d.isValid||g.isValid||l)){const c=r.resolver?ee((await I()).errors):await O(o,!0);c!==t.isValid&&h.state.next({isValid:c})}},F=(l,c)=>{!r.disabled&&(d.isValidating||d.validatingFields||g.isValidating||g.validatingFields)&&((l||Array.from(i.mount)).forEach(y=>{y&&(c?M(t.validatingFields,y,c):Z(t.validatingFields,y))}),h.state.next({validatingFields:t.validatingFields,isValidating:!ee(t.validatingFields)}))},z=(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((d.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)}(d.dirtyFields||g.dirtyFields)&&(t.dirtyFields=pe(s,n)),h.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),h.state.next({errors:t.errors})},$=l=>{t.errors=l,h.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){(d.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||(d.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||(d.touchedFields||g.touchedFields)&&W!==y)}b&&S&&h.state.next(T)}return b?T:{}},D=(l,c,y,w)=>{const S=C(t.errors,l),b=(d.isValid||g.isValid)&&re(c)&&t.isValid!==c;if(r.delayError&&y?(f=k(()=>v(l,y)),f(r.delayError)):(clearTimeout(u),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},h.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&&d.validatingFields&&F([b.name],!0);const ae=await Zt(S,i.disabled,n,x,r.shouldUseNativeValidation&&!c,T);if(W&&d.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||h.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?(h.array.next({name:l,values:Q(n)}),(d.isDirty||d.dirtyFields||g.isDirty||g.dirtyFields)&&y.shouldDirty&&h.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)&&h.state.next({...t,name:l}),h.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&&h.state.next({name:y,type:l.type,values:Q(n)}),es)return(d.isValid||g.isValid)&&(r.mode==="onBlur"?ye&&_():ye||_()),ts&&h.state.next({name:y,..._t?{}:pt});if(!ye&&_t&&h.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:(d.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 h.state.next({...!oe(l)||(d.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)),h.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}),h.state.next({name:l,errors:t.errors,isValid:!1}),y&&y.shouldFocus&&w&&w.focus&&w.focus()},Qo=(l,c)=>ce(l)?h.state.subscribe({next:y=>"values"in y&&l(L(void 0,c),y)}):L(l,c,!0),Fr=l=>h.state.subscribe({next:c=>{eo(l.name,c.name,l.exact)&&Rr(c,l.formState||d,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);h.state.next({values:Q(n)}),h.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)&&!($t(i.array,l)&&a.action)&&i.unMount.add(l)}}},gt=()=>r.shouldFocusError&&Fe(o,ge,i.mount),Jo=l=>{re(l)&&(h.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(h.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)){h.state.next({errors:{}});try{await l(S,y)}catch(b){w=b}}else c&&await c({...t.errors},y),gt(),setTimeout(gt);if(h.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),d.isValid&&_()),h.state.next({...t}))},$r=(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),h.array.next({values:{...b}}),h.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=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!ee(b),a.watch=!!r.shouldUnregister,h.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})},zr=(l,c)=>$r(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:z,_setDisabledField:Vr,_setErrors:$,_getFieldArray:B,_reset:$r,_resetDefaultValues:()=>ce(r.defaultValues)&&r.defaultValues().then(l=>{zr(l,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:Jo,_subjects:h,_proxyFormState:d,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:zr,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 u;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(u=i._zod).traits??(u.traits=new Set),i._zod.traits.add(e),r(i,f);for(const d in a.prototype)d in i||Object.defineProperty(i,d,{value:a.prototype[d].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 u=t!=null&&t.Parent?new n:this;o(u,i),(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:i=>{var f,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(f=i==null?void 0:i._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 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,u;const o={...e,path:e.path??[]};if(!e.message){const d=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((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 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(d){return d.errors.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Re(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 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(d){return d.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Re(a,r,t,s,u?[].concat(u,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 u=ao({resolver:t?_o(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),d=u.handleSubmit(e);return m.jsx(sr.Provider,{value:u,children:m.jsx("form",{...f,className:a,style:i,onSubmit:d,children:typeof r=="function"?r(u):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 m.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:u,style:d,divProps:g})=>{const h=j(),x=[be.formGroup,r?be.error:"",e?be.disabled:"",u].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...d},_=p.Children.map(f,F=>{if(p.isValidElement(F)){const z={};if(e&&F.props.disabled===void 0&&(z.disabled=!0),r&&F.props.error===void 0&&(z.error=!0),s&&F.props.id===void 0&&F.type!==p.Fragment&&(z.id=s),Object.keys(z).length>0)return p.cloneElement(F,z)}return F});return m.jsxs("div",{...g,className:x,style:k,children:[n&&m.jsxs(Ae,{htmlFor:s,disabled:e,error:r,...i,children:[n,t&&m.jsxs("span",{className:be.required,"aria-label":"required",children:[" ","*"]})]}),m.jsx("div",{className:`${be.inputWrapper} ${o?be.indented:""}`,children:_}),r&&a&&m.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:u}){const{control:d}=nr(),{field:g,fieldState:{error:h}}=qr({name:e,control:d,rules:s});return m.jsx(lr,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:a,style:i,indent:f,labelProps:u,children:o({value:g.value,onChange:g.onChange,onBlur:g.onBlur,name:g.name,error:!!h,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:u="",onChange:d,onBlur:g,className:h,style:x,inputProps:k})=>{const _=j(),F=_.colors.error,z=r?F:t||_.colors.primary,v=So({color:z,disabled:e,fontSize:_.fonts.size,placeholderOpacity:i}),$={"--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,h].filter(Boolean).join(" ");return m.jsx("input",{...k,className:E,disabled:e,id:s,name:n,onChange:d,onBlur:g,placeholder:a,type:f,value:u,style:$})};function Co({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...i}){return m.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:g,error:h})=>m.jsx(ir,{...i,name:g,value:f||"",onChange:x=>u(x.target.value),onBlur:d,error:h})})}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:u="",onChange:d,onBlur:g,className:h,style:x,textareaProps:k})=>{const _=j(),F=_.colors.error,z=r?F:t||_.colors.primary,v=ko({color:z,disabled:e,placeholderOpacity:i}),$={"--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,h].filter(Boolean).join(" ");return m.jsx("textarea",{...k,className:E,disabled:e,id:s,name:n,onChange:d,onBlur:g,placeholder:a,rows:f,value:u,style:$})};function wo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...i}){return m.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:g,error:h})=>m.jsx(cr,{...i,name:g,value:f||"",onChange:x=>u(x.target.value),onBlur:d,error:h})})}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__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(A,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):(A=typeof globalThis<"u"?globalThis:A||self,m(A.DigitalRabbitCL={},A.jsxRuntime,A.React,A.ReactDOM))})(this,(function(A,m,p,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,d=a.buttons.textColor;let u,f,g;n?(u="transparent",f=l,g=l,e&&(u=o||l,f=o||l,g=s||d)):(u=l,f=l,g=d,e&&(u=o||l,f=o||l,g=s||d));let y=1;return r?y=.3:e&&!o&&(y=.75),{backgroundColor:u,borderColor:f,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 Ie={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},je={colors:Ie,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:Ie.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:Ie.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},pt=p.createContext(je),Lr=({theme:e,children:r})=>{const t=e?_t(je,e):je;return m.jsx(pt.Provider,{value:t,children:r})},T=()=>p.useContext(pt),vt=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:l,style:d,buttonProps:u={},onClick:f,children:g})=>{const y=T(),[x,k]=p.useState(!1),F={...Ar({isActive:x,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})`,...d},E=[Ve.button,s==="small"?Ve.sizeSmall:Ve.sizeLarge,n?Ve.outline:"",l].filter(Boolean).join(" ");return m.jsx("button",{...u,className:E,disabled:o,onClick:f,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),type:a,style:F,children:g})};var bt=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 Br(){if(!bt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bt(Pr)}for(var St=[],ze=0;ze<256;++ze)St[ze]=(ze+256).toString(16).substr(1);function Mr(e,r){var t=0,o=St;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||Br)();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 We={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"},Dr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),$e=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const d=T(),u=d.colors.error,f=t?u:e||d.colors.primary,g=Dr({color:f,disabled:r,fontSize:".85em"}),y={"--form-label-padding-bottom":`calc(${d.fonts.rhythm} * 0.17)`,color:g.color,fontSize:g.fontSize,opacity:g.opacity,cursor:g.cursor,...a},x=[kt.label,r?kt.disabled:"",n].filter(Boolean).join(" ");return m.jsx("label",{...l,className:x,htmlFor:o,style:y,children:s})},Ee=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:d,label:u,labelStyle:f,className:g,style:y,divProps:x})=>{const k=T(),_=l||Ct(),F=k.colors.error,E=n?F:e||k.colors.primary,b=Or({color:E,checkmarkColor:r,disabled:s,inverted:o}),z=P=>{s||d(P)},$={cursor:b.cursor,fontSize:k.fonts.size,opacity:b.opacity,...y},N={width:"1em"},I={fill:o&&t?b.checkboxColor:"transparent",strokeWidth:"25",stroke:b.checkboxColor},O={stroke:b.checkmarkColor,strokeWidth:"15",fill:"transparent"},K=[We.container,g].filter(Boolean).join(" ");return m.jsxs("div",{...x,className:K,style:$,children:[m.jsx("input",{id:_,checked:t,disabled:s,onChange:P=>z({target:{checked:P.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:()=>z({target:{checked:!t,name:a,type:"checkbox"}}),style:N,className:We.svg,children:[m.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:I}),t&&m.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:O})]}),u&&m.jsx($e,{htmlFor:_,className:We.label,style:{paddingBottom:0,...f},color:b.checkboxColor,disabled:s,error:n,children:u})]})},Hr=()=>{const e=T();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 Se=e=>e.type==="checkbox",ye=e=>e instanceof Date,Y=e=>e==null;const wt=e=>typeof e=="object";var q=e=>!Y(e)&&!Array.isArray(e)&&wt(e)&&!ye(e),Ft=e=>q(e)&&e.target?Se(e.target)?e.target.checked:e.target.value:e,Tr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Vt=(e,r)=>e.has(Tr(r)),Ir=e=>{const r=e.constructor&&e.constructor.prototype;return q(r)&&r.hasOwnProperty("isPrototypeOf")},Ue=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(!(Ue&&(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,qe=e=>Array.isArray(e)?e.filter(Boolean):[],Ge=e=>qe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,r,t)=>{if(!r||!q(e))return t;const o=(Ne(r)?[r]:Ge(r)).reduce((s,n)=>Y(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]:Ge(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let d=t;if(o!==a){const u=e[l];d=q(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const Ae={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"},xt=p.createContext(null);xt.displayName="HookFormContext";const Ze=()=>p.useContext(xt);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 Qe=typeof window<"u"?p.useLayoutEffect:p.useEffect;function jr(e){const r=Ze(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=p.useState(t._formState),d=p.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Qe(()=>t._subscribe({name:s,formState:d.current,exact:n,callback:u=>{!o&&l({...t._formState,...u})}}),[s,o,n]),p.useEffect(()=>{d.current.isValid&&t._setValid(!0)},[t]),p.useMemo(()=>zt(a,t,d.current,!1),[a,t])}var te=e=>typeof e=="string",Ke=(e,r,t,o,s)=>te(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),Je=e=>Y(e)||!wt(e);function ae(e,r,t=new WeakSet){if(Je(e)||Je(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 Wr(e){const r=Ze(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},d=p.useRef(s),u=p.useRef(l),f=p.useRef(void 0),g=p.useRef(t),y=p.useRef(o);u.current=l;const[x,k]=p.useState(()=>{const $=t._getWatch(o,d.current);return u.current?u.current($):$}),_=p.useCallback($=>{const N=Ke(o,t._names,$||t._formValues,!1,d.current);return u.current?u.current(N):N},[t._formValues,t._names,o]),F=p.useCallback($=>{if(!n){const N=Ke(o,t._names,$||t._formValues,!1,d.current);if(u.current){const I=u.current(N);ae(I,f.current)||(k(I),f.current=I)}else k(N)}},[t._formValues,t._names,n,o]);Qe(()=>((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]),p.useEffect(()=>t._removeUnmounted());const E=g.current!==t,b=y.current,z=p.useMemo(()=>{if(n)return null;const $=!E&&!ae(b,o);return E||$?_():null},[n,E,o,b,_]);return z!==null?z:x}function Ur(e){const r=Ze(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=Vt(s._names.array,t),d=p.useMemo(()=>C(s._formValues,t,C(s._defaultValues,t,a)),[s,t,a]),u=Wr({control:s,name:t,defaultValue:d,exact:!0}),f=jr({control:s,name:t,exact:!0}),g=p.useRef(e),y=p.useRef(void 0),x=p.useRef(s.register(t,{...e.rules,value:u,...ee(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const k=p.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(f.errors,t)},isDirty:{enumerable:!0,get:()=>!!C(f.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!C(f.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!C(f.validatingFields,t)},error:{enumerable:!0,get:()=>C(f.errors,t)}}),[f,t]),_=p.useCallback(z=>x.current.onChange({target:{value:Ft(z),name:t},type:Ae.CHANGE}),[t]),F=p.useCallback(()=>x.current.onBlur({target:{value:C(s._formValues,t),name:t},type:Ae.BLUR}),[t,s._formValues]),E=p.useCallback(z=>{const $=C(s._fields,t);$&&z&&($._f.ref={focus:()=>z.focus&&z.focus(),select:()=>z.select&&z.select(),setCustomValidity:N=>z.setCustomValidity(N),reportValidity:()=>z.reportValidity()})},[s._fields,t]),b=p.useMemo(()=>({name:t,value:u,...ee(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:_,onBlur:F,ref:E}),[t,o,f.disabled,_,F,E,u]);return p.useEffect(()=>{const z=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 N=(I,O)=>{const K=C(s._fields,I);K&&K._f&&(K._f.mount=O)};if(N(t,!0),z){const I=Z(C(s._options.defaultValues,t,g.current.defaultValue));M(s._defaultValues,t,I),U(C(s._formValues,t))&&M(s._formValues,t,I)}return!l&&s.register(t),y.current=t,()=>{(l?z&&!s._state.action:z)?s.unregister(t):N(t,!1)}},[t,s,l,n]),p.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),p.useMemo(()=>({field:b,formState:f,fieldState:k}),[b,f,k])}var Xe=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},Ce=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 Et(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=Et(s,n);q(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var J=e=>q(e)&&!Object.keys(e).length,Ye=e=>e.type==="file",le=e=>typeof e=="function",Le=e=>{if(!Ue)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Nt=e=>e.type==="select-multiple",Re=e=>e.type==="radio",qr=e=>Re(e)||Se(e),et=e=>Le(e)&&e.isConnected;function Gr(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 Zr(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]:Ge(r),o=t.length===1?e:Gr(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(q(o)&&J(o)||Array.isArray(o)&&Zr(o))&&G(e,t.slice(0,-1)),e}var Qr=e=>{for(const r in e)if(le(e[r]))return!0;return!1};function At(e){return Array.isArray(e)||q(e)&&!Qr(e)}function tt(e,r={}){for(const t in e)At(e[t])?(r[t]=Array.isArray(e[t])?[]:{},tt(e[t],r[t])):U(e[t])||(r[t]=!0);return r}function ge(e,r,t){t||(t=tt(r));for(const o in e)At(e[o])?U(r)||Je(t[o])?t[o]=tt(e[o],Array.isArray(e[o])?[]:{}):ge(e[o],Y(r)?{}:r[o],t[o]):t[o]=!ae(e[o],r[o]);return t}const Lt={value:!1,isValid:!1},Pt={value:!0,isValid:!0};var Bt=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===""?Pt:{value:e[0].value,isValid:!0}:Pt:Lt}return Lt},Mt=(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 Dt=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 Ye(r)?r.files:Re(r)?Dt(e.refs).value:Nt(r)?[...r.selectedOptions].map(({value:t})=>t):Se(r)?Bt(e.refs).value:Mt(U(r.value)?e.ref.value:r.value,e)}var Kr=(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}},Pe=e=>e instanceof RegExp,ke=e=>U(e)?e:Pe(e)?e.source:q(e)?Pe(e.value)?e.value.source:e.value:e,Tt=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 Jr=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)),Xr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),jt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const we=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=C(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(we(l,r))break}else if(q(l)&&we(l,r))break}}};function Wt(e,r,t){const o=C(e,t);if(o||Ne(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=C(r,n),l=C(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 Yr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return J(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||ne.all))},Rr=(e,r,t)=>!e||!r||e===r||Ce(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),eo=(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,to=(e,r)=>!qe(C(e,r)).length&&G(e,r),ro=(e,r,t)=>{const o=Ce(C(e,t));return M(o,"root",r[t]),M(e,t,o),e};function Ut(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 _e=e=>q(e)&&!Pe(e)?e:{value:e,message:""},qt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:d,maxLength:u,minLength:f,min:g,max:y,pattern:x,validate:k,name:_,valueAsNumber:F,mount:E}=e._f,b=C(t,_);if(!E||r.has(_))return{};const z=l?l[0]:a,$=L=>{s&&z.reportValidity&&(z.setCustomValidity(ee(L)?"":L||""),z.reportValidity())},N={},I=Re(a),O=Se(a),K=I||O,P=(F||Ye(a))&&U(a.value)&&U(b)||Le(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,X=Xe.bind(null,_,o,N),R=(L,B,W,D=ce.maxLength,Q=ce.minLength)=>{const re=L?B:W;N[_]={type:L?D:Q,message:re,ref:a,...X(L?D:Q,re)}};if(n?!Array.isArray(b)||!b.length:d&&(!K&&(P||Y(b))||ee(b)&&!b||O&&!Bt(l).isValid||I&&!Dt(l).isValid)){const{value:L,message:B}=te(d)?{value:!!d,message:d}:_e(d);if(L&&(N[_]={type:ce.required,message:B,ref:z,...X(ce.required,B)},!o))return $(B),N}if(!P&&(!Y(g)||!Y(y))){let L,B;const W=_e(y),D=_e(g);if(!Y(b)&&!isNaN(b)){const Q=a.valueAsNumber||b&&+b;Y(W.value)||(L=Q>W.value),Y(D.value)||(B=Q<D.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&&(L=de?re(b)>re(W.value):be?b>W.value:Q>new Date(W.value)),te(D.value)&&b&&(B=de?re(b)<re(D.value):be?b<D.value:Q<new Date(D.value))}if((L||B)&&(R(!!L,W.message,D.message,ce.max,ce.min),!o))return $(N[_].message),N}if((u||f)&&!P&&(te(b)||n&&Array.isArray(b))){const L=_e(u),B=_e(f),W=!Y(L.value)&&b.length>+L.value,D=!Y(B.value)&&b.length<+B.value;if((W||D)&&(R(W,L.message,B.message),!o))return $(N[_].message),N}if(x&&!P&&te(b)){const{value:L,message:B}=_e(x);if(Pe(L)&&!b.match(L)&&(N[_]={type:ce.pattern,message:B,ref:a,...X(ce.pattern,B)},!o))return $(B),N}if(k){if(le(k)){const L=await k(b,t),B=Ut(L,z);if(B&&(N[_]={...B,...X(ce.validate,B.message)},!o))return $(B.message),N}else if(q(k)){let L={};for(const B in k){if(!J(L)&&!o)break;const W=Ut(await k[B](b,t),z,B);W&&(L={...W,...X(B,W.message)},$(W.message),o&&(N[_]=L))}if(!J(L)&&(N[_]={ref:z,...L},!o))return N}}return $(!0),N};const oo={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0};function so(e={}){let r={...oo,...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},d,u=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...f};const y={array:$t(),state:$t()},x=r.criteriaMode===ne.all,k=i=>c=>{clearTimeout(u),u=setTimeout(i,c)},_=async i=>{if(!r.disabled&&(f.isValid||g.isValid||i)){const c=r.resolver?J((await O()).errors):await P(o,!0);c!==t.isValid&&y.state.next({isValid:c})}},F=(i,c)=>{!r.disabled&&(f.isValidating||f.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:!J(t.validatingFields)}))},E=(i,c=[],h,w,S=!0,v=!0)=>{if(w&&h&&!r.disabled){if(a.action=!0,v&&Array.isArray(C(o,i))){const V=h(C(o,i),w.argA,w.argB);S&&M(o,i,V)}if(v&&Array.isArray(C(t.errors,i))){const V=h(C(t.errors,i),w.argA,w.argB);S&&M(t.errors,i,V),to(t.errors,i)}if((f.touchedFields||g.touchedFields)&&v&&Array.isArray(C(t.touchedFields,i))){const V=h(C(t.touchedFields,i),w.argA,w.argB);S&&M(t.touchedFields,i,V)}(f.dirtyFields||g.dirtyFields)&&(t.dirtyFields=ge(s,n)),y.state.next({name:i,isDirty:R(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})},z=i=>{t.errors=i,y.state.next({errors:t.errors,isValid:!1})},$=(i,c,h,w)=>{const S=C(o,i);if(S){const v=C(n,i,U(h)?C(s,i):h);U(v)||w&&w.defaultChecked||c?M(n,i,c?v:Ht(S._f)):W(i,v),a.mount&&_()}},N=(i,c,h,w,S)=>{let v=!1,V=!1;const H={name:i};if(!r.disabled){if(!h||w){(f.isDirty||g.isDirty)&&(V=t.isDirty,t.isDirty=H.isDirty=R(),v=V!==H.isDirty);const j=ae(C(s,i),c);V=!!C(t.dirtyFields,i),j?G(t.dirtyFields,i):M(t.dirtyFields,i,!0),H.dirtyFields=t.dirtyFields,v=v||(f.dirtyFields||g.dirtyFields)&&V!==!j}if(h){const j=C(t.touchedFields,i);j||(M(t.touchedFields,i,h),H.touchedFields=t.touchedFields,v=v||(f.touchedFields||g.touchedFields)&&j!==h)}v&&S&&y.state.next(H)}return v?H:{}},I=(i,c,h,w)=>{const S=C(t.errors,i),v=(f.isValid||g.isValid)&&ee(c)&&t.isValid!==c;if(r.delayError&&h?(d=k(()=>b(i,h)),d(r.delayError)):(clearTimeout(u),d=null,h?M(t.errors,i,h):G(t.errors,i)),(h?!ae(S,h):S)||!J(w)||v){const V={...w,...v&&ee(c)?{isValid:c}:{},errors:t.errors,name:i};t={...t,...V},y.state.next(V)}},O=async i=>{F(i,!0);const c=await r.resolver(n,r.context,Kr(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(i),c},K=async i=>{const{errors:c}=await O(i);if(i)for(const h of i){const w=C(c,h);w?M(t.errors,h,w):G(t.errors,h)}else t.errors=c;return c},P=async(i,c,h={valid:!0})=>{for(const w in i){const S=i[w];if(S){const{_f:v,...V}=S;if(v){const H=l.array.has(v.name),j=S._f&&Jr(S._f);j&&f.validatingFields&&F([v.name],!0);const se=await qt(S,l.disabled,n,x,r.shouldUseNativeValidation&&!c,H);if(j&&f.validatingFields&&F([v.name]),se[v.name]&&(h.valid=!1,c))break;!c&&(C(se,v.name)?H?ro(t.errors,se,v.name):M(t.errors,v.name,se[v.name]):G(t.errors,v.name))}!J(V)&&await P(V,c,h)}}return h.valid},X=()=>{for(const i of l.unMount){const c=C(o,i);c&&(c._f.refs?c._f.refs.every(h=>!et(h)):!et(c._f.ref))&&ft(i)}l.unMount=new Set},R=(i,c)=>!r.disabled&&(i&&c&&M(n,i,c),!ae(De(),s)),L=(i,c,h)=>Ke(i,l,{...a.mount?n:U(c)?s:te(i)?{[i]:c}:c},h,c),B=i=>qe(C(a.mount?n:s,i,r.shouldUnregister?C(s,i,[]):[])),W=(i,c,h={})=>{const w=C(o,i);let S=c;if(w){const v=w._f;v&&(!v.disabled&&M(n,i,Mt(c,v)),S=Le(v.ref)&&Y(c)?"":c,Nt(v.ref)?[...v.ref.options].forEach(V=>V.selected=S.includes(V.value)):v.refs?Se(v.ref)?v.refs.forEach(V=>{(!V.defaultChecked||!V.disabled)&&(Array.isArray(S)?V.checked=!!S.find(H=>H===V.value):V.checked=S===V.value||!!S)}):v.refs.forEach(V=>V.checked=V.value===S):Ye(v.ref)?v.ref.value="":(v.ref.value=S,v.ref.type||y.state.next({name:i,values:Z(n)})))}(h.shouldDirty||h.shouldTouch)&&N(i,S,h.shouldTouch,h.shouldDirty,!0),h.shouldValidate&&be(i)},D=(i,c,h)=>{for(const w in c){if(!c.hasOwnProperty(w))return;const S=c[w],v=i+"."+w,V=C(o,v);(l.array.has(i)||q(S)||V&&!V._f)&&!ye(S)?D(v,S,h):W(v,S,h)}},Q=(i,c,h={})=>{const w=C(o,i),S=l.array.has(i),v=Z(c);M(n,i,v),S?(y.array.next({name:i,values:Z(n)}),(f.isDirty||f.dirtyFields||g.isDirty||g.dirtyFields)&&h.shouldDirty&&y.state.next({name:i,dirtyFields:ge(s,n),isDirty:R(i,v)})):w&&!w._f&&!Y(v)?D(i,v,h):W(i,v,h),jt(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,w=!0;const S=C(o,h),v=j=>{w=Number.isNaN(j)||ye(j)&&isNaN(j.getTime())||ae(j,C(n,h,j))},V=Tt(r.mode),H=Tt(r.reValidateMode);if(S){let j,se;const He=c.type?Ht(S._f):Ft(i),fe=i.type===Ae.BLUR||i.type===Ae.FOCUS_OUT,ns=!Xr(S._f)&&!r.resolver&&!C(t.errors,h)&&!S._f.deps||eo(fe,C(t.touchedFields,h),t.isSubmitted,H,V),mt=jt(h,l,fe);M(n,h,He),fe?(!c||!c.readOnly)&&(S._f.onBlur&&S._f.onBlur(i),d&&d(0)):S._f.onChange&&S._f.onChange(i);const gt=N(h,He,fe),as=!J(gt)||mt;if(!fe&&y.state.next({name:h,type:i.type,values:Z(n)}),ns)return(f.isValid||g.isValid)&&(r.mode==="onBlur"?fe&&_():fe||_()),as&&y.state.next({name:h,...mt?{}:gt});if(!fe&&mt&&y.state.next({...t}),r.resolver){const{errors:Er}=await O([h]);if(v(He),w){const ls=Wt(t.errors,o,h),Nr=Wt(Er,o,ls.name||h);j=Nr.error,h=Nr.name,se=J(Er)}}else F([h],!0),j=(await qt(S,l.disabled,n,x,r.shouldUseNativeValidation))[h],F([h]),v(He),w&&(j?se=!1:(f.isValid||g.isValid)&&(se=await P(o,!0)));w&&(S._f.deps&&(!Array.isArray(S._f.deps)||S._f.deps.length>0)&&be(S._f.deps),I(h,se,j,gt))}},de=(i,c)=>{if(C(t.errors,c)&&i.focus)return i.focus(),1},be=async(i,c={})=>{let h,w;const S=Ce(i);if(r.resolver){const v=await K(U(i)?i:S);h=J(v),w=i?!S.some(V=>C(v,V)):h}else i?(w=(await Promise.all(S.map(async v=>{const V=C(o,v);return await P(V&&V._f?{[v]:V}:V)}))).every(Boolean),!(!w&&!t.isValid)&&_()):w=h=await P(o);return y.state.next({...!te(i)||(f.isValid||g.isValid)&&h!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:h}:{},errors:t.errors}),c.shouldFocus&&!w&&we(o,de,i?S:l.mount),w},De=(i,c)=>{let h={...a.mount?n:s};return c&&(h=Et(c.dirtyFields?t.dirtyFields:t.touchedFields,h)),U(i)?h:te(i)?C(h,i):i.map(w=>C(h,w))},Cr=(i,c)=>({invalid:!!C((c||t).errors,i),isDirty:!!C((c||t).dirtyFields,i),error:C((c||t).errors,i),isValidating:!!C(t.validatingFields,i),isTouched:!!C((c||t).touchedFields,i)}),Yo=i=>{i&&Ce(i).forEach(c=>G(t.errors,c)),y.state.next({errors:i?t.errors:{}})},kr=(i,c,h)=>{const w=(C(o,i,{_f:{}})._f||{}).ref,S=C(t.errors,i)||{},{ref:v,message:V,type:H,...j}=S;M(t.errors,i,{...j,...c,ref:w}),y.state.next({name:i,errors:t.errors,isValid:!1}),h&&h.shouldFocus&&w&&w.focus&&w.focus()},Ro=(i,c)=>le(i)?y.state.subscribe({next:h=>"values"in h&&i(L(void 0,c),h)}):L(i,c,!0),wr=i=>y.state.subscribe({next:c=>{Rr(i.name,c.name,i.exact)&&Yr(c,i.formState||f,ss,i.reRenderRoot)&&i.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,es=i=>(a.mount=!0,g={...g,...i.formState},wr({...i,formState:g})),ft=(i,c={})=>{for(const h of i?Ce(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:R()}:{}}),!c.keepIsValid&&_()},Fr=({disabled:i,name:c})=>{(ee(i)&&a.mount||i||l.disabled.has(c))&&(i?l.disabled.add(c):l.disabled.delete(c))},yt=(i,c={})=>{let h=C(o,i);const w=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?Fr({disabled:ee(c.disabled)?c.disabled:r.disabled,name:i}):$(i,!0,c.value),{...w?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:ke(c.min),max:ke(c.max),minLength:ke(c.minLength),maxLength:ke(c.maxLength),pattern:ke(c.pattern)}:{},name:i,onChange:re,onBlur:re,ref:S=>{if(S){yt(i,c),h=C(o,i);const v=U(S.value)&&S.querySelectorAll&&S.querySelectorAll("input,select,textarea")[0]||S,V=qr(v),H=h._f.refs||[];if(V?H.find(j=>j===v):v===h._f.ref)return;M(o,i,{_f:{...h._f,...V?{refs:[...H.filter(et),v,...Array.isArray(C(s,i))?[{}]:[]],ref:{type:v.type,name:i}}:{ref:v}}}),$(i,!1,void 0,v)}else h=C(o,i,{}),h._f&&(h._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(Vt(l.array,i)&&a.action)&&l.unMount.add(i)}}},ht=()=>r.shouldFocusError&&we(o,de,l.mount),ts=i=>{ee(i)&&(y.state.next({disabled:i}),we(o,(c,h)=>{const w=C(o,h);w&&(c.disabled=w._f.disabled||i,Array.isArray(w._f.refs)&&w._f.refs.forEach(S=>{S.disabled=w._f.disabled||i}))},0,!1))},Vr=(i,c)=>async h=>{let w;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:V}=await O();t.errors=v,S=Z(V)}else await P(o);if(l.disabled.size)for(const v of l.disabled)G(S,v);if(G(t.errors,"root"),J(t.errors)){y.state.next({errors:{}});try{await i(S,h)}catch(v){w=v}}else c&&await c({...t.errors},h),ht(),setTimeout(ht);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:J(t.errors)&&!w,submitCount:t.submitCount+1,errors:t.errors}),w)throw w},rs=(i,c={})=>{C(o,i)&&(U(c.defaultValue)?Q(i,Z(C(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?R(i,Z(C(s,i))):R()),c.keepError||(G(t.errors,i),f.isValid&&_()),y.state.next({...t}))},xr=(i,c={})=>{const h=i?Z(i):s,w=Z(h),S=J(i),v=S?s:w;if(c.keepDefaultValues||(s=h),!c.keepValues){if(c.keepDirtyValues){const V=new Set([...l.mount,...Object.keys(ge(s,n))]);for(const H of Array.from(V))C(t.dirtyFields,H)?M(v,H,C(n,H)):Q(H,C(v,H))}else{if(Ue&&U(i))for(const V of l.mount){const H=C(o,V);if(H&&H._f){const j=Array.isArray(H._f.refs)?H._f.refs[0]:H._f.ref;if(Le(j)){const se=j.closest("form");if(se){se.reset();break}}}}if(c.keepFieldsRef)for(const V of l.mount)Q(V,C(v,V));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=!f.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!J(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)=>xr(le(i)?i(n):i,c),os=(i,c={})=>{const h=C(o,i),w=h&&h._f;if(w){const S=w.refs?w.refs[0]:w.ref;S.focus&&(S.focus(),c.shouldSelect&&le(S.select)&&S.select())}},ss=i=>{t={...t,...i}},$r={control:{register:yt,unregister:ft,getFieldState:Cr,handleSubmit:Vr,setError:kr,_subscribe:wr,_runSchema:O,_focusError:ht,_getWatch:L,_getDirty:R,_setValid:_,_setFieldArray:E,_setDisabledField:Fr,_setErrors:z,_getFieldArray:B,_reset:xr,_resetDefaultValues:()=>le(r.defaultValues)&&r.defaultValues().then(i=>{zr(i,r.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:ts,_subjects:y,_proxyFormState:f,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:es,trigger:be,register:yt,handleSubmit:Vr,watch:Ro,setValue:Q,getValues:De,reset:zr,resetField:rs,clearErrors:Yo,unregister:ft,setError:kr,setFocus:os,getFieldState:Cr};return{...$r,formControl:$r}}function no(e={}){const r=p.useRef(void 0),t=p.useRef(void 0),[o,s]=p.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}=so(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Qe(()=>{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]),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&&!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]),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=zt(o,n),r.current}const Gt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=C(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},rt=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Gt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Gt(s,t,e))}},Zt=(e,r)=>{r.shouldUseNativeValidation&&rt(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(ao(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},ao=(e,r)=>{const t=Qt(r);return e.some(o=>Qt(o).match(`^${t}\\.\\d+`))};function Qt(e){return e.replace(/\]|\[/g,"")}function Kt(e,r,t){function o(l,d){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,d);for(const f in a.prototype)f in l||Object.defineProperty(l,f,{value:a.prototype[f].bind(l)});l._zod.constr=a,l._zod.def=d}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var d;const u=t!=null&&t.Parent?new n:this;o(u,l),(d=u._zod).deferred??(d.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var d,u;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(u=(d=l==null?void 0:l._zod)==null?void 0:d.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class lo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const io={};function Jt(e){return io}function co(e,r){return typeof r=="bigint"?r.toString():r}const Xt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Be(e){return typeof e=="string"?e:e==null?void 0:e.message}function Yt(e,r,t){var s,n,a,l,d,u;const o={...e,path:e.path??[]};if(!e.message){const f=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((d=t.customError)==null?void 0:d.call(t,e))??Be((u=t.localeError)==null?void 0:u.call(t,e))??"Invalid input";o.message=f}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const Rt=(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,co,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},uo=Kt("$ZodError",Rt),er=Kt("$ZodError",Rt,{Parent:Error}),fo=(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 lo;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(d=>Yt(d,n,Jt())));throw Xt(l,s==null?void 0:s.callee),l}return a.value})(er),yo=(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(d=>Yt(d,n,Jt())));throw Xt(l,s==null?void 0:s.callee),l}return a.value})(er);function tr(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function ho(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(f){return f.errors.forEach(function(g){return e.push(g)})}),r){var d=t[a].types,u=d&&d[o.code];t[a]=Xe(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return 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(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(f){return f.forEach(function(g){return e.push(g)})}),r){var d=t[a].types,u=d&&d[o.code];t[a]=Xe(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function go(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(tr(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&rt({},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:Zt(ho(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(tr(function(){return Promise.resolve((t.mode==="sync"?fo:yo)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&rt({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof uo})(a))return{values:{},errors:Zt(mo(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 rr=p.createContext(null);function or(){const e=p.useContext(rr);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:d}){const u=no({resolver:t?go(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),f=u.handleSubmit(e);return m.jsx(rr.Provider,{value:u,children:m.jsx("form",{...d,className:a,style:l,onSubmit:f,children:typeof r=="function"?r(u):r})})}const po=_o,vo={formError:"FormError-module__formError___kaUBn"},sr=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=T(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[vo.formError,t].filter(Boolean).join(" ");return m.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},pe={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"},nr=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:d,className:u,style:f,divProps:g})=>{const y=T(),x=[pe.formGroup,r?pe.error:"",e?pe.disabled:"",u].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${y.fonts.rhythm} * 0.35)`,...f},_=p.Children.map(d,F=>{if(p.isValidElement(F)){const E={};if(e&&F.props.disabled===void 0&&(E.disabled=!0),r&&F.props.error===void 0&&(E.error=!0),s&&F.props.id===void 0&&F.type!==p.Fragment&&(E.id=s),Object.keys(E).length>0)return p.cloneElement(F,E)}return F});return m.jsxs("div",{...g,className:x,style:k,children:[n&&m.jsxs($e,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&m.jsxs("span",{className:pe.required,"aria-label":"required",children:[" ","*"]})]}),m.jsx("div",{className:`${pe.inputWrapper} ${o?pe.indented:""}`,children:_}),r&&a&&m.jsx(sr,{children:a})]})};function ue({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:d,labelProps:u}){const{control:f}=or(),{field:g,fieldState:{error:y}}=Ur({name:e,control:f,rules:s});return m.jsx(nr,{label:r,name:e,error:!!y,errorMessage:y==null?void 0:y.message,disabled:n,required:t,className:a,style:l,indent:d,labelProps:u,children:o({value:g.value,onChange:g.onChange,onBlur:g.onBlur,name:g.name,error:!!y,indent:d})})}const ot={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},bo=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),ar=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:d="text",value:u="",onChange:f,onBlur:g,className:y,style:x,inputProps:k})=>{const _=T(),F=_.colors.error,E=r?F:t||_.colors.primary,b=bo({color:E,disabled:e,fontSize:_.fonts.size,placeholderOpacity:l}),z={"--placeholder-opacity":b.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:b.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:b.color,fontSize:b.fontSize,opacity:b.opacity,...x},$=[ot.input,o==="small"?ot.sizeSmall:ot.sizeLarge,y].filter(Boolean).join(" ");return m.jsx("input",{...k,className:$,disabled:e,id:s,name:n,onChange:f,onBlur:g,placeholder:a,type:d,value:u,style:z})};function So({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:d,onChange:u,onBlur:f,name:g,error:y})=>m.jsx(ar,{...l,name:g,value:d||"",onChange:x=>u(x.target.value),onBlur:f,error:y})})}const st={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}),lr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:d=3,value:u="",onChange:f,onBlur:g,className:y,style:x,textareaProps:k})=>{const _=T(),F=_.colors.error,E=r?F:t||_.colors.primary,b=Co({color:E,disabled:e,placeholderOpacity:l}),z={"--placeholder-opacity":b.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:b.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:b.color,fontSize:_.fonts.size,opacity:b.opacity,...x},$=[st.textarea,o==="small"?st.sizeSmall:st.sizeLarge,y].filter(Boolean).join(" ");return m.jsx("textarea",{...k,className:$,disabled:e,id:s,name:n,onChange:f,onBlur:g,placeholder:a,rows:d,value:u,style:z})};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:d,onChange:u,onBlur:f,name:g,error:y})=>m.jsx(lr,{...l,name:g,value:d||"",onChange:x=>u(x.target.value),onBlur:f,error:y})})}const nt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},wo=({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)}),ur=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:i="",onChange:f,onBlur:u,children:d,className:g,style:h,selectProps:x})=>{const k=j(),_=k.colors.error,F=r?_:t||k.colors.primary,z=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:z.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:z.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:z.color,cursor:z.cursor,fontSize:k.fonts.size,opacity:z.opacity,...h},$=[lt.select,o==="small"?lt.sizeSmall:lt.sizeLarge,g].filter(Boolean).join(" ");return m.jsxs("select",{...x,className:$,disabled:e,id:s,name:n,onChange:f,onBlur:u,value:i,style:v,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:i,...f}){return m.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,onBlur:g,name:h,error:x})=>m.jsx(ur,{...f,name:h,value:u||"",onChange:k=>d(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 m.jsx(fe,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:i,onChange:f,name:u,error:d})=>m.jsx(Ne,{...a,name:u,checked:!!i,onChange:g=>f(g.target.checked),error:d})})}const it={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},$o=({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:u,style:d,divProps:g})=>{const h=j(),x=n||wt(),k=h.colors.error,_=o?k:e||h.colors.primary,F=$o({color:_,disabled:t}),z=I=>{t||a(I)},v={cursor:F.cursor,fontSize:h.fonts.size,opacity:F.opacity,...d},$={width:"1em"},E={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},A={fill:F.radioColor},D=[it.container,u].filter(Boolean).join(" ");return m.jsxs("div",{...g,className:D,style:v,children:[m.jsx("input",{id:x,checked:r,disabled:t,name:s,onChange:I=>z({target:{checked:I.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:()=>z({target:{checked:!r,name:s,type:"radio"}}),className:it.svg,style:$,children:[m.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:E}),r&&m.jsx("circle",{cx:"50",cy:"50",r:"25",style:A})]}),i&&m.jsx(Ae,{htmlFor:x,className:it.label,style:{paddingBottom:0,...f},color:F.radioColor,disabled:t,error:o,children:i})]})};function zo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:i,...f}){return m.jsx(fe,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,name:g,error:h})=>m.jsx(ct,{...f,name:g,checked:u===i,onChange:()=>d(i),error:h,label:r})})}function Eo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:i=!0}){return m.jsx(fe,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:i,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:u,name:d,error:g})=>m.jsx(m.Fragment,{children:o.map(h=>m.jsx(ct,{name:d,checked:f===h.value,onChange:()=>u(h.value),label:h.label,disabled:s||h.disabled,error:g},h.value))})})}function Ao({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:i,indent:f=!0}){return m.jsx(fe,{name:e,label:r,required:t,disabled:n,className:a,style:i,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:u,onChange:d,name:g,error:h})=>{const x=Array.isArray(u)?u:[],k=(_,F)=>{d(F?[...x,_]:x.filter(z=>z!==_))};return m.jsx(m.Fragment,{children:o?o.map(_=>m.jsx(Ne,{name:`${g}[]`,checked:x.includes(_.value),onChange:F=>k(_.value,F.target.checked),label:_.label,disabled:n||_.disabled,error:h},_.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:z=>k(F,z.target.checked),error:h||_.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}},dr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:i,style:f})=>{const u=No({compact:t,color:e,visible:r,border:n}),d=[Ve.hamburger,s?Ve.open:"",i].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:Ve.line}),m.jsx("div",{className:Ve.line}),m.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: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":i,"--header-gap":f,backgroundColor:u,color:d}},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:u,breakpoint:d,fixed:g=!1,children:h,className:x,style:k,headerProps:_})=>{const F=j(),z=d||F.breakpoints.sm,{maxWidth:v,unit:$}=_e(z),E=se(`(max-width: ${v}${$})`),A=Lo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:i,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),D=[fr.container,x].filter(Boolean).join(" "),I=g?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return m.jsx("header",{..._,className:fr.header,style:I,children:m.jsx("div",{className:D,style:{...A,...k},children:h})})},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"},ue={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"},ut=({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:u=!1,closeOnBackdropClick:d=!0,className:g,style:h,popoverProps:x})=>{const k=j(),_=o!==void 0,[F,z]=p.useState(!1),v=_?o:F,[$,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=>{_||z(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"||!$||!v)return;let H,R;return H=requestAnimationFrame(()=>{R=requestAnimationFrame(()=>D(!0))}),()=>{cancelAnimationFrame(H),cancelAnimationFrame(R)}},[$,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}):m.jsx("span",{onClick:L,style:{cursor:"pointer",display:"contents"},children:e}):null,Y=e?m.jsx("span",{ref:I,className:ue.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,...h};return m.jsxs(m.Fragment,{children:[Y,v&&je.createPortal(m.jsx("div",{ref:K,className:[ue.popup,g].filter(Boolean).join(" "),style:H,...x,children:r}),document.body)]})}const ne={width:i,backgroundColor:k.colors.secondary,...h},ge=()=>{A||E(!1)};return m.jsxs(m.Fragment,{children:[Y,$&&je.createPortal(m.jsxs("div",{className:[ue.panelOverlay,A?ue.panelOverlayVisible:""].filter(Boolean).join(" "),children:[m.jsx("div",{className:ue.backdrop,style:{backgroundColor:A?f:"transparent"},onClick:d?B:void 0,role:"presentation"}),m.jsxs("div",{ref:K,className:[ue.panel,a==="right"?ue.panelRight:ue.panelLeft,A?ue.panelOpen:"",g].filter(Boolean).join(" "),style:ne,role:"dialog","aria-modal":"true",onTransitionEnd:ge,...x,children:[!u&&m.jsx("button",{className:ue.panelCloseButton,onClick:B,"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)]})},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,u=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:n,color:a,fontSize:u,...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,u=o==null?void 0:o.activeColor;return{navStyles:{...n&&{backgroundColor:n},color:a,...o==null?void 0:o.style},linkActiveStyles:{...f&&{backgroundColor:f},...u&&{color:u},opacity:f||u?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,u]=p.useState(!1),d=p.useRef(null),g=j(),h={...g.breakpoints,...t},{maxWidth:x,unit:k}=_e(h.md),{maxWidth:_,unit:F}=_e(h.sm),z=se(`(max-width: ${x}${k})`),v=se(`(max-width: ${_}${F})`),$=i?!1:z,E=i?!1:v,{navStyles:A,linkActiveStyles:D,linkHoverStyles:I}=Bo({isMobile:$,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")&&u(!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 m.jsx(hr.Provider,{value:{isMobile:$,setOpen:u},children:m.jsx(m.Fragment,{children:$?m.jsx(ut,{variant:"panel",side:"right",panelWidth:"100%",isOpen:f,onOpenChange:u,hideCloseButton:!0,style:{padding:0,backgroundColor:A.backgroundColor},trigger:({isOpen:P})=>m.jsx(dr,{hamburgerRef:d,visible:!0,compact:E,open:P,setOpen:q=>u(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:m.jsxs("nav",{...a,className:J,style:{...K,...n},onClickCapture:O,children:[m.jsx("div",{className:Se.navHeader}),typeof L=="function"?L({setOpen:u}):L]})}):m.jsx("nav",{...a,className:X,style:{...K,...n},children:typeof B=="function"?B({setOpen:u}):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 u=j(),d=n||u.fonts.color;return m.jsx(ut,{variant:t,side:o,panelWidth:s,trigger:({onClick:g,isOpen:h})=>m.jsxs("button",{type:"button",className:[De.trigger,h?De.triggerOpen:"",a].filter(Boolean).join(" "),style:{color:d,...i},"data-navitem-trigger":!0,onClick:g,...f,children:[e,m.jsx("span",{className:[De.chevron,h?De.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})},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,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 ${i}`,borderTop:`0.1em solid ${f}`}}),d=m.jsxs(m.Fragment,{children:[u,m.jsx("style",{children:`
17
+ `.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),ir=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:d,onBlur:u,children:f,className:g,style:y,selectProps:x})=>{const k=T(),_=k.colors.error,F=r?_:t||k.colors.primary,E=wo({color:F,disabled:e}),b={"--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:E.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:E.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:E.color,cursor:E.cursor,fontSize:k.fonts.size,opacity:E.opacity,...y},z=[nt.select,o==="small"?nt.sizeSmall:nt.sizeLarge,g].filter(Boolean).join(" ");return m.jsxs("select",{...x,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:u,value:l,style:b,children:[a!==""&&m.jsx("option",{disabled:!0,value:"",children:a}),f]})};function Fo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...d}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:f,onBlur:g,name:y,error:x})=>m.jsx(ir,{...d,name:y,value:u||"",onChange:k=>f(k.target.value),onBlur:g,error:x,children:l})})}function Vo({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:d,name:u,error:f})=>m.jsx(Ee,{...a,name:u,checked:!!l,onChange:g=>d(g.target.checked),error:f})})}const at={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},xo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),lt=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:d,className:u,style:f,divProps:g})=>{const y=T(),x=n||Ct(),k=y.colors.error,_=o?k:e||y.colors.primary,F=xo({color:_,disabled:t}),E=O=>{t||a(O)},b={cursor:F.cursor,fontSize:y.fonts.size,opacity:F.opacity,...f},z={width:"1em"},$={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},N={fill:F.radioColor},I=[at.container,u].filter(Boolean).join(" ");return m.jsxs("div",{...g,className:I,style:b,children:[m.jsx("input",{id:x,checked:r,disabled:t,name:s,onChange:O=>E({target:{checked:O.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:()=>E({target:{checked:!r,name:s,type:"radio"}}),className:at.svg,style:z,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:N})]}),l&&m.jsx($e,{htmlFor:x,className:at.label,style:{paddingBottom:0,...d},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,...d}){return m.jsx(ue,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:f,name:g,error:y})=>m.jsx(lt,{...d,name:g,checked:u===l,onChange:()=>f(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:d,onChange:u,name:f,error:g})=>m.jsx(m.Fragment,{children:o.map(y=>m.jsx(lt,{name:f,checked:d===y.value,onChange:()=>u(y.value),label:y.label,disabled:s||y.disabled,error:g},y.value))})})}function Eo({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:d=!0}){return m.jsx(ue,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:d,labelProps:{style:{marginBottom:".25em"}},children:({value:u,onChange:f,name:g,error:y})=>{const x=Array.isArray(u)?u:[],k=(_,F)=>{f(F?[...x,_]:x.filter(E=>E!==_))};return m.jsx(m.Fragment,{children:o?o.map(_=>m.jsx(Ee,{name:`${g}[]`,checked:x.includes(_.value),onChange:F=>k(_.value,F.target.checked),label:_.label,disabled:n||_.disabled,error:y},_.value)):p.Children.map(s,_=>{if(p.isValidElement(_)&&_.type===Ee){const F=_.props.value||_.props.name;return p.cloneElement(_,{name:`${g}[]`,checked:x.includes(F),onChange:E=>k(F,E.target.checked),error:y||_.props.error,disabled:n||_.props.disabled})}return _})})}})}const Fe={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=T(),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}},cr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:d})=>{const u=No({compact:t,color:e,visible:r,border:n}),f=[Fe.hamburger,s?Fe.open:"",l].filter(Boolean).join(" ");return m.jsxs("button",{ref:o,className:f,onClick:()=>a(!s),style:{...u,...d},"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})]})},ur={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:d,backgroundColor:u,color:f}={})=>{const g=T();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":d,backgroundColor:u,color:f}},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 p.useSyncExternalStore(t,o,s)},dr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:u,breakpoint:f,fixed:g=!1,children:y,className:x,style:k,headerProps:_})=>{const F=T(),E=f||F.breakpoints.sm,{maxWidth:b,unit:z}=me(E),$=oe(`(max-width: ${b}${z})`),N=Ao({isSmallScreen:$,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:d,gap:u,backgroundColor:e,color:r}),I=[ur.container,x].filter(Boolean).join(" "),O=g?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return m.jsx("header",{..._,className:ur.header,style:O,children:m.jsx("div",{className:I,style:{...N,...k},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 Lo(e,r){const[t,o]=p.useState(!1),[s,n]=p.useState(!1);p.useEffect(()=>{r==="panel"&&(e?o(!0):n(!1))},[e,r]),p.useEffect(()=>{if(r!=="panel"||!t||!e)return;let l,d;return l=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>n(!0))}),()=>{cancelAnimationFrame(l),cancelAnimationFrame(d)}},[t,e,r]);const a=p.useCallback(()=>{s||o(!1)},[s]);return{panelMounted:t,panelVisible:s,handleTransitionEnd:a}}function Po(e,r,t,o){const[s,n]=p.useState({}),a=p.useCallback(()=>{if(r!=="popup"||!t.current)return;const l=t.current.getBoundingClientRect(),d={position:"fixed",top:l.bottom+4,zIndex:999};n(o==="bottom-start"?{...d,left:l.left}:o==="bottom"?{...d,left:l.left+l.width/2,transform:"translateX(-50%)"}:{...d,left:l.right,transform:"translateX(-100%)"})},[r,o,t]);return p.useEffect(()=>{e&&r==="popup"&&a()},[e,r,a]),p.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 it=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:l="75%",backdropColor:d="rgba(0, 0, 0, 0.5)",hideCloseButton:u=!1,closeOnBackdropClick:f=!0,className:g,style:y,popoverProps:x})=>{const k=T(),_=o!==void 0,[F,E]=p.useState(!1),b=_?o:F,z=p.useRef(null),$=p.useRef(null),N=p.useCallback(D=>{_||E(D),s==null||s(D)},[_,s]),I=p.useCallback(()=>N(!b),[b,N]),O=p.useCallback(()=>N(!1),[N]),{panelMounted:K,panelVisible:P,handleTransitionEnd:X}=Lo(b,t),{popupPositionStyle:R}=Po(b,t,z,n);p.useEffect(()=>{if(!b||t!=="popup")return;const D=Q=>{var re,de;(re=$.current)!=null&&re.contains(Q.target)||(de=z.current)!=null&&de.contains(Q.target)||O()};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[b,t,O]),p.useEffect(()=>{if(!b)return;const D=Q=>{Q.key==="Escape"&&O()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[b,O]),p.useEffect(()=>{if(!b||t!=="panel")return;const D=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${D}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,D)}},[b,t]);const L=e?typeof e=="function"?e({onClick:I,isOpen:b}):m.jsx("span",{onClick:I,style:{cursor:"pointer",display:"contents"},children:e}):null,B=e?m.jsx("span",{ref:z,className:ie.triggerWrapper,children:L}):null;if(t==="popup"){const D={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)",...R,...y};return m.jsxs(m.Fragment,{children:[B,b&&Te.createPortal(m.jsx("div",{ref:$,className:[ie.popup,g].filter(Boolean).join(" "),style:D,...x,children:r}),document.body)]})}const W={width:l,backgroundColor:k.colors.secondary,...y};return m.jsxs(m.Fragment,{children:[B,K&&Te.createPortal(m.jsxs("div",{className:[ie.panelOverlay,P?ie.panelOverlayVisible:""].filter(Boolean).join(" "),children:[m.jsx("div",{className:ie.backdrop,style:{backgroundColor:P?d:"transparent"},onClick:f?O:void 0,role:"presentation"}),m.jsxs("div",{ref:$,className:[ie.panel,a==="right"?ie.panelRight:ie.panelLeft,P?ie.panelOpen:"",g].filter(Boolean).join(" "),style:W,role:"dialog","aria-modal":"true",onTransitionEnd:X,...x,children:[!u&&m.jsx("button",{className:ie.panelCloseButton,onClick:O,"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)]})},Bo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=T();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,l=(t==null?void 0:t.activeBackgroundColor)||s.colors.secondary,d=(t==null?void 0:t.activeColor)||s.colors.primary,u=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:n,color:a,fontSize:u,...t==null?void 0:t.style},linkActiveStyles:{backgroundColor:l,color:d},linkHoverStyles:{}}}else{const n=o==null?void 0:o.backgroundColor,a=(o==null?void 0:o.color)||s.fonts.color,l=(o==null?void 0:o.hoverOpacity)??.5,d=o==null?void 0:o.activeBackgroundColor,u=o==null?void 0:o.activeColor;return{navStyles:{...n&&{backgroundColor:n},color:a,...o==null?void 0:o.style},linkActiveStyles:{...d&&{backgroundColor:d},...u&&{color:u},opacity:d||u?1:l},linkHoverStyles:{opacity:l}}}},[e,r,t,o,s])},fr=p.createContext({isMobile:!1,setOpen:()=>{}});function Mo(e,r,t){return{...e,...r.backgroundColor&&{"--mobile-active-bg":r.backgroundColor},...r.color&&{"--mobile-active-color":r.color},...t.opacity!==void 0&&{"--desktop-hover-opacity":t.opacity}}}const Oo=({open:e,setOpen:r,hamburgerRef:t,isCompact:o,mobile:s,hamburgerOpenColor:n,panelBackground:a,navClassName:l,cssProps:d,navProps:u,content:f,onNavClick:g})=>m.jsx(it,{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(cr,{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:d,onClickCapture:g,children:[m.jsx("div",{className:ve.navHeader}),typeof f=="function"?f({setOpen:r}):f]})}),Do=({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}),Ho=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:l=!1})=>{const[d,u]=p.useState(!1),f=p.useRef(null),g=T(),y={...g.breakpoints,...t},{maxWidth:x,unit:k}=me(y.md),{maxWidth:_,unit:F}=me(y.sm),E=oe(`(max-width: ${x}${k})`),b=oe(`(max-width: ${_}${F})`),z=l?!1:E,$=l?!1:b,{navStyles:N,linkActiveStyles:I,linkHoverStyles:O}=Bo({isMobile:z,isCompact:$,mobile:e,desktop:r}),K={...Mo(N,I,O),...n},P=L=>{const B=L.target;B.closest("[data-navitem-trigger]")||B.closest("a, button")&&u(!1)},X=[ve.nav,ve.navMobile,$||e!=null&&e.compact?ve.compact:"",s].filter(Boolean).join(" "),R=[ve.nav,ve.navDesktop,s].filter(Boolean).join(" ");return m.jsx(fr.Provider,{value:{isMobile:z,setOpen:u},children:z?m.jsx(Oo,{open:d,setOpen:u,hamburgerRef:f,isCompact:$,mobile:e,hamburgerOpenColor:(e==null?void 0:e.hamburgerColor)||(e==null?void 0:e.color)||g.colors.secondary,panelBackground:N.backgroundColor,navClassName:X,cssProps:K,navProps:a,content:(e==null?void 0:e.content)||o,onNavClick:P}):m.jsx(Do,{setOpen:u,navClassName:R,cssProps:K,navProps:a,content:(r==null?void 0:r.content)||o})})},Me={trigger:"NavItem-module__trigger___og97w",triggerOpen:"NavItem-module__triggerOpen___7lIFg",chevron:"NavItem-module__chevron___awf4c",chevronOpen:"NavItem-module__chevronOpen___ZtUGj"},To=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,className:a,style:l,buttonProps:d})=>{const u=T(),f=n||u.fonts.color;return m.jsx(it,{variant:t,side:o,panelWidth:s,trigger:({onClick:g,isOpen:y})=>m.jsxs("button",{type:"button",className:[Me.trigger,y?Me.triggerOpen:"",a].filter(Boolean).join(" "),style:{color:f,...l},"data-navitem-trigger":!0,onClick:g,...d,children:[e,m.jsx("span",{className:[Me.chevron,y?Me.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})},yr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=T(),l=e||a.colors.primary,d=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 ${d}`}}),f=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?m.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:d}):d},Mo=({children:e,loadingComponent:r})=>{const[t,o]=p.useState(!1);return p.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?m.jsx(m.Fragment,{children:e}):r||m.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"},dt={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=[dt.stack,e==="column"?dt.vertical:dt.horizontal,t].filter(Boolean).join(" ");return m.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:u="500px",maxWidth:d="90vw",backgroundColor:g,backdropColor:h="rgba(0, 0, 0, 0.5)",className:x,style:k,divProps:_})=>{const F=j(),z=p.useRef(null),v=p.useRef(null),{maxWidth:$}=_e(F.breakpoints.md),E=se(`(max-width: ${$-1}px)`);p.useEffect(()=>{if(e)return v.current=document.activeElement,document.body.style.overflow="hidden",z.current&&z.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:u,maxWidth:d,backgroundColor:g||F.colors.secondary,borderRadius:F.border.radius,...k},I={backgroundColor:h},K=m.jsx("div",{className:me.backdrop,style:I,onClick:A,role:"presentation",children:m.jsxs("div",{ref:z,className:[me.modal,x].filter(Boolean).join(" "),style:D,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,..._,children:[m.jsxs("div",{className:me.header,children:[o&&m.jsx("h2",{id:"modal-title",className:me.title,children:o}),!s&&m.jsx("button",{className:me.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:me.content,children:t}),i.length>0&&m.jsx(gr,{direction:E?"column":"row",className:me.actions,children:i.map((O,J)=>m.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(u=>new Promise((d,g)=>{const h=Math.random().toString(36).substr(2,9);t({id:h,content:u.content,title:u.title,actions:u.actions,options:u.options,resolve:d,reject:g})}),[]),s=p.useCallback(u=>{t(d=>(d&&d.resolve(u),null))},[]),n=p.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=p.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]),i=p.useCallback(()=>{s()},[s]),f=p.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(_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:u,verticalRhythm:d=3,children:g,className:h,style:x,sectionProps:k})=>{const _=j(),F=se(`(min-width: ${_.breakpoints.sm})`),z={backgroundColor:e,color:r||_.fonts.color,margin:f,...x},v=`calc(${_.fonts.rhythm} * ${d})`,$=F?a||_.layout.padding:i||_.layout.paddingSm,E={"--max-width":t||_.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${v} ${$}`,"--gap":u},A=[vr.section,h].filter(Boolean).join(" ");return m.jsx("section",{...k,className:A,style:z,children:m.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,u=(r==null?void 0:r.lg)||a.breakpoints.lg,d=se(`(min-width: ${f})`),g=se(`(min-width: ${u})`),h=To({isMd:d,isLg:g,theme:a});return m.jsx(ft,{className:i,color:e||a.fonts.color,style:{...h,...s},...n,children:m.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: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:i,gap:f,backgroundColor:u,color:d||g.fonts.color}},Cr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:u,breakPoint:d,children:g,className:h,style:x,footerProps:k})=>{const _=j(),F=d||_.breakpoints.sm,{maxWidth:z,unit:v}=_e(F),$=se(`(max-width: ${z}${v})`),E=jo({isSmallScreen:$,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:i,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),A=[Sr.container,h].filter(Boolean).join(" ");return m.jsx("footer",{...k,className:Sr.footer,children:m.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(" "),u=e||i.breakpoints.md,d=se(`(min-width: ${u})`),g=Wo({isMd:d,theme:i});return m.jsxs("div",{...a,className:f,style:{...g,...n},children:[r&&m.jsx("div",{className:He.icon,children:r}),m.jsx("h3",{className:He.title,children:t}),m.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(" "),u=(r==null?void 0:r.md)||i.breakpoints.md,d=(r==null?void 0:r.lg)||i.breakpoints.lg,g=se(`(min-width: ${u})`),h=se(`(min-width: ${d})`),x=qo({columns:e,isMd:g,isLg:h}),k={"--section-padding-vertical":`calc(${i.fonts.rhythm} * 2)`},_={...x,gap:t,...n};return m.jsx(ft,{className:f,style:k,...a,children:m.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 u=[yt.layoutContainer,o].filter(Boolean).join(" ");return m.jsxs("div",{...i,className:u,style:s,children:[m.jsxs("div",{className:yt.content,children:[e&&m.jsx(yr,{...n,children:e}),m.jsx("main",{...f,className:yt.main,children:t})]}),r&&m.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=zo,N.FormRadioGroup=Eo,N.FormSelect=Vo,N.FormTextarea=wo,N.Hamburger=dr,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=ut,N.Radio=ct,N.ResponsiveNav=Po,N.ResponsiveNavContext=hr,N.ResponsiveSection=ft,N.Select=ur,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:f}):f},Io=({children:e,loadingComponent:r})=>{const[t,o]=p.useState(!1);return p.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?m.jsx(m.Fragment,{children:e}):r||m.jsx(yr,{})},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"},ct={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},hr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[ct.stack,e==="column"?ct.vertical:ct.horizontal,t].filter(Boolean).join(" ");return m.jsx("div",{...s,className:n,style:o,children:r})},mr=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:d,width:u="500px",maxWidth:f="90vw",backgroundColor:g,backdropColor:y="rgba(0, 0, 0, 0.5)",className:x,style:k,divProps:_})=>{const F=T(),E=p.useRef(null),b=p.useRef(null),{maxWidth:z}=me(F.breakpoints.md),$=oe(`(max-width: ${z-1}px)`);p.useEffect(()=>{if(e)return b.current=document.activeElement,document.body.style.overflow="hidden",E.current&&E.current.focus(),()=>{document.body.style.overflow="",b.current&&b.current.focus()}},[e]),p.useEffect(()=>{if(!e||!a)return;const P=X=>{X.key==="Escape"&&r()};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[e,a,r]);const N=P=>{P.target===P.currentTarget&&n&&r()};if(!e)return null;const I={width:u,maxWidth:f,backgroundColor:g||F.colors.secondary,borderRadius:F.border.radius,...k},O={backgroundColor:y},K=m.jsx("div",{className:he.backdrop,style:O,onClick:N,role:"presentation",children:m.jsxs("div",{ref:E,className:[he.modal,x].filter(Boolean).join(" "),style:I,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,..._,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(hr,{direction:$?"column":"row",className:he.actions,children:l.map((P,X)=>m.jsx(vt,{color:P.color,outline:P.variant==="outline",disabled:P.disabled,onClick:()=>{P.onClick?P.onClick(d||r):d?d(P.value):r()},children:P.label},X))})]})});return Te.createPortal(K,document.body)},gr=p.createContext(null),jo=({children:e})=>{const[r,t]=p.useState(null),o=p.useCallback(u=>new Promise((f,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:f,reject:g})}),[]),s=p.useCallback(u=>{t(f=>(f&&f.resolve(u),null))},[]),n=p.useCallback(u=>o({title:u.title||"Confirm",content:u.message,actions:[{label:u.cancelLabel||"Cancel",variant:"outline",onClick:f=>f(!1)},{label:u.confirmLabel||"Confirm",color:u.confirmColor,onClick:f=>f(!0)}],options:u.options}),[o]),a=p.useCallback(u=>o({title:u.title||"Alert",content:u.message,actions:[{label:u.okLabel||"OK",color:u.okColor,onClick:f=>f()}],options:u.options}),[o]),l=p.useCallback(()=>{s()},[s]),d=p.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return m.jsxs(gr.Provider,{value:d,children:[e,r&&m.jsx(mr,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Wo=()=>{const e=p.useContext(gr);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"},ut=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:u,verticalRhythm:f=3,children:g,className:y,style:x,sectionProps:k})=>{const _=T(),F=oe(`(min-width: ${_.breakpoints.sm})`),E={backgroundColor:e,color:r||_.fonts.color,margin:d,...x},b=`calc(${_.fonts.rhythm} * ${f})`,z=F?a||_.layout.padding:l||_.layout.paddingSm,$={"--max-width":t||_.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${b} ${z}`,"--gap":u},N=[_r.section,y].filter(Boolean).join(" ");return m.jsx("section",{...k,className:N,style:E,children:m.jsx("div",{className:_r.innerDiv,style:$,children:g})})},pr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},Uo=({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]),qo=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=T(),l=[pr.hero,o].filter(Boolean).join(" "),d=(r==null?void 0:r.md)||a.breakpoints.md,u=(r==null?void 0:r.lg)||a.breakpoints.lg,f=oe(`(min-width: ${d})`),g=oe(`(min-width: ${u})`),y=Uo({isMd:f,isLg:g,theme:a});return m.jsx(ut,{className:l,color:e||a.fonts.color,style:{...y,...s},...n,children:m.jsx("div",{className:pr.content,children:t})})},vr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},Go=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:d,backgroundColor:u,color:f}={})=>{const g=T();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:d,backgroundColor:u,color:f||g.fonts.color}},br=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:u,breakPoint:f,children:g,className:y,style:x,footerProps:k})=>{const _=T(),F=f||_.breakpoints.sm,{maxWidth:E,unit:b}=me(F),z=oe(`(max-width: ${E}${b})`),$=Go({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:d,gap:u,backgroundColor:e,color:r}),N=[vr.container,y].filter(Boolean).join(" ");return m.jsx("footer",{...k,className:vr.footer,children:m.jsx("div",{className:N,style:{...$,...x},children:g})})},Oe={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Zo=({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]),Qo=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=T(),d=[Oe.card,s].filter(Boolean).join(" "),u=e||l.breakpoints.md,f=oe(`(min-width: ${u})`),g=Zo({isMd:f,theme:l});return m.jsxs("div",{...a,className:d,style:{...g,...n},children:[r&&m.jsx("div",{className:Oe.icon,children:r}),m.jsx("h3",{className:Oe.title,children:t}),m.jsx("div",{className:Oe.content,children:o})]})},Sr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},Ko=({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]),Jo=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const l=T(),d=[Sr.section,s].filter(Boolean).join(" "),u=(r==null?void 0:r.md)||l.breakpoints.md,f=(r==null?void 0:r.lg)||l.breakpoints.lg,g=oe(`(min-width: ${u})`),y=oe(`(min-width: ${f})`),x=Ko({columns:e,isMd:g,isLg:y}),k={"--section-padding-vertical":`calc(${l.fonts.rhythm} * 2)`},_={...x,gap:t,...n};return m.jsx(ut,{className:d,style:k,...a,children:m.jsx("div",{className:Sr.grid,style:_,children:o})})},dt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},Xo=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:d})=>{const u=[dt.layoutContainer,o].filter(Boolean).join(" ");return m.jsxs("div",{...l,className:u,style:s,children:[m.jsxs("div",{className:dt.content,children:[e&&m.jsx(dr,{...n,children:e}),m.jsx("main",{...d,className:dt.main,children:t})]}),r&&m.jsx(br,{...a,children:r})]})};A.Button=vt,A.CSSReset=Hr,A.Checkbox=Ee,A.FeatureCard=Qo,A.FeatureGridSection=Jo,A.Footer=br,A.Form=po,A.FormCheckbox=Vo,A.FormCheckboxGroup=Eo,A.FormError=sr,A.FormField=ue,A.FormGroup=nr,A.FormInput=So,A.FormLabel=$e,A.FormRadio=zo,A.FormRadioGroup=$o,A.FormSelect=Fo,A.FormTextarea=ko,A.Hamburger=cr,A.Header=dr,A.Hero=qo,A.Input=ar,A.LoadingSpinner=yr,A.Modal=mr,A.ModalProvider=jo,A.NavItem=To,A.PageLayout=Xo,A.Popover=it,A.Radio=lt,A.ResponsiveNav=Ho,A.ResponsiveNavContext=fr,A.ResponsiveSection=ut,A.Select=ir,A.Stack=hr,A.StyleLoader=Io,A.Textarea=lr,A.ThemeProvider=Lr,A.parseBreakpoint=me,A.useFormContext=or,A.useMediaQuery=oe,A.useModal=Wo,A.useTheme=T,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digital-rabbit-cl",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "dependencies": {
5
5
  "@hookform/resolvers": "^5.2.2",
6
6
  "react-hook-form": "^7.66.0",