digital-rabbit-cl 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ResponsiveNav.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/ResponsiveNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAY,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,0CAG/B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAC,EACnD,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,uBAAuB,CAAC,EAC1D,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjG;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CACtB,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,CAAC,CAClF,CAAC;IAEF;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAC,EACnD,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,uBAAuB,CAAC,EAC1D,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,EAChC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IAEpC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAExC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjG;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;IAE1E;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqI/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ResponsiveNav.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/ResponsiveNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAY,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,0CAG/B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAC,EACnD,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,uBAAuB,CAAC,EAC1D,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjG;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CACtB,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,CAAC,CAClF,CAAC;IAEF;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAC,EACnD,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,uBAAuB,CAAC,EAC1D,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,EAChC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IAEpC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAExC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjG;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;IAE1E;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyI/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,4 +1,4 @@
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)}})();
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
2
  import { jsx as p, jsxs as U, Fragment as pe } from "react/jsx-runtime";
3
3
  import x, { createContext as mt, useContext as er, useState as ye, useLayoutEffect as Rr, useSyncExternalStore as Or, useRef as Ee, useCallback as Le, useEffect as de, useMemo as We } from "react";
4
4
  import { createPortal as at } from "react-dom";
@@ -2867,7 +2867,9 @@ const ls = "Hamburger-module__hamburger___Tf4-t", cs = "Hamburger-module__line__
2867
2867
  return /* @__PURE__ */ p(Bs.Provider, { value: { isMobile: z, setOpen: u }, children: /* @__PURE__ */ p(pe, { children: z ? (
2868
2868
  // Mobile: Hamburger as trigger for a full-screen Popover panel.
2869
2869
  // Popover handles scroll lock, Escape key, backdrop, and slide animation.
2870
- // The triggerWrapper z-index (1001) keeps the hamburger above the panel overlay (1000).
2870
+ // When open, a z-index is applied to the hamburger wrapper so it stays above the
2871
+ // panel overlay — without setting z-index on the global triggerWrapper (which would
2872
+ // cause NavItem panel dropdowns to appear behind their own triggers).
2871
2873
  /* @__PURE__ */ p(
2872
2874
  kr,
2873
2875
  {
@@ -2878,7 +2880,7 @@ const ls = "Hamburger-module__hamburger___Tf4-t", cs = "Hamburger-module__line__
2878
2880
  onOpenChange: u,
2879
2881
  hideCloseButton: !0,
2880
2882
  style: { padding: 0, backgroundColor: A.backgroundColor },
2881
- trigger: ({ isOpen: L }) => /* @__PURE__ */ p(
2883
+ trigger: ({ isOpen: L }) => /* @__PURE__ */ p("div", { style: L ? { position: "relative", zIndex: 1001 } : void 0, children: /* @__PURE__ */ p(
2882
2884
  fs,
2883
2885
  {
2884
2886
  hamburgerRef: d,
@@ -2889,7 +2891,7 @@ const ls = "Hamburger-module__hamburger___Tf4-t", cs = "Hamburger-module__line__
2889
2891
  color: L ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || h.colors.secondary : void 0,
2890
2892
  ...e == null ? void 0 : e.hamburgerProps
2891
2893
  }
2892
- ),
2894
+ ) }),
2893
2895
  children: /* @__PURE__ */ U(
2894
2896
  "nav",
2895
2897
  {
@@ -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(N,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(N=typeof globalThis<"u"?globalThis:N||self,h(N.DigitalRabbitCL={},N.jsxRuntime,N.React,N.ReactDOM))})(this,(function(N,h,p,je){"use strict";const ze={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},Lr=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const i=t||a.colors.primary,f=a.buttons.textColor;let d,u,g;n?(d="transparent",u=i,g=i,e&&(d=o||i,u=o||i,g=s||f)):(d=i,u=i,g=f,e&&(d=o||i,u=o||i,g=s||f));let m=1;return r?m=.3:e&&!o&&(m=.75),{backgroundColor:d,borderColor:u,color:g,opacity:m}};function vt(e,r){const t={...e};return $e(e)&&$e(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];$e(s)&&$e(n)?t[o]=vt(n,s):s!==void 0&&(t[o]=s)}),t}function $e(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const We={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},Ue={colors:We,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",paddingHorizontal:.35,primary:{textColor:We.secondary}},inputs:{paddingHorizontal:.27},sizes:{small:{paddingVertical:.07},large:{paddingVertical:.17}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"},modal:{backgroundColor:We.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},bt=p.createContext(Ue),Br=({theme:e,children:r})=>{const t=e?vt(Ue,e):Ue;return h.jsx(bt.Provider,{value:t,children:r})},j=()=>p.useContext(bt),St=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:i,style:f,buttonProps:d={},onClick:u,children:g})=>{const m=j(),[x,k]=p.useState(!1),F={...Lr({isActive:x,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:m}),fontSize:m.fonts.size,borderWidth:m.border.width,borderRadius:m.border.radius,"--button-padding-small":`calc(${m.fonts.rhythm} * ${m.sizes.small.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${m.fonts.rhythm} * ${m.sizes.large.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,...f},$=[ze.button,s==="small"?ze.sizeSmall:ze.sizeLarge,n?ze.outline:"",i].filter(Boolean).join(" ");return h.jsx("button",{...d,className:$,disabled:o,onClick:u,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),type:a,style:F,children:g})};var Ct=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Pr=new Uint8Array(16);function Or(){if(!Ct)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ct(Pr)}for(var kt=[],Ee=0;Ee<256;++Ee)kt[Ee]=(Ee+256).toString(16).substr(1);function Mr(e,r){var t=0,o=kt;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function wt(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Or)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Mr(s)}const qe={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Dr=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},Ft={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Hr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),Ae=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:i})=>{const f=j(),d=f.colors.error,u=t?d:e||f.colors.primary,g=Hr({color:u,disabled:r,fontSize:".85em"}),m={"--form-label-padding-bottom":`calc(${f.fonts.rhythm} * 0.17)`,color:g.color,fontSize:g.fontSize,opacity:g.opacity,cursor:g.cursor,...a},x=[Ft.label,r?Ft.disabled:"",n].filter(Boolean).join(" ");return h.jsx("label",{...i,className:x,htmlFor:o,style:m,children:s})},Ne=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:i,onChange:f,label:d,labelStyle:u,className:g,style:m,divProps:x})=>{const k=j(),_=i||wt(),F=k.colors.error,$=n?F:e||k.colors.primary,v=Dr({color:$,checkmarkColor:r,disabled:s,inverted:o}),z=O=>{s||f(O)},E={cursor:v.cursor,fontSize:k.fonts.size,opacity:v.opacity,...m},A={width:"1em"},D={fill:o&&t?v.checkboxColor:"transparent",strokeWidth:"25",stroke:v.checkboxColor},I={stroke:v.checkmarkColor,strokeWidth:"15",fill:"transparent"},K=[qe.container,g].filter(Boolean).join(" ");return h.jsxs("div",{...x,className:K,style:E,children:[h.jsx("input",{id:_,checked:t,disabled:s,onChange:O=>z({target:{checked:O.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>z({target:{checked:!t,name:a,type:"checkbox"}}),style:A,className:qe.svg,children:[h.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:D}),t&&h.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:I})]}),d&&h.jsx(Ae,{htmlFor:_,className:qe.label,style:{paddingBottom:0,...u},color:v.checkboxColor,disabled:s,error:n,children:d})]})},Tr=()=>{const e=j();return p.useLayoutEffect(()=>{const r=document.documentElement;e.fonts&&(e.fonts.fontFamily&&r.style.setProperty("--font-family",e.fonts.fontFamily),e.fonts.size&&r.style.setProperty("--font-size",e.fonts.size),e.fonts.lineHeight!==void 0&&r.style.setProperty("--line-height",e.fonts.lineHeight.toString()),e.fonts.fontWeightHeader!==void 0&&r.style.setProperty("--font-weight-header",e.fonts.fontWeightHeader.toString()),e.fonts.fontSizeH1&&r.style.setProperty("--font-size-h1",e.fonts.fontSizeH1),e.fonts.fontSizeH2&&r.style.setProperty("--font-size-h2",e.fonts.fontSizeH2),e.fonts.fontSizeH3&&r.style.setProperty("--font-size-h3",e.fonts.fontSizeH3),e.fonts.fontSizeH4&&r.style.setProperty("--font-size-h4",e.fonts.fontSizeH4),e.fonts.fontSizeH5&&r.style.setProperty("--font-size-h5",e.fonts.fontSizeH5),e.fonts.fontSizeH6&&r.style.setProperty("--font-size-h6",e.fonts.fontSizeH6)),e.colors&&(e.colors.primary&&r.style.setProperty("--primary-color",e.colors.primary),e.colors.secondary&&r.style.setProperty("--background-color",e.colors.secondary),e.colors.accent&&r.style.setProperty("--accent-color",e.colors.accent)),e.breakpoints&&(e.breakpoints.xs&&r.style.setProperty("--breakpoint-xs",e.breakpoints.xs),e.breakpoints.sm&&r.style.setProperty("--breakpoint-sm",e.breakpoints.sm),e.breakpoints.md&&r.style.setProperty("--breakpoint-md",e.breakpoints.md),e.breakpoints.lg&&r.style.setProperty("--breakpoint-lg",e.breakpoints.lg)),e.layout&&(e.layout.maxWidth&&r.style.setProperty("--layout-max-width",e.layout.maxWidth),e.layout.paddingSm&&r.style.setProperty("--layout-wrapper-padding-sm",e.layout.paddingSm),e.layout.padding&&r.style.setProperty("--layout-wrapper-padding",e.layout.padding))},[e]),null};var Ce=e=>e.type==="checkbox",he=e=>e instanceof Date,te=e=>e==null;const Vt=e=>typeof e=="object";var G=e=>!te(e)&&!Array.isArray(e)&&Vt(e)&&!he(e),xt=e=>G(e)&&e.target?Ce(e.target)?e.target.checked:e.target.value:e,Ir=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zt=(e,r)=>e.has(Ir(r)),jr=e=>{const r=e.constructor&&e.constructor.prototype;return G(r)&&r.hasOwnProperty("isPrototypeOf")},Ge=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Q(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Ge&&(e instanceof Blob||o))&&(t||G(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!jr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=Q(e[s]));else return e;return r}var Le=e=>/^\w*$/.test(e),U=e=>e===void 0,Ze=e=>Array.isArray(e)?e.filter(Boolean):[],Qe=e=>Ze(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,r,t)=>{if(!r||!G(e))return t;const o=(Le(r)?[r]:Qe(r)).reduce((s,n)=>te(s)?s:s[n],e);return U(o)||o===e?U(e[r])?t:e[r]:o},re=e=>typeof e=="boolean",M=(e,r,t)=>{let o=-1;const s=Le(r)?[r]:Qe(r),n=s.length,a=n-1;for(;++o<n;){const i=s[o];let f=t;if(o!==a){const d=e[i];f=G(d)||Array.isArray(d)?d:isNaN(+s[o+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=f,e=e[i]}};const Be={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},le={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ue={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},$t=p.createContext(null);$t.displayName="HookFormContext";const Ke=()=>p.useContext($t);var Et=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==le.all&&(r._proxyFormState[a]=!o||le.all),t&&(t[a]=!0),e[a]}});return s};const Je=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Wr(e){const r=Ke(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,i]=p.useState(t._formState),f=p.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Je(()=>t._subscribe({name:s,formState:f.current,exact:n,callback:d=>{!o&&i({...t._formState,...d})}}),[s,o,n]),p.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),p.useMemo(()=>Et(a,t,f.current,!1),[a,t])}var oe=e=>typeof e=="string",Xe=(e,r,t,o,s)=>oe(e)?(o&&r.watch.add(e),C(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),C(t,n))):(o&&(r.watchAll=!0),t),Ye=e=>te(e)||!Vt(e);function ie(e,r,t=new WeakSet){if(Ye(e)||Ye(r))return e===r;if(he(e)&&he(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const i=r[n];if(he(a)&&he(i)||G(a)&&G(i)||Array.isArray(a)&&Array.isArray(i)?!ie(a,i,t):a!==i)return!1}}return!0}function Ur(e){const r=Ke(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:i}=e||{},f=p.useRef(s),d=p.useRef(i),u=p.useRef(void 0),g=p.useRef(t),m=p.useRef(o);d.current=i;const[x,k]=p.useState(()=>{const E=t._getWatch(o,f.current);return d.current?d.current(E):E}),_=p.useCallback(E=>{const A=Xe(o,t._names,E||t._formValues,!1,f.current);return d.current?d.current(A):A},[t._formValues,t._names,o]),F=p.useCallback(E=>{if(!n){const A=Xe(o,t._names,E||t._formValues,!1,f.current);if(d.current){const D=d.current(A);ie(D,u.current)||(k(D),u.current=D)}else k(A)}},[t._formValues,t._names,n,o]);Je(()=>((g.current!==t||!ie(m.current,o))&&(g.current=t,m.current=o,F()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:E=>{F(E.values)}})),[t,a,o,F]),p.useEffect(()=>t._removeUnmounted());const $=g.current!==t,v=m.current,z=p.useMemo(()=>{if(n)return null;const E=!$&&!ie(v,o);return $||E?_():null},[n,$,o,v,_]);return z!==null?z:x}function qr(e){const r=Ke(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,i=zt(s._names.array,t),f=p.useMemo(()=>C(s._formValues,t,C(s._defaultValues,t,a)),[s,t,a]),d=Ur({control:s,name:t,defaultValue:f,exact:!0}),u=Wr({control:s,name:t,exact:!0}),g=p.useRef(e),m=p.useRef(void 0),x=p.useRef(s.register(t,{...e.rules,value:d,...re(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const k=p.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!C(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!C(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!C(u.validatingFields,t)},error:{enumerable:!0,get:()=>C(u.errors,t)}}),[u,t]),_=p.useCallback(z=>x.current.onChange({target:{value:xt(z),name:t},type:Be.CHANGE}),[t]),F=p.useCallback(()=>x.current.onBlur({target:{value:C(s._formValues,t),name:t},type:Be.BLUR}),[t,s._formValues]),$=p.useCallback(z=>{const E=C(s._fields,t);E&&z&&(E._f.ref={focus:()=>z.focus&&z.focus(),select:()=>z.select&&z.select(),setCustomValidity:A=>z.setCustomValidity(A),reportValidity:()=>z.reportValidity()})},[s._fields,t]),v=p.useMemo(()=>({name:t,value:d,...re(o)||u.disabled?{disabled:u.disabled||o}:{},onChange:_,onBlur:F,ref:$}),[t,o,u.disabled,_,F,$,d]);return p.useEffect(()=>{const z=s._options.shouldUnregister||n,E=m.current;E&&E!==t&&!i&&s.unregister(E),s.register(t,{...g.current.rules,...re(g.current.disabled)?{disabled:g.current.disabled}:{}});const A=(D,I)=>{const K=C(s._fields,D);K&&K._f&&(K._f.mount=I)};if(A(t,!0),z){const D=Q(C(s._options.defaultValues,t,g.current.defaultValue));M(s._defaultValues,t,D),U(C(s._formValues,t))&&M(s._formValues,t,D)}return!i&&s.register(t),m.current=t,()=>{(i?z&&!s._state.action:z)?s.unregister(t):A(t,!1)}},[t,s,i,n]),p.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),p.useMemo(()=>({field:v,formState:u,fieldState:k}),[v,u,k])}var Re=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},ke=e=>Array.isArray(e)?e:[e],At=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Nt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&G(s)&&n){const a=Nt(s,n);G(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var ee=e=>G(e)&&!Object.keys(e).length,et=e=>e.type==="file",ce=e=>typeof e=="function",Pe=e=>{if(!Ge)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Lt=e=>e.type==="select-multiple",tt=e=>e.type==="radio",Gr=e=>tt(e)||Ce(e),rt=e=>Pe(e)&&e.isConnected;function Zr(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=U(e)?o++:e[r[o++]];return e}function Qr(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function Z(e,r){const t=Array.isArray(r)?r:Le(r)?[r]:Qe(r),o=t.length===1?e:Zr(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(G(o)&&ee(o)||Array.isArray(o)&&Qr(o))&&Z(e,t.slice(0,-1)),e}var Kr=e=>{for(const r in e)if(ce(e[r]))return!0;return!1};function Bt(e){return Array.isArray(e)||G(e)&&!Kr(e)}function ot(e,r={}){for(const t in e)Bt(e[t])?(r[t]=Array.isArray(e[t])?[]:{},ot(e[t],r[t])):U(e[t])||(r[t]=!0);return r}function pe(e,r,t){t||(t=ot(r));for(const o in e)Bt(e[o])?U(r)||Ye(t[o])?t[o]=ot(e[o],Array.isArray(e[o])?[]:{}):pe(e[o],te(r)?{}:r[o],t[o]):t[o]=!ie(e[o],r[o]);return t}const Pt={value:!1,isValid:!1},Ot={value:!0,isValid:!0};var Mt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?Ot:{value:e[0].value,isValid:!0}:Ot:Pt}return Pt},Dt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>U(e)?e:r?e===""?NaN:e&&+e:t&&oe(e)?new Date(e):o?o(e):e;const Ht={isValid:!1,value:null};var Tt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ht):Ht;function It(e){const r=e.ref;return et(r)?r.files:tt(r)?Tt(e.refs).value:Lt(r)?[...r.selectedOptions].map(({value:t})=>t):Ce(r)?Mt(e.refs).value:Dt(U(r.value)?e.ref.value:r.value,e)}var Jr=(e,r,t,o)=>{const s={};for(const n of e){const a=C(r,n);a&&M(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Oe=e=>e instanceof RegExp,we=e=>U(e)?e:Oe(e)?e.source:G(e)?Oe(e.value)?e.value.source:e.value:e,jt=e=>({isOnSubmit:!e||e===le.onSubmit,isOnBlur:e===le.onBlur,isOnChange:e===le.onChange,isOnAll:e===le.all,isOnTouch:e===le.onTouched});const Wt="AsyncFunction";var Xr=e=>!!e&&!!e.validate&&!!(ce(e.validate)&&e.validate.constructor.name===Wt||G(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Wt)),Yr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ut=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Fe=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=C(e,s);if(n){const{_f:a,...i}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(Fe(i,r))break}else if(G(i)&&Fe(i,r))break}}};function qt(e,r,t){const o=C(e,t);if(o||Le(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=C(r,n),i=C(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(i&&i.type)return{name:n,error:i};if(i&&i.root&&i.root.type)return{name:`${n}.root`,error:i.root};s.pop()}return{name:t}}var Rr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return ee(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||le.all))},eo=(e,r,t)=>!e||!r||e===r||ke(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),to=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,ro=(e,r)=>!Ze(C(e,r)).length&&Z(e,r),oo=(e,r,t)=>{const o=ke(C(e,t));return M(o,"root",r[t]),M(e,t,o),e};function Gt(e,r,t="validate"){if(oe(e)||Array.isArray(e)&&e.every(oe)||re(e)&&!e)return{type:t,message:oe(e)?e:"",ref:r}}var ve=e=>G(e)&&!Oe(e)?e:{value:e,message:""},Zt=async(e,r,t,o,s,n)=>{const{ref:a,refs:i,required:f,maxLength:d,minLength:u,min:g,max:m,pattern:x,validate:k,name:_,valueAsNumber:F,mount:$}=e._f,v=C(t,_);if(!$||r.has(_))return{};const z=i?i[0]:a,E=L=>{s&&z.reportValidity&&(z.setCustomValidity(re(L)?"":L||""),z.reportValidity())},A={},D=tt(a),I=Ce(a),K=D||I,O=(F||et(a))&&U(a.value)&&U(v)||Pe(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,J=Re.bind(null,_,o,A),X=(L,B,P,q=ue.maxLength,Y=ue.minLength)=>{const ne=L?B:P;A[_]={type:L?q:Y,message:ne,ref:a,...J(L?q:Y,ne)}};if(n?!Array.isArray(v)||!v.length:f&&(!K&&(O||te(v))||re(v)&&!v||I&&!Mt(i).isValid||D&&!Tt(i).isValid)){const{value:L,message:B}=oe(f)?{value:!!f,message:f}:ve(f);if(L&&(A[_]={type:ue.required,message:B,ref:z,...J(ue.required,B)},!o))return E(B),A}if(!O&&(!te(g)||!te(m))){let L,B;const P=ve(m),q=ve(g);if(!te(v)&&!isNaN(v)){const Y=a.valueAsNumber||v&&+v;te(P.value)||(L=Y>P.value),te(q.value)||(B=Y<q.value)}else{const Y=a.valueAsDate||new Date(v),ne=R=>new Date(new Date().toDateString()+" "+R),ge=a.type=="time",H=a.type=="week";oe(P.value)&&v&&(L=ge?ne(v)>ne(P.value):H?v>P.value:Y>new Date(P.value)),oe(q.value)&&v&&(B=ge?ne(v)<ne(q.value):H?v<q.value:Y<new Date(q.value))}if((L||B)&&(X(!!L,P.message,q.message,ue.max,ue.min),!o))return E(A[_].message),A}if((d||u)&&!O&&(oe(v)||n&&Array.isArray(v))){const L=ve(d),B=ve(u),P=!te(L.value)&&v.length>+L.value,q=!te(B.value)&&v.length<+B.value;if((P||q)&&(X(P,L.message,B.message),!o))return E(A[_].message),A}if(x&&!O&&oe(v)){const{value:L,message:B}=ve(x);if(Oe(L)&&!v.match(L)&&(A[_]={type:ue.pattern,message:B,ref:a,...J(ue.pattern,B)},!o))return E(B),A}if(k){if(ce(k)){const L=await k(v,t),B=Gt(L,z);if(B&&(A[_]={...B,...J(ue.validate,B.message)},!o))return E(B.message),A}else if(G(k)){let L={};for(const B in k){if(!ee(L)&&!o)break;const P=Gt(await k[B](v,t),z,B);P&&(L={...P,...J(B,P.message)},E(P.message),o&&(A[_]=L))}if(!ee(L)&&(A[_]={ref:z,...L},!o))return A}}return E(!0),A};const so={mode:le.onSubmit,reValidateMode:le.onChange,shouldFocusError:!0};function no(e={}){let r={...so,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:ce(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=G(r.defaultValues)||G(r.values)?Q(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:Q(s),a={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...u};const m={array:At(),state:At()},x=r.criteriaMode===le.all,k=l=>c=>{clearTimeout(d),d=setTimeout(l,c)},_=async l=>{if(!r.disabled&&(u.isValid||g.isValid||l)){const c=r.resolver?ee((await I()).errors):await O(o,!0);c!==t.isValid&&m.state.next({isValid:c})}},F=(l,c)=>{!r.disabled&&(u.isValidating||u.validatingFields||g.isValidating||g.validatingFields)&&((l||Array.from(i.mount)).forEach(y=>{y&&(c?M(t.validatingFields,y,c):Z(t.validatingFields,y))}),m.state.next({validatingFields:t.validatingFields,isValidating:!ee(t.validatingFields)}))},$=(l,c=[],y,w,S=!0,b=!0)=>{if(w&&y&&!r.disabled){if(a.action=!0,b&&Array.isArray(C(o,l))){const V=y(C(o,l),w.argA,w.argB);S&&M(o,l,V)}if(b&&Array.isArray(C(t.errors,l))){const V=y(C(t.errors,l),w.argA,w.argB);S&&M(t.errors,l,V),ro(t.errors,l)}if((u.touchedFields||g.touchedFields)&&b&&Array.isArray(C(t.touchedFields,l))){const V=y(C(t.touchedFields,l),w.argA,w.argB);S&&M(t.touchedFields,l,V)}(u.dirtyFields||g.dirtyFields)&&(t.dirtyFields=pe(s,n)),m.state.next({name:l,isDirty:X(l,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else M(n,l,c)},v=(l,c)=>{M(t.errors,l,c),m.state.next({errors:t.errors})},z=l=>{t.errors=l,m.state.next({errors:t.errors,isValid:!1})},E=(l,c,y,w)=>{const S=C(o,l);if(S){const b=C(n,l,U(y)?C(s,l):y);U(b)||w&&w.defaultChecked||c?M(n,l,c?b:It(S._f)):P(l,b),a.mount&&_()}},A=(l,c,y,w,S)=>{let b=!1,V=!1;const T={name:l};if(!r.disabled){if(!y||w){(u.isDirty||g.isDirty)&&(V=t.isDirty,t.isDirty=T.isDirty=X(),b=V!==T.isDirty);const W=ie(C(s,l),c);V=!!C(t.dirtyFields,l),W?Z(t.dirtyFields,l):M(t.dirtyFields,l,!0),T.dirtyFields=t.dirtyFields,b=b||(u.dirtyFields||g.dirtyFields)&&V!==!W}if(y){const W=C(t.touchedFields,l);W||(M(t.touchedFields,l,y),T.touchedFields=t.touchedFields,b=b||(u.touchedFields||g.touchedFields)&&W!==y)}b&&S&&m.state.next(T)}return b?T:{}},D=(l,c,y,w)=>{const S=C(t.errors,l),b=(u.isValid||g.isValid)&&re(c)&&t.isValid!==c;if(r.delayError&&y?(f=k(()=>v(l,y)),f(r.delayError)):(clearTimeout(d),f=null,y?M(t.errors,l,y):Z(t.errors,l)),(y?!ie(S,y):S)||!ee(w)||b){const V={...w,...b&&re(c)?{isValid:c}:{},errors:t.errors,name:l};t={...t,...V},m.state.next(V)}},I=async l=>{F(l,!0);const c=await r.resolver(n,r.context,Jr(l||i.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(l),c},K=async l=>{const{errors:c}=await I(l);if(l)for(const y of l){const w=C(c,y);w?M(t.errors,y,w):Z(t.errors,y)}else t.errors=c;return c},O=async(l,c,y={valid:!0})=>{for(const w in l){const S=l[w];if(S){const{_f:b,...V}=S;if(b){const T=i.array.has(b.name),W=S._f&&Xr(S._f);W&&u.validatingFields&&F([b.name],!0);const ae=await Zt(S,i.disabled,n,x,r.shouldUseNativeValidation&&!c,T);if(W&&u.validatingFields&&F([b.name]),ae[b.name]&&(y.valid=!1,c))break;!c&&(C(ae,b.name)?T?oo(t.errors,ae,b.name):M(t.errors,b.name,ae[b.name]):Z(t.errors,b.name))}!ee(V)&&await O(V,c,y)}}return y.valid},J=()=>{for(const l of i.unMount){const c=C(o,l);c&&(c._f.refs?c._f.refs.every(y=>!rt(y)):!rt(c._f.ref))&&ht(l)}i.unMount=new Set},X=(l,c)=>!r.disabled&&(l&&c&&M(n,l,c),!ie(R(),s)),L=(l,c,y)=>Xe(l,i,{...a.mount?n:U(c)?s:oe(l)?{[l]:c}:c},y,c),B=l=>Ze(C(a.mount?n:s,l,r.shouldUnregister?C(s,l,[]):[])),P=(l,c,y={})=>{const w=C(o,l);let S=c;if(w){const b=w._f;b&&(!b.disabled&&M(n,l,Dt(c,b)),S=Pe(b.ref)&&te(c)?"":c,Lt(b.ref)?[...b.ref.options].forEach(V=>V.selected=S.includes(V.value)):b.refs?Ce(b.ref)?b.refs.forEach(V=>{(!V.defaultChecked||!V.disabled)&&(Array.isArray(S)?V.checked=!!S.find(T=>T===V.value):V.checked=S===V.value||!!S)}):b.refs.forEach(V=>V.checked=V.value===S):et(b.ref)?b.ref.value="":(b.ref.value=S,b.ref.type||m.state.next({name:l,values:Q(n)})))}(y.shouldDirty||y.shouldTouch)&&A(l,S,y.shouldTouch,y.shouldDirty,!0),y.shouldValidate&&H(l)},q=(l,c,y)=>{for(const w in c){if(!c.hasOwnProperty(w))return;const S=c[w],b=l+"."+w,V=C(o,b);(i.array.has(l)||G(S)||V&&!V._f)&&!he(S)?q(b,S,y):P(b,S,y)}},Y=(l,c,y={})=>{const w=C(o,l),S=i.array.has(l),b=Q(c);M(n,l,b),S?(m.array.next({name:l,values:Q(n)}),(u.isDirty||u.dirtyFields||g.isDirty||g.dirtyFields)&&y.shouldDirty&&m.state.next({name:l,dirtyFields:pe(s,n),isDirty:X(l,b)})):w&&!w._f&&!te(b)?q(l,b,y):P(l,b,y),Ut(l,i)&&m.state.next({...t,name:l}),m.state.next({name:a.mount?l:void 0,values:Q(n)})},ne=async l=>{a.mount=!0;const c=l.target;let y=c.name,w=!0;const S=C(o,y),b=W=>{w=Number.isNaN(W)||he(W)&&isNaN(W.getTime())||ie(W,C(n,y,W))},V=jt(r.mode),T=jt(r.reValidateMode);if(S){let W,ae;const Ie=c.type?It(S._f):xt(l),ye=l.type===Be.BLUR||l.type===Be.FOCUS_OUT,es=!Yr(S._f)&&!r.resolver&&!C(t.errors,y)&&!S._f.deps||to(ye,C(t.touchedFields,y),t.isSubmitted,T,V),_t=Ut(y,i,ye);M(n,y,Ie),ye?(!c||!c.readOnly)&&(S._f.onBlur&&S._f.onBlur(l),f&&f(0)):S._f.onChange&&S._f.onChange(l);const pt=A(y,Ie,ye),ts=!ee(pt)||_t;if(!ye&&m.state.next({name:y,type:l.type,values:Q(n)}),es)return(u.isValid||g.isValid)&&(r.mode==="onBlur"?ye&&_():ye||_()),ts&&m.state.next({name:y,..._t?{}:pt});if(!ye&&_t&&m.state.next({...t}),r.resolver){const{errors:Ar}=await I([y]);if(b(Ie),w){const rs=qt(t.errors,o,y),Nr=qt(Ar,o,rs.name||y);W=Nr.error,y=Nr.name,ae=ee(Ar)}}else F([y],!0),W=(await Zt(S,i.disabled,n,x,r.shouldUseNativeValidation))[y],F([y]),b(Ie),w&&(W?ae=!1:(u.isValid||g.isValid)&&(ae=await O(o,!0)));w&&(S._f.deps&&(!Array.isArray(S._f.deps)||S._f.deps.length>0)&&H(S._f.deps),D(y,ae,W,pt))}},ge=(l,c)=>{if(C(t.errors,c)&&l.focus)return l.focus(),1},H=async(l,c={})=>{let y,w;const S=ke(l);if(r.resolver){const b=await K(U(l)?l:S);y=ee(b),w=l?!S.some(V=>C(b,V)):y}else l?(w=(await Promise.all(S.map(async b=>{const V=C(o,b);return await O(V&&V._f?{[b]:V}:V)}))).every(Boolean),!(!w&&!t.isValid)&&_()):w=y=await O(o);return m.state.next({...!oe(l)||(u.isValid||g.isValid)&&y!==t.isValid?{}:{name:l},...r.resolver||!l?{isValid:y}:{},errors:t.errors}),c.shouldFocus&&!w&&Fe(o,ge,l?S:i.mount),w},R=(l,c)=>{let y={...a.mount?n:s};return c&&(y=Nt(c.dirtyFields?t.dirtyFields:t.touchedFields,y)),U(l)?y:oe(l)?C(y,l):l.map(w=>C(y,w))},xe=(l,c)=>({invalid:!!C((c||t).errors,l),isDirty:!!C((c||t).dirtyFields,l),error:C((c||t).errors,l),isValidating:!!C(t.validatingFields,l),isTouched:!!C((c||t).touchedFields,l)}),Te=l=>{l&&ke(l).forEach(c=>Z(t.errors,c)),m.state.next({errors:l?t.errors:{}})},wr=(l,c,y)=>{const w=(C(o,l,{_f:{}})._f||{}).ref,S=C(t.errors,l)||{},{ref:b,message:V,type:T,...W}=S;M(t.errors,l,{...W,...c,ref:w}),m.state.next({name:l,errors:t.errors,isValid:!1}),y&&y.shouldFocus&&w&&w.focus&&w.focus()},Qo=(l,c)=>ce(l)?m.state.subscribe({next:y=>"values"in y&&l(L(void 0,c),y)}):L(l,c,!0),Fr=l=>m.state.subscribe({next:c=>{eo(l.name,c.name,l.exact)&&Rr(c,l.formState||u,Ro,l.reRenderRoot)&&l.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,Ko=l=>(a.mount=!0,g={...g,...l.formState},Fr({...l,formState:g})),ht=(l,c={})=>{for(const y of l?ke(l):i.mount)i.mount.delete(y),i.array.delete(y),c.keepValue||(Z(o,y),Z(n,y)),!c.keepError&&Z(t.errors,y),!c.keepDirty&&Z(t.dirtyFields,y),!c.keepTouched&&Z(t.touchedFields,y),!c.keepIsValidating&&Z(t.validatingFields,y),!r.shouldUnregister&&!c.keepDefaultValue&&Z(s,y);m.state.next({values:Q(n)}),m.state.next({...t,...c.keepDirty?{isDirty:X()}:{}}),!c.keepIsValid&&_()},Vr=({disabled:l,name:c})=>{(re(l)&&a.mount||l||i.disabled.has(c))&&(l?i.disabled.add(c):i.disabled.delete(c))},mt=(l,c={})=>{let y=C(o,l);const w=re(c.disabled)||re(r.disabled);return M(o,l,{...y||{},_f:{...y&&y._f?y._f:{ref:{name:l}},name:l,mount:!0,...c}}),i.mount.add(l),y?Vr({disabled:re(c.disabled)?c.disabled:r.disabled,name:l}):E(l,!0,c.value),{...w?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:we(c.min),max:we(c.max),minLength:we(c.minLength),maxLength:we(c.maxLength),pattern:we(c.pattern)}:{},name:l,onChange:ne,onBlur:ne,ref:S=>{if(S){mt(l,c),y=C(o,l);const b=U(S.value)&&S.querySelectorAll&&S.querySelectorAll("input,select,textarea")[0]||S,V=Gr(b),T=y._f.refs||[];if(V?T.find(W=>W===b):b===y._f.ref)return;M(o,l,{_f:{...y._f,...V?{refs:[...T.filter(rt),b,...Array.isArray(C(s,l))?[{}]:[]],ref:{type:b.type,name:l}}:{ref:b}}}),E(l,!1,void 0,b)}else y=C(o,l,{}),y._f&&(y._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(zt(i.array,l)&&a.action)&&i.unMount.add(l)}}},gt=()=>r.shouldFocusError&&Fe(o,ge,i.mount),Jo=l=>{re(l)&&(m.state.next({disabled:l}),Fe(o,(c,y)=>{const w=C(o,y);w&&(c.disabled=w._f.disabled||l,Array.isArray(w._f.refs)&&w._f.refs.forEach(S=>{S.disabled=w._f.disabled||l}))},0,!1))},xr=(l,c)=>async y=>{let w;y&&(y.preventDefault&&y.preventDefault(),y.persist&&y.persist());let S=Q(n);if(m.state.next({isSubmitting:!0}),r.resolver){const{errors:b,values:V}=await I();t.errors=b,S=Q(V)}else await O(o);if(i.disabled.size)for(const b of i.disabled)Z(S,b);if(Z(t.errors,"root"),ee(t.errors)){m.state.next({errors:{}});try{await l(S,y)}catch(b){w=b}}else c&&await c({...t.errors},y),gt(),setTimeout(gt);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ee(t.errors)&&!w,submitCount:t.submitCount+1,errors:t.errors}),w)throw w},Xo=(l,c={})=>{C(o,l)&&(U(c.defaultValue)?Y(l,Q(C(s,l))):(Y(l,c.defaultValue),M(s,l,Q(c.defaultValue))),c.keepTouched||Z(t.touchedFields,l),c.keepDirty||(Z(t.dirtyFields,l),t.isDirty=c.defaultValue?X(l,Q(C(s,l))):X()),c.keepError||(Z(t.errors,l),u.isValid&&_()),m.state.next({...t}))},zr=(l,c={})=>{const y=l?Q(l):s,w=Q(y),S=ee(l),b=S?s:w;if(c.keepDefaultValues||(s=y),!c.keepValues){if(c.keepDirtyValues){const V=new Set([...i.mount,...Object.keys(pe(s,n))]);for(const T of Array.from(V))C(t.dirtyFields,T)?M(b,T,C(n,T)):Y(T,C(b,T))}else{if(Ge&&U(l))for(const V of i.mount){const T=C(o,V);if(T&&T._f){const W=Array.isArray(T._f.refs)?T._f.refs[0]:T._f.ref;if(Pe(W)){const ae=W.closest("form");if(ae){ae.reset();break}}}}if(c.keepFieldsRef)for(const V of i.mount)Y(V,C(b,V));else o={}}n=r.shouldUnregister?c.keepDefaultValues?Q(s):{}:Q(b),m.array.next({values:{...b}}),m.state.next({values:{...b}})}i={mount:c.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!ee(b),a.watch=!!r.shouldUnregister,m.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:S?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ie(l,s)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:S?{}:c.keepDirtyValues?c.keepDefaultValues&&n?pe(s,n):t.dirtyFields:c.keepDefaultValues&&l?pe(s,l):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},$r=(l,c)=>zr(ce(l)?l(n):l,c),Yo=(l,c={})=>{const y=C(o,l),w=y&&y._f;if(w){const S=w.refs?w.refs[0]:w.ref;S.focus&&(S.focus(),c.shouldSelect&&ce(S.select)&&S.select())}},Ro=l=>{t={...t,...l}},Er={control:{register:mt,unregister:ht,getFieldState:xe,handleSubmit:xr,setError:wr,_subscribe:Fr,_runSchema:I,_focusError:gt,_getWatch:L,_getDirty:X,_setValid:_,_setFieldArray:$,_setDisabledField:Vr,_setErrors:z,_getFieldArray:B,_reset:zr,_resetDefaultValues:()=>ce(r.defaultValues)&&r.defaultValues().then(l=>{$r(l,r.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:Jo,_subjects:m,_proxyFormState:u,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(l){a=l},get _defaultValues(){return s},get _names(){return i},set _names(l){i=l},get _formState(){return t},get _options(){return r},set _options(l){r={...r,...l}}},subscribe:Ko,trigger:H,register:mt,handleSubmit:xr,watch:Qo,setValue:Y,getValues:R,reset:$r,resetField:Xo,clearErrors:Te,unregister:ht,setError:wr,setFocus:Yo,getFieldState:xe};return{...Er,formControl:Er}}function ao(e={}){const r=p.useRef(void 0),t=p.useRef(void 0),[o,s]=p.useState({isDirty:!1,isValidating:!1,isLoading:ce(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ce(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!ce(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...i}=no(e);r.current={...i,formState:o}}const n=r.current.control;return n._options=e,Je(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(i=>({...i,isReady:!0})),n._formState.isReady=!0,a},[n]),p.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),p.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),p.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),p.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),p.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),p.useEffect(()=>{e.values&&!ie(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),p.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=Et(o,n),r.current}const Qt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=C(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},st=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Qt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Qt(s,t,e))}},Kt=(e,r)=>{r.shouldUseNativeValidation&&st(e,r);const t={};for(const o in e){const s=C(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(lo(r.names||Object.keys(e),o)){const a=Object.assign({},C(t,o));M(a,"root",n),M(t,o,a)}else M(t,o,n)}return t},lo=(e,r)=>{const t=Jt(r);return e.some(o=>Jt(o).match(`^${t}\\.\\d+`))};function Jt(e){return e.replace(/\]|\[/g,"")}function Xt(e,r,t){function o(i,f){var d;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(d=i._zod).traits??(d.traits=new Set),i._zod.traits.add(e),r(i,f);for(const u in a.prototype)u in i||Object.defineProperty(i,u,{value:a.prototype[u].bind(i)});i._zod.constr=a,i._zod.def=f}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(i){var f;const d=t!=null&&t.Parent?new n:this;o(d,i),(f=d._zod).deferred??(f.deferred=[]);for(const u of d._zod.deferred)u();return d}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:i=>{var f,d;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(d=(f=i==null?void 0:i._zod)==null?void 0:f.traits)==null?void 0:d.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class io extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const co={};function Yt(e){return co}function uo(e,r){return typeof r=="bigint"?r.toString():r}const Rt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Me(e){return typeof e=="string"?e:e==null?void 0:e.message}function er(e,r,t){var s,n,a,i,f,d;const o={...e,path:e.path??[]};if(!e.message){const u=Me((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??Me((i=r==null?void 0:r.error)==null?void 0:i.call(r,e))??Me((f=t.customError)==null?void 0:f.call(t,e))??Me((d=t.localeError)==null?void 0:d.call(t,e))??"Invalid input";o.message=u}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const tr=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,uo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fo=Xt("$ZodError",tr),rr=Xt("$ZodError",tr,{Parent:Error}),yo=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new io;if(a.issues.length){const i=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>er(f,n,Yt())));throw Rt(i,s==null?void 0:s.callee),i}return a.value})(rr),ho=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const i=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>er(f,n,Yt())));throw Rt(i,s==null?void 0:s.callee),i}return a.value})(rr);function or(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function mo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var i=o.unionErrors[0].errors[0];t[a]={message:i.message,type:i.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(u){return u.errors.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,d=f&&f[o.code];t[a]=Re(a,r,t,s,d?[].concat(d,o.message):o.message)}e.shift()}return t}function go(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var i=o.errors[0][0];t[a]={message:i.message,type:i.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(u){return u.forEach(function(g){return e.push(g)})}),r){var f=t[a].types,d=f&&f[o.code];t[a]=Re(a,r,t,s,d?[].concat(d,o.message):o.message)}e.shift()}return t}function _o(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(or(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(i){return Array.isArray(i==null?void 0:i.issues)})(a))return{values:{},errors:Kt(mo(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(or(function(){return Promise.resolve((t.mode==="sync"?yo:ho)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(i){return i instanceof fo})(a))return{values:{},errors:Kt(go(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const sr=p.createContext(null);function nr(){const e=p.useContext(sr);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function po({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:i,formProps:f}){const d=ao({resolver:t?_o(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),u=d.handleSubmit(e);return h.jsx(sr.Provider,{value:d,children:h.jsx("form",{...f,className:a,style:i,onSubmit:u,children:typeof r=="function"?r(d):r})})}const vo=po,bo={formError:"FormError-module__formError___kaUBn"},ar=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=j(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},i=[bo.formError,t].filter(Boolean).join(" ");return h.jsx("div",{...s,className:i,style:a,role:"alert","aria-live":"polite",children:r})},be={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},lr=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:i,children:f,className:d,style:u,divProps:g})=>{const m=j(),x=[be.formGroup,r?be.error:"",e?be.disabled:"",d].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${m.fonts.rhythm} * 0.35)`,...u},_=p.Children.map(f,F=>{if(p.isValidElement(F)){const $={};if(e&&F.props.disabled===void 0&&($.disabled=!0),r&&F.props.error===void 0&&($.error=!0),s&&F.props.id===void 0&&F.type!==p.Fragment&&($.id=s),Object.keys($).length>0)return p.cloneElement(F,$)}return F});return h.jsxs("div",{...g,className:x,style:k,children:[n&&h.jsxs(Ae,{htmlFor:s,disabled:e,error:r,...i,children:[n,t&&h.jsxs("span",{className:be.required,"aria-label":"required",children:[" ","*"]})]}),h.jsx("div",{className:`${be.inputWrapper} ${o?be.indented:""}`,children:_}),r&&a&&h.jsx(ar,{children:a})]})};function fe({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:i,indent:f,labelProps:d}){const{control:u}=nr(),{field:g,fieldState:{error:m}}=qr({name:e,control:u,rules:s});return h.jsx(lr,{label:r,name:e,error:!!m,errorMessage:m==null?void 0:m.message,disabled:n,required:t,className:a,style:i,indent:f,labelProps:d,children:o({value:g.value,onChange:g.onChange,onBlur:g.onBlur,name:g.name,error:!!m,indent:f})})}const nt={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},So=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),ir=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:i=.3,type:f="text",value:d="",onChange:u,onBlur:g,className:m,style:x,inputProps:k})=>{const _=j(),F=_.colors.error,$=r?F:t||_.colors.primary,v=So({color:$,disabled:e,fontSize:_.fonts.size,placeholderOpacity:i}),z={"--placeholder-opacity":v.placeholderOpacity,"--input-padding-small":`calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,"--input-padding-large":`calc(${_.fonts.rhythm} * ${_.sizes.large.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,borderColor:v.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:v.color,fontSize:v.fontSize,opacity:v.opacity,...x},E=[nt.input,o==="small"?nt.sizeSmall:nt.sizeLarge,m].filter(Boolean).join(" ");return h.jsx("input",{...k,className:E,disabled:e,id:s,name:n,onChange:u,onBlur:g,placeholder:a,type:f,value:d,style:z})};function Co({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...i}){return h.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:d,onBlur:u,name:g,error:m})=>h.jsx(ir,{...i,name:g,value:f||"",onChange:x=>d(x.target.value),onBlur:u,error:m})})}const at={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},ko=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),cr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:i=.3,rows:f=3,value:d="",onChange:u,onBlur:g,className:m,style:x,textareaProps:k})=>{const _=j(),F=_.colors.error,$=r?F:t||_.colors.primary,v=ko({color:$,disabled:e,placeholderOpacity:i}),z={"--placeholder-opacity":v.placeholderOpacity,"--textarea-padding-small":`calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,"--textarea-padding-large":`calc(${_.fonts.rhythm} * ${_.sizes.large.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,borderColor:v.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:v.color,fontSize:_.fonts.size,opacity:v.opacity,...x},E=[at.textarea,o==="small"?at.sizeSmall:at.sizeLarge,m].filter(Boolean).join(" ");return h.jsx("textarea",{...k,className:E,disabled:e,id:s,name:n,onChange:u,onBlur:g,placeholder:a,rows:f,value:d,style:z})};function wo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...i}){return h.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:d,onBlur:u,name:g,error:m})=>h.jsx(cr,{...i,name:g,value:f||"",onChange:x=>d(x.target.value),onBlur:u,error:m})})}const lt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},Fo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
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)}),dr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:i="",onChange:f,onBlur:d,children:u,className:g,style:m,selectProps:x})=>{const k=j(),_=k.colors.error,F=r?_:t||k.colors.primary,$=Fo({color:F,disabled:e}),v={"--select-padding-small":`calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * 1.2) calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * 1.4) calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,backgroundImage:$.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:$.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:$.color,cursor:$.cursor,fontSize:k.fonts.size,opacity:$.opacity,...m},z=[lt.select,o==="small"?lt.sizeSmall:lt.sizeLarge,g].filter(Boolean).join(" ");return h.jsxs("select",{...x,className:z,disabled:e,id:s,name:n,onChange:f,onBlur:d,value:i,style:v,children:[a!==""&&h.jsx("option",{disabled:!0,value:"",children:a}),u]})};function Vo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:i,...f}){return h.jsx(fe,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:u,onBlur:g,name:m,error:x})=>h.jsx(dr,{...f,name:m,value:d||"",onChange:k=>u(k.target.value),onBlur:g,error:x,children:i})})}function xo({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return h.jsx(fe,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:i,onChange:f,name:d,error:u})=>h.jsx(Ne,{...a,name:d,checked:!!i,onChange:g=>f(g.target.checked),error:u})})}const it={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},zo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),ct=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:i,labelStyle:f,className:d,style:u,divProps:g})=>{const m=j(),x=n||wt(),k=m.colors.error,_=o?k:e||m.colors.primary,F=zo({color:_,disabled:t}),$=I=>{t||a(I)},v={cursor:F.cursor,fontSize:m.fonts.size,opacity:F.opacity,...u},z={width:"1em"},E={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},A={fill:F.radioColor},D=[it.container,d].filter(Boolean).join(" ");return h.jsxs("div",{...g,className:D,style:v,children:[h.jsx("input",{id:x,checked:r,disabled:t,name:s,onChange:I=>$({target:{checked:I.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>$({target:{checked:!r,name:s,type:"radio"}}),className:it.svg,style:z,children:[h.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:E}),r&&h.jsx("circle",{cx:"50",cy:"50",r:"25",style:A})]}),i&&h.jsx(Ae,{htmlFor:x,className:it.label,style:{paddingBottom:0,...f},color:F.radioColor,disabled:t,error:o,children:i})]})};function $o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:i,...f}){return h.jsx(fe,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:u,name:g,error:m})=>h.jsx(ct,{...f,name:g,checked:d===i,onChange:()=>u(i),error:m,label:r})})}function Eo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:i=!0}){return h.jsx(fe,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:i,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:d,name:u,error:g})=>h.jsx(h.Fragment,{children:o.map(m=>h.jsx(ct,{name:u,checked:f===m.value,onChange:()=>d(m.value),label:m.label,disabled:s||m.disabled,error:g},m.value))})})}function Ao({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:i,indent:f=!0}){return h.jsx(fe,{name:e,label:r,required:t,disabled:n,className:a,style:i,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:d,onChange:u,name:g,error:m})=>{const x=Array.isArray(d)?d:[],k=(_,F)=>{u(F?[...x,_]:x.filter($=>$!==_))};return h.jsx(h.Fragment,{children:o?o.map(_=>h.jsx(Ne,{name:`${g}[]`,checked:x.includes(_.value),onChange:F=>k(_.value,F.target.checked),label:_.label,disabled:n||_.disabled,error:m},_.value)):p.Children.map(s,_=>{if(p.isValidElement(_)&&_.type===Ne){const F=_.props.value||_.props.name;return p.cloneElement(_,{name:`${g}[]`,checked:x.includes(F),onChange:$=>k(F,$.target.checked),error:m||_.props.error,disabled:n||_.props.disabled})}return _})})}})}const Ve={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},No=({compact:e,color:r,visible:t,border:o})=>{const s=j(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},ur=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:i,style:f})=>{const d=No({compact:t,color:e,visible:r,border:n}),u=[Ve.hamburger,s?Ve.open:"",i].filter(Boolean).join(" ");return h.jsxs("button",{ref:o,className:u,onClick:()=>a(!s),style:{...d,...f},"aria-label":"Toggle menu","aria-expanded":s,children:[h.jsx("div",{className:Ve.line}),h.jsx("div",{className:Ve.line}),h.jsx("div",{className:Ve.line})]})},fr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Lo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:i,gap:f,backgroundColor:d,color:u}={})=>{const g=j();return{"--header-max-width":r||g.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||g.layout.paddingSm:a||g.layout.padding,"--header-margin":i,"--header-gap":f,backgroundColor:d,color:u}},se=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return p.useSyncExternalStore(t,o,s)},yr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:d,breakpoint:u,fixed:g=!1,children:m,className:x,style:k,headerProps:_})=>{const F=j(),$=u||F.breakpoints.sm,{maxWidth:v,unit:z}=_e($),E=se(`(max-width: ${v}${z})`),A=Lo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:i,padding:a,margin:f,gap:d,backgroundColor:e,color:r}),D=[fr.container,x].filter(Boolean).join(" "),I=g?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return h.jsx("header",{..._,className:fr.header,style:I,children:h.jsx("div",{className:D,style:{...A,...k},children:m})})},Se={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},de={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"},dt=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:i="75%",backdropColor:f="rgba(0, 0, 0, 0.5)",hideCloseButton:d=!1,closeOnBackdropClick:u=!0,className:g,style:m,popoverProps:x})=>{const k=j(),_=o!==void 0,[F,$]=p.useState(!1),v=_?o:F,[z,E]=p.useState(!1),[A,D]=p.useState(!1),I=p.useRef(null),K=p.useRef(null),[O,J]=p.useState({}),X=p.useCallback(H=>{_||$(H),s==null||s(H)},[_,s]),L=p.useCallback(()=>X(!v),[v,X]),B=p.useCallback(()=>X(!1),[X]);p.useEffect(()=>{t==="panel"&&(v?E(!0):D(!1))},[v,t]),p.useEffect(()=>{if(t!=="panel"||!z||!v)return;let H,R;return H=requestAnimationFrame(()=>{R=requestAnimationFrame(()=>D(!0))}),()=>{cancelAnimationFrame(H),cancelAnimationFrame(R)}},[z,v,t]);const P=p.useCallback(()=>{if(t!=="popup"||!I.current)return;const H=I.current.getBoundingClientRect(),R={position:"fixed",top:H.bottom+4,zIndex:999};J(n==="bottom-start"?{...R,left:H.left}:n==="bottom"?{...R,left:H.left+H.width/2,transform:"translateX(-50%)"}:{...R,left:H.right,transform:"translateX(-100%)"})},[t,n]);p.useEffect(()=>{v&&t==="popup"&&P()},[v,t,P]),p.useEffect(()=>{if(!(!v||t!=="popup"))return window.addEventListener("scroll",P,!0),window.addEventListener("resize",P),()=>{window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P)}},[v,t,P]),p.useEffect(()=>{if(!v||t!=="popup")return;const H=R=>{var xe,Te;(xe=K.current)!=null&&xe.contains(R.target)||(Te=I.current)!=null&&Te.contains(R.target)||B()};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[v,t,B]),p.useEffect(()=>{if(!v)return;const H=R=>{R.key==="Escape"&&B()};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[v,B]),p.useEffect(()=>{if(!v||t!=="panel")return;const H=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${H}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,H)}},[v,t]);const q=e?typeof e=="function"?e({onClick:L,isOpen:v}):h.jsx("span",{onClick:L,style:{cursor:"pointer",display:"contents"},children:e}):null,Y=e?h.jsx("span",{ref:I,className:de.triggerWrapper,children:q}):null;if(t==="popup"){const H={backgroundColor:k.colors.secondary,borderRadius:k.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...O,...m};return h.jsxs(h.Fragment,{children:[Y,v&&je.createPortal(h.jsx("div",{ref:K,className:[de.popup,g].filter(Boolean).join(" "),style:H,...x,children:r}),document.body)]})}const ne={width:i,backgroundColor:k.colors.secondary,...m},ge=()=>{A||E(!1)};return h.jsxs(h.Fragment,{children:[Y,z&&je.createPortal(h.jsxs("div",{className:[de.panelOverlay,A?de.panelOverlayVisible:""].filter(Boolean).join(" "),children:[h.jsx("div",{className:de.backdrop,style:{backgroundColor:A?f:"transparent"},onClick:u?B:void 0,role:"presentation"}),h.jsxs("div",{ref:K,className:[de.panel,a==="right"?de.panelRight:de.panelLeft,A?de.panelOpen:"",g].filter(Boolean).join(" "),style:ne,role:"dialog","aria-modal":"true",onTransitionEnd:ge,...x,children:[!d&&h.jsx("button",{className:de.panelCloseButton,onClick:B,"aria-label":"Close panel",type:"button",children:h.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:h.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},Bo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=j();return p.useMemo(()=>{if(e){const n=(t==null?void 0:t.backgroundColor)||s.colors.primary,a=(t==null?void 0:t.color)||s.colors.secondary,i=(t==null?void 0:t.activeBackgroundColor)||s.colors.secondary,f=(t==null?void 0:t.activeColor)||s.colors.primary,d=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:n,color:a,fontSize:d,...t==null?void 0:t.style},linkActiveStyles:{backgroundColor:i,color:f},linkHoverStyles:{}}}else{const n=o==null?void 0:o.backgroundColor,a=(o==null?void 0:o.color)||s.fonts.color,i=(o==null?void 0:o.hoverOpacity)??.5,f=o==null?void 0:o.activeBackgroundColor,d=o==null?void 0:o.activeColor;return{navStyles:{...n&&{backgroundColor:n},color:a,...o==null?void 0:o.style},linkActiveStyles:{...f&&{backgroundColor:f},...d&&{color:d},opacity:f||d?1:i},linkHoverStyles:{opacity:i}}}},[e,r,t,o,s])},hr=p.createContext({isMobile:!1,setOpen:()=>{}}),Po=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:i=!1})=>{const[f,d]=p.useState(!1),u=p.useRef(null),g=j(),m={...g.breakpoints,...t},{maxWidth:x,unit:k}=_e(m.md),{maxWidth:_,unit:F}=_e(m.sm),$=se(`(max-width: ${x}${k})`),v=se(`(max-width: ${_}${F})`),z=i?!1:$,E=i?!1:v,{navStyles:A,linkActiveStyles:D,linkHoverStyles:I}=Bo({isMobile:z,isCompact:E,mobile:e,desktop:r}),K={...A,...D.backgroundColor&&{"--mobile-active-bg":D.backgroundColor},...D.color&&{"--mobile-active-color":D.color},...I.opacity!==void 0&&{"--desktop-hover-opacity":I.opacity}},O=P=>{const q=P.target;q.closest("[data-navitem-trigger]")||q.closest("a, button")&&d(!1)},J=[Se.nav,Se.navMobile,E||e!=null&&e.compact?Se.compact:"",s].filter(Boolean).join(" "),X=[Se.nav,Se.navDesktop,s].filter(Boolean).join(" "),L=(e==null?void 0:e.content)||o,B=(r==null?void 0:r.content)||o;return h.jsx(hr.Provider,{value:{isMobile:z,setOpen:d},children:h.jsx(h.Fragment,{children:z?h.jsx(dt,{variant:"panel",side:"right",panelWidth:"100%",isOpen:f,onOpenChange:d,hideCloseButton:!0,style:{padding:0,backgroundColor:A.backgroundColor},trigger:({isOpen:P})=>h.jsx("div",{style:P?{position:"relative",zIndex:1001}:void 0,children:h.jsx(ur,{hamburgerRef:u,visible:!0,compact:E,open:P,setOpen:q=>d(q),color:P?(e==null?void 0:e.hamburgerColor)||(e==null?void 0:e.color)||g.colors.secondary:void 0,...e==null?void 0:e.hamburgerProps})}),children:h.jsxs("nav",{...a,className:J,style:{...K,...n},onClickCapture:O,children:[h.jsx("div",{className:Se.navHeader}),typeof L=="function"?L({setOpen:d}):L]})}):h.jsx("nav",{...a,className:X,style:{...K,...n},children:typeof B=="function"?B({setOpen:d}):B})})})},De={trigger:"NavItem-module__trigger___og97w",triggerOpen:"NavItem-module__triggerOpen___7lIFg",chevron:"NavItem-module__chevron___awf4c",chevronOpen:"NavItem-module__chevronOpen___ZtUGj"},Oo=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,className:a,style:i,buttonProps:f})=>{const d=j(),u=n||d.fonts.color;return h.jsx(dt,{variant:t,side:o,panelWidth:s,trigger:({onClick:g,isOpen:m})=>h.jsxs("button",{type:"button",className:[De.trigger,m?De.triggerOpen:"",a].filter(Boolean).join(" "),style:{color:u,...i},"data-navitem-trigger":!0,onClick:g,...f,children:[e,h.jsx("span",{className:[De.chevron,m?De.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:h.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},mr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=j(),i=e||a.colors.primary,f=r||a.colors.secondary,d=h.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${i}`,borderTop:`0.1em solid ${f}`}}),u=h.jsxs(h.Fragment,{children:[d,h.jsx("style",{children:`
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?h.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:u}):u},Mo=({children:e,loadingComponent:r})=>{const[t,o]=p.useState(!1);return p.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?h.jsx(h.Fragment,{children:e}):r||h.jsx(mr,{})},me={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},ut={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},gr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[ut.stack,e==="column"?ut.vertical:ut.horizontal,t].filter(Boolean).join(" ");return h.jsx("div",{...s,className:n,style:o,children:r})},_r=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:i=[],resolveModal:f,width:d="500px",maxWidth:u="90vw",backgroundColor:g,backdropColor:m="rgba(0, 0, 0, 0.5)",className:x,style:k,divProps:_})=>{const F=j(),$=p.useRef(null),v=p.useRef(null),{maxWidth:z}=_e(F.breakpoints.md),E=se(`(max-width: ${z-1}px)`);p.useEffect(()=>{if(e)return v.current=document.activeElement,document.body.style.overflow="hidden",$.current&&$.current.focus(),()=>{document.body.style.overflow="",v.current&&v.current.focus()}},[e]),p.useEffect(()=>{if(!e||!a)return;const O=J=>{J.key==="Escape"&&r()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[e,a,r]);const A=O=>{O.target===O.currentTarget&&n&&r()};if(!e)return null;const D={width:d,maxWidth:u,backgroundColor:g||F.colors.secondary,borderRadius:F.border.radius,...k},I={backgroundColor:m},K=h.jsx("div",{className:me.backdrop,style:I,onClick:A,role:"presentation",children:h.jsxs("div",{ref:$,className:[me.modal,x].filter(Boolean).join(" "),style:D,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,..._,children:[h.jsxs("div",{className:me.header,children:[o&&h.jsx("h2",{id:"modal-title",className:me.title,children:o}),!s&&h.jsx("button",{className:me.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:h.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:h.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),h.jsx("div",{className:me.content,children:t}),i.length>0&&h.jsx(gr,{direction:E?"column":"row",className:me.actions,children:i.map((O,J)=>h.jsx(St,{color:O.color,outline:O.variant==="outline",disabled:O.disabled,onClick:()=>{O.onClick?O.onClick(f||r):f?f(O.value):r()},children:O.label},J))})]})});return je.createPortal(K,document.body)},pr=p.createContext(null),Do=({children:e})=>{const[r,t]=p.useState(null),o=p.useCallback(d=>new Promise((u,g)=>{const m=Math.random().toString(36).substr(2,9);t({id:m,content:d.content,title:d.title,actions:d.actions,options:d.options,resolve:u,reject:g})}),[]),s=p.useCallback(d=>{t(u=>(u&&u.resolve(d),null))},[]),n=p.useCallback(d=>o({title:d.title||"Confirm",content:d.message,actions:[{label:d.cancelLabel||"Cancel",variant:"outline",onClick:u=>u(!1)},{label:d.confirmLabel||"Confirm",color:d.confirmColor,onClick:u=>u(!0)}],options:d.options}),[o]),a=p.useCallback(d=>o({title:d.title||"Alert",content:d.message,actions:[{label:d.okLabel||"OK",color:d.okColor,onClick:u=>u()}],options:d.options}),[o]),i=p.useCallback(()=>{s()},[s]),f=p.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return h.jsxs(pr.Provider,{value:f,children:[e,r&&h.jsx(_r,{isOpen:!0,onClose:i,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Ho=()=>{const e=p.useContext(pr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},vr={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},ft=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:d,verticalRhythm:u=3,children:g,className:m,style:x,sectionProps:k})=>{const _=j(),F=se(`(min-width: ${_.breakpoints.sm})`),$={backgroundColor:e,color:r||_.fonts.color,margin:f,...x},v=`calc(${_.fonts.rhythm} * ${u})`,z=F?a||_.layout.padding:i||_.layout.paddingSm,E={"--max-width":t||_.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${v} ${z}`,"--gap":d},A=[vr.section,m].filter(Boolean).join(" ");return h.jsx("section",{...k,className:A,style:$,children:h.jsx("div",{className:vr.innerDiv,style:E,children:g})})},br={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},To=({isMd:e=!1,isLg:r=!1,theme:t})=>p.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),Io=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=j(),i=[br.hero,o].filter(Boolean).join(" "),f=(r==null?void 0:r.md)||a.breakpoints.md,d=(r==null?void 0:r.lg)||a.breakpoints.lg,u=se(`(min-width: ${f})`),g=se(`(min-width: ${d})`),m=To({isMd:u,isLg:g,theme:a});return h.jsx(ft,{className:i,color:e||a.fonts.color,style:{...m,...s},...n,children:h.jsx("div",{className:br.content,children:t})})},Sr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},jo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:i,gap:f,backgroundColor:d,color:u}={})=>{const g=j();return{maxWidth:r||g.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||g.layout.paddingSm:a||g.layout.padding,margin:i,gap:f,backgroundColor:d,color:u||g.fonts.color}},Cr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:i,margin:f,gap:d,breakPoint:u,children:g,className:m,style:x,footerProps:k})=>{const _=j(),F=u||_.breakpoints.sm,{maxWidth:$,unit:v}=_e(F),z=se(`(max-width: ${$}${v})`),E=jo({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:i,padding:a,margin:f,gap:d,backgroundColor:e,color:r}),A=[Sr.container,m].filter(Boolean).join(" ");return h.jsx("footer",{...k,className:Sr.footer,children:h.jsx("div",{className:A,style:{...E,...x},children:g})})},He={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Wo=({isMd:e=!1,theme:r})=>p.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),Uo=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const i=j(),f=[He.card,s].filter(Boolean).join(" "),d=e||i.breakpoints.md,u=se(`(min-width: ${d})`),g=Wo({isMd:u,theme:i});return h.jsxs("div",{...a,className:f,style:{...g,...n},children:[r&&h.jsx("div",{className:He.icon,children:r}),h.jsx("h3",{className:He.title,children:t}),h.jsx("div",{className:He.content,children:o})]})},kr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},qo=({columns:e,isMd:r=!1,isLg:t=!1})=>p.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),Go=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const i=j(),f=[kr.section,s].filter(Boolean).join(" "),d=(r==null?void 0:r.md)||i.breakpoints.md,u=(r==null?void 0:r.lg)||i.breakpoints.lg,g=se(`(min-width: ${d})`),m=se(`(min-width: ${u})`),x=qo({columns:e,isMd:g,isLg:m}),k={"--section-padding-vertical":`calc(${i.fonts.rhythm} * 2)`},_={...x,gap:t,...n};return h.jsx(ft,{className:f,style:k,...a,children:h.jsx("div",{className:kr.grid,style:_,children:o})})},yt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},Zo=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:i,mainProps:f})=>{const d=[yt.layoutContainer,o].filter(Boolean).join(" ");return h.jsxs("div",{...i,className:d,style:s,children:[h.jsxs("div",{className:yt.content,children:[e&&h.jsx(yr,{...n,children:e}),h.jsx("main",{...f,className:yt.main,children:t})]}),r&&h.jsx(Cr,{...a,children:r})]})};N.Button=St,N.CSSReset=Tr,N.Checkbox=Ne,N.FeatureCard=Uo,N.FeatureGridSection=Go,N.Footer=Cr,N.Form=vo,N.FormCheckbox=xo,N.FormCheckboxGroup=Ao,N.FormError=ar,N.FormField=fe,N.FormGroup=lr,N.FormInput=Co,N.FormLabel=Ae,N.FormRadio=$o,N.FormRadioGroup=Eo,N.FormSelect=Vo,N.FormTextarea=wo,N.Hamburger=ur,N.Header=yr,N.Hero=Io,N.Input=ir,N.LoadingSpinner=mr,N.Modal=_r,N.ModalProvider=Do,N.NavItem=Oo,N.PageLayout=Zo,N.Popover=dt,N.Radio=ct,N.ResponsiveNav=Po,N.ResponsiveNavContext=hr,N.ResponsiveSection=ft,N.Select=dr,N.Stack=gr,N.StyleLoader=Mo,N.Textarea=cr,N.ThemeProvider=Br,N.parseBreakpoint=_e,N.useFormContext=nr,N.useMediaQuery=se,N.useModal=Ho,N.useTheme=j,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
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.1",
4
4
  "dependencies": {
5
5
  "@hookform/resolvers": "^5.2.2",
6
6
  "react-hook-form": "^7.66.0",