From 4208ed053d32287b2967c0ad30aacd771e4cd4e8 Mon Sep 17 00:00:00 2001 From: wander Date: Fri, 19 Dec 2025 17:20:04 -0300 Subject: [PATCH] 5199-1450 --- assets/index-BxIZVCZD.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/index-BxIZVCZD.js b/assets/index-BxIZVCZD.js index 87ce6cf..98cf133 100644 --- a/assets/index-BxIZVCZD.js +++ b/assets/index-BxIZVCZD.js @@ -210,7 +210,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const mP="6";try{window.__reactRouterVersion=mP}catch{}const vP="startTransition",Lv=Jf[vP];function gP(e){let{basename:t,children:r,future:n,window:o}=e,s=p.useRef();s.current==null&&(s.current=OA({window:o,v5Compat:!0}));let a=s.current,[i,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=p.useCallback(f=>{c&&Lv?Lv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(d),[a,d]),p.useEffect(()=>fP(n),[n]),p.createElement(pP,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a,future:n})}var Fv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Fv||(Fv={}));var $v;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($v||($v={}));var yP=typeof Element<"u",xP=typeof Map=="function",wP=typeof Set=="function",bP=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gl(e[n],t[n]))return!1;return!0}var s;if(xP&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!gl(n.value[1],t.get(n.value[0])))return!1;return!0}if(wP&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(bP&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(yP&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!gl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var SP=function(t,r){try{return gl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const CP=ea(SP);var EP=function(e,t,r,n,o,s,a,i){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,s,a,i],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},_P=EP;const Vv=ea(_P);var kP=function(t,r,n,o){var s=n?n.call(o,t,r):void 0;if(s!==void 0)return!!s;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),i=Object.keys(r);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Zw||{}),Qu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zv=Object.values(Zw),fh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},NP=Object.entries(fh).reduce((e,[t,r])=>(e[r]=t,e),{}),_r="data-rh",_s={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ks=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},RP=e=>{let t=ks(e,"title");const r=ks(e,_s.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=ks(e,_s.DEFAULT_TITLE);return t||n||void 0},AP=e=>ks(e,_s.ON_CHANGE_CLIENT_STATE)||(()=>{}),Zu=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),PP=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const o=Object.keys(n);for(let s=0;sconsole&&typeof console.warn=="function"&&console.warn(e),ya=(e,t,r)=>{const n={};return r.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&jP(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,s)=>{const a={};s.filter(l=>{let c;const d=Object.keys(l);for(let h=0;ho.push(l));const i=Object.keys(a);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let r=0;r({baseTag:PP(["href"],e),bodyAttributes:Zu("bodyAttributes",e),defer:ks(e,_s.DEFER),encode:ks(e,_s.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Zu("htmlAttributes",e),linkTags:ya("link",["rel","href"],e),metaTags:ya("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ya("noscript",["innerHTML"],e),onChangeClientState:AP(e),scriptTags:ya("script",["src","innerHTML"],e),styleTags:ya("style",["cssText"],e),title:RP(e),titleAttributes:Zu("titleAttributes",e),prioritizeSeoTags:OP(e,_s.PRIORITIZE_SEO_TAGS)}),Yw=e=>Array.isArray(e)?e.join(""):e,MP=(e,t)=>{const r=Object.keys(e);for(let n=0;nArray.isArray(e)?e.reduce((r,n)=>(MP(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Bv=(e,t)=>({...e,[t]:void 0}),DP=["noscript","script","style"],Ef=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Xw=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),LP=(e,t,r,n)=>{const o=Xw(r),s=Yw(t);return o?`<${e} ${_r}="true" ${o}>${Ef(s,n)}`:`<${e} ${_r}="true">${Ef(s,n)}`},FP=(e,t,r=!0)=>t.reduce((n,o)=>{const s=o,a=Object.keys(s).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof s[d]>"u"?d:`${d}="${Ef(s[d],r)}"`;return c?`${c} ${f}`:f},""),i=s.innerHTML||s.cssText||"",l=DP.indexOf(e)===-1;return`${n}<${e} ${_r}="true" ${a}${l?"/>":`>${i}`}`},""),Jw=(e,t={})=>Object.keys(e).reduce((r,n)=>{const o=fh[n];return r[o||n]=e[n],r},t),$P=(e,t,r)=>{const n={key:t,[_r]:!0},o=Jw(r,n);return[R.createElement("title",o,t)]},yl=(e,t)=>t.map((r,n)=>{const o={key:n,[_r]:!0};return Object.keys(r).forEach(s=>{const i=fh[s]||s;if(i==="innerHTML"||i==="cssText"){const l=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[i]=r[s]}),R.createElement(e,o)}),er=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>$P(e,t.title,t.titleAttributes),toString:()=>LP(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Jw(t),toString:()=>Xw(t)};default:return{toComponent:()=>yl(e,t),toString:()=>FP(e,t,r)}}},VP=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const o=Yu(e,Qu.meta),s=Yu(t,Qu.link),a=Yu(r,Qu.script);return{priorityMethods:{toComponent:()=>[...yl("meta",o.priority),...yl("link",s.priority),...yl("script",a.priority)],toString:()=>`${er("meta",o.priority,n)} ${er("link",s.priority,n)} ${er("script",a.priority,n)}`},metaTags:o.default,linkTags:s.default,scriptTags:a.default}},zP=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:o,noscriptTags:s,styleTags:a,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:d,metaTags:f,scriptTags:h}=VP(e)),{priority:g,base:er("base",t,n),bodyAttributes:er("bodyAttributes",r,n),htmlAttributes:er("htmlAttributes",o,n),link:er("link",d,n),meta:er("meta",f,n),noscript:er("noscript",s,n),script:er("script",h,n),style:er("style",a,n),title:er("title",{title:i,titleAttributes:l},n)}},_f=zP,Yi=[],e1=!!(typeof window<"u"&&window.document&&window.document.createElement),kf=class{constructor(e,t){ln(this,"instances",[]);ln(this,"canUseDOM",e1);ln(this,"context");ln(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Yi:this.instances,add:e=>{(this.canUseDOM?Yi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Yi:this.instances).indexOf(e);(this.canUseDOM?Yi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=_f({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},BP={},t1=R.createContext(BP),Io,r1=(Io=class extends p.Component{constructor(r){super(r);ln(this,"helmetData");this.helmetData=new kf(this.props.context||{},Io.canUseDOM)}render(){return R.createElement(t1.Provider,{value:this.helmetData.value},this.props.children)}},ln(Io,"canUseDOM",e1),Io),Yo=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${_r}]`),o=[].slice.call(n),s=[];let a;return t&&t.length&&t.forEach(i=>{const l=document.createElement(e);for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c))if(c==="innerHTML")l.innerHTML=i.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText));else{const d=c,f=typeof i[d]>"u"?"":i[d];l.setAttribute(c,f)}l.setAttribute(_r,"true"),o.some((c,d)=>(a=d,l.isEqualNode(c)))?o.splice(a,1):s.push(l)}),o.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),s.forEach(i=>r.appendChild(i)),{oldTags:o,newTags:s}},Tf=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(_r),o=n?n.split(","):[],s=[...o],a=Object.keys(t);for(const i of a){const l=t[i]||"";r.getAttribute(i)!==l&&r.setAttribute(i,l),o.indexOf(i)===-1&&o.push(i);const c=s.indexOf(i);c!==-1&&s.splice(c,1)}for(let i=s.length-1;i>=0;i-=1)r.removeAttribute(s[i]);o.length===s.length?r.removeAttribute(_r):r.getAttribute(_r)!==a.join(",")&&r.setAttribute(_r,a.join(","))},UP=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Yw(e)),Tf("title",t)},Uv=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:o,linkTags:s,metaTags:a,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:h}=e;Tf("body",n),Tf("html",o),UP(f,h);const g={baseTag:Yo("base",r),linkTags:Yo("link",s),metaTags:Yo("meta",a),noscriptTags:Yo("noscript",i),scriptTags:Yo("script",c),styleTags:Yo("style",d)},b={},v={};Object.keys(g).forEach(w=>{const{newTags:y,oldTags:m}=g[w];y.length&&(b[w]=y),m.length&&(v[w]=g[w].oldTags)}),t&&t(),l(e,b,v)},xa=null,HP=e=>{xa&&cancelAnimationFrame(xa),e.defer?xa=requestAnimationFrame(()=>{Uv(e,()=>{xa=null})}):(Uv(e),xa=null)},WP=HP,Hv=class extends p.Component{constructor(){super(...arguments);ln(this,"rendered",!1)}shouldComponentUpdate(t){return!TP(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const o=IP(t.get().map(s=>{const a={...s.props};return delete a.context,a}));r1.canUseDOM?WP(o):_f&&(n=_f(o)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},pd,qP=(pd=class extends p.Component{shouldComponentUpdate(e){return!CP(Bv(this.props,"helmetData"),Bv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return Vv(zv.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Vv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return R.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:o,...s}=n.props,a=Object.keys(s).reduce((l,c)=>(l[NP[c]||c]=s[c],l),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,o),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,a,o);break;default:t=this.mapObjectTypeChildren(n,t,a,o);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof kf)){const o=n;n=new kf(o.context,!0),delete r.helmetData}return n?R.createElement(Hv,{...r,context:n.value}):R.createElement(t1.Consumer,null,o=>R.createElement(Hv,{...r,context:o}))}},ln(pd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),pd);const GP=Gp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nt=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const a=n?c0:"button";return u.jsx(a,{className:ae(GP({variant:t,size:r,className:e})),ref:s,...o})});nt.displayName="Button";const qs=({className:e="",size:t=24})=>u.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:u.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z",fill:"#25D366"})}),ar={number:"5511996947374",displayNumber:"(11) 99694-7374",getWhatsAppLink:(e="Olá, gostaria de falar com um especialista")=>`https://wa.me/5511996947374?text=${encodeURIComponent(e)}`},KP=()=>{const e=ar.displayNumber,t=ar.getWhatsAppLink("Olá, gostaria de falar com um advogado trabalhista");return u.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:u.jsxs("div",{className:"container mx-auto px-4 h-20 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary flex items-center justify-center",children:u.jsx("span",{className:"font-bold text-primary-foreground text-4xl",children:"⚖️"})}),u.jsxs("div",{children:[u.jsx("h1",{className:"text-xl font-bold text-foreground",children:"DireitoTrabalhista"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Advogado Especializado "})]})]}),u.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[u.jsxs("a",{href:`tel:${e.replace(/\D/g,"")}`,className:"flex items-center gap-2 text-foreground hover:text-primary transition-colors",children:[u.jsx(df,{className:"w-4 h-4"}),u.jsx("span",{className:"font-medium",children:e})]}),u.jsx(nt,{asChild:!0,variant:"default",size:"lg",className:"gap-2",children:u.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:16}),"Fale Agora!"]})})]}),u.jsx(nt,{asChild:!0,variant:"default",size:"sm",className:"md:hidden gap-2",children:u.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:16}),"Contato"]})})]})})},QP=()=>{const e=ar.getWhatsAppLink("Olá, gostaria de falar com um advogado trabalhista");return u.jsxs("section",{className:"relative min-h-[85vh] md:min-h-screen pt-20 flex items-center overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 hero-gradient opacity-10"}),u.jsx("div",{className:"container mx-auto px-4 py-8 md:py-20 relative z-10",children:u.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-4 md:space-y-8 animate-fade-in",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent/10 text-accent px-4 py-2 rounded-full text-sm font-medium",children:[u.jsx(Kl,{className:"w-4 h-4"}),"Atendimento Online - 100% Sigiloso"]}),u.jsxs("h1",{className:"text-3xl md:text-4xl font-bold text-foreground leading-tight lg:text-5xl",children:["Está com dúvidas na sua rescisão?",u.jsx("br",{}),u.jsx("span",{className:"text-primary text-3xl",children:"Saiba se possui diferenças ou horas extras a receber."})]}),u.jsx("div",{className:"flex justify-center pt-4",children:u.jsx(nt,{asChild:!0,size:"lg",variant:"default",className:"text-lg px-8 py-6 animate-pulse",children:u.jsx("a",{href:"#calculadora",children:"Clique Aqui - Utilize nossa Calculadora"})})}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto lg:text-lg",children:"Equipe especializada em Direito do Trabalho. Avaliação Rápida e Sem Compromisso."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center pt-4",children:[u.jsx(nt,{asChild:!0,size:"lg",className:"text-lg px-8 py-6 gold-glow",children:u.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"gap-3",children:["Fale Agora!!!",u.jsx(qs,{size:20})]})}),u.jsx(nt,{asChild:!0,variant:"outline",size:"lg",className:"text-lg px-8 py-6",children:u.jsx("a",{href:"#servicos",children:"Conheça nossos serviços"})})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 pt-6 md:pt-12 max-w-3xl mx-auto",children:[u.jsxs("div",{className:"flex flex-col items-center gap-2 p-2 md:p-4",children:[u.jsx(Kl,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"100% Sigiloso"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Suas informações protegidas"})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[u.jsx(Zp,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"Resposta Rápida"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Retorno imediato"})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[u.jsx(Yp,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"Atendimento Online"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"De qualquer lugar"})]})]})]})})]})},Wr=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Wr.displayName="Card";const n1=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("flex flex-col space-y-1.5 p-6",e),...t}));n1.displayName="CardHeader";const o1=p.forwardRef(({className:e,...t},r)=>u.jsx("h3",{ref:r,className:ae("text-2xl font-semibold leading-none tracking-tight",e),...t}));o1.displayName="CardTitle";const s1=p.forwardRef(({className:e,...t},r)=>u.jsx("p",{ref:r,className:ae("text-sm text-muted-foreground",e),...t}));s1.displayName="CardDescription";const ph=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("p-6 pt-0",e),...t}));ph.displayName="CardContent";const ZP=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("flex items-center p-6 pt-0",e),...t}));ZP.displayName="CardFooter";const YP=[{icon:V0,title:"Reclamações Trabalhistas",description:"Defesa completa dos seus direitos"},{icon:aT,title:"Demissão sem Justa Causa",description:"Análise e contestação de demissões indevidas"},{icon:$0,title:"Rescisão Indireta",description:"Quando o empregador descumpre obrigações"},{icon:Zp,title:"Horas Extras não Pagas",description:"Recuperação de horas extras trabalhadas"},{icon:U0,title:"Acúmulo/Desvio de Função",description:"Direito a diferenças salariais"},{icon:sT,title:"Assédio Moral ou Sexual",description:"Proteção e reparação de danos"},{icon:rT,title:"Vínculo sem Registro",description:"Regularização de carteira de trabalho"},{icon:Yk,title:"Férias e 13º Salário",description:"Cobrança de verbas não recebidas"},{icon:Zk,title:"Acidente de Trabalho",description:"Indenizações e auxílios"},{icon:eT,title:"Verbas Rescisórias",description:"Garantia do recebimento de FGTS e outros"}],XP=()=>u.jsx("section",{id:"servicos",className:"py-8 md:py-16 bg-secondary/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Como podemos ",u.jsx("span",{className:"text-primary",children:"te ajudar?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Especialistas em todas as áreas do Direito do Trabalho"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-6 max-w-6xl mx-auto",children:YP.map((e,t)=>u.jsx(Wr,{className:"p-4 md:p-6 hover-lift cursor-pointer border-2 hover:border-accent transition-all",style:{animationDelay:`${t*.1}s`},children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:u.jsx(e.icon,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("h3",{className:"font-semibold text-lg text-foreground",children:e.title}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})]})},t))})]})}),JP=[{icon:Qk,value:"+10 anos",label:"de experiência em Direito do Trabalho"},{icon:U0,value:"+200",label:"clientes atendidos com sucesso"},{icon:Kl,value:"100%",label:"de sigilo e confidencialidade"},{icon:B0,value:"5.0",label:"avaliação dos nossos clientes"}],ej=[{name:"M S",role:"Auxiliar de Limpeza",text:"Fui demitida sem receber minhas verbas. A equipe me ajudou a recuperar tudo que tinha direito. Recomendo!",rating:5},{name:"J P",role:"Zelador de Condominio",text:"Trabalhei 2 anos sem registro. Graças ao atendimento rápido, consegui ter meus direitos reconhecidos.",rating:5},{name:"J C",role:"Porteiro",text:"Horas extras nunca pagas. A equipe foi atenciosa e conseguiu um acordo excelente para mim.",rating:5}],tj=()=>u.jsx("section",{className:"py-8 md:py-16 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Por que ",u.jsx("span",{className:"text-primary",children:"nos escolher?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Experiência e compromisso com seus direitos"})]}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 gap-3 md:gap-6 mb-8 md:mb-12 max-w-6xl mx-auto",children:JP.map((e,t)=>u.jsxs(Wr,{className:"p-4 md:p-6 text-center hover-lift border-2 hover:border-accent transition-all",children:[u.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-2 md:mb-4",children:u.jsx(e.icon,{className:"w-6 h-6 md:w-8 md:h-8 text-accent"})}),u.jsx("p",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-primary mb-2",children:e.value}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.label})]},t))}),u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsx("h3",{className:"text-xl md:text-2xl font-bold text-center text-foreground mb-6 md:mb-8",children:"O que nossos clientes dizem"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 md:gap-6",children:ej.map((e,t)=>u.jsxs(Wr,{className:"p-6 hover-lift",children:[u.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((r,n)=>u.jsx(B0,{className:"w-5 h-5 fill-accent text-accent"},n))}),u.jsxs("p",{className:"text-muted-foreground mb-4 italic",children:['"',e.text,'"']}),u.jsxs("div",{className:"border-t pt-4",children:[u.jsx("p",{className:"font-semibold text-foreground",children:e.name}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]})]},t))})]})]})}),Wv=[{icon:Yp,number:"1",title:"Entre em Contato",description:"Envie sua mensagem pelo WhatsApp ou preencha o formulário abaixo"},{icon:oT,number:"2",title:"Avaliação Gratuita",description:"Nossa equipe analisa seu caso sem nenhum custo"},{icon:tT,number:"3",title:"Orientação Imediata",description:"Receba sua orientação jurídica e próximos passos rapidamente"}],rj=()=>{const e=ar.getWhatsAppLink("Gostaria de avaliar meu caso");return u.jsx("section",{className:"py-8 md:py-16 bg-secondary/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Como funciona o ",u.jsx("span",{className:"text-primary",children:"atendimento?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Processo simples e rápido em 3 passos"})]}),u.jsxs("div",{className:"max-w-5xl mx-auto",children:[u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8 mb-8 md:mb-12",children:Wv.map((t,r)=>u.jsxs("div",{className:"relative",children:[ru.jsx(Nf.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Nf.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(cj,{...e,ref:t})})}));l1.displayName=Ci;var cj=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=p.useRef(null),g=ye(t,h),b=Si(s),[v,w]=Jr({prop:a,defaultProp:i??null,onChange:l,caller:Ci}),[y,m]=p.useState(!1),x=Je(c),S=a1(r),C=p.useRef(!1),[k,_]=p.useState(0);return p.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Xu,x),()=>N.removeEventListener(Xu,x)},[x]),u.jsx(ij,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:p.useCallback(N=>w(N),[w]),onItemShiftTab:p.useCallback(()=>m(!0),[]),onFocusableItemAdd:p.useCallback(()=>_(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>_(N=>N-1),[]),children:u.jsx(oe.div,{tabIndex:y||k===0?-1:0,"data-orientation":n,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:te(e.onMouseDown,()=>{C.current=!0}),onFocus:te(e.onFocus,N=>{const A=!C.current;if(N.target===N.currentTarget&&A&&!y){const M=new CustomEvent(Xu,oj);if(N.currentTarget.dispatchEvent(M),!M.defaultPrevented){const B=S().filter(z=>z.focusable),D=B.find(z=>z.active),U=B.find(z=>z.id===v),X=[D,U,...B].filter(Boolean).map(z=>z.ref.current);d1(X,d)}}C.current=!1}),onBlur:te(e.onBlur,()=>m(!1))})})}),c1="RovingFocusGroupItem",u1=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=Zr(),c=s||l,d=lj(c1,r),f=d.currentTabStopId===c,h=a1(r),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(n)return g(),()=>b()},[n,g,b]),u.jsx(Nf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:u.jsx(oe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:te(e.onMouseDown,w=>{n?d.onItemFocus(c):w.preventDefault()}),onFocus:te(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:te(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const y=fj(w,d.orientation,d.dir);if(y!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(w.currentTarget);x=d.loop?pj(x,S+1):x.slice(S+1)}setTimeout(()=>d1(x))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:v!=null}):a})})});u1.displayName=c1;var uj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fj(e,t,r){const n=dj(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return uj[n]}function d1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pj(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hj=l1,mj=u1,Gc="Tabs",[vj,rD]=Xt(Gc,[i1]),f1=i1(),[gj,hh]=vj(Gc),p1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...c}=e,d=Si(i),[f,h]=Jr({prop:n,onChange:o,defaultProp:s??"",caller:Gc});return u.jsx(gj,{scope:r,baseId:Zr(),value:f,onValueChange:h,orientation:a,dir:d,activationMode:l,children:u.jsx(oe.div,{dir:d,"data-orientation":a,...c,ref:t})})});p1.displayName=Gc;var h1="TabsList",m1=p.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=hh(h1,r),a=f1(r);return u.jsx(hj,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:u.jsx(oe.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});m1.displayName=h1;var v1="TabsTrigger",g1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,a=hh(v1,r),i=f1(r),l=w1(a.baseId,n),c=b1(a.baseId,n),d=n===a.value;return u.jsx(mj,{asChild:!0,...i,focusable:!o,active:d,children:u.jsx(oe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:te(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(n):f.preventDefault()}),onKeyDown:te(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(n)}),onFocus:te(e.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!o&&f&&a.onValueChange(n)})})})});g1.displayName=v1;var y1="TabsContent",x1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:s,...a}=e,i=hh(y1,r),l=w1(i.baseId,n),c=b1(i.baseId,n),d=n===i.value,f=p.useRef(d);return p.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),u.jsx(Jt,{present:o||d,children:({present:h})=>u.jsx(oe.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});x1.displayName=y1;function w1(e,t){return`${e}-trigger-${t}`}function b1(e,t){return`${e}-content-${t}`}var yj=p1,S1=m1,C1=g1,E1=x1;const xj=yj,_1=p.forwardRef(({className:e,...t},r)=>u.jsx(S1,{ref:r,className:ae("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));_1.displayName=S1.displayName;const xl=p.forwardRef(({className:e,...t},r)=>u.jsx(C1,{ref:r,className:ae("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));xl.displayName=C1.displayName;const wl=p.forwardRef(({className:e,...t},r)=>u.jsx(E1,{ref:r,className:ae("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));wl.displayName=E1.displayName;var Ei=e=>e.type==="checkbox",To=e=>e instanceof Date,Et=e=>e==null;const k1=e=>typeof e=="object";var Ze=e=>!Et(e)&&!Array.isArray(e)&&k1(e)&&!To(e),T1=e=>Ze(e)&&e.target?Ei(e.target)?e.target.checked:e.target.value:e,wj=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,N1=(e,t)=>e.has(wj(t)),bj=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},mh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function et(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(mh&&(e instanceof Blob||n))&&(r||Ze(e)))if(t=r?[]:{},!r&&!bj(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=et(e[o]));else return e;return t}var Kc=e=>/^\w*$/.test(e),Ke=e=>e===void 0,vh=e=>Array.isArray(e)?e.filter(Boolean):[],gh=e=>vh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,t,r)=>{if(!t||!Ze(e))return r;const n=(Kc(t)?[t]:gh(t)).reduce((o,s)=>Et(o)?o:o[s],e);return Ke(n)||n===e?Ke(e[t])?r:e[t]:n},zt=e=>typeof e=="boolean",ke=(e,t,r)=>{let n=-1;const o=Kc(t)?[t]:gh(t),s=o.length,a=s-1;for(;++nR.useContext(yh),Sj=e=>{const{children:t,...r}=e;return R.createElement(yh.Provider,{value:r},t)};var R1=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Cr.all&&(t._proxyFormState[a]=!n||Cr.all),r&&(r[a]=!0),e[a]}});return o};const xh=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Cj(e){const t=Qc(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,i]=R.useState(r._formState),l=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return xh(()=>r._subscribe({name:o,formState:l.current,exact:s,callback:c=>{!n&&i({...r._formState,...c})}}),[o,n,s]),R.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),R.useMemo(()=>R1(a,r,l.current,!1),[a,r])}var qr=e=>typeof e=="string",A1=(e,t,r,n,o)=>qr(e)?(n&&t.watch.add(e),K(r,e,o)):Array.isArray(e)?e.map(s=>(n&&t.watch.add(s),K(r,s))):(n&&(t.watchAll=!0),r),Rf=e=>Et(e)||!k1(e);function mn(e,t,r=new WeakSet){if(Rf(e)||Rf(t))return e===t;if(To(e)&&To(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const i=t[s];if(To(a)&&To(i)||Ze(a)&&Ze(i)||Array.isArray(a)&&Array.isArray(i)?!mn(a,i,r):a!==i)return!1}}return!0}function Ej(e){const t=Qc(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:i}=e||{},l=R.useRef(o),c=R.useRef(i),d=R.useRef(void 0);c.current=i;const f=R.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,g]=R.useState(c.current?c.current(f):f);return xh(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:b=>{if(!s){const v=A1(n,r._names,b.values||r._formValues,!1,l.current);if(c.current){const w=c.current(v);mn(w,d.current)||(g(w),d.current=w)}else g(v)}}}),[r,s,n,a]),R.useEffect(()=>r._removeUnmounted()),h}function _j(e){const t=Qc(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,i=N1(o._names.array,r),l=R.useMemo(()=>K(o._formValues,r,K(o._defaultValues,r,a)),[o,r,a]),c=Ej({control:o,name:r,defaultValue:l,exact:!0}),d=Cj({control:o,name:r,exact:!0}),f=R.useRef(e),h=R.useRef(o.register(r,{...e.rules,value:c,...zt(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const g=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!K(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!K(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!K(d.validatingFields,r)},error:{enumerable:!0,get:()=>K(d.errors,r)}}),[d,r]),b=R.useCallback(m=>h.current.onChange({target:{value:T1(m),name:r},type:rc.CHANGE}),[r]),v=R.useCallback(()=>h.current.onBlur({target:{value:K(o._formValues,r),name:r},type:rc.BLUR}),[r,o._formValues]),w=R.useCallback(m=>{const x=K(o._fields,r);x&&m&&(x._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:S=>m.setCustomValidity(S),reportValidity:()=>m.reportValidity()})},[o._fields,r]),y=R.useMemo(()=>({name:r,value:c,...zt(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:b,onBlur:v,ref:w}),[r,n,d.disabled,b,v,w,c]);return R.useEffect(()=>{const m=o._options.shouldUnregister||s;o.register(r,{...f.current.rules,...zt(f.current.disabled)?{disabled:f.current.disabled}:{}});const x=(S,C)=>{const k=K(o._fields,S);k&&k._f&&(k._f.mount=C)};if(x(r,!0),m){const S=et(K(o._options.defaultValues,r));ke(o._defaultValues,r,S),Ke(K(o._formValues,r))&&ke(o._formValues,r,S)}return!i&&o.register(r),()=>{(i?m&&!o._state.action:m)?o.unregister(r):x(r,!1)}},[r,o,i,s]),R.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),R.useMemo(()=>({field:y,formState:d,fieldState:g}),[y,d,g])}const kj=e=>e.render(_j(e));var P1=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Va=e=>Array.isArray(e)?e:[e],qv=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},jt=e=>Ze(e)&&!Object.keys(e).length,wh=e=>e.type==="file",Er=e=>typeof e=="function",nc=e=>{if(!mh)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},j1=e=>e.type==="select-multiple",bh=e=>e.type==="radio",Tj=e=>bh(e)||Ei(e),Ju=e=>nc(e)&&e.isConnected;function Nj(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const t in e)if(Er(e[t]))return!0;return!1};function oc(e,t={}){const r=Array.isArray(e);if(Ze(e)||r)for(const n in e)Array.isArray(e[n])||Ze(e[n])&&!O1(e[n])?(t[n]=Array.isArray(e[n])?[]:{},oc(e[n],t[n])):Et(e[n])||(t[n]=!0);return t}function I1(e,t,r){const n=Array.isArray(e);if(Ze(e)||n)for(const o in e)Array.isArray(e[o])||Ze(e[o])&&!O1(e[o])?Ke(t)||Rf(r[o])?r[o]=Array.isArray(e[o])?oc(e[o],[]):{...oc(e[o])}:I1(e[o],Et(t)?{}:t[o],r[o]):r[o]=!mn(e[o],t[o]);return r}var wa=(e,t)=>I1(e,t,oc(t));const Gv={value:!1,isValid:!1},Kv={value:!0,isValid:!0};var M1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ke(e[0].attributes.value)?Ke(e[0].value)||e[0].value===""?Kv:{value:e[0].value,isValid:!0}:Kv:Gv}return Gv},D1=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ke(e)?e:t?e===""?NaN:e&&+e:r&&qr(e)?new Date(e):n?n(e):e;const Qv={isValid:!1,value:null};var L1=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Qv):Qv;function Zv(e){const t=e.ref;return wh(t)?t.files:bh(t)?L1(e.refs).value:j1(t)?[...t.selectedOptions].map(({value:r})=>r):Ei(t)?M1(e.refs).value:D1(Ke(t.value)?e.ref.value:t.value,e)}var Aj=(e,t,r,n)=>{const o={};for(const s of e){const a=K(t,s);a&&ke(o,s,a._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},sc=e=>e instanceof RegExp,ba=e=>Ke(e)?e:sc(e)?e.source:Ze(e)?sc(e.value)?e.value.source:e.value:e,Yv=e=>({isOnSubmit:!e||e===Cr.onSubmit,isOnBlur:e===Cr.onBlur,isOnChange:e===Cr.onChange,isOnAll:e===Cr.all,isOnTouch:e===Cr.onTouched});const Xv="AsyncFunction";var Pj=e=>!!e&&!!e.validate&&!!(Er(e.validate)&&e.validate.constructor.name===Xv||Ze(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xv)),jj=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Jv=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const za=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const s=K(e,o);if(s){const{_f:a,...i}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!n)return!0;if(a.ref&&t(a.ref,a.name)&&!n)return!0;if(za(i,t))break}else if(Ze(i)&&za(i,t))break}}};function eg(e,t,r){const n=K(e,r);if(n||Kc(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const s=o.join("."),a=K(t,s),i=K(e,s);if(a&&!Array.isArray(a)&&r!==s)return{name:r};if(i&&i.type)return{name:s,error:i};if(i&&i.root&&i.root.type)return{name:`${s}.root`,error:i.root};o.pop()}return{name:r}}var Oj=(e,t,r,n)=>{r(e);const{name:o,...s}=e;return jt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!n||Cr.all))},Ij=(e,t,r)=>!e||!t||e===t||Va(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),Mj=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Dj=(e,t)=>!vh(K(e,t)).length&&Ye(e,t),Lj=(e,t,r)=>{const n=Va(K(e,r));return ke(n,"root",t[r]),ke(e,r,n),e},bl=e=>qr(e);function tg(e,t,r="validate"){if(bl(e)||Array.isArray(e)&&e.every(bl)||zt(e)&&!e)return{type:r,message:bl(e)?e:"",ref:t}}var Xo=e=>Ze(e)&&!sc(e)?e:{value:e,message:""},rg=async(e,t,r,n,o,s)=>{const{ref:a,refs:i,required:l,maxLength:c,minLength:d,min:f,max:h,pattern:g,validate:b,name:v,valueAsNumber:w,mount:y}=e._f,m=K(r,v);if(!y||t.has(v))return{};const x=i?i[0]:a,S=D=>{o&&x.reportValidity&&(x.setCustomValidity(zt(D)?"":D||""),x.reportValidity())},C={},k=bh(a),_=Ei(a),N=k||_,A=(w||wh(a))&&Ke(a.value)&&Ke(m)||nc(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,M=P1.bind(null,v,n,C),B=(D,U,L,X=un.maxLength,z=un.minLength)=>{const J=D?U:L;C[v]={type:D?X:z,message:J,ref:a,...M(D?X:z,J)}};if(s?!Array.isArray(m)||!m.length:l&&(!N&&(A||Et(m))||zt(m)&&!m||_&&!M1(i).isValid||k&&!L1(i).isValid)){const{value:D,message:U}=bl(l)?{value:!!l,message:l}:Xo(l);if(D&&(C[v]={type:un.required,message:U,ref:x,...M(un.required,U)},!n))return S(U),C}if(!A&&(!Et(f)||!Et(h))){let D,U;const L=Xo(h),X=Xo(f);if(!Et(m)&&!isNaN(m)){const z=a.valueAsNumber||m&&+m;Et(L.value)||(D=z>L.value),Et(X.value)||(U=znew Date(new Date().toDateString()+" "+W),P=a.type=="time",O=a.type=="week";qr(L.value)&&m&&(D=P?J(m)>J(L.value):O?m>L.value:z>new Date(L.value)),qr(X.value)&&m&&(U=P?J(m)+D.value,X=!Et(U.value)&&m.length<+U.value;if((L||X)&&(B(L,D.message,U.message),!n))return S(C[v].message),C}if(g&&!A&&qr(m)){const{value:D,message:U}=Xo(g);if(sc(D)&&!m.match(D)&&(C[v]={type:un.pattern,message:U,ref:a,...M(un.pattern,U)},!n))return S(U),C}if(b){if(Er(b)){const D=await b(m,r),U=tg(D,x);if(U&&(C[v]={...U,...M(un.validate,U.message)},!n))return S(U.message),C}else if(Ze(b)){let D={};for(const U in b){if(!jt(D)&&!n)break;const L=tg(await b[U](m,r),x,U);L&&(D={...L,...M(U,L.message)},S(L.message),n&&(C[v]=D))}if(!jt(D)&&(C[v]={ref:x,...D},!n))return C}}return S(!0),C};const Fj={mode:Cr.onSubmit,reValidateMode:Cr.onChange,shouldFocusError:!0};function $j(e={}){let t={...Fj,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Er(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Ze(t.defaultValues)||Ze(t.values)?et(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:et(o),a={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const h={array:qv(),state:qv()},g=t.criteriaMode===Cr.all,b=E=>T=>{clearTimeout(c),c=setTimeout(E,T)},v=async E=>{if(!t.disabled&&(d.isValid||f.isValid||E)){const T=t.resolver?jt((await _()).errors):await A(n,!0);T!==r.isValid&&h.state.next({isValid:T})}},w=(E,T)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((E||Array.from(i.mount)).forEach(j=>{j&&(T?ke(r.validatingFields,j,T):Ye(r.validatingFields,j))}),h.state.next({validatingFields:r.validatingFields,isValidating:!jt(r.validatingFields)}))},y=(E,T=[],j,q,H=!0,V=!0)=>{if(q&&j&&!t.disabled){if(a.action=!0,V&&Array.isArray(K(n,E))){const Z=j(K(n,E),q.argA,q.argB);H&&ke(n,E,Z)}if(V&&Array.isArray(K(r.errors,E))){const Z=j(K(r.errors,E),q.argA,q.argB);H&&ke(r.errors,E,Z),Dj(r.errors,E)}if((d.touchedFields||f.touchedFields)&&V&&Array.isArray(K(r.touchedFields,E))){const Z=j(K(r.touchedFields,E),q.argA,q.argB);H&&ke(r.touchedFields,E,Z)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=wa(o,s)),h.state.next({name:E,isDirty:B(E,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ke(s,E,T)},m=(E,T)=>{ke(r.errors,E,T),h.state.next({errors:r.errors})},x=E=>{r.errors=E,h.state.next({errors:r.errors,isValid:!1})},S=(E,T,j,q)=>{const H=K(n,E);if(H){const V=K(s,E,Ke(j)?K(o,E):j);Ke(V)||q&&q.defaultChecked||T?ke(s,E,T?V:Zv(H._f)):L(E,V),a.mount&&v()}},C=(E,T,j,q,H)=>{let V=!1,Z=!1;const ge={name:E};if(!t.disabled){if(!j||q){(d.isDirty||f.isDirty)&&(Z=r.isDirty,r.isDirty=ge.isDirty=B(),V=Z!==ge.isDirty);const Re=mn(K(o,E),T);Z=!!K(r.dirtyFields,E),Re?Ye(r.dirtyFields,E):ke(r.dirtyFields,E,!0),ge.dirtyFields=r.dirtyFields,V=V||(d.dirtyFields||f.dirtyFields)&&Z!==!Re}if(j){const Re=K(r.touchedFields,E);Re||(ke(r.touchedFields,E,j),ge.touchedFields=r.touchedFields,V=V||(d.touchedFields||f.touchedFields)&&Re!==j)}V&&H&&h.state.next(ge)}return V?ge:{}},k=(E,T,j,q)=>{const H=K(r.errors,E),V=(d.isValid||f.isValid)&&zt(T)&&r.isValid!==T;if(t.delayError&&j?(l=b(()=>m(E,j)),l(t.delayError)):(clearTimeout(c),l=null,j?ke(r.errors,E,j):Ye(r.errors,E)),(j?!mn(H,j):H)||!jt(q)||V){const Z={...q,...V&&zt(T)?{isValid:T}:{},errors:r.errors,name:E};r={...r,...Z},h.state.next(Z)}},_=async E=>{w(E,!0);const T=await t.resolver(s,t.context,Aj(E||i.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return w(E),T},N=async E=>{const{errors:T}=await _(E);if(E)for(const j of E){const q=K(T,j);q?ke(r.errors,j,q):Ye(r.errors,j)}else r.errors=T;return T},A=async(E,T,j={valid:!0})=>{for(const q in E){const H=E[q];if(H){const{_f:V,...Z}=H;if(V){const ge=i.array.has(V.name),Re=H._f&&Pj(H._f);Re&&d.validatingFields&&w([q],!0);const At=await rg(H,i.disabled,s,g,t.shouldUseNativeValidation&&!T,ge);if(Re&&d.validatingFields&&w([q]),At[V.name]&&(j.valid=!1,T))break;!T&&(K(At,V.name)?ge?Lj(r.errors,At,V.name):ke(r.errors,V.name,At[V.name]):Ye(r.errors,V.name))}!jt(Z)&&await A(Z,T,j)}}return j.valid},M=()=>{for(const E of i.unMount){const T=K(n,E);T&&(T._f.refs?T._f.refs.every(j=>!Ju(j)):!Ju(T._f.ref))&&G(E)}i.unMount=new Set},B=(E,T)=>!t.disabled&&(E&&T&&ke(s,E,T),!mn(W(),o)),D=(E,T,j)=>A1(E,i,{...a.mount?s:Ke(T)?o:qr(E)?{[E]:T}:T},j,T),U=E=>vh(K(a.mount?s:o,E,t.shouldUnregister?K(o,E,[]):[])),L=(E,T,j={})=>{const q=K(n,E);let H=T;if(q){const V=q._f;V&&(!V.disabled&&ke(s,E,D1(T,V)),H=nc(V.ref)&&Et(T)?"":T,j1(V.ref)?[...V.ref.options].forEach(Z=>Z.selected=H.includes(Z.value)):V.refs?Ei(V.ref)?V.refs.forEach(Z=>{(!Z.defaultChecked||!Z.disabled)&&(Array.isArray(H)?Z.checked=!!H.find(ge=>ge===Z.value):Z.checked=H===Z.value||!!H)}):V.refs.forEach(Z=>Z.checked=Z.value===H):wh(V.ref)?V.ref.value="":(V.ref.value=H,V.ref.type||h.state.next({name:E,values:et(s)})))}(j.shouldDirty||j.shouldTouch)&&C(E,H,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&O(E)},X=(E,T,j)=>{for(const q in T){if(!T.hasOwnProperty(q))return;const H=T[q],V=E+"."+q,Z=K(n,V);(i.array.has(E)||Ze(H)||Z&&!Z._f)&&!To(H)?X(V,H,j):L(V,H,j)}},z=(E,T,j={})=>{const q=K(n,E),H=i.array.has(E),V=et(T);ke(s,E,V),H?(h.array.next({name:E,values:et(s)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&j.shouldDirty&&h.state.next({name:E,dirtyFields:wa(o,s),isDirty:B(E,V)})):q&&!q._f&&!Et(V)?X(E,V,j):L(E,V,j),Jv(E,i)&&h.state.next({...r,name:E}),h.state.next({name:a.mount?E:void 0,values:et(s)})},J=async E=>{a.mount=!0;const T=E.target;let j=T.name,q=!0;const H=K(n,j),V=Re=>{q=Number.isNaN(Re)||To(Re)&&isNaN(Re.getTime())||mn(Re,K(s,j,Re))},Z=Yv(t.mode),ge=Yv(t.reValidateMode);if(H){let Re,At;const sn=T.type?Zv(H._f):T1(E),Mr=E.type===rc.BLUR||E.type===rc.FOCUS_OUT,_i=!jj(H._f)&&!t.resolver&&!K(r.errors,j)&&!H._f.deps||Mj(Mr,K(r.touchedFields,j),r.isSubmitted,ge,Z),xo=Jv(j,i,Mr);ke(s,j,sn),Mr?(H._f.onBlur&&H._f.onBlur(E),l&&l(0)):H._f.onChange&&H._f.onChange(E);const Dr=C(j,sn,Mr),ki=!jt(Dr)||xo;if(!Mr&&h.state.next({name:j,type:E.type,values:et(s)}),_i)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?Mr&&v():Mr||v()),ki&&h.state.next({name:j,...xo?{}:Dr});if(!Mr&&xo&&h.state.next({...r}),t.resolver){const{errors:an}=await _([j]);if(V(sn),q){const pu=eg(r.errors,n,j),Ti=eg(an,n,pu.name||j);Re=Ti.error,j=Ti.name,At=jt(an)}}else w([j],!0),Re=(await rg(H,i.disabled,s,g,t.shouldUseNativeValidation))[j],w([j]),V(sn),q&&(Re?At=!1:(d.isValid||f.isValid)&&(At=await A(n,!0)));q&&(H._f.deps&&O(H._f.deps),k(j,At,Re,Dr))}},P=(E,T)=>{if(K(r.errors,T)&&E.focus)return E.focus(),1},O=async(E,T={})=>{let j,q;const H=Va(E);if(t.resolver){const V=await N(Ke(E)?E:H);j=jt(V),q=E?!H.some(Z=>K(V,Z)):j}else E?(q=(await Promise.all(H.map(async V=>{const Z=K(n,V);return await A(Z&&Z._f?{[V]:Z}:Z)}))).every(Boolean),!(!q&&!r.isValid)&&v()):q=j=await A(n);return h.state.next({...!qr(E)||(d.isValid||f.isValid)&&j!==r.isValid?{}:{name:E},...t.resolver||!E?{isValid:j}:{},errors:r.errors}),T.shouldFocus&&!q&&za(n,P,E?H:i.mount),q},W=E=>{const T={...a.mount?s:o};return Ke(E)?T:qr(E)?K(T,E):E.map(j=>K(T,j))},se=(E,T)=>({invalid:!!K((T||r).errors,E),isDirty:!!K((T||r).dirtyFields,E),error:K((T||r).errors,E),isValidating:!!K(r.validatingFields,E),isTouched:!!K((T||r).touchedFields,E)}),ne=E=>{E&&Va(E).forEach(T=>Ye(r.errors,T)),h.state.next({errors:E?r.errors:{}})},le=(E,T,j)=>{const q=(K(n,E,{_f:{}})._f||{}).ref,H=K(r.errors,E)||{},{ref:V,message:Z,type:ge,...Re}=H;ke(r.errors,E,{...Re,...T,ref:q}),h.state.next({name:E,errors:r.errors,isValid:!1}),j&&j.shouldFocus&&q&&q.focus&&q.focus()},ie=(E,T)=>Er(E)?h.state.subscribe({next:j=>"values"in j&&E(D(void 0,T),j)}):D(E,T,!0),Ne=E=>h.state.subscribe({next:T=>{Ij(E.name,T.name,E.exact)&&Oj(T,E.formState||d,nn,E.reRenderRoot)&&E.callback({values:{...s},...r,...T,defaultValues:o})}}).unsubscribe,Fe=E=>(a.mount=!0,f={...f,...E.formState},Ne({...E,formState:f})),G=(E,T={})=>{for(const j of E?Va(E):i.mount)i.mount.delete(j),i.array.delete(j),T.keepValue||(Ye(n,j),Ye(s,j)),!T.keepError&&Ye(r.errors,j),!T.keepDirty&&Ye(r.dirtyFields,j),!T.keepTouched&&Ye(r.touchedFields,j),!T.keepIsValidating&&Ye(r.validatingFields,j),!t.shouldUnregister&&!T.keepDefaultValue&&Ye(o,j);h.state.next({values:et(s)}),h.state.next({...r,...T.keepDirty?{isDirty:B()}:{}}),!T.keepIsValid&&v()},Ce=({disabled:E,name:T})=>{(zt(E)&&a.mount||E||i.disabled.has(T))&&(E?i.disabled.add(T):i.disabled.delete(T))},Pe=(E,T={})=>{let j=K(n,E);const q=zt(T.disabled)||zt(t.disabled);return ke(n,E,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:E}},name:E,mount:!0,...T}}),i.mount.add(E),j?Ce({disabled:zt(T.disabled)?T.disabled:t.disabled,name:E}):S(E,!0,T.value),{...q?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:ba(T.min),max:ba(T.max),minLength:ba(T.minLength),maxLength:ba(T.maxLength),pattern:ba(T.pattern)}:{},name:E,onChange:J,onBlur:J,ref:H=>{if(H){Pe(E,T),j=K(n,E);const V=Ke(H.value)&&H.querySelectorAll&&H.querySelectorAll("input,select,textarea")[0]||H,Z=Tj(V),ge=j._f.refs||[];if(Z?ge.find(Re=>Re===V):V===j._f.ref)return;ke(n,E,{_f:{...j._f,...Z?{refs:[...ge.filter(Ju),V,...Array.isArray(K(o,E))?[{}]:[]],ref:{type:V.type,name:E}}:{ref:V}}}),S(E,!1,void 0,V)}else j=K(n,E,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(N1(i.array,E)&&a.action)&&i.unMount.add(E)}}},xe=()=>t.shouldFocusError&&za(n,P,i.mount),ve=E=>{zt(E)&&(h.state.next({disabled:E}),za(n,(T,j)=>{const q=K(n,j);q&&(T.disabled=q._f.disabled||E,Array.isArray(q._f.refs)&&q._f.refs.forEach(H=>{H.disabled=q._f.disabled||E}))},0,!1))},we=(E,T)=>async j=>{let q;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let H=et(s);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:Z}=await _();r.errors=V,H=et(Z)}else await A(n);if(i.disabled.size)for(const V of i.disabled)Ye(H,V);if(Ye(r.errors,"root"),jt(r.errors)){h.state.next({errors:{}});try{await E(H,j)}catch(V){q=V}}else T&&await T({...r.errors},j),xe(),setTimeout(xe);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jt(r.errors)&&!q,submitCount:r.submitCount+1,errors:r.errors}),q)throw q},ot=(E,T={})=>{K(n,E)&&(Ke(T.defaultValue)?z(E,et(K(o,E))):(z(E,T.defaultValue),ke(o,E,et(T.defaultValue))),T.keepTouched||Ye(r.touchedFields,E),T.keepDirty||(Ye(r.dirtyFields,E),r.isDirty=T.defaultValue?B(E,et(K(o,E))):B()),T.keepError||(Ye(r.errors,E),d.isValid&&v()),h.state.next({...r}))},bt=(E,T={})=>{const j=E?et(E):o,q=et(j),H=jt(E),V=H?o:q;if(T.keepDefaultValues||(o=j),!T.keepValues){if(T.keepDirtyValues){const Z=new Set([...i.mount,...Object.keys(wa(o,s))]);for(const ge of Array.from(Z))K(r.dirtyFields,ge)?ke(V,ge,K(s,ge)):z(ge,K(V,ge))}else{if(mh&&Ke(E))for(const Z of i.mount){const ge=K(n,Z);if(ge&&ge._f){const Re=Array.isArray(ge._f.refs)?ge._f.refs[0]:ge._f.ref;if(nc(Re)){const At=Re.closest("form");if(At){At.reset();break}}}}if(T.keepFieldsRef)for(const Z of i.mount)z(Z,K(V,Z));else n={}}s=t.shouldUnregister?T.keepDefaultValues?et(o):{}:et(V),h.array.next({values:{...V}}),h.state.next({values:{...V}})}i={mount:T.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!T.keepIsValid||!!T.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:H?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!mn(E,o)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:H?{}:T.keepDirtyValues?T.keepDefaultValues&&s?wa(o,s):r.dirtyFields:T.keepDefaultValues&&E?wa(o,E):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Or=(E,T)=>bt(Er(E)?E(s):E,T),Ir=(E,T={})=>{const j=K(n,E),q=j&&j._f;if(q){const H=q.refs?q.refs[0]:q.ref;H.focus&&(H.focus(),T.shouldSelect&&Er(H.select)&&H.select())}},nn=E=>{r={...r,...E}},on={control:{register:Pe,unregister:G,getFieldState:se,handleSubmit:we,setError:le,_subscribe:Ne,_runSchema:_,_focusError:xe,_getWatch:D,_getDirty:B,_setValid:v,_setFieldArray:y,_setDisabledField:Ce,_setErrors:x,_getFieldArray:U,_reset:bt,_resetDefaultValues:()=>Er(t.defaultValues)&&t.defaultValues().then(E=>{Or(E,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:ve,_subjects:h,_proxyFormState:d,get _fields(){return n},get _formValues(){return s},get _state(){return a},set _state(E){a=E},get _defaultValues(){return o},get _names(){return i},set _names(E){i=E},get _formState(){return r},get _options(){return t},set _options(E){t={...t,...E}}},subscribe:Fe,trigger:O,register:Pe,handleSubmit:we,watch:ie,setValue:z,getValues:W,reset:Or,resetField:ot,clearErrors:ne,unregister:G,setError:le,setFocus:Ir,getFieldState:se};return{...on,formControl:on}}function Zc(e={}){const t=R.useRef(void 0),r=R.useRef(void 0),[n,o]=R.useState({isDirty:!1,isValidating:!1,isLoading:Er(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:Er(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Er(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...i}=$j(e);t.current={...i,formState:n}}const s=t.current.control;return s._options=e,xh(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(i=>({...i,isReady:!0})),s._formState.isReady=!0,a},[s]),R.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),R.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),R.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),R.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),R.useEffect(()=>{e.values&&!mn(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,o(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),R.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=R1(n,s),t.current}const ng=(e,t,r)=>{if(e&&"reportValidity"in e){const n=K(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},F1=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?ng(n.ref,r,e):n.refs&&n.refs.forEach(o=>ng(o,r,e))}},Vj=(e,t)=>{t.shouldUseNativeValidation&&F1(e,t);const r={};for(const n in e){const o=K(t.fields,n),s=Object.assign(e[n]||{},{ref:o&&o.ref});if(zj(t.names||Object.keys(e),n)){const a=Object.assign({},K(r,n));ke(a,"root",s),ke(r,n,a)}else ke(r,n,s)}return r},zj=(e,t)=>e.some(r=>r.startsWith(t+"."));var Bj=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,s=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var i=n.unionErrors[0].errors[0];r[a]={message:i.message,type:i.code}}else r[a]={message:s,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[a].types,c=l&&l[n.code];r[a]=P1(a,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},Yc=function(e,t,r){return r===void 0&&(r={}),function(n,o,s){try{return Promise.resolve(function(a,i){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return s.shouldUseNativeValidation&&F1({},s),{errors:{},values:r.raw?n:c}})}catch(c){return i(c)}return l&&l.then?l.then(void 0,i):l}(0,function(a){if(function(i){return Array.isArray(i==null?void 0:i.errors)}(a))return{values:{},errors:Vj(Bj(a.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw a}))}catch(a){return Promise.reject(a)}}},Uj="Label",$1=p.forwardRef((e,t)=>u.jsx(oe.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));$1.displayName=Uj;var V1=$1;const Hj=Gp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),z1=p.forwardRef(({className:e,...t},r)=>u.jsx(V1,{ref:r,className:ae(Hj(),e),...t}));z1.displayName=V1.displayName;const Xc=Sj,B1=p.createContext({}),dt=({...e})=>u.jsx(B1.Provider,{value:{name:e.name},children:u.jsx(kj,{...e})}),Jc=()=>{const e=p.useContext(B1),t=p.useContext(U1),{getFieldState:r,formState:n}=Qc(),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within ");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},U1=p.createContext({}),at=p.forwardRef(({className:e,...t},r)=>{const n=p.useId();return u.jsx(U1.Provider,{value:{id:n},children:u.jsx("div",{ref:r,className:ae("space-y-2",e),...t})})});at.displayName="FormItem";const it=p.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=Jc();return u.jsx(z1,{ref:r,className:ae(n&&"text-destructive",e),htmlFor:o,...t})});it.displayName="FormLabel";const lt=p.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:s}=Jc();return u.jsx(c0,{ref:t,id:n,"aria-describedby":r?`${o} ${s}`:`${o}`,"aria-invalid":!!r,...e})});lt.displayName="FormControl";const Ht=p.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Jc();return u.jsx("p",{ref:r,id:n,className:ae("text-sm text-muted-foreground",e),...t})});Ht.displayName="FormDescription";const xt=p.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:s}=Jc(),a=o?String(o==null?void 0:o.message):t;return a?u.jsx("p",{ref:n,id:s,className:ae("text-sm font-medium text-destructive",e),...r,children:a}):null});xt.displayName="FormMessage";const kt=p.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:ae("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));kt.displayName="Input";var _e;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{const s={};for(const a of o)s[a]=a;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),a={};for(const i of s)a[i]=o[i];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const a in o)Object.prototype.hasOwnProperty.call(o,a)&&s.push(a);return s},e.find=(o,s)=>{for(const a of o)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var og;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(og||(og={}));const ee=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Fn=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;case"number":return Number.isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},$=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class kn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let i=n,l=0;for(;lr.message){const r={},n=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];r[s]=r[s]||[],r[s].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}kn.create=e=>new kn(e);const Af=(e,t)=>{let r;switch(e.code){case $.invalid_type:e.received===ee.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case $.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,_e.jsonStringifyReplacer)}`;break;case $.unrecognized_keys:r=`Unrecognized key(s) in object: ${_e.joinValues(e.keys,", ")}`;break;case $.invalid_union:r="Invalid input";break;case $.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${_e.joinValues(e.options)}`;break;case $.invalid_enum_value:r=`Invalid enum value. Expected ${_e.joinValues(e.options)}, received '${e.received}'`;break;case $.invalid_arguments:r="Invalid function arguments";break;case $.invalid_return_type:r="Invalid function return type";break;case $.invalid_date:r="Invalid date";break;case $.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:_e.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case $.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case $.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case $.custom:r="Invalid input";break;case $.invalid_intersection_types:r="Intersection results could not be merged";break;case $.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case $.not_finite:r="Number must be finite";break;default:r=t.defaultError,_e.assertNever(e)}return{message:r}};let Wj=Af;function qj(){return Wj}const Gj=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],a={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let i="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)i=c(a,{data:t,defaultError:i}).message;return{...o,path:s,message:i}};function Q(e,t){const r=qj(),n=Gj({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Af?void 0:Af].filter(o=>!!o)});e.common.issues.push(n)}class Kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const o of r){if(o.status==="aborted")return ce;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const o of r){const s=await o.key,a=await o.value;n.push({key:s,value:a})}return Kt.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const o of r){const{key:s,value:a}=o;if(s.status==="aborted"||a.status==="aborted")return ce;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(n[s.value]=a.value)}return{status:t.value,value:n}}}const ce=Object.freeze({status:"aborted"}),Ta=e=>({status:"dirty",value:e}),cr=e=>({status:"valid",value:e}),sg=e=>e.status==="aborted",ag=e=>e.status==="dirty",Gs=e=>e.status==="valid",ac=e=>typeof Promise<"u"&&e instanceof Promise;var re;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(re||(re={}));class uo{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ig=(e,t)=>{if(Gs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new kn(e.common.issues);return this._error=r,this._error}}};function he(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,i)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??n??i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:l??r??i.defaultError}},description:o}}class Se{get description(){return this._def.description}_getType(t){return Fn(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Kt,ctx:{common:t.parent.common,data:t.data,parsedType:Fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(ac(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)},o=this._parseSync({data:t,path:n.path,parent:n});return ig(n,o)}"~validate"(t){var n,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:r});return Gs(s)?{value:s.value}:{issues:r.common.issues}}catch(s){(o=(n=s==null?void 0:s.message)==null?void 0:n.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(s=>Gs(s)?{value:s.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(ac(o)?o:Promise.resolve(o));return ig(n,s)}refine(t,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{const a=t(o),i=()=>s.addIssue({code:$.custom,...n(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(i(),!1)):a?!0:(i(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Zs({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return oo.create(this,this._def)}nullable(){return Ys.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xr.create(this)}promise(){return uc.create(this,this._def)}or(t){return lc.create([this,t],this._def)}and(t){return cc.create(this,t,this._def)}transform(t){return new Zs({...he(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Of({...he(this._def),innerType:this,defaultValue:r,typeName:ue.ZodDefault})}brand(){return new v2({typeName:ue.ZodBranded,type:this,...he(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new If({...he(this._def),innerType:this,catchValue:r,typeName:ue.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Sh.create(this,t)}readonly(){return Mf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Kj=/^c[^\s-]{8,}$/i,Qj=/^[0-9a-z]+$/,Zj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Xj=/^[a-z0-9_-]{21}$/i,Jj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,e2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,r2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ed;const n2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,o2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,s2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,a2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,i2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,l2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,H1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",c2=new RegExp(`^${H1}$`);function W1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function u2(e){return new RegExp(`^${W1(e)}$`)}function d2(e){let t=`${H1}T${W1(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function f2(e,t){return!!((t==="v4"||!t)&&n2.test(e)||(t==="v6"||!t)&&s2.test(e))}function p2(e,t){if(!Jj.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function h2(e,t){return!!((t==="v4"||!t)&&o2.test(e)||(t==="v6"||!t)&&a2.test(e))}class Qn extends Se{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.string,received:s.parsedType}),ce}const n=new Kt;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:$.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,i=t.data.lengtht.test(o),{validation:r,code:$.invalid_string,...re.errToObj(n)})}_addCheck(t){return new Qn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...re.errToObj(t)})}url(t){return this._addCheck({kind:"url",...re.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...re.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...re.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...re.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...re.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...re.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...re.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...re.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...re.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...re.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...re.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...re.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...re.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...re.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...re.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...re.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...re.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...re.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...re.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...re.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...re.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...re.errToObj(r)})}nonempty(t){return this.min(1,re.errToObj(t))}trim(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew Qn({checks:[],typeName:ue.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...he(e)});function m2(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}class Ks extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ee.number){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.number,received:s.parsedType}),ce}let n;const o=new Kt;for(const s of this._def.checks)s.kind==="int"?_e.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Q(n,{code:$.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?m2(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_finite,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,re.toString(r))}gt(t,r){return this.setLimit("min",t,!1,re.toString(r))}lte(t,r){return this.setLimit("max",t,!0,re.toString(r))}lt(t,r){return this.setLimit("max",t,!1,re.toString(r))}setLimit(t,r,n,o){return new Ks({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:re.toString(o)}]})}_addCheck(t){return new Ks({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:re.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:re.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&_e.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew Ks({checks:[],typeName:ue.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...he(e)});class ui extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ee.bigint)return this._getInvalidInput(t);let n;const o=new Kt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return Q(r,{code:$.invalid_type,expected:ee.bigint,received:r.parsedType}),ce}gte(t,r){return this.setLimit("min",t,!0,re.toString(r))}gt(t,r){return this.setLimit("min",t,!1,re.toString(r))}lte(t,r){return this.setLimit("max",t,!0,re.toString(r))}lt(t,r){return this.setLimit("max",t,!1,re.toString(r))}setLimit(t,r,n,o){return new ui({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:re.toString(o)}]})}_addCheck(t){return new ui({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew ui({checks:[],typeName:ue.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...he(e)});class Pf extends Se{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.boolean,received:n.parsedType}),ce}return cr(t.data)}}Pf.create=e=>new Pf({typeName:ue.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...he(e)});class ic extends Se{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.date,received:s.parsedType}),ce}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_date}),ce}const n=new Kt;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:$.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):_e.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ic({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:re.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:re.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew ic({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ue.ZodDate,...he(e)});class lg extends Se{_parse(t){if(this._getType(t)!==ee.symbol){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.symbol,received:n.parsedType}),ce}return cr(t.data)}}lg.create=e=>new lg({typeName:ue.ZodSymbol,...he(e)});class cg extends Se{_parse(t){if(this._getType(t)!==ee.undefined){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.undefined,received:n.parsedType}),ce}return cr(t.data)}}cg.create=e=>new cg({typeName:ue.ZodUndefined,...he(e)});class ug extends Se{_parse(t){if(this._getType(t)!==ee.null){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.null,received:n.parsedType}),ce}return cr(t.data)}}ug.create=e=>new ug({typeName:ue.ZodNull,...he(e)});class dg extends Se{constructor(){super(...arguments),this._any=!0}_parse(t){return cr(t.data)}}dg.create=e=>new dg({typeName:ue.ZodAny,...he(e)});class fg extends Se{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cr(t.data)}}fg.create=e=>new fg({typeName:ue.ZodUnknown,...he(e)});class fo extends Se{_parse(t){const r=this._getOrReturnCtx(t);return Q(r,{code:$.invalid_type,expected:ee.never,received:r.parsedType}),ce}}fo.create=e=>new fo({typeName:ue.ZodNever,...he(e)});class pg extends Se{_parse(t){if(this._getType(t)!==ee.undefined){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.void,received:n.parsedType}),ce}return cr(t.data)}}pg.create=e=>new pg({typeName:ue.ZodVoid,...he(e)});class Xr extends Se{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==ee.array)return Q(r,{code:$.invalid_type,expected:ee.array,received:r.parsedType}),ce;if(o.exactLength!==null){const a=r.data.length>o.exactLength.value,i=r.data.lengtho.maxLength.value&&(Q(r,{code:$.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,i)=>o.type._parseAsync(new uo(r,a,r.path,i)))).then(a=>Kt.mergeArray(n,a));const s=[...r.data].map((a,i)=>o.type._parseSync(new uo(r,a,r.path,i)));return Kt.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new Xr({...this._def,minLength:{value:t,message:re.toString(r)}})}max(t,r){return new Xr({...this._def,maxLength:{value:t,message:re.toString(r)}})}length(t,r){return new Xr({...this._def,exactLength:{value:t,message:re.toString(r)}})}nonempty(t){return this.min(1,t)}}Xr.create=(e,t)=>new Xr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...he(t)});function ns(e){if(e instanceof We){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=oo.create(ns(n))}return new We({...e._def,shape:()=>t})}else return e instanceof Xr?new Xr({...e._def,type:ns(e.element)}):e instanceof oo?oo.create(ns(e.unwrap())):e instanceof Ys?Ys.create(ns(e.unwrap())):e instanceof Uo?Uo.create(e.items.map(t=>ns(t))):e}class We extends Se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=_e.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==ee.object){const c=this._getOrReturnCtx(t);return Q(c,{code:$.invalid_type,expected:ee.object,received:c.parsedType}),ce}const{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof fo&&this._def.unknownKeys==="strip"))for(const c in o.data)a.includes(c)||i.push(c);const l=[];for(const c of a){const d=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new uo(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof fo){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of i)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(c==="strict")i.length>0&&(Q(o,{code:$.unrecognized_keys,keys:i}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of i){const f=o.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new uo(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const f=await d.key,h=await d.value;c.push({key:f,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>Kt.mergeObjectSync(n,c)):Kt.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return re.errToObj,new We({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var s,a;const o=((a=(s=this._def).errorMap)==null?void 0:a.call(s,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:re.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new We({...this._def,unknownKeys:"strip"})}passthrough(){return new We({...this._def,unknownKeys:"passthrough"})}extend(t){return new We({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new We({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ue.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new We({...this._def,catchall:t})}pick(t){const r={};for(const n of _e.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new We({...this._def,shape:()=>r})}omit(t){const r={};for(const n of _e.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new We({...this._def,shape:()=>r})}deepPartial(){return ns(this)}partial(t){const r={};for(const n of _e.objectKeys(this.shape)){const o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new We({...this._def,shape:()=>r})}required(t){const r={};for(const n of _e.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof oo;)s=s._def.innerType;r[n]=s}return new We({...this._def,shape:()=>r})}keyof(){return q1(_e.objectKeys(this.shape))}}We.create=(e,t)=>new We({shape:()=>e,unknownKeys:"strip",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});We.strictCreate=(e,t)=>new We({shape:()=>e,unknownKeys:"strict",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});We.lazycreate=(e,t)=>new We({shape:e,unknownKeys:"strip",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});class lc extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(const i of s)if(i.result.status==="valid")return i.result;for(const i of s)if(i.result.status==="dirty")return r.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(i=>new kn(i.ctx.common.issues));return Q(r,{code:$.invalid_union,unionErrors:a}),ce}if(r.common.async)return Promise.all(n.map(async s=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(o);{let s;const a=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const i=a.map(l=>new kn(l));return Q(r,{code:$.invalid_union,unionErrors:i}),ce}}get options(){return this._def.options}}lc.create=(e,t)=>new lc({options:e,typeName:ue.ZodUnion,...he(t)});function jf(e,t){const r=Fn(e),n=Fn(t);if(e===t)return{valid:!0,data:e};if(r===ee.object&&n===ee.object){const o=_e.objectKeys(t),s=_e.objectKeys(e).filter(i=>o.indexOf(i)!==-1),a={...e,...t};for(const i of s){const l=jf(e[i],t[i]);if(!l.valid)return{valid:!1};a[i]=l.data}return{valid:!0,data:a}}else if(r===ee.array&&n===ee.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(sg(s)||sg(a))return ce;const i=jf(s.value,a.value);return i.valid?((ag(s)||ag(a))&&r.dirty(),{status:r.value,value:i.data}):(Q(n,{code:$.invalid_intersection_types}),ce)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>o(s,a)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}cc.create=(e,t,r)=>new cc({left:e,right:t,typeName:ue.ZodIntersection,...he(r)});class Uo extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.array)return Q(n,{code:$.invalid_type,expected:ee.array,received:n.parsedType}),ce;if(n.data.lengththis._def.items.length&&(Q(n,{code:$.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((a,i)=>{const l=this._def.items[i]||this._def.rest;return l?l._parse(new uo(n,a,n.path,i)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>Kt.mergeArray(r,a)):Kt.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new Uo({...this._def,rest:t})}}Uo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Uo({items:e,typeName:ue.ZodTuple,rest:null,...he(t)})};class hg extends Se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.map)return Q(n,{code:$.invalid_type,expected:ee.map,received:n.parsedType}),ce;const o=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([i,l],c)=>({key:o._parse(new uo(n,i,n.path,[c,"key"])),value:s._parse(new uo(n,l,n.path,[c,"value"]))}));if(n.common.async){const i=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return ce;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),i.set(c.value,d.value)}return{status:r.value,value:i}})}else{const i=new Map;for(const l of a){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return ce;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),i.set(c.value,d.value)}return{status:r.value,value:i}}}}hg.create=(e,t,r)=>new hg({valueType:t,keyType:e,typeName:ue.ZodMap,...he(r)});class di extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.set)return Q(n,{code:$.invalid_type,expected:ee.set,received:n.parsedType}),ce;const o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(Q(n,{code:$.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const s=this._def.valueType;function a(l){const c=new Set;for(const d of l){if(d.status==="aborted")return ce;d.status==="dirty"&&r.dirty(),c.add(d.value)}return{status:r.value,value:c}}const i=[...n.data.values()].map((l,c)=>s._parse(new uo(n,l,n.path,c)));return n.common.async?Promise.all(i).then(l=>a(l)):a(i)}min(t,r){return new di({...this._def,minSize:{value:t,message:re.toString(r)}})}max(t,r){return new di({...this._def,maxSize:{value:t,message:re.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}di.create=(e,t)=>new di({valueType:e,minSize:null,maxSize:null,typeName:ue.ZodSet,...he(t)});class mg extends Se{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}mg.create=(e,t)=>new mg({getter:e,typeName:ue.ZodLazy,...he(t)});class vg extends Se{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Q(r,{received:r.data,code:$.invalid_literal,expected:this._def.value}),ce}return{status:"valid",value:t.data}}get value(){return this._def.value}}vg.create=(e,t)=>new vg({value:e,typeName:ue.ZodLiteral,...he(t)});function q1(e,t){return new Qs({values:e,typeName:ue.ZodEnum,...he(t)})}class Qs extends Se{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return Q(r,{expected:_e.joinValues(n),received:r.parsedType,code:$.invalid_type}),ce}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return Q(r,{received:r.data,code:$.invalid_enum_value,options:n}),ce}return cr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Qs.create(t,{...this._def,...r})}exclude(t,r=this._def){return Qs.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Qs.create=q1;class gg extends Se{_parse(t){const r=_e.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ee.string&&n.parsedType!==ee.number){const o=_e.objectValues(r);return Q(n,{expected:_e.joinValues(o),received:n.parsedType,code:$.invalid_type}),ce}if(this._cache||(this._cache=new Set(_e.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=_e.objectValues(r);return Q(n,{received:n.data,code:$.invalid_enum_value,options:o}),ce}return cr(t.data)}get enum(){return this._def.values}}gg.create=(e,t)=>new gg({values:e,typeName:ue.ZodNativeEnum,...he(t)});class uc extends Se{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.promise&&r.common.async===!1)return Q(r,{code:$.invalid_type,expected:ee.promise,received:r.parsedType}),ce;const n=r.parsedType===ee.promise?r.data:Promise.resolve(r.data);return cr(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}uc.create=(e,t)=>new uc({type:e,typeName:ue.ZodPromise,...he(t)});class Zs extends Se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:a=>{Q(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const a=o.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async i=>{if(r.value==="aborted")return ce;const l=await this._def.schema._parseAsync({data:i,path:n.path,parent:n});return l.status==="aborted"?ce:l.status==="dirty"||r.value==="dirty"?Ta(l.value):l});{if(r.value==="aborted")return ce;const i=this._def.schema._parseSync({data:a,path:n.path,parent:n});return i.status==="aborted"?ce:i.status==="dirty"||r.value==="dirty"?Ta(i.value):i}}if(o.type==="refinement"){const a=i=>{const l=o.refinement(i,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ce:(i.status==="dirty"&&r.dirty(),a(i.value),{status:r.value,value:i.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>i.status==="aborted"?ce:(i.status==="dirty"&&r.dirty(),a(i.value).then(()=>({status:r.value,value:i.value}))))}if(o.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Gs(a))return ce;const i=o.transform(a.value,s);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:i}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Gs(a)?Promise.resolve(o.transform(a.value,s)).then(i=>({status:r.value,value:i})):ce);_e.assertNever(o)}}Zs.create=(e,t,r)=>new Zs({schema:e,typeName:ue.ZodEffects,effect:t,...he(r)});Zs.createWithPreprocess=(e,t,r)=>new Zs({schema:t,effect:{type:"preprocess",transform:e},typeName:ue.ZodEffects,...he(r)});class oo extends Se{_parse(t){return this._getType(t)===ee.undefined?cr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oo.create=(e,t)=>new oo({innerType:e,typeName:ue.ZodOptional,...he(t)});class Ys extends Se{_parse(t){return this._getType(t)===ee.null?cr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ys.create=(e,t)=>new Ys({innerType:e,typeName:ue.ZodNullable,...he(t)});class Of extends Se{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===ee.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Of.create=(e,t)=>new Of({innerType:e,typeName:ue.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...he(t)});class If extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ac(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new kn(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new kn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}If.create=(e,t)=>new If({innerType:e,typeName:ue.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...he(t)});class yg extends Se{_parse(t){if(this._getType(t)!==ee.nan){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.nan,received:n.parsedType}),ce}return{status:"valid",value:t.data}}}yg.create=e=>new yg({typeName:ue.ZodNaN,...he(e)});class v2 extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Sh extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ce:s.status==="dirty"?(r.dirty(),Ta(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ce:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new Sh({in:t,out:r,typeName:ue.ZodPipeline})}}class Mf extends Se{_parse(t){const r=this._def.innerType._parse(t),n=o=>(Gs(o)&&(o.value=Object.freeze(o.value)),o);return ac(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}Mf.create=(e,t)=>new Mf({innerType:e,typeName:ue.ZodReadonly,...he(t)});We.lazycreate;var ue;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ue||(ue={}));const Sa=Qn.create,Gr=Ks.create,G1=Pf.create;fo.create;Xr.create;const eu=We.create;We.strictCreate;lc.create;cc.create;Uo.create;Qs.create;uc.create;oo.create;Ys.create;const Me={MINIMUM_WAGE:1412,MONTHLY_HOURS:220,FGTS_RATE:.08,FGTS_FINE:.4,VACATION_BONUS:1/3,MAX_PRIOR_NOTICE_DAYS:90,PRIOR_NOTICE_BASE_DAYS:30,PRIOR_NOTICE_ADDITIONAL_DAYS_PER_YEAR:3,MAX_PRESCRIPTION_MONTHS:60,MAX_OVERTIME_HOURS_DAILY:2,MAX_OVERTIME_HOURS_MONTHLY:44},bo=e=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e),g2=e=>e/Me.MONTHLY_HOURS,y2=e=>{const t=Math.floor(e/12),r=Math.min(t*Me.PRIOR_NOTICE_ADDITIONAL_DAYS_PER_YEAR,Me.MAX_PRIOR_NOTICE_DAYS-Me.PRIOR_NOTICE_BASE_DAYS);return Me.PRIOR_NOTICE_BASE_DAYS+r},K1=(e,t)=>{const r=e,n=r*t/12,o=r*t/12,s=o*Me.VACATION_BONUS,a=o+s,i=r*t*Me.FGTS_RATE;return{thirteenthSalary:n,vacation:a,fgts:i}},x2=(e,t,r,n)=>{const o=g2(e),s=t*o*1.5*n,a=r*o*2*n,i=s+a,l=i/n,c=K1(l,n);return{overtime50Value:s,overtime100Value:a,totalOvertime:i,thirteenthSalary:c.thirteenthSalary,vacation:c.vacation,fgts:c.fgts,total:i+c.thirteenthSalary+c.vacation+c.fgts}},w2=(e,t,r=0,n=!1)=>{const o=e/30,s=y2(t),a=n?0:s*o,i=e*t/12,l=e*t/12,c=l*Me.VACATION_BONUS,d=l+c,f=r/30*e,h=f*Me.VACATION_BONUS,g=f+h,b=e*t*Me.FGTS_RATE,v=b*Me.FGTS_FINE,w=b+v;return{priorNotice:a,thirteenthSalary:i,proportionalVacation:d,owedVacation:g,fgtsBase:b,fgtsFine:v,fgtsTotal:w,total:a+i+d+g+w}},b2=(e,t,r,n=!0)=>{const o=t-e,s=o*r;if(!n)return{monthlyDifference:o,totalDifference:s,thirteenthSalary:0,vacation:0,fgts:0,total:s};const a=K1(o,r);return{monthlyDifference:o,totalDifference:s,thirteenthSalary:a.thirteenthSalary,vacation:a.vacation,fgts:a.fgts,total:s+a.thirteenthSalary+a.vacation+a.fgts}},S2=eu({salary:Gr({required_error:"Salário é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),overtime50:Gr({required_error:"Quantidade de horas extras é obrigatória",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(Me.MAX_OVERTIME_HOURS_MONTHLY,`Máximo ${Me.MAX_OVERTIME_HOURS_MONTHLY}h/mês (2h por dia)`),overtime100:Gr({required_error:"Quantidade de horas extras é obrigatória",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(Me.MAX_OVERTIME_HOURS_MONTHLY,`Máximo ${Me.MAX_OVERTIME_HOURS_MONTHLY}h/mês (2h por dia)`),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(Me.MAX_PRESCRIPTION_MONTHS,"Prescrição trabalhista: máximo 5 anos (60 meses)")}),C2=eu({salary:Gr({required_error:"Salário é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(600,"Máximo 50 anos (600 meses)"),vacationDays:Gr({required_error:"Dias de férias é obrigatório",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(30,"Máximo 30 dias"),workedPriorNotice:G1()}),E2=eu({receivedSalary:Gr({required_error:"Salário recebido é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),owedSalary:Gr({required_error:"Salário devido é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(Me.MAX_PRESCRIPTION_MONTHS,"Prescrição trabalhista: máximo 5 anos (60 meses)"),includeReflections:G1()}).refine(e=>e.owedSalary>e.receivedSalary,{message:"Salário devido deve ser maior que o salário recebido",path:["owedSalary"]}).refine(e=>e.owedSalary-e.receivedSalary<=e.receivedSalary*3,{message:"Diferença muito alta (máx. 300% do salário recebido)",path:["owedSalary"]});var _2="Separator",xg="horizontal",k2=["horizontal","vertical"],Q1=p.forwardRef((e,t)=>{const{decorative:r,orientation:n=xg,...o}=e,s=T2(n)?n:xg,i=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return u.jsx(oe.div,{"data-orientation":s,...i,...o,ref:t})});Q1.displayName=_2;function T2(e){return k2.includes(e)}var Z1=Q1;const Df=p.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>u.jsx(Z1,{ref:o,decorative:r,orientation:t,className:ae("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Df.displayName=Z1.displayName;const Ch=({title:e,items:t,total:r,onNewCalculation:n,calculatorType:o,formData:s})=>{const a=()=>{let i=`*${e}* + */const mP="6";try{window.__reactRouterVersion=mP}catch{}const vP="startTransition",Lv=Jf[vP];function gP(e){let{basename:t,children:r,future:n,window:o}=e,s=p.useRef();s.current==null&&(s.current=OA({window:o,v5Compat:!0}));let a=s.current,[i,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=p.useCallback(f=>{c&&Lv?Lv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(d),[a,d]),p.useEffect(()=>fP(n),[n]),p.createElement(pP,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a,future:n})}var Fv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Fv||(Fv={}));var $v;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($v||($v={}));var yP=typeof Element<"u",xP=typeof Map=="function",wP=typeof Set=="function",bP=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gl(e[n],t[n]))return!1;return!0}var s;if(xP&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!gl(n.value[1],t.get(n.value[0])))return!1;return!0}if(wP&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(bP&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(yP&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!gl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var SP=function(t,r){try{return gl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const CP=ea(SP);var EP=function(e,t,r,n,o,s,a,i){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,s,a,i],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},_P=EP;const Vv=ea(_P);var kP=function(t,r,n,o){var s=n?n.call(o,t,r):void 0;if(s!==void 0)return!!s;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),i=Object.keys(r);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Zw||{}),Qu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zv=Object.values(Zw),fh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},NP=Object.entries(fh).reduce((e,[t,r])=>(e[r]=t,e),{}),_r="data-rh",_s={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ks=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},RP=e=>{let t=ks(e,"title");const r=ks(e,_s.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=ks(e,_s.DEFAULT_TITLE);return t||n||void 0},AP=e=>ks(e,_s.ON_CHANGE_CLIENT_STATE)||(()=>{}),Zu=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),PP=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const o=Object.keys(n);for(let s=0;sconsole&&typeof console.warn=="function"&&console.warn(e),ya=(e,t,r)=>{const n={};return r.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&jP(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,s)=>{const a={};s.filter(l=>{let c;const d=Object.keys(l);for(let h=0;ho.push(l));const i=Object.keys(a);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let r=0;r({baseTag:PP(["href"],e),bodyAttributes:Zu("bodyAttributes",e),defer:ks(e,_s.DEFER),encode:ks(e,_s.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Zu("htmlAttributes",e),linkTags:ya("link",["rel","href"],e),metaTags:ya("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ya("noscript",["innerHTML"],e),onChangeClientState:AP(e),scriptTags:ya("script",["src","innerHTML"],e),styleTags:ya("style",["cssText"],e),title:RP(e),titleAttributes:Zu("titleAttributes",e),prioritizeSeoTags:OP(e,_s.PRIORITIZE_SEO_TAGS)}),Yw=e=>Array.isArray(e)?e.join(""):e,MP=(e,t)=>{const r=Object.keys(e);for(let n=0;nArray.isArray(e)?e.reduce((r,n)=>(MP(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Bv=(e,t)=>({...e,[t]:void 0}),DP=["noscript","script","style"],Ef=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Xw=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),LP=(e,t,r,n)=>{const o=Xw(r),s=Yw(t);return o?`<${e} ${_r}="true" ${o}>${Ef(s,n)}`:`<${e} ${_r}="true">${Ef(s,n)}`},FP=(e,t,r=!0)=>t.reduce((n,o)=>{const s=o,a=Object.keys(s).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof s[d]>"u"?d:`${d}="${Ef(s[d],r)}"`;return c?`${c} ${f}`:f},""),i=s.innerHTML||s.cssText||"",l=DP.indexOf(e)===-1;return`${n}<${e} ${_r}="true" ${a}${l?"/>":`>${i}`}`},""),Jw=(e,t={})=>Object.keys(e).reduce((r,n)=>{const o=fh[n];return r[o||n]=e[n],r},t),$P=(e,t,r)=>{const n={key:t,[_r]:!0},o=Jw(r,n);return[R.createElement("title",o,t)]},yl=(e,t)=>t.map((r,n)=>{const o={key:n,[_r]:!0};return Object.keys(r).forEach(s=>{const i=fh[s]||s;if(i==="innerHTML"||i==="cssText"){const l=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[i]=r[s]}),R.createElement(e,o)}),er=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>$P(e,t.title,t.titleAttributes),toString:()=>LP(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Jw(t),toString:()=>Xw(t)};default:return{toComponent:()=>yl(e,t),toString:()=>FP(e,t,r)}}},VP=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const o=Yu(e,Qu.meta),s=Yu(t,Qu.link),a=Yu(r,Qu.script);return{priorityMethods:{toComponent:()=>[...yl("meta",o.priority),...yl("link",s.priority),...yl("script",a.priority)],toString:()=>`${er("meta",o.priority,n)} ${er("link",s.priority,n)} ${er("script",a.priority,n)}`},metaTags:o.default,linkTags:s.default,scriptTags:a.default}},zP=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:o,noscriptTags:s,styleTags:a,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:d,metaTags:f,scriptTags:h}=VP(e)),{priority:g,base:er("base",t,n),bodyAttributes:er("bodyAttributes",r,n),htmlAttributes:er("htmlAttributes",o,n),link:er("link",d,n),meta:er("meta",f,n),noscript:er("noscript",s,n),script:er("script",h,n),style:er("style",a,n),title:er("title",{title:i,titleAttributes:l},n)}},_f=zP,Yi=[],e1=!!(typeof window<"u"&&window.document&&window.document.createElement),kf=class{constructor(e,t){ln(this,"instances",[]);ln(this,"canUseDOM",e1);ln(this,"context");ln(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Yi:this.instances,add:e=>{(this.canUseDOM?Yi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Yi:this.instances).indexOf(e);(this.canUseDOM?Yi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=_f({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},BP={},t1=R.createContext(BP),Io,r1=(Io=class extends p.Component{constructor(r){super(r);ln(this,"helmetData");this.helmetData=new kf(this.props.context||{},Io.canUseDOM)}render(){return R.createElement(t1.Provider,{value:this.helmetData.value},this.props.children)}},ln(Io,"canUseDOM",e1),Io),Yo=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${_r}]`),o=[].slice.call(n),s=[];let a;return t&&t.length&&t.forEach(i=>{const l=document.createElement(e);for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c))if(c==="innerHTML")l.innerHTML=i.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText));else{const d=c,f=typeof i[d]>"u"?"":i[d];l.setAttribute(c,f)}l.setAttribute(_r,"true"),o.some((c,d)=>(a=d,l.isEqualNode(c)))?o.splice(a,1):s.push(l)}),o.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),s.forEach(i=>r.appendChild(i)),{oldTags:o,newTags:s}},Tf=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(_r),o=n?n.split(","):[],s=[...o],a=Object.keys(t);for(const i of a){const l=t[i]||"";r.getAttribute(i)!==l&&r.setAttribute(i,l),o.indexOf(i)===-1&&o.push(i);const c=s.indexOf(i);c!==-1&&s.splice(c,1)}for(let i=s.length-1;i>=0;i-=1)r.removeAttribute(s[i]);o.length===s.length?r.removeAttribute(_r):r.getAttribute(_r)!==a.join(",")&&r.setAttribute(_r,a.join(","))},UP=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Yw(e)),Tf("title",t)},Uv=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:o,linkTags:s,metaTags:a,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:h}=e;Tf("body",n),Tf("html",o),UP(f,h);const g={baseTag:Yo("base",r),linkTags:Yo("link",s),metaTags:Yo("meta",a),noscriptTags:Yo("noscript",i),scriptTags:Yo("script",c),styleTags:Yo("style",d)},b={},v={};Object.keys(g).forEach(w=>{const{newTags:y,oldTags:m}=g[w];y.length&&(b[w]=y),m.length&&(v[w]=g[w].oldTags)}),t&&t(),l(e,b,v)},xa=null,HP=e=>{xa&&cancelAnimationFrame(xa),e.defer?xa=requestAnimationFrame(()=>{Uv(e,()=>{xa=null})}):(Uv(e),xa=null)},WP=HP,Hv=class extends p.Component{constructor(){super(...arguments);ln(this,"rendered",!1)}shouldComponentUpdate(t){return!TP(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const o=IP(t.get().map(s=>{const a={...s.props};return delete a.context,a}));r1.canUseDOM?WP(o):_f&&(n=_f(o)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},pd,qP=(pd=class extends p.Component{shouldComponentUpdate(e){return!CP(Bv(this.props,"helmetData"),Bv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return Vv(zv.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Vv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return R.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:o,...s}=n.props,a=Object.keys(s).reduce((l,c)=>(l[NP[c]||c]=s[c],l),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,o),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,a,o);break;default:t=this.mapObjectTypeChildren(n,t,a,o);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof kf)){const o=n;n=new kf(o.context,!0),delete r.helmetData}return n?R.createElement(Hv,{...r,context:n.value}):R.createElement(t1.Consumer,null,o=>R.createElement(Hv,{...r,context:o}))}},ln(pd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),pd);const GP=Gp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nt=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const a=n?c0:"button";return u.jsx(a,{className:ae(GP({variant:t,size:r,className:e})),ref:s,...o})});nt.displayName="Button";const qs=({className:e="",size:t=24})=>u.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:u.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z",fill:"#25D366"})}),ar={number:"551151991450",displayNumber:"(11) 51991450",getWhatsAppLink:(e="Olá, gostaria de falar com um especialista")=>`https://wa.me/551151991450?text=${encodeURIComponent(e)}`},KP=()=>{const e=ar.displayNumber,t=ar.getWhatsAppLink("Olá, gostaria de falar com um advogado trabalhista");return u.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:u.jsxs("div",{className:"container mx-auto px-4 h-20 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary flex items-center justify-center",children:u.jsx("span",{className:"font-bold text-primary-foreground text-4xl",children:"⚖️"})}),u.jsxs("div",{children:[u.jsx("h1",{className:"text-xl font-bold text-foreground",children:"DireitoTrabalhista"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Advogado Especializado "})]})]}),u.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[u.jsxs("a",{href:`tel:${e.replace(/\D/g,"")}`,className:"flex items-center gap-2 text-foreground hover:text-primary transition-colors",children:[u.jsx(df,{className:"w-4 h-4"}),u.jsx("span",{className:"font-medium",children:e})]}),u.jsx(nt,{asChild:!0,variant:"default",size:"lg",className:"gap-2",children:u.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:16}),"Fale Agora!"]})})]}),u.jsx(nt,{asChild:!0,variant:"default",size:"sm",className:"md:hidden gap-2",children:u.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(qs,{size:16}),"Contato"]})})]})})},QP=()=>{const e=ar.getWhatsAppLink("Olá, gostaria de falar com um advogado trabalhista");return u.jsxs("section",{className:"relative min-h-[85vh] md:min-h-screen pt-20 flex items-center overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 hero-gradient opacity-10"}),u.jsx("div",{className:"container mx-auto px-4 py-8 md:py-20 relative z-10",children:u.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-4 md:space-y-8 animate-fade-in",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent/10 text-accent px-4 py-2 rounded-full text-sm font-medium",children:[u.jsx(Kl,{className:"w-4 h-4"}),"Atendimento Online - 100% Sigiloso"]}),u.jsxs("h1",{className:"text-3xl md:text-4xl font-bold text-foreground leading-tight lg:text-5xl",children:["Está com dúvidas na sua rescisão?",u.jsx("br",{}),u.jsx("span",{className:"text-primary text-3xl",children:"Saiba se possui diferenças ou horas extras a receber."})]}),u.jsx("div",{className:"flex justify-center pt-4",children:u.jsx(nt,{asChild:!0,size:"lg",variant:"default",className:"text-lg px-8 py-6 animate-pulse",children:u.jsx("a",{href:"#calculadora",children:"Clique Aqui - Utilize nossa Calculadora"})})}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto lg:text-lg",children:"Equipe especializada em Direito do Trabalho. Avaliação Rápida e Sem Compromisso."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center pt-4",children:[u.jsx(nt,{asChild:!0,size:"lg",className:"text-lg px-8 py-6 gold-glow",children:u.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"gap-3",children:["Fale Agora!!!",u.jsx(qs,{size:20})]})}),u.jsx(nt,{asChild:!0,variant:"outline",size:"lg",className:"text-lg px-8 py-6",children:u.jsx("a",{href:"#servicos",children:"Conheça nossos serviços"})})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 pt-6 md:pt-12 max-w-3xl mx-auto",children:[u.jsxs("div",{className:"flex flex-col items-center gap-2 p-2 md:p-4",children:[u.jsx(Kl,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"100% Sigiloso"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Suas informações protegidas"})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[u.jsx(Zp,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"Resposta Rápida"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Retorno imediato"})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 p-4",children:[u.jsx(Yp,{className:"w-8 h-8 text-accent"}),u.jsx("p",{className:"font-semibold text-foreground",children:"Atendimento Online"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"De qualquer lugar"})]})]})]})})]})},Wr=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Wr.displayName="Card";const n1=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("flex flex-col space-y-1.5 p-6",e),...t}));n1.displayName="CardHeader";const o1=p.forwardRef(({className:e,...t},r)=>u.jsx("h3",{ref:r,className:ae("text-2xl font-semibold leading-none tracking-tight",e),...t}));o1.displayName="CardTitle";const s1=p.forwardRef(({className:e,...t},r)=>u.jsx("p",{ref:r,className:ae("text-sm text-muted-foreground",e),...t}));s1.displayName="CardDescription";const ph=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("p-6 pt-0",e),...t}));ph.displayName="CardContent";const ZP=p.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:ae("flex items-center p-6 pt-0",e),...t}));ZP.displayName="CardFooter";const YP=[{icon:V0,title:"Reclamações Trabalhistas",description:"Defesa completa dos seus direitos"},{icon:aT,title:"Demissão sem Justa Causa",description:"Análise e contestação de demissões indevidas"},{icon:$0,title:"Rescisão Indireta",description:"Quando o empregador descumpre obrigações"},{icon:Zp,title:"Horas Extras não Pagas",description:"Recuperação de horas extras trabalhadas"},{icon:U0,title:"Acúmulo/Desvio de Função",description:"Direito a diferenças salariais"},{icon:sT,title:"Assédio Moral ou Sexual",description:"Proteção e reparação de danos"},{icon:rT,title:"Vínculo sem Registro",description:"Regularização de carteira de trabalho"},{icon:Yk,title:"Férias e 13º Salário",description:"Cobrança de verbas não recebidas"},{icon:Zk,title:"Acidente de Trabalho",description:"Indenizações e auxílios"},{icon:eT,title:"Verbas Rescisórias",description:"Garantia do recebimento de FGTS e outros"}],XP=()=>u.jsx("section",{id:"servicos",className:"py-8 md:py-16 bg-secondary/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Como podemos ",u.jsx("span",{className:"text-primary",children:"te ajudar?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Especialistas em todas as áreas do Direito do Trabalho"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-6 max-w-6xl mx-auto",children:YP.map((e,t)=>u.jsx(Wr,{className:"p-4 md:p-6 hover-lift cursor-pointer border-2 hover:border-accent transition-all",style:{animationDelay:`${t*.1}s`},children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:u.jsx(e.icon,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("h3",{className:"font-semibold text-lg text-foreground",children:e.title}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})]})},t))})]})}),JP=[{icon:Qk,value:"+10 anos",label:"de experiência em Direito do Trabalho"},{icon:U0,value:"+200",label:"clientes atendidos com sucesso"},{icon:Kl,value:"100%",label:"de sigilo e confidencialidade"},{icon:B0,value:"5.0",label:"avaliação dos nossos clientes"}],ej=[{name:"M S",role:"Auxiliar de Limpeza",text:"Fui demitida sem receber minhas verbas. A equipe me ajudou a recuperar tudo que tinha direito. Recomendo!",rating:5},{name:"J P",role:"Zelador de Condominio",text:"Trabalhei 2 anos sem registro. Graças ao atendimento rápido, consegui ter meus direitos reconhecidos.",rating:5},{name:"J C",role:"Porteiro",text:"Horas extras nunca pagas. A equipe foi atenciosa e conseguiu um acordo excelente para mim.",rating:5}],tj=()=>u.jsx("section",{className:"py-8 md:py-16 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Por que ",u.jsx("span",{className:"text-primary",children:"nos escolher?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Experiência e compromisso com seus direitos"})]}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 gap-3 md:gap-6 mb-8 md:mb-12 max-w-6xl mx-auto",children:JP.map((e,t)=>u.jsxs(Wr,{className:"p-4 md:p-6 text-center hover-lift border-2 hover:border-accent transition-all",children:[u.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-2 md:mb-4",children:u.jsx(e.icon,{className:"w-6 h-6 md:w-8 md:h-8 text-accent"})}),u.jsx("p",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-primary mb-2",children:e.value}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.label})]},t))}),u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsx("h3",{className:"text-xl md:text-2xl font-bold text-center text-foreground mb-6 md:mb-8",children:"O que nossos clientes dizem"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 md:gap-6",children:ej.map((e,t)=>u.jsxs(Wr,{className:"p-6 hover-lift",children:[u.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((r,n)=>u.jsx(B0,{className:"w-5 h-5 fill-accent text-accent"},n))}),u.jsxs("p",{className:"text-muted-foreground mb-4 italic",children:['"',e.text,'"']}),u.jsxs("div",{className:"border-t pt-4",children:[u.jsx("p",{className:"font-semibold text-foreground",children:e.name}),u.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]})]},t))})]})]})}),Wv=[{icon:Yp,number:"1",title:"Entre em Contato",description:"Envie sua mensagem pelo WhatsApp ou preencha o formulário abaixo"},{icon:oT,number:"2",title:"Avaliação Gratuita",description:"Nossa equipe analisa seu caso sem nenhum custo"},{icon:tT,number:"3",title:"Orientação Imediata",description:"Receba sua orientação jurídica e próximos passos rapidamente"}],rj=()=>{const e=ar.getWhatsAppLink("Gostaria de avaliar meu caso");return u.jsx("section",{className:"py-8 md:py-16 bg-secondary/30",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center space-y-4 mb-6 md:mb-12 animate-fade-in",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-5xl font-bold text-foreground",children:["Como funciona o ",u.jsx("span",{className:"text-primary",children:"atendimento?"})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Processo simples e rápido em 3 passos"})]}),u.jsxs("div",{className:"max-w-5xl mx-auto",children:[u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8 mb-8 md:mb-12",children:Wv.map((t,r)=>u.jsxs("div",{className:"relative",children:[ru.jsx(Nf.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Nf.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(cj,{...e,ref:t})})}));l1.displayName=Ci;var cj=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=p.useRef(null),g=ye(t,h),b=Si(s),[v,w]=Jr({prop:a,defaultProp:i??null,onChange:l,caller:Ci}),[y,m]=p.useState(!1),x=Je(c),S=a1(r),C=p.useRef(!1),[k,_]=p.useState(0);return p.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Xu,x),()=>N.removeEventListener(Xu,x)},[x]),u.jsx(ij,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:p.useCallback(N=>w(N),[w]),onItemShiftTab:p.useCallback(()=>m(!0),[]),onFocusableItemAdd:p.useCallback(()=>_(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>_(N=>N-1),[]),children:u.jsx(oe.div,{tabIndex:y||k===0?-1:0,"data-orientation":n,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:te(e.onMouseDown,()=>{C.current=!0}),onFocus:te(e.onFocus,N=>{const A=!C.current;if(N.target===N.currentTarget&&A&&!y){const M=new CustomEvent(Xu,oj);if(N.currentTarget.dispatchEvent(M),!M.defaultPrevented){const B=S().filter(z=>z.focusable),D=B.find(z=>z.active),U=B.find(z=>z.id===v),X=[D,U,...B].filter(Boolean).map(z=>z.ref.current);d1(X,d)}}C.current=!1}),onBlur:te(e.onBlur,()=>m(!1))})})}),c1="RovingFocusGroupItem",u1=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=Zr(),c=s||l,d=lj(c1,r),f=d.currentTabStopId===c,h=a1(r),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(n)return g(),()=>b()},[n,g,b]),u.jsx(Nf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:u.jsx(oe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:te(e.onMouseDown,w=>{n?d.onItemFocus(c):w.preventDefault()}),onFocus:te(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:te(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const y=fj(w,d.orientation,d.dir);if(y!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(w.currentTarget);x=d.loop?pj(x,S+1):x.slice(S+1)}setTimeout(()=>d1(x))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:v!=null}):a})})});u1.displayName=c1;var uj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fj(e,t,r){const n=dj(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return uj[n]}function d1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pj(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hj=l1,mj=u1,Gc="Tabs",[vj,rD]=Xt(Gc,[i1]),f1=i1(),[gj,hh]=vj(Gc),p1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...c}=e,d=Si(i),[f,h]=Jr({prop:n,onChange:o,defaultProp:s??"",caller:Gc});return u.jsx(gj,{scope:r,baseId:Zr(),value:f,onValueChange:h,orientation:a,dir:d,activationMode:l,children:u.jsx(oe.div,{dir:d,"data-orientation":a,...c,ref:t})})});p1.displayName=Gc;var h1="TabsList",m1=p.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=hh(h1,r),a=f1(r);return u.jsx(hj,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:u.jsx(oe.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});m1.displayName=h1;var v1="TabsTrigger",g1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,a=hh(v1,r),i=f1(r),l=w1(a.baseId,n),c=b1(a.baseId,n),d=n===a.value;return u.jsx(mj,{asChild:!0,...i,focusable:!o,active:d,children:u.jsx(oe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:te(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(n):f.preventDefault()}),onKeyDown:te(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(n)}),onFocus:te(e.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!o&&f&&a.onValueChange(n)})})})});g1.displayName=v1;var y1="TabsContent",x1=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:s,...a}=e,i=hh(y1,r),l=w1(i.baseId,n),c=b1(i.baseId,n),d=n===i.value,f=p.useRef(d);return p.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),u.jsx(Jt,{present:o||d,children:({present:h})=>u.jsx(oe.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});x1.displayName=y1;function w1(e,t){return`${e}-trigger-${t}`}function b1(e,t){return`${e}-content-${t}`}var yj=p1,S1=m1,C1=g1,E1=x1;const xj=yj,_1=p.forwardRef(({className:e,...t},r)=>u.jsx(S1,{ref:r,className:ae("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));_1.displayName=S1.displayName;const xl=p.forwardRef(({className:e,...t},r)=>u.jsx(C1,{ref:r,className:ae("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));xl.displayName=C1.displayName;const wl=p.forwardRef(({className:e,...t},r)=>u.jsx(E1,{ref:r,className:ae("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));wl.displayName=E1.displayName;var Ei=e=>e.type==="checkbox",To=e=>e instanceof Date,Et=e=>e==null;const k1=e=>typeof e=="object";var Ze=e=>!Et(e)&&!Array.isArray(e)&&k1(e)&&!To(e),T1=e=>Ze(e)&&e.target?Ei(e.target)?e.target.checked:e.target.value:e,wj=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,N1=(e,t)=>e.has(wj(t)),bj=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},mh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function et(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(mh&&(e instanceof Blob||n))&&(r||Ze(e)))if(t=r?[]:{},!r&&!bj(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=et(e[o]));else return e;return t}var Kc=e=>/^\w*$/.test(e),Ke=e=>e===void 0,vh=e=>Array.isArray(e)?e.filter(Boolean):[],gh=e=>vh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,t,r)=>{if(!t||!Ze(e))return r;const n=(Kc(t)?[t]:gh(t)).reduce((o,s)=>Et(o)?o:o[s],e);return Ke(n)||n===e?Ke(e[t])?r:e[t]:n},zt=e=>typeof e=="boolean",ke=(e,t,r)=>{let n=-1;const o=Kc(t)?[t]:gh(t),s=o.length,a=s-1;for(;++nR.useContext(yh),Sj=e=>{const{children:t,...r}=e;return R.createElement(yh.Provider,{value:r},t)};var R1=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Cr.all&&(t._proxyFormState[a]=!n||Cr.all),r&&(r[a]=!0),e[a]}});return o};const xh=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Cj(e){const t=Qc(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,i]=R.useState(r._formState),l=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return xh(()=>r._subscribe({name:o,formState:l.current,exact:s,callback:c=>{!n&&i({...r._formState,...c})}}),[o,n,s]),R.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),R.useMemo(()=>R1(a,r,l.current,!1),[a,r])}var qr=e=>typeof e=="string",A1=(e,t,r,n,o)=>qr(e)?(n&&t.watch.add(e),K(r,e,o)):Array.isArray(e)?e.map(s=>(n&&t.watch.add(s),K(r,s))):(n&&(t.watchAll=!0),r),Rf=e=>Et(e)||!k1(e);function mn(e,t,r=new WeakSet){if(Rf(e)||Rf(t))return e===t;if(To(e)&&To(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const i=t[s];if(To(a)&&To(i)||Ze(a)&&Ze(i)||Array.isArray(a)&&Array.isArray(i)?!mn(a,i,r):a!==i)return!1}}return!0}function Ej(e){const t=Qc(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:i}=e||{},l=R.useRef(o),c=R.useRef(i),d=R.useRef(void 0);c.current=i;const f=R.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,g]=R.useState(c.current?c.current(f):f);return xh(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:b=>{if(!s){const v=A1(n,r._names,b.values||r._formValues,!1,l.current);if(c.current){const w=c.current(v);mn(w,d.current)||(g(w),d.current=w)}else g(v)}}}),[r,s,n,a]),R.useEffect(()=>r._removeUnmounted()),h}function _j(e){const t=Qc(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,i=N1(o._names.array,r),l=R.useMemo(()=>K(o._formValues,r,K(o._defaultValues,r,a)),[o,r,a]),c=Ej({control:o,name:r,defaultValue:l,exact:!0}),d=Cj({control:o,name:r,exact:!0}),f=R.useRef(e),h=R.useRef(o.register(r,{...e.rules,value:c,...zt(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const g=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!K(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!K(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!K(d.validatingFields,r)},error:{enumerable:!0,get:()=>K(d.errors,r)}}),[d,r]),b=R.useCallback(m=>h.current.onChange({target:{value:T1(m),name:r},type:rc.CHANGE}),[r]),v=R.useCallback(()=>h.current.onBlur({target:{value:K(o._formValues,r),name:r},type:rc.BLUR}),[r,o._formValues]),w=R.useCallback(m=>{const x=K(o._fields,r);x&&m&&(x._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:S=>m.setCustomValidity(S),reportValidity:()=>m.reportValidity()})},[o._fields,r]),y=R.useMemo(()=>({name:r,value:c,...zt(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:b,onBlur:v,ref:w}),[r,n,d.disabled,b,v,w,c]);return R.useEffect(()=>{const m=o._options.shouldUnregister||s;o.register(r,{...f.current.rules,...zt(f.current.disabled)?{disabled:f.current.disabled}:{}});const x=(S,C)=>{const k=K(o._fields,S);k&&k._f&&(k._f.mount=C)};if(x(r,!0),m){const S=et(K(o._options.defaultValues,r));ke(o._defaultValues,r,S),Ke(K(o._formValues,r))&&ke(o._formValues,r,S)}return!i&&o.register(r),()=>{(i?m&&!o._state.action:m)?o.unregister(r):x(r,!1)}},[r,o,i,s]),R.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),R.useMemo(()=>({field:y,formState:d,fieldState:g}),[y,d,g])}const kj=e=>e.render(_j(e));var P1=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Va=e=>Array.isArray(e)?e:[e],qv=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},jt=e=>Ze(e)&&!Object.keys(e).length,wh=e=>e.type==="file",Er=e=>typeof e=="function",nc=e=>{if(!mh)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},j1=e=>e.type==="select-multiple",bh=e=>e.type==="radio",Tj=e=>bh(e)||Ei(e),Ju=e=>nc(e)&&e.isConnected;function Nj(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const t in e)if(Er(e[t]))return!0;return!1};function oc(e,t={}){const r=Array.isArray(e);if(Ze(e)||r)for(const n in e)Array.isArray(e[n])||Ze(e[n])&&!O1(e[n])?(t[n]=Array.isArray(e[n])?[]:{},oc(e[n],t[n])):Et(e[n])||(t[n]=!0);return t}function I1(e,t,r){const n=Array.isArray(e);if(Ze(e)||n)for(const o in e)Array.isArray(e[o])||Ze(e[o])&&!O1(e[o])?Ke(t)||Rf(r[o])?r[o]=Array.isArray(e[o])?oc(e[o],[]):{...oc(e[o])}:I1(e[o],Et(t)?{}:t[o],r[o]):r[o]=!mn(e[o],t[o]);return r}var wa=(e,t)=>I1(e,t,oc(t));const Gv={value:!1,isValid:!1},Kv={value:!0,isValid:!0};var M1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ke(e[0].attributes.value)?Ke(e[0].value)||e[0].value===""?Kv:{value:e[0].value,isValid:!0}:Kv:Gv}return Gv},D1=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ke(e)?e:t?e===""?NaN:e&&+e:r&&qr(e)?new Date(e):n?n(e):e;const Qv={isValid:!1,value:null};var L1=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Qv):Qv;function Zv(e){const t=e.ref;return wh(t)?t.files:bh(t)?L1(e.refs).value:j1(t)?[...t.selectedOptions].map(({value:r})=>r):Ei(t)?M1(e.refs).value:D1(Ke(t.value)?e.ref.value:t.value,e)}var Aj=(e,t,r,n)=>{const o={};for(const s of e){const a=K(t,s);a&&ke(o,s,a._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},sc=e=>e instanceof RegExp,ba=e=>Ke(e)?e:sc(e)?e.source:Ze(e)?sc(e.value)?e.value.source:e.value:e,Yv=e=>({isOnSubmit:!e||e===Cr.onSubmit,isOnBlur:e===Cr.onBlur,isOnChange:e===Cr.onChange,isOnAll:e===Cr.all,isOnTouch:e===Cr.onTouched});const Xv="AsyncFunction";var Pj=e=>!!e&&!!e.validate&&!!(Er(e.validate)&&e.validate.constructor.name===Xv||Ze(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xv)),jj=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Jv=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const za=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const s=K(e,o);if(s){const{_f:a,...i}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!n)return!0;if(a.ref&&t(a.ref,a.name)&&!n)return!0;if(za(i,t))break}else if(Ze(i)&&za(i,t))break}}};function eg(e,t,r){const n=K(e,r);if(n||Kc(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const s=o.join("."),a=K(t,s),i=K(e,s);if(a&&!Array.isArray(a)&&r!==s)return{name:r};if(i&&i.type)return{name:s,error:i};if(i&&i.root&&i.root.type)return{name:`${s}.root`,error:i.root};o.pop()}return{name:r}}var Oj=(e,t,r,n)=>{r(e);const{name:o,...s}=e;return jt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!n||Cr.all))},Ij=(e,t,r)=>!e||!t||e===t||Va(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),Mj=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Dj=(e,t)=>!vh(K(e,t)).length&&Ye(e,t),Lj=(e,t,r)=>{const n=Va(K(e,r));return ke(n,"root",t[r]),ke(e,r,n),e},bl=e=>qr(e);function tg(e,t,r="validate"){if(bl(e)||Array.isArray(e)&&e.every(bl)||zt(e)&&!e)return{type:r,message:bl(e)?e:"",ref:t}}var Xo=e=>Ze(e)&&!sc(e)?e:{value:e,message:""},rg=async(e,t,r,n,o,s)=>{const{ref:a,refs:i,required:l,maxLength:c,minLength:d,min:f,max:h,pattern:g,validate:b,name:v,valueAsNumber:w,mount:y}=e._f,m=K(r,v);if(!y||t.has(v))return{};const x=i?i[0]:a,S=D=>{o&&x.reportValidity&&(x.setCustomValidity(zt(D)?"":D||""),x.reportValidity())},C={},k=bh(a),_=Ei(a),N=k||_,A=(w||wh(a))&&Ke(a.value)&&Ke(m)||nc(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,M=P1.bind(null,v,n,C),B=(D,U,L,X=un.maxLength,z=un.minLength)=>{const J=D?U:L;C[v]={type:D?X:z,message:J,ref:a,...M(D?X:z,J)}};if(s?!Array.isArray(m)||!m.length:l&&(!N&&(A||Et(m))||zt(m)&&!m||_&&!M1(i).isValid||k&&!L1(i).isValid)){const{value:D,message:U}=bl(l)?{value:!!l,message:l}:Xo(l);if(D&&(C[v]={type:un.required,message:U,ref:x,...M(un.required,U)},!n))return S(U),C}if(!A&&(!Et(f)||!Et(h))){let D,U;const L=Xo(h),X=Xo(f);if(!Et(m)&&!isNaN(m)){const z=a.valueAsNumber||m&&+m;Et(L.value)||(D=z>L.value),Et(X.value)||(U=znew Date(new Date().toDateString()+" "+W),P=a.type=="time",O=a.type=="week";qr(L.value)&&m&&(D=P?J(m)>J(L.value):O?m>L.value:z>new Date(L.value)),qr(X.value)&&m&&(U=P?J(m)+D.value,X=!Et(U.value)&&m.length<+U.value;if((L||X)&&(B(L,D.message,U.message),!n))return S(C[v].message),C}if(g&&!A&&qr(m)){const{value:D,message:U}=Xo(g);if(sc(D)&&!m.match(D)&&(C[v]={type:un.pattern,message:U,ref:a,...M(un.pattern,U)},!n))return S(U),C}if(b){if(Er(b)){const D=await b(m,r),U=tg(D,x);if(U&&(C[v]={...U,...M(un.validate,U.message)},!n))return S(U.message),C}else if(Ze(b)){let D={};for(const U in b){if(!jt(D)&&!n)break;const L=tg(await b[U](m,r),x,U);L&&(D={...L,...M(U,L.message)},S(L.message),n&&(C[v]=D))}if(!jt(D)&&(C[v]={ref:x,...D},!n))return C}}return S(!0),C};const Fj={mode:Cr.onSubmit,reValidateMode:Cr.onChange,shouldFocusError:!0};function $j(e={}){let t={...Fj,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Er(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Ze(t.defaultValues)||Ze(t.values)?et(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:et(o),a={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const h={array:qv(),state:qv()},g=t.criteriaMode===Cr.all,b=E=>T=>{clearTimeout(c),c=setTimeout(E,T)},v=async E=>{if(!t.disabled&&(d.isValid||f.isValid||E)){const T=t.resolver?jt((await _()).errors):await A(n,!0);T!==r.isValid&&h.state.next({isValid:T})}},w=(E,T)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((E||Array.from(i.mount)).forEach(j=>{j&&(T?ke(r.validatingFields,j,T):Ye(r.validatingFields,j))}),h.state.next({validatingFields:r.validatingFields,isValidating:!jt(r.validatingFields)}))},y=(E,T=[],j,q,H=!0,V=!0)=>{if(q&&j&&!t.disabled){if(a.action=!0,V&&Array.isArray(K(n,E))){const Z=j(K(n,E),q.argA,q.argB);H&&ke(n,E,Z)}if(V&&Array.isArray(K(r.errors,E))){const Z=j(K(r.errors,E),q.argA,q.argB);H&&ke(r.errors,E,Z),Dj(r.errors,E)}if((d.touchedFields||f.touchedFields)&&V&&Array.isArray(K(r.touchedFields,E))){const Z=j(K(r.touchedFields,E),q.argA,q.argB);H&&ke(r.touchedFields,E,Z)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=wa(o,s)),h.state.next({name:E,isDirty:B(E,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ke(s,E,T)},m=(E,T)=>{ke(r.errors,E,T),h.state.next({errors:r.errors})},x=E=>{r.errors=E,h.state.next({errors:r.errors,isValid:!1})},S=(E,T,j,q)=>{const H=K(n,E);if(H){const V=K(s,E,Ke(j)?K(o,E):j);Ke(V)||q&&q.defaultChecked||T?ke(s,E,T?V:Zv(H._f)):L(E,V),a.mount&&v()}},C=(E,T,j,q,H)=>{let V=!1,Z=!1;const ge={name:E};if(!t.disabled){if(!j||q){(d.isDirty||f.isDirty)&&(Z=r.isDirty,r.isDirty=ge.isDirty=B(),V=Z!==ge.isDirty);const Re=mn(K(o,E),T);Z=!!K(r.dirtyFields,E),Re?Ye(r.dirtyFields,E):ke(r.dirtyFields,E,!0),ge.dirtyFields=r.dirtyFields,V=V||(d.dirtyFields||f.dirtyFields)&&Z!==!Re}if(j){const Re=K(r.touchedFields,E);Re||(ke(r.touchedFields,E,j),ge.touchedFields=r.touchedFields,V=V||(d.touchedFields||f.touchedFields)&&Re!==j)}V&&H&&h.state.next(ge)}return V?ge:{}},k=(E,T,j,q)=>{const H=K(r.errors,E),V=(d.isValid||f.isValid)&&zt(T)&&r.isValid!==T;if(t.delayError&&j?(l=b(()=>m(E,j)),l(t.delayError)):(clearTimeout(c),l=null,j?ke(r.errors,E,j):Ye(r.errors,E)),(j?!mn(H,j):H)||!jt(q)||V){const Z={...q,...V&&zt(T)?{isValid:T}:{},errors:r.errors,name:E};r={...r,...Z},h.state.next(Z)}},_=async E=>{w(E,!0);const T=await t.resolver(s,t.context,Aj(E||i.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return w(E),T},N=async E=>{const{errors:T}=await _(E);if(E)for(const j of E){const q=K(T,j);q?ke(r.errors,j,q):Ye(r.errors,j)}else r.errors=T;return T},A=async(E,T,j={valid:!0})=>{for(const q in E){const H=E[q];if(H){const{_f:V,...Z}=H;if(V){const ge=i.array.has(V.name),Re=H._f&&Pj(H._f);Re&&d.validatingFields&&w([q],!0);const At=await rg(H,i.disabled,s,g,t.shouldUseNativeValidation&&!T,ge);if(Re&&d.validatingFields&&w([q]),At[V.name]&&(j.valid=!1,T))break;!T&&(K(At,V.name)?ge?Lj(r.errors,At,V.name):ke(r.errors,V.name,At[V.name]):Ye(r.errors,V.name))}!jt(Z)&&await A(Z,T,j)}}return j.valid},M=()=>{for(const E of i.unMount){const T=K(n,E);T&&(T._f.refs?T._f.refs.every(j=>!Ju(j)):!Ju(T._f.ref))&&G(E)}i.unMount=new Set},B=(E,T)=>!t.disabled&&(E&&T&&ke(s,E,T),!mn(W(),o)),D=(E,T,j)=>A1(E,i,{...a.mount?s:Ke(T)?o:qr(E)?{[E]:T}:T},j,T),U=E=>vh(K(a.mount?s:o,E,t.shouldUnregister?K(o,E,[]):[])),L=(E,T,j={})=>{const q=K(n,E);let H=T;if(q){const V=q._f;V&&(!V.disabled&&ke(s,E,D1(T,V)),H=nc(V.ref)&&Et(T)?"":T,j1(V.ref)?[...V.ref.options].forEach(Z=>Z.selected=H.includes(Z.value)):V.refs?Ei(V.ref)?V.refs.forEach(Z=>{(!Z.defaultChecked||!Z.disabled)&&(Array.isArray(H)?Z.checked=!!H.find(ge=>ge===Z.value):Z.checked=H===Z.value||!!H)}):V.refs.forEach(Z=>Z.checked=Z.value===H):wh(V.ref)?V.ref.value="":(V.ref.value=H,V.ref.type||h.state.next({name:E,values:et(s)})))}(j.shouldDirty||j.shouldTouch)&&C(E,H,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&O(E)},X=(E,T,j)=>{for(const q in T){if(!T.hasOwnProperty(q))return;const H=T[q],V=E+"."+q,Z=K(n,V);(i.array.has(E)||Ze(H)||Z&&!Z._f)&&!To(H)?X(V,H,j):L(V,H,j)}},z=(E,T,j={})=>{const q=K(n,E),H=i.array.has(E),V=et(T);ke(s,E,V),H?(h.array.next({name:E,values:et(s)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&j.shouldDirty&&h.state.next({name:E,dirtyFields:wa(o,s),isDirty:B(E,V)})):q&&!q._f&&!Et(V)?X(E,V,j):L(E,V,j),Jv(E,i)&&h.state.next({...r,name:E}),h.state.next({name:a.mount?E:void 0,values:et(s)})},J=async E=>{a.mount=!0;const T=E.target;let j=T.name,q=!0;const H=K(n,j),V=Re=>{q=Number.isNaN(Re)||To(Re)&&isNaN(Re.getTime())||mn(Re,K(s,j,Re))},Z=Yv(t.mode),ge=Yv(t.reValidateMode);if(H){let Re,At;const sn=T.type?Zv(H._f):T1(E),Mr=E.type===rc.BLUR||E.type===rc.FOCUS_OUT,_i=!jj(H._f)&&!t.resolver&&!K(r.errors,j)&&!H._f.deps||Mj(Mr,K(r.touchedFields,j),r.isSubmitted,ge,Z),xo=Jv(j,i,Mr);ke(s,j,sn),Mr?(H._f.onBlur&&H._f.onBlur(E),l&&l(0)):H._f.onChange&&H._f.onChange(E);const Dr=C(j,sn,Mr),ki=!jt(Dr)||xo;if(!Mr&&h.state.next({name:j,type:E.type,values:et(s)}),_i)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?Mr&&v():Mr||v()),ki&&h.state.next({name:j,...xo?{}:Dr});if(!Mr&&xo&&h.state.next({...r}),t.resolver){const{errors:an}=await _([j]);if(V(sn),q){const pu=eg(r.errors,n,j),Ti=eg(an,n,pu.name||j);Re=Ti.error,j=Ti.name,At=jt(an)}}else w([j],!0),Re=(await rg(H,i.disabled,s,g,t.shouldUseNativeValidation))[j],w([j]),V(sn),q&&(Re?At=!1:(d.isValid||f.isValid)&&(At=await A(n,!0)));q&&(H._f.deps&&O(H._f.deps),k(j,At,Re,Dr))}},P=(E,T)=>{if(K(r.errors,T)&&E.focus)return E.focus(),1},O=async(E,T={})=>{let j,q;const H=Va(E);if(t.resolver){const V=await N(Ke(E)?E:H);j=jt(V),q=E?!H.some(Z=>K(V,Z)):j}else E?(q=(await Promise.all(H.map(async V=>{const Z=K(n,V);return await A(Z&&Z._f?{[V]:Z}:Z)}))).every(Boolean),!(!q&&!r.isValid)&&v()):q=j=await A(n);return h.state.next({...!qr(E)||(d.isValid||f.isValid)&&j!==r.isValid?{}:{name:E},...t.resolver||!E?{isValid:j}:{},errors:r.errors}),T.shouldFocus&&!q&&za(n,P,E?H:i.mount),q},W=E=>{const T={...a.mount?s:o};return Ke(E)?T:qr(E)?K(T,E):E.map(j=>K(T,j))},se=(E,T)=>({invalid:!!K((T||r).errors,E),isDirty:!!K((T||r).dirtyFields,E),error:K((T||r).errors,E),isValidating:!!K(r.validatingFields,E),isTouched:!!K((T||r).touchedFields,E)}),ne=E=>{E&&Va(E).forEach(T=>Ye(r.errors,T)),h.state.next({errors:E?r.errors:{}})},le=(E,T,j)=>{const q=(K(n,E,{_f:{}})._f||{}).ref,H=K(r.errors,E)||{},{ref:V,message:Z,type:ge,...Re}=H;ke(r.errors,E,{...Re,...T,ref:q}),h.state.next({name:E,errors:r.errors,isValid:!1}),j&&j.shouldFocus&&q&&q.focus&&q.focus()},ie=(E,T)=>Er(E)?h.state.subscribe({next:j=>"values"in j&&E(D(void 0,T),j)}):D(E,T,!0),Ne=E=>h.state.subscribe({next:T=>{Ij(E.name,T.name,E.exact)&&Oj(T,E.formState||d,nn,E.reRenderRoot)&&E.callback({values:{...s},...r,...T,defaultValues:o})}}).unsubscribe,Fe=E=>(a.mount=!0,f={...f,...E.formState},Ne({...E,formState:f})),G=(E,T={})=>{for(const j of E?Va(E):i.mount)i.mount.delete(j),i.array.delete(j),T.keepValue||(Ye(n,j),Ye(s,j)),!T.keepError&&Ye(r.errors,j),!T.keepDirty&&Ye(r.dirtyFields,j),!T.keepTouched&&Ye(r.touchedFields,j),!T.keepIsValidating&&Ye(r.validatingFields,j),!t.shouldUnregister&&!T.keepDefaultValue&&Ye(o,j);h.state.next({values:et(s)}),h.state.next({...r,...T.keepDirty?{isDirty:B()}:{}}),!T.keepIsValid&&v()},Ce=({disabled:E,name:T})=>{(zt(E)&&a.mount||E||i.disabled.has(T))&&(E?i.disabled.add(T):i.disabled.delete(T))},Pe=(E,T={})=>{let j=K(n,E);const q=zt(T.disabled)||zt(t.disabled);return ke(n,E,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:E}},name:E,mount:!0,...T}}),i.mount.add(E),j?Ce({disabled:zt(T.disabled)?T.disabled:t.disabled,name:E}):S(E,!0,T.value),{...q?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:ba(T.min),max:ba(T.max),minLength:ba(T.minLength),maxLength:ba(T.maxLength),pattern:ba(T.pattern)}:{},name:E,onChange:J,onBlur:J,ref:H=>{if(H){Pe(E,T),j=K(n,E);const V=Ke(H.value)&&H.querySelectorAll&&H.querySelectorAll("input,select,textarea")[0]||H,Z=Tj(V),ge=j._f.refs||[];if(Z?ge.find(Re=>Re===V):V===j._f.ref)return;ke(n,E,{_f:{...j._f,...Z?{refs:[...ge.filter(Ju),V,...Array.isArray(K(o,E))?[{}]:[]],ref:{type:V.type,name:E}}:{ref:V}}}),S(E,!1,void 0,V)}else j=K(n,E,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(N1(i.array,E)&&a.action)&&i.unMount.add(E)}}},xe=()=>t.shouldFocusError&&za(n,P,i.mount),ve=E=>{zt(E)&&(h.state.next({disabled:E}),za(n,(T,j)=>{const q=K(n,j);q&&(T.disabled=q._f.disabled||E,Array.isArray(q._f.refs)&&q._f.refs.forEach(H=>{H.disabled=q._f.disabled||E}))},0,!1))},we=(E,T)=>async j=>{let q;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let H=et(s);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:Z}=await _();r.errors=V,H=et(Z)}else await A(n);if(i.disabled.size)for(const V of i.disabled)Ye(H,V);if(Ye(r.errors,"root"),jt(r.errors)){h.state.next({errors:{}});try{await E(H,j)}catch(V){q=V}}else T&&await T({...r.errors},j),xe(),setTimeout(xe);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jt(r.errors)&&!q,submitCount:r.submitCount+1,errors:r.errors}),q)throw q},ot=(E,T={})=>{K(n,E)&&(Ke(T.defaultValue)?z(E,et(K(o,E))):(z(E,T.defaultValue),ke(o,E,et(T.defaultValue))),T.keepTouched||Ye(r.touchedFields,E),T.keepDirty||(Ye(r.dirtyFields,E),r.isDirty=T.defaultValue?B(E,et(K(o,E))):B()),T.keepError||(Ye(r.errors,E),d.isValid&&v()),h.state.next({...r}))},bt=(E,T={})=>{const j=E?et(E):o,q=et(j),H=jt(E),V=H?o:q;if(T.keepDefaultValues||(o=j),!T.keepValues){if(T.keepDirtyValues){const Z=new Set([...i.mount,...Object.keys(wa(o,s))]);for(const ge of Array.from(Z))K(r.dirtyFields,ge)?ke(V,ge,K(s,ge)):z(ge,K(V,ge))}else{if(mh&&Ke(E))for(const Z of i.mount){const ge=K(n,Z);if(ge&&ge._f){const Re=Array.isArray(ge._f.refs)?ge._f.refs[0]:ge._f.ref;if(nc(Re)){const At=Re.closest("form");if(At){At.reset();break}}}}if(T.keepFieldsRef)for(const Z of i.mount)z(Z,K(V,Z));else n={}}s=t.shouldUnregister?T.keepDefaultValues?et(o):{}:et(V),h.array.next({values:{...V}}),h.state.next({values:{...V}})}i={mount:T.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!T.keepIsValid||!!T.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:H?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!mn(E,o)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:H?{}:T.keepDirtyValues?T.keepDefaultValues&&s?wa(o,s):r.dirtyFields:T.keepDefaultValues&&E?wa(o,E):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Or=(E,T)=>bt(Er(E)?E(s):E,T),Ir=(E,T={})=>{const j=K(n,E),q=j&&j._f;if(q){const H=q.refs?q.refs[0]:q.ref;H.focus&&(H.focus(),T.shouldSelect&&Er(H.select)&&H.select())}},nn=E=>{r={...r,...E}},on={control:{register:Pe,unregister:G,getFieldState:se,handleSubmit:we,setError:le,_subscribe:Ne,_runSchema:_,_focusError:xe,_getWatch:D,_getDirty:B,_setValid:v,_setFieldArray:y,_setDisabledField:Ce,_setErrors:x,_getFieldArray:U,_reset:bt,_resetDefaultValues:()=>Er(t.defaultValues)&&t.defaultValues().then(E=>{Or(E,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:ve,_subjects:h,_proxyFormState:d,get _fields(){return n},get _formValues(){return s},get _state(){return a},set _state(E){a=E},get _defaultValues(){return o},get _names(){return i},set _names(E){i=E},get _formState(){return r},get _options(){return t},set _options(E){t={...t,...E}}},subscribe:Fe,trigger:O,register:Pe,handleSubmit:we,watch:ie,setValue:z,getValues:W,reset:Or,resetField:ot,clearErrors:ne,unregister:G,setError:le,setFocus:Ir,getFieldState:se};return{...on,formControl:on}}function Zc(e={}){const t=R.useRef(void 0),r=R.useRef(void 0),[n,o]=R.useState({isDirty:!1,isValidating:!1,isLoading:Er(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:Er(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Er(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...i}=$j(e);t.current={...i,formState:n}}const s=t.current.control;return s._options=e,xh(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(i=>({...i,isReady:!0})),s._formState.isReady=!0,a},[s]),R.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),R.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),R.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),R.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),R.useEffect(()=>{e.values&&!mn(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,o(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),R.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=R1(n,s),t.current}const ng=(e,t,r)=>{if(e&&"reportValidity"in e){const n=K(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},F1=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?ng(n.ref,r,e):n.refs&&n.refs.forEach(o=>ng(o,r,e))}},Vj=(e,t)=>{t.shouldUseNativeValidation&&F1(e,t);const r={};for(const n in e){const o=K(t.fields,n),s=Object.assign(e[n]||{},{ref:o&&o.ref});if(zj(t.names||Object.keys(e),n)){const a=Object.assign({},K(r,n));ke(a,"root",s),ke(r,n,a)}else ke(r,n,s)}return r},zj=(e,t)=>e.some(r=>r.startsWith(t+"."));var Bj=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,s=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var i=n.unionErrors[0].errors[0];r[a]={message:i.message,type:i.code}}else r[a]={message:s,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[a].types,c=l&&l[n.code];r[a]=P1(a,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},Yc=function(e,t,r){return r===void 0&&(r={}),function(n,o,s){try{return Promise.resolve(function(a,i){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return s.shouldUseNativeValidation&&F1({},s),{errors:{},values:r.raw?n:c}})}catch(c){return i(c)}return l&&l.then?l.then(void 0,i):l}(0,function(a){if(function(i){return Array.isArray(i==null?void 0:i.errors)}(a))return{values:{},errors:Vj(Bj(a.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw a}))}catch(a){return Promise.reject(a)}}},Uj="Label",$1=p.forwardRef((e,t)=>u.jsx(oe.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));$1.displayName=Uj;var V1=$1;const Hj=Gp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),z1=p.forwardRef(({className:e,...t},r)=>u.jsx(V1,{ref:r,className:ae(Hj(),e),...t}));z1.displayName=V1.displayName;const Xc=Sj,B1=p.createContext({}),dt=({...e})=>u.jsx(B1.Provider,{value:{name:e.name},children:u.jsx(kj,{...e})}),Jc=()=>{const e=p.useContext(B1),t=p.useContext(U1),{getFieldState:r,formState:n}=Qc(),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within ");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},U1=p.createContext({}),at=p.forwardRef(({className:e,...t},r)=>{const n=p.useId();return u.jsx(U1.Provider,{value:{id:n},children:u.jsx("div",{ref:r,className:ae("space-y-2",e),...t})})});at.displayName="FormItem";const it=p.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=Jc();return u.jsx(z1,{ref:r,className:ae(n&&"text-destructive",e),htmlFor:o,...t})});it.displayName="FormLabel";const lt=p.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:s}=Jc();return u.jsx(c0,{ref:t,id:n,"aria-describedby":r?`${o} ${s}`:`${o}`,"aria-invalid":!!r,...e})});lt.displayName="FormControl";const Ht=p.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Jc();return u.jsx("p",{ref:r,id:n,className:ae("text-sm text-muted-foreground",e),...t})});Ht.displayName="FormDescription";const xt=p.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:s}=Jc(),a=o?String(o==null?void 0:o.message):t;return a?u.jsx("p",{ref:n,id:s,className:ae("text-sm font-medium text-destructive",e),...r,children:a}):null});xt.displayName="FormMessage";const kt=p.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:ae("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));kt.displayName="Input";var _e;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{const s={};for(const a of o)s[a]=a;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),a={};for(const i of s)a[i]=o[i];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const a in o)Object.prototype.hasOwnProperty.call(o,a)&&s.push(a);return s},e.find=(o,s)=>{for(const a of o)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var og;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(og||(og={}));const ee=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Fn=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;case"number":return Number.isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},$=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class kn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let i=n,l=0;for(;lr.message){const r={},n=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];r[s]=r[s]||[],r[s].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}kn.create=e=>new kn(e);const Af=(e,t)=>{let r;switch(e.code){case $.invalid_type:e.received===ee.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case $.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,_e.jsonStringifyReplacer)}`;break;case $.unrecognized_keys:r=`Unrecognized key(s) in object: ${_e.joinValues(e.keys,", ")}`;break;case $.invalid_union:r="Invalid input";break;case $.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${_e.joinValues(e.options)}`;break;case $.invalid_enum_value:r=`Invalid enum value. Expected ${_e.joinValues(e.options)}, received '${e.received}'`;break;case $.invalid_arguments:r="Invalid function arguments";break;case $.invalid_return_type:r="Invalid function return type";break;case $.invalid_date:r="Invalid date";break;case $.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:_e.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case $.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case $.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case $.custom:r="Invalid input";break;case $.invalid_intersection_types:r="Intersection results could not be merged";break;case $.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case $.not_finite:r="Number must be finite";break;default:r=t.defaultError,_e.assertNever(e)}return{message:r}};let Wj=Af;function qj(){return Wj}const Gj=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],a={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let i="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)i=c(a,{data:t,defaultError:i}).message;return{...o,path:s,message:i}};function Q(e,t){const r=qj(),n=Gj({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Af?void 0:Af].filter(o=>!!o)});e.common.issues.push(n)}class Kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const o of r){if(o.status==="aborted")return ce;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const o of r){const s=await o.key,a=await o.value;n.push({key:s,value:a})}return Kt.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const o of r){const{key:s,value:a}=o;if(s.status==="aborted"||a.status==="aborted")return ce;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(n[s.value]=a.value)}return{status:t.value,value:n}}}const ce=Object.freeze({status:"aborted"}),Ta=e=>({status:"dirty",value:e}),cr=e=>({status:"valid",value:e}),sg=e=>e.status==="aborted",ag=e=>e.status==="dirty",Gs=e=>e.status==="valid",ac=e=>typeof Promise<"u"&&e instanceof Promise;var re;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(re||(re={}));class uo{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ig=(e,t)=>{if(Gs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new kn(e.common.issues);return this._error=r,this._error}}};function he(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,i)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??n??i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:l??r??i.defaultError}},description:o}}class Se{get description(){return this._def.description}_getType(t){return Fn(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Kt,ctx:{common:t.parent.common,data:t.data,parsedType:Fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(ac(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)},o=this._parseSync({data:t,path:n.path,parent:n});return ig(n,o)}"~validate"(t){var n,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:r});return Gs(s)?{value:s.value}:{issues:r.common.issues}}catch(s){(o=(n=s==null?void 0:s.message)==null?void 0:n.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(s=>Gs(s)?{value:s.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fn(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(ac(o)?o:Promise.resolve(o));return ig(n,s)}refine(t,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{const a=t(o),i=()=>s.addIssue({code:$.custom,...n(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(i(),!1)):a?!0:(i(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Zs({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return oo.create(this,this._def)}nullable(){return Ys.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xr.create(this)}promise(){return uc.create(this,this._def)}or(t){return lc.create([this,t],this._def)}and(t){return cc.create(this,t,this._def)}transform(t){return new Zs({...he(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Of({...he(this._def),innerType:this,defaultValue:r,typeName:ue.ZodDefault})}brand(){return new v2({typeName:ue.ZodBranded,type:this,...he(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new If({...he(this._def),innerType:this,catchValue:r,typeName:ue.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Sh.create(this,t)}readonly(){return Mf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Kj=/^c[^\s-]{8,}$/i,Qj=/^[0-9a-z]+$/,Zj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Xj=/^[a-z0-9_-]{21}$/i,Jj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,e2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,r2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ed;const n2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,o2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,s2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,a2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,i2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,l2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,H1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",c2=new RegExp(`^${H1}$`);function W1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function u2(e){return new RegExp(`^${W1(e)}$`)}function d2(e){let t=`${H1}T${W1(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function f2(e,t){return!!((t==="v4"||!t)&&n2.test(e)||(t==="v6"||!t)&&s2.test(e))}function p2(e,t){if(!Jj.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function h2(e,t){return!!((t==="v4"||!t)&&o2.test(e)||(t==="v6"||!t)&&a2.test(e))}class Qn extends Se{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.string,received:s.parsedType}),ce}const n=new Kt;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:$.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,i=t.data.lengtht.test(o),{validation:r,code:$.invalid_string,...re.errToObj(n)})}_addCheck(t){return new Qn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...re.errToObj(t)})}url(t){return this._addCheck({kind:"url",...re.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...re.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...re.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...re.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...re.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...re.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...re.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...re.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...re.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...re.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...re.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...re.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...re.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...re.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...re.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...re.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...re.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...re.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...re.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...re.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...re.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...re.errToObj(r)})}nonempty(t){return this.min(1,re.errToObj(t))}trim(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew Qn({checks:[],typeName:ue.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...he(e)});function m2(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}class Ks extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ee.number){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.number,received:s.parsedType}),ce}let n;const o=new Kt;for(const s of this._def.checks)s.kind==="int"?_e.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Q(n,{code:$.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?m2(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_finite,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,re.toString(r))}gt(t,r){return this.setLimit("min",t,!1,re.toString(r))}lte(t,r){return this.setLimit("max",t,!0,re.toString(r))}lt(t,r){return this.setLimit("max",t,!1,re.toString(r))}setLimit(t,r,n,o){return new Ks({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:re.toString(o)}]})}_addCheck(t){return new Ks({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:re.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:re.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&_e.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew Ks({checks:[],typeName:ue.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...he(e)});class ui extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ee.bigint)return this._getInvalidInput(t);let n;const o=new Kt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Q(n,{code:$.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return Q(r,{code:$.invalid_type,expected:ee.bigint,received:r.parsedType}),ce}gte(t,r){return this.setLimit("min",t,!0,re.toString(r))}gt(t,r){return this.setLimit("min",t,!1,re.toString(r))}lte(t,r){return this.setLimit("max",t,!0,re.toString(r))}lt(t,r){return this.setLimit("max",t,!1,re.toString(r))}setLimit(t,r,n,o){return new ui({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:re.toString(o)}]})}_addCheck(t){return new ui({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:re.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew ui({checks:[],typeName:ue.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...he(e)});class Pf extends Se{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.boolean,received:n.parsedType}),ce}return cr(t.data)}}Pf.create=e=>new Pf({typeName:ue.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...he(e)});class ic extends Se{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_type,expected:ee.date,received:s.parsedType}),ce}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return Q(s,{code:$.invalid_date}),ce}const n=new Kt;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),Q(o,{code:$.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):_e.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ic({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:re.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:re.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew ic({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ue.ZodDate,...he(e)});class lg extends Se{_parse(t){if(this._getType(t)!==ee.symbol){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.symbol,received:n.parsedType}),ce}return cr(t.data)}}lg.create=e=>new lg({typeName:ue.ZodSymbol,...he(e)});class cg extends Se{_parse(t){if(this._getType(t)!==ee.undefined){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.undefined,received:n.parsedType}),ce}return cr(t.data)}}cg.create=e=>new cg({typeName:ue.ZodUndefined,...he(e)});class ug extends Se{_parse(t){if(this._getType(t)!==ee.null){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.null,received:n.parsedType}),ce}return cr(t.data)}}ug.create=e=>new ug({typeName:ue.ZodNull,...he(e)});class dg extends Se{constructor(){super(...arguments),this._any=!0}_parse(t){return cr(t.data)}}dg.create=e=>new dg({typeName:ue.ZodAny,...he(e)});class fg extends Se{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cr(t.data)}}fg.create=e=>new fg({typeName:ue.ZodUnknown,...he(e)});class fo extends Se{_parse(t){const r=this._getOrReturnCtx(t);return Q(r,{code:$.invalid_type,expected:ee.never,received:r.parsedType}),ce}}fo.create=e=>new fo({typeName:ue.ZodNever,...he(e)});class pg extends Se{_parse(t){if(this._getType(t)!==ee.undefined){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.void,received:n.parsedType}),ce}return cr(t.data)}}pg.create=e=>new pg({typeName:ue.ZodVoid,...he(e)});class Xr extends Se{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==ee.array)return Q(r,{code:$.invalid_type,expected:ee.array,received:r.parsedType}),ce;if(o.exactLength!==null){const a=r.data.length>o.exactLength.value,i=r.data.lengtho.maxLength.value&&(Q(r,{code:$.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,i)=>o.type._parseAsync(new uo(r,a,r.path,i)))).then(a=>Kt.mergeArray(n,a));const s=[...r.data].map((a,i)=>o.type._parseSync(new uo(r,a,r.path,i)));return Kt.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new Xr({...this._def,minLength:{value:t,message:re.toString(r)}})}max(t,r){return new Xr({...this._def,maxLength:{value:t,message:re.toString(r)}})}length(t,r){return new Xr({...this._def,exactLength:{value:t,message:re.toString(r)}})}nonempty(t){return this.min(1,t)}}Xr.create=(e,t)=>new Xr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...he(t)});function ns(e){if(e instanceof We){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=oo.create(ns(n))}return new We({...e._def,shape:()=>t})}else return e instanceof Xr?new Xr({...e._def,type:ns(e.element)}):e instanceof oo?oo.create(ns(e.unwrap())):e instanceof Ys?Ys.create(ns(e.unwrap())):e instanceof Uo?Uo.create(e.items.map(t=>ns(t))):e}class We extends Se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=_e.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==ee.object){const c=this._getOrReturnCtx(t);return Q(c,{code:$.invalid_type,expected:ee.object,received:c.parsedType}),ce}const{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof fo&&this._def.unknownKeys==="strip"))for(const c in o.data)a.includes(c)||i.push(c);const l=[];for(const c of a){const d=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new uo(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof fo){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of i)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(c==="strict")i.length>0&&(Q(o,{code:$.unrecognized_keys,keys:i}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of i){const f=o.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new uo(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const f=await d.key,h=await d.value;c.push({key:f,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>Kt.mergeObjectSync(n,c)):Kt.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return re.errToObj,new We({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var s,a;const o=((a=(s=this._def).errorMap)==null?void 0:a.call(s,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:re.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new We({...this._def,unknownKeys:"strip"})}passthrough(){return new We({...this._def,unknownKeys:"passthrough"})}extend(t){return new We({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new We({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ue.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new We({...this._def,catchall:t})}pick(t){const r={};for(const n of _e.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new We({...this._def,shape:()=>r})}omit(t){const r={};for(const n of _e.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new We({...this._def,shape:()=>r})}deepPartial(){return ns(this)}partial(t){const r={};for(const n of _e.objectKeys(this.shape)){const o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new We({...this._def,shape:()=>r})}required(t){const r={};for(const n of _e.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof oo;)s=s._def.innerType;r[n]=s}return new We({...this._def,shape:()=>r})}keyof(){return q1(_e.objectKeys(this.shape))}}We.create=(e,t)=>new We({shape:()=>e,unknownKeys:"strip",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});We.strictCreate=(e,t)=>new We({shape:()=>e,unknownKeys:"strict",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});We.lazycreate=(e,t)=>new We({shape:e,unknownKeys:"strip",catchall:fo.create(),typeName:ue.ZodObject,...he(t)});class lc extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(const i of s)if(i.result.status==="valid")return i.result;for(const i of s)if(i.result.status==="dirty")return r.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(i=>new kn(i.ctx.common.issues));return Q(r,{code:$.invalid_union,unionErrors:a}),ce}if(r.common.async)return Promise.all(n.map(async s=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(o);{let s;const a=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const i=a.map(l=>new kn(l));return Q(r,{code:$.invalid_union,unionErrors:i}),ce}}get options(){return this._def.options}}lc.create=(e,t)=>new lc({options:e,typeName:ue.ZodUnion,...he(t)});function jf(e,t){const r=Fn(e),n=Fn(t);if(e===t)return{valid:!0,data:e};if(r===ee.object&&n===ee.object){const o=_e.objectKeys(t),s=_e.objectKeys(e).filter(i=>o.indexOf(i)!==-1),a={...e,...t};for(const i of s){const l=jf(e[i],t[i]);if(!l.valid)return{valid:!1};a[i]=l.data}return{valid:!0,data:a}}else if(r===ee.array&&n===ee.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(sg(s)||sg(a))return ce;const i=jf(s.value,a.value);return i.valid?((ag(s)||ag(a))&&r.dirty(),{status:r.value,value:i.data}):(Q(n,{code:$.invalid_intersection_types}),ce)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>o(s,a)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}cc.create=(e,t,r)=>new cc({left:e,right:t,typeName:ue.ZodIntersection,...he(r)});class Uo extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.array)return Q(n,{code:$.invalid_type,expected:ee.array,received:n.parsedType}),ce;if(n.data.lengththis._def.items.length&&(Q(n,{code:$.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((a,i)=>{const l=this._def.items[i]||this._def.rest;return l?l._parse(new uo(n,a,n.path,i)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>Kt.mergeArray(r,a)):Kt.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new Uo({...this._def,rest:t})}}Uo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Uo({items:e,typeName:ue.ZodTuple,rest:null,...he(t)})};class hg extends Se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.map)return Q(n,{code:$.invalid_type,expected:ee.map,received:n.parsedType}),ce;const o=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([i,l],c)=>({key:o._parse(new uo(n,i,n.path,[c,"key"])),value:s._parse(new uo(n,l,n.path,[c,"value"]))}));if(n.common.async){const i=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return ce;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),i.set(c.value,d.value)}return{status:r.value,value:i}})}else{const i=new Map;for(const l of a){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return ce;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),i.set(c.value,d.value)}return{status:r.value,value:i}}}}hg.create=(e,t,r)=>new hg({valueType:t,keyType:e,typeName:ue.ZodMap,...he(r)});class di extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.set)return Q(n,{code:$.invalid_type,expected:ee.set,received:n.parsedType}),ce;const o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(Q(n,{code:$.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const s=this._def.valueType;function a(l){const c=new Set;for(const d of l){if(d.status==="aborted")return ce;d.status==="dirty"&&r.dirty(),c.add(d.value)}return{status:r.value,value:c}}const i=[...n.data.values()].map((l,c)=>s._parse(new uo(n,l,n.path,c)));return n.common.async?Promise.all(i).then(l=>a(l)):a(i)}min(t,r){return new di({...this._def,minSize:{value:t,message:re.toString(r)}})}max(t,r){return new di({...this._def,maxSize:{value:t,message:re.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}di.create=(e,t)=>new di({valueType:e,minSize:null,maxSize:null,typeName:ue.ZodSet,...he(t)});class mg extends Se{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}mg.create=(e,t)=>new mg({getter:e,typeName:ue.ZodLazy,...he(t)});class vg extends Se{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Q(r,{received:r.data,code:$.invalid_literal,expected:this._def.value}),ce}return{status:"valid",value:t.data}}get value(){return this._def.value}}vg.create=(e,t)=>new vg({value:e,typeName:ue.ZodLiteral,...he(t)});function q1(e,t){return new Qs({values:e,typeName:ue.ZodEnum,...he(t)})}class Qs extends Se{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return Q(r,{expected:_e.joinValues(n),received:r.parsedType,code:$.invalid_type}),ce}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return Q(r,{received:r.data,code:$.invalid_enum_value,options:n}),ce}return cr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Qs.create(t,{...this._def,...r})}exclude(t,r=this._def){return Qs.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Qs.create=q1;class gg extends Se{_parse(t){const r=_e.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ee.string&&n.parsedType!==ee.number){const o=_e.objectValues(r);return Q(n,{expected:_e.joinValues(o),received:n.parsedType,code:$.invalid_type}),ce}if(this._cache||(this._cache=new Set(_e.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=_e.objectValues(r);return Q(n,{received:n.data,code:$.invalid_enum_value,options:o}),ce}return cr(t.data)}get enum(){return this._def.values}}gg.create=(e,t)=>new gg({values:e,typeName:ue.ZodNativeEnum,...he(t)});class uc extends Se{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.promise&&r.common.async===!1)return Q(r,{code:$.invalid_type,expected:ee.promise,received:r.parsedType}),ce;const n=r.parsedType===ee.promise?r.data:Promise.resolve(r.data);return cr(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}uc.create=(e,t)=>new uc({type:e,typeName:ue.ZodPromise,...he(t)});class Zs extends Se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:a=>{Q(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const a=o.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async i=>{if(r.value==="aborted")return ce;const l=await this._def.schema._parseAsync({data:i,path:n.path,parent:n});return l.status==="aborted"?ce:l.status==="dirty"||r.value==="dirty"?Ta(l.value):l});{if(r.value==="aborted")return ce;const i=this._def.schema._parseSync({data:a,path:n.path,parent:n});return i.status==="aborted"?ce:i.status==="dirty"||r.value==="dirty"?Ta(i.value):i}}if(o.type==="refinement"){const a=i=>{const l=o.refinement(i,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ce:(i.status==="dirty"&&r.dirty(),a(i.value),{status:r.value,value:i.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>i.status==="aborted"?ce:(i.status==="dirty"&&r.dirty(),a(i.value).then(()=>({status:r.value,value:i.value}))))}if(o.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Gs(a))return ce;const i=o.transform(a.value,s);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:i}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>Gs(a)?Promise.resolve(o.transform(a.value,s)).then(i=>({status:r.value,value:i})):ce);_e.assertNever(o)}}Zs.create=(e,t,r)=>new Zs({schema:e,typeName:ue.ZodEffects,effect:t,...he(r)});Zs.createWithPreprocess=(e,t,r)=>new Zs({schema:t,effect:{type:"preprocess",transform:e},typeName:ue.ZodEffects,...he(r)});class oo extends Se{_parse(t){return this._getType(t)===ee.undefined?cr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oo.create=(e,t)=>new oo({innerType:e,typeName:ue.ZodOptional,...he(t)});class Ys extends Se{_parse(t){return this._getType(t)===ee.null?cr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ys.create=(e,t)=>new Ys({innerType:e,typeName:ue.ZodNullable,...he(t)});class Of extends Se{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===ee.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Of.create=(e,t)=>new Of({innerType:e,typeName:ue.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...he(t)});class If extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ac(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new kn(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new kn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}If.create=(e,t)=>new If({innerType:e,typeName:ue.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...he(t)});class yg extends Se{_parse(t){if(this._getType(t)!==ee.nan){const n=this._getOrReturnCtx(t);return Q(n,{code:$.invalid_type,expected:ee.nan,received:n.parsedType}),ce}return{status:"valid",value:t.data}}}yg.create=e=>new yg({typeName:ue.ZodNaN,...he(e)});class v2 extends Se{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Sh extends Se{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ce:s.status==="dirty"?(r.dirty(),Ta(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ce:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new Sh({in:t,out:r,typeName:ue.ZodPipeline})}}class Mf extends Se{_parse(t){const r=this._def.innerType._parse(t),n=o=>(Gs(o)&&(o.value=Object.freeze(o.value)),o);return ac(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}Mf.create=(e,t)=>new Mf({innerType:e,typeName:ue.ZodReadonly,...he(t)});We.lazycreate;var ue;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ue||(ue={}));const Sa=Qn.create,Gr=Ks.create,G1=Pf.create;fo.create;Xr.create;const eu=We.create;We.strictCreate;lc.create;cc.create;Uo.create;Qs.create;uc.create;oo.create;Ys.create;const Me={MINIMUM_WAGE:1412,MONTHLY_HOURS:220,FGTS_RATE:.08,FGTS_FINE:.4,VACATION_BONUS:1/3,MAX_PRIOR_NOTICE_DAYS:90,PRIOR_NOTICE_BASE_DAYS:30,PRIOR_NOTICE_ADDITIONAL_DAYS_PER_YEAR:3,MAX_PRESCRIPTION_MONTHS:60,MAX_OVERTIME_HOURS_DAILY:2,MAX_OVERTIME_HOURS_MONTHLY:44},bo=e=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e),g2=e=>e/Me.MONTHLY_HOURS,y2=e=>{const t=Math.floor(e/12),r=Math.min(t*Me.PRIOR_NOTICE_ADDITIONAL_DAYS_PER_YEAR,Me.MAX_PRIOR_NOTICE_DAYS-Me.PRIOR_NOTICE_BASE_DAYS);return Me.PRIOR_NOTICE_BASE_DAYS+r},K1=(e,t)=>{const r=e,n=r*t/12,o=r*t/12,s=o*Me.VACATION_BONUS,a=o+s,i=r*t*Me.FGTS_RATE;return{thirteenthSalary:n,vacation:a,fgts:i}},x2=(e,t,r,n)=>{const o=g2(e),s=t*o*1.5*n,a=r*o*2*n,i=s+a,l=i/n,c=K1(l,n);return{overtime50Value:s,overtime100Value:a,totalOvertime:i,thirteenthSalary:c.thirteenthSalary,vacation:c.vacation,fgts:c.fgts,total:i+c.thirteenthSalary+c.vacation+c.fgts}},w2=(e,t,r=0,n=!1)=>{const o=e/30,s=y2(t),a=n?0:s*o,i=e*t/12,l=e*t/12,c=l*Me.VACATION_BONUS,d=l+c,f=r/30*e,h=f*Me.VACATION_BONUS,g=f+h,b=e*t*Me.FGTS_RATE,v=b*Me.FGTS_FINE,w=b+v;return{priorNotice:a,thirteenthSalary:i,proportionalVacation:d,owedVacation:g,fgtsBase:b,fgtsFine:v,fgtsTotal:w,total:a+i+d+g+w}},b2=(e,t,r,n=!0)=>{const o=t-e,s=o*r;if(!n)return{monthlyDifference:o,totalDifference:s,thirteenthSalary:0,vacation:0,fgts:0,total:s};const a=K1(o,r);return{monthlyDifference:o,totalDifference:s,thirteenthSalary:a.thirteenthSalary,vacation:a.vacation,fgts:a.fgts,total:s+a.thirteenthSalary+a.vacation+a.fgts}},S2=eu({salary:Gr({required_error:"Salário é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),overtime50:Gr({required_error:"Quantidade de horas extras é obrigatória",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(Me.MAX_OVERTIME_HOURS_MONTHLY,`Máximo ${Me.MAX_OVERTIME_HOURS_MONTHLY}h/mês (2h por dia)`),overtime100:Gr({required_error:"Quantidade de horas extras é obrigatória",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(Me.MAX_OVERTIME_HOURS_MONTHLY,`Máximo ${Me.MAX_OVERTIME_HOURS_MONTHLY}h/mês (2h por dia)`),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(Me.MAX_PRESCRIPTION_MONTHS,"Prescrição trabalhista: máximo 5 anos (60 meses)")}),C2=eu({salary:Gr({required_error:"Salário é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(600,"Máximo 50 anos (600 meses)"),vacationDays:Gr({required_error:"Dias de férias é obrigatório",invalid_type_error:"Deve ser um número"}).min(0,"Não pode ser negativo").max(30,"Máximo 30 dias"),workedPriorNotice:G1()}),E2=eu({receivedSalary:Gr({required_error:"Salário recebido é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),owedSalary:Gr({required_error:"Salário devido é obrigatório",invalid_type_error:"Salário deve ser um número"}).min(Me.MINIMUM_WAGE,`Salário não pode ser menor que R$ ${Me.MINIMUM_WAGE}`).max(1e6,"Valor muito alto"),months:Gr({required_error:"Período é obrigatório",invalid_type_error:"Deve ser um número"}).int("Deve ser um número inteiro").min(1,"Mínimo 1 mês").max(Me.MAX_PRESCRIPTION_MONTHS,"Prescrição trabalhista: máximo 5 anos (60 meses)"),includeReflections:G1()}).refine(e=>e.owedSalary>e.receivedSalary,{message:"Salário devido deve ser maior que o salário recebido",path:["owedSalary"]}).refine(e=>e.owedSalary-e.receivedSalary<=e.receivedSalary*3,{message:"Diferença muito alta (máx. 300% do salário recebido)",path:["owedSalary"]});var _2="Separator",xg="horizontal",k2=["horizontal","vertical"],Q1=p.forwardRef((e,t)=>{const{decorative:r,orientation:n=xg,...o}=e,s=T2(n)?n:xg,i=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return u.jsx(oe.div,{"data-orientation":s,...i,...o,ref:t})});Q1.displayName=_2;function T2(e){return k2.includes(e)}var Z1=Q1;const Df=p.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>u.jsx(Z1,{ref:o,decorative:r,orientation:t,className:ae("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Df.displayName=Z1.displayName;const Ch=({title:e,items:t,total:r,onNewCalculation:n,calculatorType:o,formData:s})=>{const a=()=>{let i=`*${e}* `;o==="overtime"&&s?(i+=`📋 Dados informados: `,i+=`• Salário: ${bo(s.salary)}