PageSourceSearch

https://snowparrot.ai/assets/index-CCTwBfUi.js

js snowparrot.ai collected 2026-10-05 15:07:21 UTC 213,009 bytes, 45 lines download raw bytes

vendor: 1,200 bytes, line 1
1import{r as l,R as he,j as c,a as wo,g as rc,b as nc,c as Fr,u as me,d as we,e as sc,f as oc,h as Se,B as Wt,_ as _o}from"./index-Bj7uQsl_.js";import{m as Be,f as ht,S as $r,N as ac}from"./_shared-Bu1DArzd.js";const ko=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const ic=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const cc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const gs=e=>{const t=cc(e);return t.charAt(0).toUpperCase()+t.slice(1)};var lc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const dc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const uc=l.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:a,...i},d)=>l.createElement("svg",{ref:d,...lc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ko("lucide",s),...!o&&!dc(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>l.createElement(u,f)),...Array.isArray(o)?o:[o]]));const ue=(e,t)=>
1{const r=l.forwardRef(({className:n,...s},o)=>l.createElement(uc,{ref:o,iconNode:t,className:ko(`lucide-${ic(gs(e))}`,`lucide-${e}`,n),...s}));return r.displayName=gs(e),r};const fc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Br=ue("arrow-right",fc);const mc=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],hc=ue("arrow-up-right",mc);const pc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],gc=ue("chart-column",pc);const xc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kt=ue("check",xc);const yc=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Co=ue("chevron-down",yc);const vc=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bc=ue("chevron-right",vc);const wc=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_c=ue("chevron-up",wc);const kc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],So=ue("circle-check",kc);const Cc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],No=ue("clock",Cc);const Sc=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Nc=ue("download",Sc);const Ec=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],jc=ue("file-text",Ec);const Rc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ac=ue("globe",Rc);const Oc=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],xs=ue("lock",Oc);const Tc=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Pc=ue("message-square",Tc);const Ic=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Dc=ue("mic",Ic);const Mc=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ys=ue("play",Mc);const Vc=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],Lc=ue("scale",Vc);const Fc=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],$c=ue("send",Fc);const Bc=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],vs=ue("shield",Bc);const Wc=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],zc=ue("sparkles",Wc);const Uc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Zc=ue("triangle-alert",Uc);const Hc=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qc=ue("users",Hc);const Kc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yc=ue("x",Kc);const Gc=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Xc=ue("zap",Gc);var dr=e=>e.type==="checkbox",kt=e=>e instanceof Date,je=e=>e==null;const Eo=e=>typeof e=="object";var pe=e=>!je(e)&&!Array.isArray(e)&&Eo(e)&&!kt(e),Jc=e=>pe(e)&&e.target?dr(e.target)?e.target.checked:e.target.value:e,jo=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Qc=(e,t)=>e.has(jo(t)),el=e=>{const t=e.constructor&&e.constructor.prototype;return pe(t)&&t.hasOwnProperty("isPrototypeOf")},Ln=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function be(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Ln&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(pe(e)&&el(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=be(e[s]));return n}var Wr=e=>/^\w*$/.test(e),fe=e=>e===void 0,Fn=e=>Array.isArray(e)?e.filter(Boolean):[],$n=e=>Fn(e.replace(/["|']|\]/g,"").split(/\.|\[/)),D=(e,t,r)=>{if(!t||!pe(e))return r;const n=(Wr(t)?[t]:$n(t)).reduce((s,o)=>je(s)?s:s[o],e);return fe(n)||n===e?fe(e[t])?r:e[t]:n},qe=e=>typeof e=="boolean",Fe=e=>typeof e=="function",ie=(e,t,r)=>{let n=-1;const s=Wr(t)?[t]:$n(t),o=s.length,a=o-1;for(;++n<o;){const i=s[n];let d=r;if(n!==a){const u=e[i];d=pe(u)||Array.isArray(u)?u:isNaN(+s[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=d,e=e[i]}};const Tt={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},$e={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ve={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},tn="form",Ro="root",tl=he.createContext(null);tl.displayName="HookFormControlContext";var rl=(e,t,r,n=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const a=o;return t._proxyFormState[a]!==$e.all&&(t._proxyFormState[a]=!n||$e.all),e[a]}});return s};const nl=typeof window<"u"?he.useLayoutEffect:he.useEffect;var Ce=e=>typeof e=="string",sl=(e,t,r,n,s)=>Ce(e)?(n&&t.watch.add(e),D(r,e,s)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),D(r,o))):(n&&(t.watchAll=!0),r),xn=e=>je(e)||!Eo(e);function lt(e,t,r=new WeakSet){if(xn(e)||xn(t))return Object.is(e,t);if(kt(e)&&kt(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const a=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const i=t[o];
1if(kt(a)&&kt(i)||pe(a)&&pe(i)||Array.isArray(a)&&Array.isArray(i)?!lt(a,i,r):!Object.is(a,i))return!1}}return!0}const ol=he.createContext(null);ol.displayName="HookFormContext";var Bn=(e,t,r,n,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:s||!0}}:{},rr=e=>Array.isArray(e)?e:[e],bs=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}};function Ao(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const s=e[n],o=t[n];if(s&&pe(s)&&o){const a=Ao(s,o);pe(a)&&(r[n]=a)}else e[n]&&(r[n]=o)}return r}var ke=e=>pe(e)&&!Object.keys(e).length,Wn=e=>e.type==="file",Sr=e=>{if(!Ln)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Oo=e=>e.type==="select-multiple",zn=e=>e.type==="radio",al=e=>zn(e)||dr(e),rn=e=>Sr(e)&&e.isConnected;function il(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=fe(e)?n++:e[t[n++]];return e}function cl(e){for(const t in e)if(e.hasOwnProperty(t)&&!fe(e[t]))return!1;return!0}function ge(e,t){const r=Array.isArray(t)?t:Wr(t)?[t]:$n(t),n=r.length===1?e:il(e,r),s=r.length-1,o=r[s];return n&&delete n[o],s!==0&&(pe(n)&&ke(n)||Array.isArray(n)&&cl(n))&&ge(e,r.slice(0,-1)),e}var ll=e=>{for(const t in e)if(Fe(e[t]))return!0;return!1};function To(e){return Array.isArray(e)||pe(e)&&!ll(e)}function yn(e,t={}){for(const r in e){const n=e[r];To(n)?(t[r]=Array.isArray(n)?[]:{},yn(n,t[r])):fe(n)||(t[r]=!0)}return t}function Vt(e,t,r){r||(r=yn(t));for(const n in e){const s=e[n];if(To(s))fe(t)||xn(r[n])?r[n]=yn(s,Array.isArray(s)?[]:{}):Vt(s,je(t)?{}:t[n],r[n]);else{const o=t[n];r[n]=!lt(s,o)}}return r}const ws={value:!1,isValid:!1},_s={value:!0,isValid:!0};var Po=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&&!fe(e[0].attributes.value)?fe(e[0].value)||e[0].value===""?_s:{value:e[0].value,isValid:!0}:_s:ws}return ws},Io=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>fe(e)?e:t?e===""?NaN:e&&+e:r&&Ce(e)?new Date(e):n?n(e):e;const ks={isValid:!1,value:null};var Do=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,ks):ks;function Cs(e){const t=e.ref;return Wn(t)?t.files:zn(t)?Do(e.refs).value:Oo(t)?[...t.selectedOptions].map(({value:r})=>r):dr(t)?Po(e.refs).value:Io(fe(t.value)?e.ref.value:t.value,e)}var dl=(e,t,r,n)=>{const s={};for(const o of e){const a=D(t,o);a&&ie(s,o,a._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:n}},Nr=e=>e instanceof RegExp,Qt=e=>fe(e)?e:Nr(e)?e.source:pe(e)?Nr(e.value)?e.value.source:e.value:e,Ss=e=>({isOnSubmit:!e||e===$e.onSubmit,isOnBlur:e===$e.onBlur,isOnChange:e===$e.onChange,isOnAll:e===$e.all,isOnTouch:e===$e.onTouched});const Ns="AsyncFunction";var ul=e=>!!e&&!!e.validate&&!!(Fe(e.validate)&&e.validate.constructor.name===Ns||pe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Ns)),fl=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Es=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const nr=(e,t,r,n)=>{for(const s of r||Object.keys(e)){const o=D(e,s);if(o){const{_f:a,...i}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],s)&&!n)return!0;if(a.ref&&t(a.ref,a.name)&&!n)return!0;if(nr(i,t))break}else if(pe(i)&&nr(i,t))break}}};function js(e,t,r){const n=D(e,r);if(n||Wr(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const o=s.join("."),a=D(t,o),i=D(e,o);if(a&&!Array.isArray(a)&&r!==o)return{name:r};if(i&&i.type)return{name:o,error:i};if(i&&i.root&&i.root.type)return{name:`${o}.root`,error:i.root};s.pop()}return{name:r}}var ml=(e,t,r,n)=>{r(e);const{name:s,...o}=e;return ke(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!n||$e.all))},hl=(e,t,r)=>!e||!t||e===t||rr(e).some(n=>
1n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),pl=(e,t,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?n.isOnBlur:s.isOnBlur)?!e:(r?n.isOnChange:s.isOnChange)?e:!0,gl=(e,t)=>!Fn(D(e,t)).length&&ge(e,t),xl=(e,t,r)=>{const n=rr(D(e,r));return ie(n,Ro,t[r]),ie(e,r,n),e};function Rs(e,t,r="validate"){if(Ce(e)||Array.isArray(e)&&e.every(Ce)||qe(e)&&!e)return{type:r,message:Ce(e)?e:"",ref:t}}var Pt=e=>pe(e)&&!Nr(e)?e:{value:e,message:""},As=async(e,t,r,n,s,o)=>{const{ref:a,refs:i,required:d,maxLength:u,minLength:f,min:m,max:x,pattern:g,validate:_,name:p,valueAsNumber:b,mount:w}=e._f,y=D(r,p);if(!w||t.has(p))return{};const S=i?i[0]:a,N=V=>{s&&S.reportValidity&&(S.setCustomValidity(qe(V)?"":V||""),S.reportValidity())},C={},O=zn(a),j=dr(a),$=O||j,z=(b||Wn(a))&&fe(a.value)&&fe(y)||Sr(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,H=Bn.bind(null,p,n,C),Y=(V,I,B,J=Ve.maxLength,Z=Ve.minLength)=>{const G=V?I:B;C[p]={type:V?J:Z,message:G,ref:a,...H(V?J:Z,G)}};if(o?!Array.isArray(y)||!y.length:d&&(!$&&(z||je(y))||qe(y)&&!y||j&&!Po(i).isValid||O&&!Do(i).isValid)){const{value:V,message:I}=Ce(d)?{value:!!d,message:d}:Pt(d);if(V&&(C[p]={type:Ve.required,message:I,ref:S,...H(Ve.required,I)},!n))return N(I),C}if(!z&&(!je(m)||!je(x))){let V,I;const B=Pt(x),J=Pt(m);if(!je(y)&&!isNaN(y)){const Z=a.valueAsNumber||y&&+y;je(B.value)||(V=Z>B.value),je(J.value)||(I=Z<J.value)}else{const Z=a.valueAsDate||new Date(y),G=ye=>new Date(new Date().toDateString()+" "+ye),W=a.type=="time",re=a.type=="week";Ce(B.value)&&y&&(V=W?G(y)>G(B.value):re?y>B.value:Z>new Date(B.value)),Ce(J.value)&&y&&(I=W?G(y)<G(J.value):re?y<J.value:Z<new Date(J.value))}if((V||I)&&(Y(!!V,B.message,J.message,Ve.max,Ve.min),!n))return N(C[p].message),C}if((u||f)&&!z&&(Ce(y)||o&&Array.isArray(y))){const V=Pt(u),I=Pt(f),B=!je(V.value)&&y.length>+V.value,J=!je(I.value)&&y.length<+I.value;if((B||J)&&(Y(B,V.message,I.message),!n))return N(C[p].message),C}if(g&&!z&&Ce(y)){const{value:V,message:I}=Pt(g);if(Nr(V)&&!y.match(V)&&(C[p]={type:Ve.pattern,message:I,ref:a,...H(Ve.pattern,I)},!n))return N(I),C}if(_){if(Fe(_)){const V=await _(y,r),I=Rs(V,S);if(I&&(C[p]={...I,...H(Ve.validate,I.message)},!n))return N(I.message),C}else if(pe(_)){let V={};for(const I in _){if(!ke(V)&&!n)break;const B=Rs(await _[I](y,r),S,I);B&&(V={...B,...H(I,B.message)},N(B.message),n&&(C[p]=V))}if(!ke(V)&&(C[p]={ref:S,...V},!n))return C}}return N(!0),C};const yl={mode:$e.onSubmit,reValidateMode:$e.onChange,shouldFocusError:!0};function vl(e={}){let t={...yl,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Fe(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},s=pe(t.defaultValues)||pe(t.values)?be(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:be(s),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,u=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...f};let x={...m};const g={array:bs(),state:bs()},_=t.criteriaMode===$e.all,p=h=>v=>{clearTimeout(u),u=setTimeout(h,v)},b=async h=>{if(!a.keepIsValid&&!t.disabled&&(m.isValid||x.isValid||h)){let v;t.resolver?(v=ke((await $()).errors),w()):v=await Y({fields:n,onlyCheckValid:!0,eventType:Tt.VALID}),v!==r.isValid&&g.state.next({isValid:v})}},w=(h,v)=>{!t.disabled&&(m.isValidating||m.validatingFields||x.isValidating||x.validatingFields)&&((h||Array.from(i.mount)).forEach(k=>{k&&(v?ie(r.validatingFields,k,v):ge(r.validatingFields,k))}),g.state.next({validatingFields:r.validatingFields,isValidating:!ke(r.validatingFields)}))},y=(h,v=[],k,T,R=!0,A=!0)=>{if(T&&k&&!t.disabled){if(a.action=!0,A&&Array.isArray(D(n,h))){const F=k(D(n,h),T.argA,T.argB);R&&ie(n,h,F)}if(A&&Array.isArray(D(r.errors,h))){const F=k(D(r.errors,h),T.argA,T.argB);R&&ie(r.errors,h,F),gl(r.errors,h)}if((m.touchedFields||x.touchedFields)&&A&&Array.isArray(D(r.touchedFields,h))){const F=k(D(r.touchedFields,h),T.argA,T.argB);R&&ie(r.touchedFields,h,F)}if(m.dirtyFields||x.dirtyFields){const F=Vt(s,o),X=jo(h);ie(r.dirtyFields,X,D(F,X))}g.state.next({name:h,isDirty:I(h,v),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ie(o,h,v)},S=(h,v)=>{ie(r.errors,h,v),g.state.next({errors:r.errors})},N=h=>{r.errors=h,g.state.next({errors:r.errors,isValid:!1})},C=(h,v,k,T)=>{const R=D(n,h);if(R){const A=D(o,h,fe(k)?D(s,h):k);fe(A)||T&&T.defaultChecked||v?ie(o,h,v?A:Cs(R._f)):Z(h,A),a.mount&&!a.action&&b()}}
vendor: 12,299 bytes, line 1
1,O=(h,v,k,T,R)=>{let A=!1,F=!1;const X={name:h};if(!t.disabled){if(!k||T){(m.isDirty||x.isDirty)&&(F=r.isDirty,r.isDirty=X.isDirty=I(),A=F!==X.isDirty);const ne=lt(D(s,h),v);F=!!D(r.dirtyFields,h),ne?ge(r.dirtyFields,h):ie(r.dirtyFields,h,!0),X.dirtyFields=r.dirtyFields,A=A||(m.dirtyFields||x.dirtyFields)&&F!==!ne}if(k){const ne=D(r.touchedFields,h);ne||(ie(r.touchedFields,h,k),X.touchedFields=r.touchedFields,A=A||(m.touchedFields||x.touchedFields)&&ne!==k)}A&&R&&g.state.next(X)}return A?X:{}},j=(h,v,k,T)=>{const R=D(r.errors,h),A=(m.isValid||x.isValid)&&qe(v)&&r.isValid!==v;if(t.delayError&&k?(d=p(()=>S(h,k)),d(t.delayError)):(clearTimeout(u),d=null,k?ie(r.errors,h,k):ge(r.errors,h)),(k?!lt(R,k):R)||!ke(T)||A){const F={...T,...A&&qe(v)?{isValid:v}:{},errors:r.errors,name:h};r={...r,...F},g.state.next(F)}},$=async h=>(w(h,!0),await t.resolver(o,t.context,dl(h||i.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),z=async h=>{const{errors:v}=await $(h);if(w(h),h)for(const k of h){const T=D(v,k);T?ie(r.errors,k,T):ge(r.errors,k)}else r.errors=v;return v},H=async({name:h,eventType:v})=>{if(e.validate){const k=await e.validate({formValues:o,formState:r,name:h,eventType:v});if(pe(k))for(const T in k)k[T]&&Me(`${tn}.${T}`,{message:Ce(k.message)?k.message:"",type:Ve.validate});else Ce(k)||!k?Me(tn,{message:k||"",type:Ve.validate}):De(tn);return k}return!0},Y=async({fields:h,onlyCheckValid:v,name:k,eventType:T,context:R={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(R.runRootValidation=!0,!await H({name:k,eventType:T})&&(R.valid=!1,v)))return R.valid;for(const A in h){const F=h[A];if(F){const{_f:X,...ne}=F;if(X){const Re=i.array.has(X.name),He=F._f&&ul(F._f);He&&m.validatingFields&&w([X.name],!0);const Ee=await As(F,i.disabled,o,_,t.shouldUseNativeValidation&&!v,Re);if(He&&m.validatingFields&&w([X.name]),Ee[X.name]&&(R.valid=!1,v)||(!v&&(D(Ee,X.name)?Re?xl(r.errors,Ee,X.name):ie(r.errors,X.name,Ee[X.name]):ge(r.errors,X.name)),e.shouldUseNativeValidation&&Ee[X.name]))break}!ke(ne)&&await Y({context:R,onlyCheckValid:v,fields:ne,name:A,eventType:T})}}return R.valid},V=()=>{for(const h of i.unMount){const v=D(n,h);v&&(v._f.refs?v._f.refs.every(k=>!rn(k)):!rn(v._f.ref))&&ve(h)}i.unMount=new Set},I=(h,v)=>!t.disabled&&(h&&v&&ie(o,h,v),!lt(ot(),s)),B=(h,v,k)=>sl(h,i,{...a.mount?o:fe(v)?s:Ce(h)?{[h]:v}:v},k,v),J=h=>Fn(D(a.mount?o:s,h,t.shouldUnregister?D(s,h,[]):[])),Z=(h,v,k={})=>{const T=D(n,h);let R=v;if(T){const A=T._f;A&&(!A.disabled&&ie(o,h,Io(v,A)),R=Sr(A.ref)&&je(v)?"":v,Oo(A.ref)?[...A.ref.options].forEach(F=>F.selected=R.includes(F.value)):A.refs?dr(A.ref)?A.refs.forEach(F=>{(!F.defaultChecked||!F.disabled)&&(Array.isArray(R)?F.checked=!!R.find(X=>X===F.value):F.checked=R===F.value||!!R)}):A.refs.forEach(F=>F.checked=F.value===R):Wn(A.ref)?A.ref.value="":(A.ref.value=R,A.ref.type||g.state.next({name:h,values:be(o)})))}(k.shouldDirty||k.shouldTouch)&&O(h,R,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&Ie(h)},G=(h,v,k)=>{for(const T in v){if(!v.hasOwnProperty(T))return;const R=v[T],A=h+"."+T,F=D(n,A);(i.array.has(h)||pe(R)||F&&!F._f)&&!kt(R)?G(A,R,k):Z(A,R,k)}},W=(h,v,k={})=>{const T=D(n,h),R=i.array.has(h),A=be(v);ie(o,h,A),R?(g.array.next({name:h,values:be(o)}),(m.isDirty||m.dirtyFields||x.isDirty||x.dirtyFields)&&k.shouldDirty&&g.state.next({name:h,dirtyFields:Vt(s,o),isDirty:I(h,A)})):T&&!T._f&&!je(A)?G(h,A,k):Z(h,A,k),Es(h,i)?g.state.next({...r,name:h,values:be(o)}):g.state.next({name:a.mount?h:void 0,values:be(o)})},re=async h=>{a.mount=!0;const v=h.target;let k=v.name,T=!0;const R=D(n,k),A=ne=>{T=Number.isNaN(ne)||kt(ne)&&isNaN(ne.getTime())||lt(ne,D(o,k,ne))},F=Ss(t.mode),X=Ss(t.reValidateMode);if(R){let ne,Re;const He=v.type?Cs(R._f):Jc(h),Ee=h.type===Tt.BLUR||h.type===Tt.FOCUS_OUT,Qi=!fl(R._f)&&!e.validate&&!t.resolver&&!D(r.errors,k)&&!R._f.deps||pl(Ee,D(r.touchedFields,k),r.isSubmitted,X,F),Qr=Es(k,i,Ee);ie(o,k,He),Ee?(!v||!v.readOnly)&&(R._f.onBlur&&R._f.onBlur(h),d&&d(0)):R._f.onChange&&R._f.onChange(h);const en=O(k,He,Ee),ec=!ke(en)||Qr;if(!Ee&&g.state.next({name:k,type:h.type,values:be(o)}),Qi)return(m.isValid||x.isValid)&&(t.mode==="onBlur"?Ee&&b():Ee||b()),ec&&g.state.next({name:k,...Qr?{}:en});if(!t.resolver&&e.validate&&await H({name:k,eventType:h.type}),!Ee&&Qr&&g.state.next({...r}),t.resolver){const{errors:hs}=await $([k]);if(w([k]),A(He),T){const tc=js(r.errors,n,k),ps=js(hs,n,tc.name||k);ne=ps.error,k=ps.name,Re=ke(hs)}}else w([k],!0),ne=(await As(R,i.disabled,o,_,t.shouldUseNativeValidation))[k],w([k]),A(He),T&&(ne?Re=!1:(m.isValid||x.isValid)&&(Re=await Y({fields:n,onlyCheckValid:!0,name:k,eventType:h.type})));T&&(R._f.deps&&(!Array.isArray(R._f.deps)||R._f.deps.length>0)&&Ie(R._f.deps),j(k,Re,ne,en))}},ye=(h,v)=>{if(D(r.errors,v)&&h.focus)return h.focus(),1},Ie=async(h,v={})=>{let k,T;const R=rr(h);if(t.resolver){const A=await z(fe(h)?h:R);k=ke(A),T=h?!R.some(F=>D(A,F)):k}else h?(T=(await Promise.all(R.map(async A=>{const F=D(n,A);return await Y({fields:F&&F._f?{[A]:F}:F,eventType:Tt.TRIGGER})}))).every(Boolean),!(!T&&!r.isValid)&&b()):T=k=await Y({fields:n,name:h,eventType:Tt.TRIGGER});return g.state.next({...!Ce(h)||(m.isValid||x.isValid)&&k!==r.isValid?{}:{name:h},...t.resolver||!h?{isValid:k}:{},errors:r.errors}),v.shouldFocus&&!T&&nr(n,ye,h?R:i.mount),T},ot=(h,v)=>{let k={...a.mount?o:s};return v&&(k=Ao(v.dirtyFields?r.dirtyFields:r.touchedFields,k)),fe(h)?k:Ce(h)?D(k,h):h.map(T=>D(k,T))},at=(h,v)=>({invalid:!!D((v||r).errors,h),isDirty:!!D((v||r).dirtyFields,h),error:D((v||r).errors,h),isValidating:!!D(r.validatingFields,h),isTouched:!!D((v||r).touchedFields,h)}),De=h=>{const v=h?rr(h):void 0;v?.forEach(k=>ge(r.errors,k)),v?v.forEach(k=>{g.state.next({name:k,errors:r.errors})}):g.state.next({errors:{}})},Me=(h,v,k)=>{const T=(D(n,h,{_f:{}})._f||{}).ref,R=D(r.errors,h)||{},{ref:A,message:F,type:X,...ne}=R;ie(r.errors,h,{...ne,...v,ref:T}),g.state.next({name:h,errors:r.errors,isValid:!1}),k&&k.shouldFocus&&T&&T.focus&&T.focus()},et=(h,v)=>Fe(h)?g.state.subscribe({next:k=>"values"in k&&h(B(void 0,v),k)}):B(h,v,!0),U=h=>g.state.subscribe({next:v=>{hl(h.name,v.name,h.exact)&&ml(v,h.formState||m,Ji,h.reRenderRoot)&&h.callback({values:{...o},...r,...v,defaultValues:s})}}).unsubscribe,le=h=>(a.mount=!0,x={...x,...h.formState},U({...h,formState:{...f,...h.formState}})),ve=(h,v={})=>{for(const k of h?rr(h):i.mount)i.mount.delete(k),i.array.delete(k),v.keepValue||(ge(n,k),ge(o,k)),!v.keepError&&ge(r.errors,k),!v.keepDirty&&ge(r.dirtyFields,k),!v.keepTouched&&ge(r.touchedFields,k),!v.keepIsValidating&&ge(r.validatingFields,k),!t.shouldUnregister&&!v.keepDefaultValue&&ge(s,k);g.state.next({values:be(o)}),g.state.next({...r,...v.keepDirty?{isDirty:I()}:{}}),!v.keepIsValid&&b()},oe=({disabled:h,name:v})=>{if(qe(h)&&a.mount||h||i.disabled.has(v)){const R=i.disabled.has(v)!==!!h;h?i.disabled.add(v):i.disabled.delete(v),R&&a.mount&&!a.action&&b()}},ae=(h,v={})=>{let k=D(n,h);const T=qe(v.disabled)||qe(t.disabled);return ie(n,h,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:h}},name:h,mount:!0,...v}}),i.mount.add(h),k?oe({disabled:qe(v.disabled)?v.disabled:t.disabled,name:h}):C(h,!0,v.value),{...T?{disabled:v.disabled||t.disabled}:{},...t.progressive?{required:!!v.required,min:Qt(v.min),max:Qt(v.max),minLength:Qt(v.minLength),maxLength:Qt(v.maxLength),pattern:Qt(v.pattern)}:{},name:h,onChange:re,onBlur:re,ref:R=>{if(R){ae(h,v),k=D(n,h);const A=fe(R.value)&&R.querySelectorAll&&R.querySelectorAll("input,select,textarea")[0]||R,F=al(A),X=k._f.refs||[];if(F?X.find(ne=>ne===A):A===k._f.ref)return;ie(n,h,{_f:{...k._f,...F?{refs:[...X.filter(rn),A,...Array.isArray(D(s,h))?[{}]:[]],ref:{type:A.type,name:h}}:{ref:A}}}),C(h,!1,void 0,A)}else k=D(n,h,{}),k._f&&(k._f.mount=!1),(t.shouldUnregister||v.shouldUnregister)&&!(Qc(i.array,h)&&a.action)&&i.unMount.add(h)}}},de=()=>t.shouldFocusError&&nr(n,ye,i.mount),Ne=h=>{qe(h)&&(g.state.next({disabled:h}),nr(n,(v,k)=>{const T=D(n,k);T&&(v.disabled=T._f.disabled||h,Array.isArray(T._f.refs)&&T._f.refs.forEach(R=>{R.disabled=T._f.disabled||h}))},0,!1))},Ze=(h,v)=>async k=>{let T;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let R=be(o);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:A,values:F}=await $();w(),r.errors=A,R=be(F)}else await Y({fields:n,eventType:Tt.SUBMIT});if(i.disabled.size)for(const A of i.disabled)ge(R,A);if(ge(r.errors,Ro),ke(r.errors)){g.state.next({errors:{}});try{await h(R,k)}catch(A){T=A}}else v&&await v({...r.errors},k),de(),setTimeout(de);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ke(r.errors)&&!T,submitCount:r.submitCount+1,errors:r.errors}),T)throw T},Jt=(h,v={})=>{D(n,h)&&(fe(v.defaultValue)?W(h,be(D(s,h))):(W(h,v.defaultValue),ie(s,h,be(v.defaultValue))),v.keepTouched||ge(r.touchedFields,h),v.keepDirty||(ge(r.dirtyFields,h),r.isDirty=v.defaultValue?I(h,be(D(s,h))):I()),v.keepError||(ge(r.errors,h),m.isValid&&b()),g.state.next({...r}))},At=(h,v={})=>{const k=h?be(h):s,T=be(k),R=ke(h),A=R?s:T;if(v.keepDefaultValues||(s=k),!v.keepValues){if(v.keepDirtyValues){const F=new Set([...i.mount,...Object.keys(Vt(s,o))]);for(const X of Array.from(F)){const ne=D(r.dirtyFields,X),Re=D(o,X),He=D(A,X);ne&&!fe(Re)?ie(A,X,Re):!ne&&!fe(He)&&W(X,He)}}else{if(Ln&&fe(h))for(const F of i.mount){const X=D(n,F);if(X&&X._f){const ne=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(Sr(ne)){const Re=ne.closest("form");if(Re){Re.reset();break}}}}if(v.keepFieldsRef)for(const F of i.mount)W(F,D(A,F));else n={}}o=t.shouldUnregister?v.keepDefaultValues?be(s):{}:be(A),g.array.next({values:{...A}}),g.state.next({values:{...A}})}i={mount:v.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!m.isValid||!!v.keepIsValid||!!v.keepDirtyValues||!t.shouldUnregister&&!ke(A),a.watch=!!t.shouldUnregister,a.keepIsValid=!!v.keepIsValid,a.action=!1,v.keepErrors||(r.errors={}),g.state.next({submitCount:v.keepSubmitCount?r.submitCount:0,isDirty:R?!1:v.keepDirty?r.isDirty:!!(v.keepDefaultValues&&!lt(h,s)),isSubmitted:v.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:R?{}:v.keepDirtyValues?v.keepDefaultValues&&o?Vt(s,o):r.dirtyFields:v.keepDefaultValues&&h?Vt(s,h):v.keepDirty?r.dirtyFields:{},touchedFields:v.keepTouched?r.touchedFields:{},errors:v.keepErrors?r.errors:{},isSubmitSuccessful:v.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Ot=(h,v)=>At(Fe(h)?h(o):h,{...t.resetOptions,...v}),Xi=(h,v={})=>{const k=D(n,h),T=k&&k._f;if(T){const R=T.refs?T.refs[0]:T.ref;R.focus&&setTimeout(()=>{R.focus(),v.shouldSelect&&Fe(R.select)&&R.select()})}},Ji=h=>{r={...r,...h}},ms={control:{register:ae,unregister:ve,getFieldState:at,handleSubmit:Ze,setError:Me,_subscribe:U,_runSchema:$,_updateIsValidating:w,_focusError:de,_getWatch:B,_getDirty:I,_setValid:b,_setFieldArray:y,_setDisabledField:oe,_setErrors:N,_getFieldArray:J,_reset:At,_resetDefaultValues:()=>Fe(t.defaultValues)&&t.defaultValues().then(h=>{Ot(h,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:V,_disableForm:Ne,_subjects:g,_proxyFormState:m,get _fields(){return n},get _formValues(){return o},get _state(){return a},set _state(h){a=h},get _defaultValues(){return s},get _names(){return i},set _names(h){i=h},get _formState(){return r},get _options(){return t},set _options(h){t={...t,...h}}},subscribe:le,trigger:Ie,register:ae,handleSubmit:Ze,watch:et,setValue:W,getValues:ot,reset:Ot,resetField:Jt,clearErrors:De,unregister:ve,setError:Me,setFocus:Xi,getFieldState:at};return{...ms,formControl:ms}}function Mo(e={}){const t=he.useRef(void 0),r=he.useRef(void 0),[n,s]=he.useState({isDirty:!1,isValidating:!1,isLoading:Fe(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:Fe(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Fe(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...i}=vl(e);t.current={...i,formState:n}}const o=t.current.control;return o._options=e,nl(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>s({...o._formState}
1),reRenderRoot:!0});return s(i=>({...i,isReady:!0})),o._formState.isReady=!0,a},[o]),he.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),he.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),he.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),he.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),he.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),he.useEffect(()=>{var a;e.values&&!lt(e.values,r.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((a=o._options.resetOptions)===null||a===void 0)&&a.keepIsValid||o._setValid(),r.current=e.values,s(i=>({...i}))):o._resetDefaultValues()},[o,e.values]),he.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=he.useMemo(()=>rl(n,o),[o,n]),t.current}const Os=(e,t,r)=>{if(e&&"reportValidity"in e){const n=D(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},vn=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?Os(n.ref,r,e):n&&n.refs&&n.refs.forEach(s=>Os(s,r,e))}},Ts=(e,t)=>{t.shouldUseNativeValidation&&vn(e,t);const r={};for(const n in e){const s=D(t.fields,n),o=Object.assign(e[n]||{},{ref:s&&s.ref});if(bl(t.names||Object.keys(e),n)){const a=Object.assign({},D(r,n));ie(a,"root",o),ie(r,n,a)}else ie(r,n,o)}return r},bl=(e,t)=>{const r=Ps(t);return e.some(n=>Ps(n).match(`^${r}\\.\\d+`))};function Ps(e){return e.replace(/\]|\[/g,"")}function Vo(e,t,r){function n(i,d){var u;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(u=i._zod).traits??(u.traits=new Set),i._zod.traits.add(e),t(i,d);for(const f in a.prototype)f in i||Object.defineProperty(i,f,{value:a.prototype[f].bind(i)});i._zod.constr=a,i._zod.def=d}const s=r?.Parent??Object;class o extends s{}Object.defineProperty(o,"name",{value:e});function a(i){var d;const u=r?.Parent?new o:this;n(u,i),(d=u._zod).deferred??(d.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:i=>r?.Parent&&i instanceof r.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class wl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const _l={};function Lo(e){return _l}function kl(e,t){return typeof t=="bigint"?t.toString():t}const Fo=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function pr(e){return typeof e=="string"?e:e?.message}function $o(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const s=pr(e.inst?._zod.def?.error?.(e))??pr(t?.error?.(e))??pr(r.customError?.(e))??pr(r.localeError?.(e))??"Invalid input";n.message=s}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}const Bo=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,kl,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cl=Vo("$ZodError",Bo),Wo=Vo("$ZodError",Bo,{Parent:Error}),Sl=e=>(t,r,n,s)=>{const o=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new wl;if(a.issues.length){const i=new(s?.Err??e)(a.issues.map(d=>$o(d,o,Lo())));throw Fo(i,s?.callee),i}return a.value},Nl=Sl(Wo),El=e=>async(t,r,n,s)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const i=new(s?.Err??e)(a.issues.map(d=>$o(d,o,Lo())));throw Fo(i,s?.callee),i}return a.value},jl=El(Wo);function Is(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}function Rl(e,t){for(var r={};e.length;){var n=e[0],s=n.code,o=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:o,type:s};
1if("unionErrors"in n&&n.unionErrors.forEach(function(f){return f.errors.forEach(function(m){return e.push(m)})}),t){var d=r[a].types,u=d&&d[n.code];r[a]=Bn(a,t,r,s,u?[].concat(u,n.message):n.message)}e.shift()}return r}function Al(e,t){for(var r={};e.length;){var n=e[0],s=n.code,o=n.message,a=n.path.join(".");if(!r[a])if(n.code==="invalid_union"&&n.errors.length>0){var i=n.errors[0][0];r[a]={message:i.message,type:i.code}}else r[a]={message:o,type:s};if(n.code==="invalid_union"&&n.errors.forEach(function(f){return f.forEach(function(m){return e.push(m)})}),t){var d=r[a].types,u=d&&d[n.code];r[a]=Bn(a,t,r,s,u?[].concat(u,n.message):n.message)}e.shift()}return r}function zo(e,t,r){if(r===void 0&&(r={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,s,o){try{return Promise.resolve(Is(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(a){return o.shouldUseNativeValidation&&vn({},o),{errors:{},values:r.raw?Object.assign({},n):a}})},function(a){if((function(i){return Array.isArray(i?.issues)})(a))return{values:{},errors:Ts(Rl(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,s,o){try{return Promise.resolve(Is(function(){return Promise.resolve((r.mode==="sync"?Nl:jl)(e,n,t)).then(function(a){return o.shouldUseNativeValidation&&vn({},o),{errors:{},values:r.raw?Object.assign({},n):a}})},function(a){if((function(i){return i instanceof Cl})(a))return{values:{},errors:Ts(Al(a.issues,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}var te;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const o={};for(const a of s)o[a]=a;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(i=>typeof s[s[i]]!="number"),a={};for(const i of o)a[i]=s[i];return e.objectValues(a)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&o.push(a);return o},e.find=(s,o)=>{for(const a of s)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,o=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(te||(te={}));var Ds;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Ds||(Ds={}));const M=te.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ct=e=>{switch(typeof e){case"undefined":return M.undefined;case"string":return M.string;case"number":return Number.isNaN(e)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":return Array.isArray(e)?M.array:e===null?M.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?M.promise:typeof Map<"u"&&e instanceof Map?M.map:typeof Set<"u"&&e instanceof Set?M.set:typeof Date<"u"&&e instanceof Date?M.date:M.object;default:return M.unknown}}
vendor: 38,488 bytes, line 1
1,E=te.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 tt 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(o){return o.message},n={_errors:[]},s=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let i=n,d=0;for(;d<a.path.length;){const u=a.path[d];d===a.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(r(a))):i[u]=i[u]||{_errors:[]},i=i[u],d++}}};return s(this),n}static assert(t){if(!(t instanceof tt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,te.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];r[o]=r[o]||[],r[o].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}tt.create=e=>new tt(e);const bn=(e,t)=>{let r;switch(e.code){case E.invalid_type:e.received===M.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case E.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,te.jsonStringifyReplacer)}`;break;case E.unrecognized_keys:r=`Unrecognized key(s) in object: ${te.joinValues(e.keys,", ")}`;break;case E.invalid_union:r="Invalid input";break;case E.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${te.joinValues(e.options)}`;break;case E.invalid_enum_value:r=`Invalid enum value. Expected ${te.joinValues(e.options)}, received '${e.received}'`;break;case E.invalid_arguments:r="Invalid function arguments";break;case E.invalid_return_type:r="Invalid function return type";break;case E.invalid_date:r="Invalid date";break;case E.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}"`:te.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case E.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 E.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 E.custom:r="Invalid input";break;case E.invalid_intersection_types:r="Intersection results could not be merged";break;case E.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case E.not_finite:r="Number must be finite";break;default:r=t.defaultError,te.assertNever(e)}return{message:r}};let Ol=bn;function Tl(){return Ol}const Pl=e=>{const{data:t,path:r,errorMaps:n,issueData:s}=e,o=[...r,...s.path||[]],a={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let i="";const d=n.filter(u=>!!u).slice().reverse();for(const u of d)i=u(a,{data:t,defaultError:i}).message;return{...s,path:o,message:i}};function P(e,t){const r=Tl(),n=Pl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===bn?void 0:bn].filter(s=>!!s)});e.common.issues.push(n)}class Te{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 s of r){if(s.status==="aborted")return q;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const s of r){const o=await s.key,a=await s.value;n.push({key:o,value:a})}return Te.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const s of r){const{key:o,value:a}=s;if(o.status==="aborted"||a.status==="aborted")return q;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(n[o.value]=a.value)}return{status:t.value,value:n}}}const q=Object.freeze({status:"aborted"}),er=e=>({status:"dirty",value:e}),Pe=e=>({status:"valid",value:e}),Ms=e=>e.status==="aborted",Vs=e=>e.status==="dirty",zt=e=>e.status==="valid",Er=e=>typeof Promise<"u"&&e instanceof Promise;var L;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(L||(L={}));class pt{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}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 Ls=(e,t)=>{if(zt(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 tt(e.common.issues);return this._error=r,this._error}}};function Q(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:s}=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:s}:{errorMap:(a,i)=>{const{message:d}=e;return a.code==="invalid_enum_value"?{message:d??i.defaultError}:typeof i.data>"u"?{message:d??n??i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:d??r??i.defaultError}},description:s}}class ee{get description(){return this._def.description}_getType(t){return ct(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ct(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Te,ctx:{common:t.parent.common,data:t.data,parsedType:ct(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Er(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?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ct(t)},s=this._parseSync({data:t,path:n.path,parent:n});return Ls(n,s)}"~validate"(t){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ct(t)};if(!this["~standard"].async)try{const n=this._parseSync({data:t,path:[],parent:r});return zt(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>zt(n)?{value:n.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?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ct(t)},s=this._parse({data:t,path:n.path,parent:n}),o=await(Er(s)?s:Promise.resolve(s));return Ls(n,o)}refine(t,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,o)=>{const a=t(s),i=()=>o.addIssue({code:E.custom,...n(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(d=>d?!0:(i(),!1)):a?!0:(i(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new Zt({schema:this,typeName:K.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 ft.create(this,this._def)}nullable(){return Ht.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xe.create(this)}promise(){return Or.create(this,this._def)}or(t){return Rr.create([this,t],this._def)}and(t){return Ar.create(this,t,this._def)}transform(t){return new Zt({...Q(this._def),schema:this,typeName:K.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Cn({...Q(this._def),innerType:this,defaultValue:r,typeName:K.ZodDefault})}brand(){return new rd({typeName:K.ZodBranded,type:this,...Q(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Sn({...Q(this._def),innerType:this,catchValue:r,typeName:K.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Un.create(this,t)}readonly(){return Nn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Il=/^c[^\s-]{8,}$/i,Dl=/^[0-9a-z]+$/,Ml=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Vl=/^[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,Ll=/^[a-z0-9_-]{21}$/i,Fl=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$l=/^[-+]?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)?)??$/,Bl=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Wl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nn;const zl=/^(?:(?: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])$/,Ul=/^(?:(?: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])$/,Zl=/^(([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]))$/,Hl=/^(([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])$/,ql=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Kl=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uo="((\\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])))",Yl=new RegExp(`^${Uo}$`);function Zo(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 Gl(e){return new RegExp(`^${Zo(e)}$`)}function Xl(e){let t=`${Uo}T${Zo(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 Jl(e,t){return!!((t==="v4"||!t)&&zl.test(e)||(t==="v6"||!t)&&Zl.test(e))}function Ql(e,t){if(!Fl.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,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function ed(e,t){return!!((t==="v4"||!t)&&Ul.test(e)||(t==="v6"||!t)&&Hl.test(e))}class ut extends ee{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==M.string){const o=this._getOrReturnCtx(t);return P(o,{code:E.invalid_type,expected:M.string,received:o.parsedType}),q}const n=new Te;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),P(s,{code:E.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),P(s,{code:E.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,i=t.data.length<o.value;(a||i)&&(s=this._getOrReturnCtx(t,s),a?P(s,{code:E.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&P(s,{code:E.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")Bl.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"email",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")nn||(nn=new RegExp(Wl,"u")),nn.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"emoji",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")Vl.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"uuid",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")Ll.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"nanoid",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")Il.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"cuid",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")Dl.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"cuid2",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")Ml.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"ulid",code:E.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),P(s,{validation:"url",code:E.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"regex",code:E.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),P(s,{code:E.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),P(s,{code:E.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),P(s,{code:E.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?Xl(o).test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{code:E.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?Yl.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{code:E.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?Gl(o).test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{code:E.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?$l.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"duration",code:E.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?Jl(t.data,o.version)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"ip",code:E.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?Ql(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"jwt",code:E.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?ed(t.data,o.version)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"cidr",code:E.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?ql.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"base64",code:E.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?Kl.test(t.data)||(s=this._getOrReturnCtx(t,s),P(s,{validation:"base64url",code:E.invalid_string,message:o.message}),n.dirty()):te.assertNever(o);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:E.invalid_string,...L.errToObj(n)})}_addCheck(t){return new ut({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...L.errToObj(t)})}url(t){return this._addCheck({kind:"url",...L.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...L.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...L.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...L.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...L.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...L.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...L.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...L.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...L.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...L.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...L.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...L.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?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...L.errToObj(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?.precision>"u"?null:t?.precision,...L.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...L.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...L.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...L.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...L.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...L.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...L.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...L.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...L.errToObj(r)})}nonempty(t){return this.min(1,L.errToObj(t))}trim(){return new ut({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ut({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ut({...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.value<t)&&(t=r.value);return t}}ut.create=e=>new ut({checks:[],typeName:K.ZodString,coerce:e?.coerce??!1,...Q(e)});function td(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,o=Number.parseInt(e.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return o%a/10**s}class sr extends ee{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)!==M.number){const o=this._getOrReturnCtx(t);return P(o,{code:E.invalid_type,expected:M.number,received:o.parsedType}),q}let n;const s=new Te;for(const o of this._def.checks)o.kind==="int"?te.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{code:E.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),P(n,{code:E.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),P(n,{code:E.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?td(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),P(n,{code:E.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{code:E.not_finite,message:o.message}),s.dirty()):te.assertNever(o);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,L.toString(r))}gt(t,r){return this.setLimit("min",t,!1,L.toString(r))}lte(t,r){return this.setLimit("max",t,!0,L.toString(r))}lt(t,r){return this.setLimit("max",t,!1,L.toString(r))}setLimit(t,r,n,s){return new sr({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:L.toString(s)}]})}_addCheck(t){return new sr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:L.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:L.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:L.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:L.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:L.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:L.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:L.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:L.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:L.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.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&te.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.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}sr.create=e=>new sr({checks:[],typeName:K.ZodNumber,coerce:e?.coerce||!1,...Q(e)});class or extends ee{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)!==M.bigint)return this._getInvalidInput(t);let n;const s=new Te;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),P(n,{code:E.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),P(n,{code:E.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),P(n,{code:E.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):te.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return P(r,{code:E.invalid_type,expected:M.bigint,received:r.parsedType}),q}gte(t,r){return this.setLimit("min",t,!0,L.toString(r))}gt(t,r){return this.setLimit("min",t,!1,L.toString(r))}lte(t,r){return this.setLimit("max",t,!0,L.toString(r))}lt(t,r){return this.setLimit("max",t,!1,L.toString(r))}setLimit(t,r,n,s){return new or({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:L.toString(s)}]})}_addCheck(t){return new or({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:L.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:L.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:L.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:L.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:L.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.value<t)&&(t=r.value);return t}}or.create=e=>new or({checks:[],typeName:K.ZodBigInt,coerce:e?.coerce??!1,...Q(e)});class wn extends ee{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==M.boolean){const n=this._getOrReturnCtx(t);return P(n,{code:E.invalid_type,expected:M.boolean,received:n.parsedType}),q}return Pe(t.data)}}wn.create=e=>new wn({typeName:K.ZodBoolean,coerce:e?.coerce||!1,...Q(e)});class jr extends ee{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==M.date){const o=this._getOrReturnCtx(t);return P(o,{code:E.invalid_type,expected:M.date,received:o.parsedType}),q}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return P(o,{code:E.invalid_date}),q}const n=new Te;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),P(s,{code:E.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),P(s,{code:E.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):te.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new jr({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:L.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:L.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.value<t)&&(t=r.value);return t!=null?new Date(t):null}}jr.create=e=>new jr({checks:[],coerce:e?.coerce||!1,typeName:K.ZodDate,...Q(e)});class Fs extends ee{_parse(t){if(this._getType(t)!==M.symbol){const n=this._getOrReturnCtx(t);return P(n,{code:E.invalid_type,expected:M.symbol,received:n.parsedType}),q}return Pe(t.data)}}Fs.create=e=>new Fs({typeName:K.ZodSymbol,...Q(e)});class $s extends ee{_parse(t){if(this._getType(t)!==M.undefined){const n=this._getOrReturnCtx(t);return P(n,{code:E.invalid_type,expected:M.undefined,received:n.parsedType}),q}return Pe(t.data)}}$s.create=e=>new $s({typeName:K.ZodUndefined,...Q(e)});class Bs extends ee{_parse(t){if(this._getType(t)!==M.null){const n=this._getOrReturnCtx(t);return P(n,{code:E.invalid_type,expected:M.null,received:n.parsedType}),q}return Pe(t.data)}}Bs.create=e=>new Bs({typeName:K.ZodNull,...Q(e)});class Ws extends ee{constructor(){super(...arguments),this._any=!0}_parse(t){return Pe(t.data)}}Ws.create=e=>new Ws({typeName:K.ZodAny,...Q(e)});class zs extends ee{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pe(t.data)}}zs.create=e=>new zs({typeName:K.ZodUnknown,...Q(e)});class gt extends ee{_parse(t){const r=this._getOrReturnCtx(t);return P(r,{code:E.invalid_type,expected:M.never,received:r.parsedType}),q}}gt.create=e=>new gt({typeName:K.ZodNever,...Q(e)});class Us extends ee{_parse(t){if(this._getType(t)!==M.undefined){const n=this._getOrReturnCtx(t);return P(n,{code:E.invalid_type,expected:M.void,received:n.parsedType}),q}return Pe(t.data)}}Us.create=e=>new Us({typeName:K.ZodVoid,...Q(e)});class Xe extends ee{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==M.array)return P(r,{code:E.invalid_type,expected:M.array,received:r.parsedType}),q;if(s.exactLength!==null){const a=r.data.length>s.exactLength.value,i=r.data.length<s.exactLength.value;(a||i)&&(P(r,{code:a?E.too_big:E.too_small,minimum:i?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(P(r,{code:E.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(P(r,{code:E.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,i)=>s.type._parseAsync(new pt(r,a,r.path,i)))).then(a=>Te.mergeArray(n,a));const o=[...r.data].map((a,i)=>s.type._parseSync(new pt(r,a,r.path,i)));return Te.mergeArray(n,o)}get element(){return this._def.type}min(t,r){return new Xe({...this._def,minLength:{value:t,message:L.toString(r)}})}max(t,r){return new Xe({...this._def,maxLength:{value:t,message:L.toString(r)}})}length(t,r){return new Xe({...this._def,exactLength:{value:t,message:L.toString(r)}})}nonempty(t){return this.min(1,t)}}Xe.create=(e,t)=>new Xe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...Q(t)});function Lt(e){if(e instanceof xe){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=ft.create(Lt(n))}return new xe({...e._def,shape:()=>t})}else return e instanceof Xe?new Xe({...e._def,type:Lt(e.element)}):e instanceof ft?ft.create(Lt(e.unwrap())):e instanceof Ht?Ht.create(Lt(e.unwrap())):e instanceof Ct?Ct.create(e.items.map(t=>Lt(t))):e}class xe extends ee{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=te.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==M.object){const u=this._getOrReturnCtx(t);return P(u,{code:E.invalid_type,expected:M.object,received:u.parsedType}),q}const{status:n,ctx:s}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof gt&&this._def.unknownKeys==="strip"))for(const u in s.data)a.includes(u)||i.push(u);const d=[];for(const u of a){const f=o[u],m=s.data[u];d.push({key:{status:"valid",value:u},value:f._parse(new pt(s,m,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof gt){const u=this._def.unknownKeys;if(u==="passthrough")for(const f of i)d.push({key:{status:"valid",value:f},value:{status:"valid",value:s.data[f]}});else if(u==="strict")i.length>0&&(P(s,{code:E.unrecognized_keys,keys:i}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const f of i){const m=s.data[f];d.push({key:{status:"valid",value:f},value:u._parse(new pt(s,m,s.path,f)),alwaysSet:f in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const f of d){const m=await f.key,x=await f.value;u.push({key:m,value:x,alwaysSet:f.alwaysSet})}return u}).then(u=>Te.mergeObjectSync(n,u)):Te.mergeObjectSync(n,d)}get shape(){return this._def.shape()}strict(t){return L.errToObj,new xe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{const s=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:L.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new xe({...this._def,unknownKeys:"strip"})}passthrough(){return new xe({...this._def,unknownKeys:"passthrough"})}extend(t){return new xe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new xe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new xe({...this._def,catchall:t})}pick(t){const r={};for(const n of te.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new xe({...this._def,shape:()=>r})}omit(t){const r={};for(const n of te.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new xe({...this._def,shape:()=>r})}deepPartial(){return Lt(this)}partial(t){const r={};for(const n of te.objectKeys(this.shape)){const s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new xe({...this._def,shape:()=>r})}required(t){const r={};for(const n of te.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof ft;)o=o._def.innerType;r[n]=o}return new xe({...this._def,shape:()=>r})}keyof(){return Ho(te.objectKeys(this.shape))}}xe.create=(e,t)=>new xe({shape:()=>e,unknownKeys:"strip",catchall:gt.create(),typeName:K.ZodObject,...Q(t)});xe.strictCreate=(e,t)=>new xe({shape:()=>e,unknownKeys:"strict",catchall:gt.create(),typeName:K.ZodObject,...Q(t)});xe.lazycreate=(e,t)=>new xe({shape:e,unknownKeys:"strip",catchall:gt.create(),typeName:K.ZodObject,...Q(t)});class Rr extends ee{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function s(o){for(const i of o)if(i.result.status==="valid")return i.result;for(const i of o)if(i.result.status==="dirty")return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(i=>new tt(i.ctx.common.issues));return P(r,{code:E.invalid_union,unionErrors:a}),q}if(r.common.async)return Promise.all(n.map(async o=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(s);{let o;const a=[];for(const d of n){const u={...r,common:{...r.common,issues:[]},parent:null},f=d._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(d=>new tt(d));return P(r,{code:E.invalid_union,unionErrors:i}),q}}get options(){return this._def.options}}Rr.create=(e,t)=>
vendor: 4,102 bytes, line 1
1new Rr({options:e,typeName:K.ZodUnion,...Q(t)});function _n(e,t){const r=ct(e),n=ct(t);if(e===t)return{valid:!0,data:e};if(r===M.object&&n===M.object){const s=te.objectKeys(t),o=te.objectKeys(e).filter(i=>s.indexOf(i)!==-1),a={...e,...t};for(const i of o){const d=_n(e[i],t[i]);if(!d.valid)return{valid:!1};a[i]=d.data}return{valid:!0,data:a}}else if(r===M.array&&n===M.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const a=e[o],i=t[o],d=_n(a,i);if(!d.valid)return{valid:!1};s.push(d.data)}return{valid:!0,data:s}}else return r===M.date&&n===M.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ar extends ee{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=(o,a)=>{if(Ms(o)||Ms(a))return q;const i=_n(o.value,a.value);return i.valid?((Vs(o)||Vs(a))&&r.dirty(),{status:r.value,value:i.data}):(P(n,{code:E.invalid_intersection_types}),q)};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(([o,a])=>s(o,a)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Ar.create=(e,t,r)=>new Ar({left:e,right:t,typeName:K.ZodIntersection,...Q(r)});class Ct extends ee{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==M.array)return P(n,{code:E.invalid_type,expected:M.array,received:n.parsedType}),q;if(n.data.length<this._def.items.length)return P(n,{code:E.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q;!this._def.rest&&n.data.length>this._def.items.length&&(P(n,{code:E.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((a,i)=>{const d=this._def.items[i]||this._def.rest;return d?d._parse(new pt(n,a,n.path,i)):null}).filter(a=>!!a);return n.common.async?Promise.all(o).then(a=>Te.mergeArray(r,a)):Te.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new Ct({...this._def,rest:t})}}Ct.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ct({items:e,typeName:K.ZodTuple,rest:null,...Q(t)})};class Zs extends ee{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!==M.map)return P(n,{code:E.invalid_type,expected:M.map,received:n.parsedType}),q;const s=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(([i,d],u)=>({key:s._parse(new pt(n,i,n.path,[u,"key"])),value:o._parse(new pt(n,d,n.path,[u,"value"]))}));if(n.common.async){const i=new Map;return Promise.resolve().then(async()=>{for(const d of a){const u=await d.key,f=await d.value;if(u.status==="aborted"||f.status==="aborted")return q;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),i.set(u.value,f.value)}return{status:r.value,value:i}})}else{const i=new Map;for(const d of a){const u=d.key,f=d.value;if(u.status==="aborted"||f.status==="aborted")return q;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),i.set(u.value,f.value)}return{status:r.value,value:i}}}}Zs.create=(e,t,r)=>new Zs({valueType:t,keyType:e,typeName:K.ZodMap,...Q(r)});class ar extends ee{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==M.set)return P(n,{code:E.invalid_type,expected:M.set,received:n.parsedType}),q;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(P(n,{code:E.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(P(n,{code:E.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const o=this._def.valueType;function a(d){const u=new Set;for(const f of d){if(f.status==="aborted")return q;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}const i=[...n.data.values()].map((d,u)=>o._parse(new pt(n,d,n.path,u)));return n.common.async?Promise.all(i).then(d=>
vendor: 4,945 bytes, line 1
1a(d)):a(i)}min(t,r){return new ar({...this._def,minSize:{value:t,message:L.toString(r)}})}max(t,r){return new ar({...this._def,maxSize:{value:t,message:L.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}ar.create=(e,t)=>new ar({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...Q(t)});class Hs extends ee{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})}}Hs.create=(e,t)=>new Hs({getter:e,typeName:K.ZodLazy,...Q(t)});class kn extends ee{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return P(r,{received:r.data,code:E.invalid_literal,expected:this._def.value}),q}return{status:"valid",value:t.data}}get value(){return this._def.value}}kn.create=(e,t)=>new kn({value:e,typeName:K.ZodLiteral,...Q(t)});function Ho(e,t){return new Ut({values:e,typeName:K.ZodEnum,...Q(t)})}class Ut extends ee{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return P(r,{expected:te.joinValues(n),received:r.parsedType,code:E.invalid_type}),q}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 P(r,{received:r.data,code:E.invalid_enum_value,options:n}),q}return Pe(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 Ut.create(t,{...this._def,...r})}exclude(t,r=this._def){return Ut.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Ut.create=Ho;class qs extends ee{_parse(t){const r=te.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==M.string&&n.parsedType!==M.number){const s=te.objectValues(r);return P(n,{expected:te.joinValues(s),received:n.parsedType,code:E.invalid_type}),q}if(this._cache||(this._cache=new Set(te.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=te.objectValues(r);return P(n,{received:n.data,code:E.invalid_enum_value,options:s}),q}return Pe(t.data)}get enum(){return this._def.values}}qs.create=(e,t)=>new qs({values:e,typeName:K.ZodNativeEnum,...Q(t)});class Or extends ee{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==M.promise&&r.common.async===!1)return P(r,{code:E.invalid_type,expected:M.promise,received:r.parsedType}),q;const n=r.parsedType===M.promise?r.data:Promise.resolve(r.data);return Pe(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Or.create=(e,t)=>new Or({type:e,typeName:K.ZodPromise,...Q(t)});class Zt extends ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:a=>{P(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const a=s.transform(n.data,o);if(n.common.async)return Promise.resolve(a).then(async i=>{if(r.value==="aborted")return q;const d=await this._def.schema._parseAsync({data:i,path:n.path,parent:n});return d.status==="aborted"?q:d.status==="dirty"||r.value==="dirty"?er(d.value):d});{if(r.value==="aborted")return q;const i=this._def.schema._parseSync({data:a,path:n.path,parent:n});return i.status==="aborted"?q:i.status==="dirty"||r.value==="dirty"?er(i.value):i}}if(s.type==="refinement"){const a=i=>{const d=s.refinement(i,o);if(n.common.async)return Promise.resolve(d);if(d 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"?q:(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"?q:(i.status==="dirty"&&r.dirty(),a(i.value).then(()=>({status:r.value,value:i.value}))))}if(s.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!zt(a))return q;const i=s.transform(a.value,o);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=>zt(a)?Promise.resolve(s.transform(a.value,o)).then(i=>({status:r.value,value:i})):q);te.assertNever(s)}}Zt.create=(e,t,r)=>new Zt({schema:e,typeName:K.ZodEffects,effect:t,...Q(r)}
1);Zt.createWithPreprocess=(e,t,r)=>new Zt({schema:t,effect:{type:"preprocess",transform:e},typeName:K.ZodEffects,...Q(r)});class ft extends ee{_parse(t){return this._getType(t)===M.undefined?Pe(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ft.create=(e,t)=>new ft({innerType:e,typeName:K.ZodOptional,...Q(t)});class Ht extends ee{_parse(t){return this._getType(t)===M.null?Pe(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ht.create=(e,t)=>new Ht({innerType:e,typeName:K.ZodNullable,...Q(t)});class Cn extends ee{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===M.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Cn.create=(e,t)=>new Cn({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Q(t)});class Sn extends ee{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Er(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new tt(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new tt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Sn.create=(e,t)=>new Sn({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Q(t)});class Ks extends ee{_parse(t){if(this._getType(t)!==M.nan){const n=this._getOrReturnCtx(t);return P(n,{code:E.invalid_type,expected:M.nan,received:n.parsedType}),q}return{status:"valid",value:t.data}}}Ks.create=e=>new Ks({typeName:K.ZodNaN,...Q(e)});class rd extends ee{_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 Un extends ee{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?q:o.status==="dirty"?(r.dirty(),er(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?q:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new Un({in:t,out:r,typeName:K.ZodPipeline})}}class Nn extends ee{_parse(t){const r=this._def.innerType._parse(t),n=s=>(zt(s)&&(s.value=Object.freeze(s.value)),s);return Er(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}Nn.create=(e,t)=>new Nn({innerType:e,typeName:K.ZodReadonly,...Q(t)});var K;(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"})(K||(K={}));const Ke=ut.create,nd=wn.create;gt.create;Xe.create;const qo=xe.create;Rr.create;Ar.create;Ct.create;const sn=kn.create;Ut.create;Or.create;ft.create;Ht.create;function ce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function sd(e,t){const r=l.createContext(t),n=o=>{const{children:a,...i}=o,d=l.useMemo(()=>i,Object.values(i));return c.jsx(r.Provider,{value:d,children:a})};n.displayName=e+"Provider";function s(o){const a=l.useContext(r);if(a)return a;
vendor: 9,374 bytes, line 1
1if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,s]}function ur(e,t=[]){let r=[];function n(o,a){const i=l.createContext(a),d=r.length;r=[...r,a];const u=m=>{const{scope:x,children:g,..._}=m,p=x?.[e]?.[d]||i,b=l.useMemo(()=>_,Object.values(_));return c.jsx(p.Provider,{value:b,children:g})};u.displayName=o+"Provider";function f(m,x){const g=x?.[e]?.[d]||i,_=l.useContext(g);if(_)return _;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[u,f]}const s=()=>{const o=r.map(a=>l.createContext(a));return function(i){const d=i?.[e]||o;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return s.scopeName=e,[n,od(s,...t)]}function od(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const a=n.reduce((i,{useScope:d,scopeName:u})=>{const m=d(o)[`__scope${u}`];return{...i,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var _e=globalThis?.document?l.useLayoutEffect:()=>{},ad=wo[" useId ".trim().toString()]||(()=>{}),id=0;function Ft(e){const[t,r]=l.useState(ad());return _e(()=>{r(n=>n??String(id++))},[e]),e||(t?`radix-${t}`:"")}var cd=wo[" useInsertionEffect ".trim().toString()]||_e;function Tr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,o,a]=ld({defaultProp:t,onChange:r}),i=e!==void 0,d=i?e:s;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const m=f.current;m!==i&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const u=l.useCallback(f=>{if(i){const m=dd(f)?f(e):f;m!==e&&a.current?.(m)}else o(f)},[i,e,o,a]);return[d,u]}function ld({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),s=l.useRef(r),o=l.useRef(t);return cd(()=>{o.current=t},[t]),l.useEffect(()=>{s.current!==r&&(o.current?.(r),s.current=r)},[r,s]),[r,n,o]}function dd(e){return typeof e=="function"}var fr=nc();const ud=rc(fr);function fd(e){const t=md(e),r=l.forwardRef((n,s)=>{const{children:o,...a}=n,i=l.Children.toArray(o),d=i.find(pd);if(d){const u=d.props.children,f=i.map(m=>m===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:s,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function md(e){const t=l.forwardRef((r,n)=>{const{children:s,...o}=r;if(l.isValidElement(s)){const a=xd(s),i=gd(o,s.props);return s.type!==l.Fragment&&(i.ref=n?Fr(n,a):a),l.cloneElement(s,i)}return l.Children.count(s)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hd=Symbol("radix.slottable");function pd(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hd}function gd(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...i)=>{const d=o(...i);return s(...i),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function xd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=yd.reduce((e,t)=>{const r=fd(`Primitive.${t}`),n=l.forwardRef((s,o)=>{const{asChild:a,...i}=s,d=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(d,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vd(e,t){e&&fr.flushSync(()=>e.dispatchEvent(t))}function St(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>t.current?.(...r),[])}function bd(e,t=globalThis?.document){const r=St(e);l.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var wd="DismissableLayer",En="dismissableLayer.update",_d="dismissableLayer.pointerDownOutside",kd="dismissableLayer.focusOutside",Ys,Ko=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zn=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:i,...d}=e,u=l.useContext(Ko),[f,m]=l.useState(null),x=f?.ownerDocument??globalThis?.document,[,g]=l.useState({}),_=me(t,j=>m(j)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(b),y=f?p.indexOf(f):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,C=Nd(j=>{const $=j.target,z=[...u.branches].some(H=>H.contains($));!N||z||(s?.(j),a?.(j),j.defaultPrevented||i?.())},x),O=Ed(j=>{const $=j.target;[...u.branches].some(H=>H.contains($))||(o?.(j),a?.(j),j.defaultPrevented||i?.())},x);return bd(j=>{y===u.layers.size-1&&(n?.(j),!j.defaultPrevented&&i&&(j.preventDefault(),i()))},x),l.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ys=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Gs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ys)}},[f,x,r,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Gs())},[f,u]),l.useEffect(()=>{const j=()=>g({});return document.addEventListener(En,j),()=>document.removeEventListener(En,j)},[]),c.jsx(se.div,{...d,ref:_,style:{pointerEvents:S?N?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,O.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,C.onPointerDownCapture)})});Zn.displayName=wd;var Cd="DismissableLayerBranch",Sd=l.forwardRef((e,t)=>{const r=l.useContext(Ko),n=l.useRef(null),s=me(t,n);return l.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),c.jsx(se.div,{...e,ref:s})});Sd.displayName=Cd;function Nd(e,t=globalThis?.document){const r=St(e),n=l.useRef(!1),s=l.useRef(()=>{});return l.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let d=function(){Yo(_d,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=d,t.addEventListener("click",s.current,{once:!0})):d()}else t.removeEventListener("click",s.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Ed(e,t=globalThis?.document){const r=St(e),n=l.useRef(!1);return l.useEffect(()=>{const s=o=>{o.target&&!n.current&&Yo(kd,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Gs(){const e=new CustomEvent(En);document.dispatchEvent(e)}function Yo(e,t,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?vd(s,o):s.dispatchEvent(o)}var on="focusScope.autoFocusOnMount",an="focusScope.autoFocusOnUnmount",Xs={bubbles:!1,cancelable:!0},jd="FocusScope",Hn=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...a}=e,[i,d]=l.useState(null),u=St(s),f=St(o),m=l.useRef(null),x=me(t,p=>d(p)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let p=function(S){if(g.paused||!i)return;const N=S.target;i.contains(N)?m.current=N:it(m.current,{select:!0})},b=function(S){if(g.paused||!i)return;const N=S.relatedTarget;N!==null&&(i.contains(N)||it(m.current,{select:!0}))},w=function(S){if(document.activeElement===document.body)for(const C of S)C.removedNodes.length>0&&it(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const y=new MutationObserver(w);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),y.disconnect()}}},[n,i,g.paused]),l.useEffect(()=>{if(i){Qs.add(g);const p=document.activeElement;if(!i.contains(p)){const w=new CustomEvent(on,Xs);i.addEventListener(on,u),i.dispatchEvent(w),w.defaultPrevented||(Rd(Id(Go(i)),{select:!0}),document.activeElement===p&&it(i))}return()=>{i.removeEventListener(on,u),setTimeout(()=>{const w=new CustomEvent(an,Xs);i.addEventListener(an,f),i.dispatchEvent(w),w.defaultPrevented||it(p??document.body,{select:!0}),i.removeEventListener(an,f),Qs.remove(g)},0)}}},[i,u,f,g]);const _=l.useCallback(p=>{if(!r&&!n||g.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(b&&w){const y=p.currentTarget,[S,N]=Ad(y);S&&N?!p.shiftKey&&w===N?(p.preventDefault(),r&&it(S,{select:!0}
vendor: 4,129 bytes, line 1
1)):p.shiftKey&&w===S&&(p.preventDefault(),r&&it(N,{select:!0})):w===y&&p.preventDefault()}},[r,n,g.paused]);return c.jsx(se.div,{tabIndex:-1,...a,ref:x,onKeyDown:_})});Hn.displayName=jd;function Rd(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(it(n,{select:t}),document.activeElement!==r)return}function Ad(e){const t=Go(e),r=Js(t,e),n=Js(t.reverse(),e);return[r,n]}function Go(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Js(e,t){for(const r of e)if(!Od(r,{upTo:t}))return r}function Od(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Td(e){return e instanceof HTMLInputElement&&"select"in e}function it(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Td(e)&&t&&e.select()}}var Qs=Pd();function Pd(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=eo(e,t),e.unshift(t)},remove(t){e=eo(e,t),e[0]?.resume()}}}function eo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Id(e){return e.filter(t=>t.tagName!=="A")}var Dd="Portal",qn=l.forwardRef((e,t)=>{const{container:r,...n}=e,[s,o]=l.useState(!1);_e(()=>o(!0),[]);const a=r||s&&globalThis?.document?.body;return a?ud.createPortal(c.jsx(se.div,{...n,ref:t}),a):null});qn.displayName=Dd;function Md(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var mr=e=>{const{present:t,children:r}=e,n=Vd(t),s=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),o=me(n.ref,Ld(s));return typeof r=="function"||n.isPresent?l.cloneElement(s,{ref:o}):null};mr.displayName="Presence";function Vd(e){const[t,r]=l.useState(),n=l.useRef(null),s=l.useRef(e),o=l.useRef("none"),a=e?"mounted":"unmounted",[i,d]=Md(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=gr(n.current);o.current=i==="mounted"?u:"none"},[i]),_e(()=>{const u=n.current,f=s.current;if(f!==e){const x=o.current,g=gr(u);e?d("MOUNT"):g==="none"||u?.display==="none"?d("UNMOUNT"):d(f&&x!==g?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,d]),_e(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=g=>{const p=gr(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(d("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},x=g=>{g.target===t&&(o.current=gr(n.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function gr(e){return e?.animationName||"none"}function Ld(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var cn=0;function Xo(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??to()),document.body.insertAdjacentElement("beforeend",e[1]??to()),cn++,()=>{cn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cn--}},[])}function to(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,651 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var Ye=function(){return Ye=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ye.apply(this,arguments)};function Jo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function Fd(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var _r="right-scroll-bar-position",kr="width-before-scroll-bar",$d="with-scroll-bars-hidden",Bd="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wd(e,t){var r=l.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var zd=typeof window<"u"?l.useLayoutEffect:l.useEffect,ro=new WeakMap;function Ud(e,t){var r=Wd(null,function(n){return e.forEach(function(s){return ln(s,n)})});return zd(function(){var n=ro.get(r);if(n){var s=new Set(n),o=new Set(e),a=r.current;s.forEach(function(i){o.has(i)||ln(i,null)}),o.forEach(function(i){s.has(i)||ln(i,a)})}ro.set(r,e)},[e]),r}function Zd(e){return e}function Hd(e,t){t===void 0&&(t=Zd);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var a=t(o,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(i){return o(i)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(o),a=r}var d=function(){var f=a;a=[],f.forEach(o)},u=function(){return Promise.resolve().then(d)};u(),r={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),r}}}};return s}function qd(e){e===void 0&&(e={});var t=Hd(null);return t.options=Ye({async:!0,ssr:!1},e),t}var Qo=function(e){var t=e.sideCar,r=Jo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,Ye({},r))};Qo.isSideCarExport=!0;function Kd(e,t){return e.useMedium(t),Qo}var ea=qd(),dn=function(){},zr=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:dn,onWheelCapture:dn,onTouchMoveCapture:dn}),s=n[0],o=n[1],a=e.forwardProps,i=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,m=e.shards,x=e.sideCar,g=e.noRelative,_=e.noIsolation,p=e.inert,b=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,S=e.gapMode,N=Jo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=x,O=Ud([r,t]),j=Ye(Ye({},N),s);return l.createElement(l.Fragment,null,f&&l.createElement(C,{sideCar:ea,removeScrollBar:u,shards:m,noRelative:g,noIsolation:_,inert:p,setCallbacks:o,allowPinchZoom:!!b,lockRef:r,gapMode:S}),a?l.cloneElement(l.Children.only(i),Ye(Ye({},j),{ref:O})):l.createElement(y,Ye({},j,{className:d,ref:O}),i))});zr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zr.classNames={fullWidth:kr,zeroRight:_r};var Yd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yd();return t&&e.setAttribute("nonce",t),e}function Xd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Gd())&&(Xd(t,r),Jd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eu=function(){var e=Qd();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ta=function(){var e=eu(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},tu={left:0,top:0,right:0,gap:0},un=function(e){return parseInt(e||"",10)||0},ru=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[un(r),un(n),un(s)]},nu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tu;var t=ru(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},su=ta(),$t="data-scroll-locked",ou=function(e,t,r,n){var s=e.left,o=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
2  .`.concat($d,` {
3   overflow: hidden `).concat(n,`;
4   padding-right: `).concat(i,"px ").concat(n,`;
5  }
6  body[`).concat($t,`] {
7    overflow: hidden `).concat(n,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10    padding-left: `.concat(s,`px;
11    padding-top: `).concat(o,`px;
12    padding-right: `).concat(a,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(i,"px ").concat(n,`;
16    `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(_r,` {
20    right: `).concat(i,"px ").concat(n,`;
21  }
22  
23  .`).concat(kr,` {
24    margin-right: `).concat(i,"px ").concat(n,`;
25  }
26  
27  .`).concat(_r," .").concat(_r,` {
28    right: 0 `).concat(n,`;
29  }
30  
31  .`).concat(kr," .").concat(kr,` {
32    margin-right: 0 `).concat(n,`;
33  }
34  
35  body[`).concat($t,`] {
36    `).concat(Bd,": ").concat(i,`px;
37  }
38`)},no=function(){var e=parseInt(document.body.getAttribute($t)||"0",10);return isFinite(e)?e:0},au=function(){l.useEffect(function(){return document.body.setAttribute($t,(no()+1).toString()),function(){var e=no()-1;e<=0?document.body.removeAttribute($t):document.body.setAttribute($t,e.toString())}},[])},iu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;au();var o=l.useMemo(function(){return nu(s)},[s]);return l.createElement(su,{styles:ou(o,!t,s,r?"":"!important")})},jn=!1;if(typeof window<"u")try{var xr=Object.defineProperty({},"passive",{get:function(){return jn=!0,!0}});window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{jn=!1}var It=jn?{passive:!1}:!1,cu=function(e){return e.tagName==="TEXTAREA"},ra=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!cu(e)&&r[t]==="visible")},lu=function(e){return ra(e,"overflowY")},du=function(e){return ra(e,"overflowX")},so=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=na(e,n);
vendor: 8,931 bytes, lines 38-41
38if(s){var o=sa(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},uu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},fu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},na=function(e,t){return e==="v"?lu(t):du(t)},sa=function(e,t){return e==="v"?uu(t):fu(t)},mu=function(e,t){return e==="h"&&t==="rtl"?-1:1},hu=function(e,t,r,n,s){var o=mu(e,window.getComputedStyle(t).direction),a=o*n,i=r.target,d=t.contains(i),u=!1,f=a>0,m=0,x=0;do{if(!i)break;var g=sa(e,i),_=g[0],p=g[1],b=g[2],w=p-b-o*_;(_||w)&&na(e,i)&&(m+=w,x+=_);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&i!==document.body||d&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(x)<1)&&(u=!0),u},yr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},ao=function(e){return e&&"current"in e?e.current:e},pu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gu=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},xu=0,Dt=[];function yu(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),s=l.useState(xu++)[0],o=l.useState(ta)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=Fd([e.lockRef.current],(e.shards||[]).map(ao),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var w=yr(p),y=r.current,S="deltaX"in p?p.deltaX:y[0]-w[0],N="deltaY"in p?p.deltaY:y[1]-w[1],C,O=p.target,j=Math.abs(S)>Math.abs(N)?"h":"v";if("touches"in p&&j==="h"&&O.type==="range")return!1;var $=window.getSelection(),z=$&&$.anchorNode,H=z?z===O||z.contains(O):!1;if(H)return!1;var Y=so(j,O);if(!Y)return!0;if(Y?C=j:(C=j==="v"?"h":"v",Y=so(j,O)),!Y)return!1;if(!n.current&&"changedTouches"in p&&(S||N)&&(n.current=C),!C)return!0;var V=n.current||C;return hu(V,b,p,V==="h"?S:N)},[]),d=l.useCallback(function(p){var b=p;if(!(!Dt.length||Dt[Dt.length-1]!==o)){var w="deltaY"in b?oo(b):yr(b),y=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&pu(C.delta,w)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var S=(a.current.shards||[]).map(ao).filter(Boolean).filter(function(C){return C.contains(b.target)}),N=S.length>0?i(b,S[0]):!a.current.noIsolation;N&&b.cancelable&&b.preventDefault()}}},[]),u=l.useCallback(function(p,b,w,y){var S={name:p,delta:b,target:w,should:y,shadowParent:vu(w)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(N){return N!==S})},1)},[]),f=l.useCallback(function(p){r.current=yr(p),n.current=void 0},[]),m=l.useCallback(function(p){u(p.type,oo(p),p.target,i(p,e.lockRef.current))},[]),x=l.useCallback(function(p){u(p.type,yr(p),p.target,i(p,e.lockRef.current))},[]);l.useEffect(function(){return Dt.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",d,It),document.addEventListener("touchmove",d,It),document.addEventListener("touchstart",f,It),function(){Dt=Dt.filter(function(p){return p!==o}),document.removeEventListener("wheel",d,It),document.removeEventListener("touchmove",d,It),document.removeEventListener("touchstart",f,It)}},[]);var g=e.removeScrollBar,_=e.inert;return l.createElement(l.Fragment,null,_?l.createElement(o,{styles:gu(s)}):null,g?l.createElement(iu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bu=Kd(ea,yu);var Kn=l.forwardRef(function(e,t){return l.createElement(zr,Ye({},e,{ref:t,sideCar:bu}))});Kn.classNames=zr.classNames;var wu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mt=new WeakMap,vr=new WeakMap,br={},fn=0,oa=function(e){return e&&(e.host||oa(e.parentNode))},_u=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=oa(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ku=function(e,t,r,n){var s=_u(t,Array.isArray(e)?e:[e]);br[r]||(br[r]=new WeakMap);var o=br[r],a=[],i=new Set,d=new Set(s),u=function(m){!m||i.has(m)||(i.add(m),u(m.parentNode))};s.forEach(u);var f=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(x){if(i.has(x))f(x);else try{var g=x.getAttribute(n),_=g!==null&&g!=="false",p=(Mt.get(x)||0)+1,b=(o.get(x)||0)+1;Mt.set(x,p),o.set(x,b),a.push(x),p===1&&_&&vr.set(x,!0),b===1&&x.setAttribute(r,"true"),_||x.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",x,w)}})};return f(t),i.clear(),fn++,function(){a.forEach(function(m){var x=Mt.get(m)-1,g=o.get(m)-1;Mt.set(m,x),o.set(m,g),x||(vr.has(m)||m.removeAttribute(n),vr.delete(m)),g||m.removeAttribute(r)}),fn--,fn||(Mt=new WeakMap,Mt=new WeakMap,vr=new WeakMap,br={})}},aa=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=wu(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live], script"))),ku(n,s,r,"aria-hidden")):function(){return null}};function Cu(e){const t=Su(e),r=l.forwardRef((n,s)=>{const{children:o,...a}=n,i=l.Children.toArray(o),d=i.find(Eu);if(d){const u=d.props.children,f=i.map(m=>m===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:s,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function Su(e){const t=l.forwardRef((r,n)=>{const{children:s,...o}=r;if(l.isValidElement(s)){const a=Ru(s),i=ju(o,s.props);return s.type!==l.Fragment&&(i.ref=n?Fr(n,a):a),l.cloneElement(s,i)}return l.Children.count(s)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nu=Symbol("radix.slottable");function Eu(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nu}function ju(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...i)=>{const d=o(...i);return s(...i),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function Ru(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ur="Dialog",[ia]=ur(Ur),[Au,Ue]=ia(Ur),ca=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:a=!0}=e,i=l.useRef(null),d=l.useRef(null),[u,f]=Tr({prop:n,defaultProp:s??!1,onChange:o,caller:Ur});return c.jsx(Au,{scope:t,triggerRef:i,contentRef:d,contentId:Ft(),titleId:Ft(),descriptionId:Ft(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:a,children:r})};ca.displayName=Ur;var la="DialogTrigger",Ou=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ue(la,r),o=me(t,s.triggerRef);return c.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Xn(s.open),...n,ref:o,onClick:ce(e.onClick,s.onOpenToggle)})});Ou.displayName=la;var Yn="DialogPortal",[Tu,da]=ia(Yn,{forceMount:void 0}),ua=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=Ue(Yn,t);return c.jsx(Tu,{scope:t,forceMount:r,children:l.Children.map(n,a=>c.jsx(mr,{present:r||o.open,children:c.jsx(qn,{asChild:!0,container:s,children:a})}))})};ua.displayName=Yn;var Pr="DialogOverlay",fa=l.forwardRef((e,t)=>{const r=da(Pr,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Ue(Pr,e.__scopeDialog);return o.modal?c.jsx(mr,{present:n||o.open,children:c.jsx(Iu,{...s,ref:t})}):null});fa.displayName=Pr;var Pu=Cu("DialogOverlay.RemoveScroll"),Iu=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ue(Pr,r);return c.jsx(Kn,{as:Pu,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(se.div,{"data-state":Xn(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Nt="DialogContent",ma=l.forwardRef((e,t)=>{const r=da(Nt,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=Ue(Nt,e.__scopeDialog);return c.jsx(mr,{present:n||o.open,children:o.modal?c.jsx(Du,{...s,ref:t}):c.jsx(Mu,{...s,ref:t})})});ma.displayName=Nt;var Du=l.forwardRef((e,t)=>
vendor: 4,091 bytes, lines 41-45
41{const r=Ue(Nt,e.__scopeDialog),n=l.useRef(null),s=me(t,r.contentRef,n);return l.useEffect(()=>{const o=n.current;if(o)return aa(o)},[]),c.jsx(ha,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,o=>{o.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&o.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,o=>o.preventDefault())})}),Mu=l.forwardRef((e,t)=>{const r=Ue(Nt,e.__scopeDialog),n=l.useRef(!1),s=l.useRef(!1);return c.jsx(ha,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=o.target;r.triggerRef.current?.contains(a)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),ha=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...a}=e,i=Ue(Nt,r),d=l.useRef(null),u=me(t,d);return Xo(),c.jsxs(c.Fragment,{children:[c.jsx(Hn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:c.jsx(Zn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Xn(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Vu,{titleId:i.titleId}),c.jsx(Fu,{contentRef:d,descriptionId:i.descriptionId})]})]})}),Gn="DialogTitle",pa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ue(Gn,r);return c.jsx(se.h2,{id:s.titleId,...n,ref:t})});pa.displayName=Gn;var ga="DialogDescription",xa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ue(ga,r);return c.jsx(se.p,{id:s.descriptionId,...n,ref:t})});xa.displayName=ga;var ya="DialogClose",va=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=Ue(ya,r);return c.jsx(se.button,{type:"button",...n,ref:t,onClick:ce(e.onClick,()=>s.onOpenChange(!1))})});va.displayName=ya;function Xn(e){return e?"open":"closed"}var ba="DialogTitleWarning",[zh,wa]=sd(ba,{contentName:Nt,titleName:Gn,docsSlug:"dialog"}),Vu=({titleId:e})=>{const t=wa(ba),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Lu="DialogDescriptionWarning",Fu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wa(Lu).contentName}}.`;return l.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},$u=ca,Bu=ua,_a=fa,ka=ma,Ca=pa,Sa=xa,Wu=va;const Na=$u,zu=Bu,Ea=l.forwardRef(({className:e,...t},r)=>c.jsx(_a,{ref:r,className:we("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ea.displayName=_a.displayName;const Jn=l.forwardRef(({className:e,children:t,...r},n)=>c.jsxs(zu,{children:[c.jsx(Ea,{}),c.jsxs(ka,{ref:n,className:we("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,c.jsxs(Wu,{className:"absolute right-4 top-4 roun
45ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[c.jsx(Yc,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Jn.displayName=ka.displayName;const Qn=({className:e,...t})=>c.jsx("div",{className:we("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Qn.displayName="DialogHeader";const ir=l.forwardRef(({className:e,...t},r)=>c.jsx(Ca,{ref:r,className:we("text-lg font-semibold leading-none tracking-tight",e),...t}));ir.displayName=Ca.displayName;const cr=l.forwardRef(({className:e,...t},r)=>c.jsx(Sa,{ref:r,className:we("text-sm text-muted-foreground",e),...t}));cr.displayName=Sa.displayName;const dt=l.forwardRef(({className:e,type:t,...r},n)=>c.jsx("input",{type:t,className:we("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));dt.displayName="Input";var Uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zu=Uu.reduce((e,t)=>{const r=sc(`Primitive.${t}`),n=l.forwardRef((s,o)=>{const{asChild:a,...i}=s,d=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(d,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Hu="Label",ja=l.forwardRef((e,t)=>c.jsx(Zu.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ja.displayName=Hu;var Ra=ja;const qu=oc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),es=l.forwardRef(({className:e,...t},r)=>c.jsx(Ra,{ref:r,className:we(qu(),e),...t}));es.displayName=Ra.displayName;const ts=l.forwardRef(({className:e,...t},r)=>c.jsx("textarea",{className:we("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));ts.displayName="Textarea";function Aa(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oa(e){const[t,r]=l.useState(void 0);return _e(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let a,i;if("borderBoxSize"in o){const d=o.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Zr="Checkbox",[Ku]=ur(Zr),[Yu,rs]=Ku(Zr);function Gu(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:o,form:a,name:i,onCheckedChange:d,required:u,value:f="on",internal_do_not_use_render:m}=e,[x,g]=Tr({prop:r,defaultProp:s??!1,onChange:d,caller:Zr}),[_,p]=l.useState(null),[b,w]=l.useState(null),y=l.useRef(!1),S=_?!!a||!!_.closest("form"):!0,N={checked:x,disabled:o,setChecked:g,control:_,setControl:p,name:i,form:a,value:f,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:mt(s)?!1:s,isFormControl:S,bubbleInput:b,setBubbleInput:w};return c.jsx(Yu,{scope:t,...N,children:Xu(m)?m(N):n})}var Ta="CheckboxTrigger",Pa=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:o,value:a,disabled:i,checked:d,required:u,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:x,isFormControl:g,bubbleInput:_}=rs(Ta,e),p=me(s,f),b=l.useRef(d);return l.useEffect(()=>{const w=o?.form;if(w){const y=()=>m(b.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[o,m]),c.jsx(se.button,{type:"button",role:"checkbox","aria-checked":mt(d)?"mixed":d,"aria-required":u,"data-state":La(d),"data-disabled":i?"":void 0,disabled:i,value:a,...n,ref:p,onKeyDown:ce(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:ce(r,w=>{m(y=>mt(y)?!0:!y),_&&g&&(x.current=w.isPropagationStopped(),x.current||w.stopPropagation())})})});Pa.displayName=Ta;var ns=l.forwardRef((e,t)=>
vendor: 4,997 bytes, line 45
45{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:o,required:a,disabled:i,value:d,onCheckedChange:u,form:f,...m}=e;return c.jsx(Gu,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:i,required:a,onCheckedChange:u,name:n,form:f,value:d,internal_do_not_use_render:({isFormControl:x})=>c.jsxs(c.Fragment,{children:[c.jsx(Pa,{...m,ref:t,__scopeCheckbox:r}),x&&c.jsx(Va,{__scopeCheckbox:r})]})})});ns.displayName=Zr;var Ia="CheckboxIndicator",Da=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,o=rs(Ia,r);return c.jsx(mr,{present:n||mt(o.checked)||o.checked===!0,children:c.jsx(se.span,{"data-state":La(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});Da.displayName=Ia;var Ma="CheckboxBubbleInput",Va=l.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:a,required:i,disabled:d,name:u,value:f,form:m,bubbleInput:x,setBubbleInput:g}=rs(Ma,e),_=me(r,g),p=Aa(o),b=Oa(n);l.useEffect(()=>{const y=x;if(!y)return;const S=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(S,"checked").set,O=!s.current;if(p!==o&&C){const j=new Event("click",{bubbles:O});y.indeterminate=mt(o),C.call(y,mt(o)?!1:o),y.dispatchEvent(j)}},[x,p,o,s]);const w=l.useRef(mt(o)?!1:o);return c.jsx(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??w.current,required:i,disabled:d,name:u,value:f,form:m,...t,tabIndex:-1,ref:_,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Va.displayName=Ma;function Xu(e){return typeof e=="function"}function mt(e){return e==="indeterminate"}function La(e){return mt(e)?"indeterminate":e?"checked":"unchecked"}const Rn=l.forwardRef(({className:e,...t},r)=>c.jsx(ns,{ref:r,className:we("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:c.jsx(Da,{className:we("grid place-content-center text-current"),children:c.jsx(Kt,{className:"h-4 w-4"})})}));Rn.displayName=ns.displayName;function io(e,[t,r]){return Math.min(r,Math.max(t,e))}function co(e){const t=Ju(e),r=l.forwardRef((n,s)=>{const{children:o,...a}=n,i=l.Children.toArray(o),d=i.find(ef);if(d){const u=d.props.children,f=i.map(m=>m===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:s,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function Ju(e){const t=l.forwardRef((r,n)=>{const{children:s,...o}=r;if(l.isValidElement(s)){const a=rf(s),i=tf(o,s.props);return s.type!==l.Fragment&&(i.ref=n?Fr(n,a):a),l.cloneElement(s,i)}return l.Children.count(s)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qu=Symbol("radix.slottable");function ef(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qu}function tf(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...i)=>{const d=o(...i);return s(...i),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function rf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function nf(e){const t=e+"CollectionProvider",[r,n]=ur(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:b,children:w}=p,y=he.useRef(null),S=he.useRef(new Map).current;return c.jsx(s,{scope:b,itemMap:S,collectionRef:y,children:w})};a.displayName=t;const i=e+"CollectionSlot",d=co(i),u=he.forwardRef((p,b)=>{const{scope:w,children:y}=p,S=o(i,w),N=me(b,S.collectionRef);return c.jsx(d,{ref:N,children:y})});u.displayName=i;const f=e+"CollectionItemSlot",m="data-radix-collection-item",x=co(f),g=he.forwardRef((p,b)=>{const{scope:w,children:y,...S}=p,N=he.useRef(null),C=me(b,N),O=o(f,w);return he.useEffect(()=>(O.itemMap.set(N,{ref:N,...S}),()=>{O.itemMap.delete(N)})),c.jsx(x,{[m]:"",ref:C,children:y})});g.displayName=f;function _(p){const b=o(e+"CollectionConsumer",p);return he.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const S=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(b.itemMap.values()).sort((O,j)=>S.indexOf(O.ref.current)-S.indexOf(j.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},_,n]}var sf=l.createContext(void 0);function of(e){const t=l.useContext(sf);return e||t||"ltr"}const af=["top","right","bottom","left"],xt=Math.min,Ae=Math.max,Ir=Math.round,wr=Math.floor,Je=e=>({x:e,y:e}
vendor: 11,862 bytes, line 45
45),cf={left:"right",right:"left",bottom:"top",top:"bottom"};function An(e,t,r){return Ae(e,xt(t,r))}function rt(e,t){return typeof e=="function"?e(t):e}function nt(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function ss(e){return e==="x"?"y":"x"}function os(e){return e==="y"?"height":"width"}function Ge(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function as(e){return ss(Ge(e))}function lf(e,t,r){r===void 0&&(r=!1);const n=Yt(e),s=as(e),o=os(s);let a=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Dr(a)),[a,Dr(a)]}function df(e){const t=Dr(e);return[On(e),t,On(t)]}function On(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lo=["left","right"],uo=["right","left"],uf=["top","bottom"],ff=["bottom","top"];function mf(e,t,r){switch(e){case"top":case"bottom":return r?t?uo:lo:t?lo:uo;case"left":case"right":return t?uf:ff;default:return[]}}function hf(e,t,r,n){const s=Yt(e);let o=mf(nt(e),r==="start",n);return s&&(o=o.map(a=>a+"-"+s),t&&(o=o.concat(o.map(On)))),o}function Dr(e){const t=nt(e);return cf[t]+e.slice(t.length)}function pf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fa(e){return typeof e!="number"?pf(e):{top:e,right:e,bottom:e,left:e}}function Mr(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function fo(e,t,r){let{reference:n,floating:s}=e;const o=Ge(t),a=as(t),i=os(a),d=nt(t),u=o==="y",f=n.x+n.width/2-s.width/2,m=n.y+n.height/2-s.height/2,x=n[i]/2-s[i]/2;let g;switch(d){case"top":g={x:f,y:n.y-s.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:m};break;case"left":g={x:n.x-s.width,y:m};break;default:g={x:n.x,y:n.y}}switch(Yt(t)){case"start":g[a]-=x*(r&&u?-1:1);break;case"end":g[a]+=x*(r&&u?-1:1);break}return g}async function gf(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:o,rects:a,elements:i,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:x=!1,padding:g=0}=rt(t,e),_=Fa(g),b=i[x?m==="floating"?"reference":"floating":m],w=Mr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:d})),y=m==="floating"?{x:n,y:s,width:a.floating.width,height:a.floating.height}:a.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),N=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},C=Mr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:S,strategy:d}):y);return{top:(w.top-C.top+_.top)/N.y,bottom:(C.bottom-w.bottom+_.bottom)/N.y,left:(w.left-C.left+_.left)/N.x,right:(C.right-w.right+_.right)/N.x}}const xf=50,yf=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:a}=r,i=a.detectOverflow?a:{...a,detectOverflow:gf},d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:m}=fo(u,n,d),x=n,g=0;const _={};for(let p=0;p<o.length;p++){const b=o[p];if(!b)continue;const{name:w,fn:y}=b,{x:S,y:N,data:C,reset:O}=await y({x:f,y:m,initialPlacement:n,placement:x,strategy:s,middlewareData:_,rects:u,platform:i,elements:{reference:e,floating:t}});f=S??f,m=N??m,_[w]={..._[w],...C},O&&g<xf&&(g++,typeof O=="object"&&(O.placement&&(x=O.placement),O.rects&&(u=O.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):O.rects),{x:f,y:m}=fo(u,x,d)),p=-1)}return{x:f,y:m,placement:x,strategy:s,middlewareData:_}},vf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:a,elements:i,middlewareData:d}=t,{element:u,padding:f=0}=rt(e,t)||{};if(u==null)return{};const m=Fa(f),x={x:r,y:n},g=as(s),_=os(g),p=await a.getDimensions(u),b=g==="y",w=b?"top":"left",y=b?"bottom":"right",S=b?"clientHeight":"clientWidth",N=o.reference[_]+o.reference[g]-x[g]-o.floating[_],C=x[g]-o.reference[g],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let j=O?O[S]:0;(!j||!await(a.isElement==null?void 0:a.isElement(O)))&&(j=i.floating[S]||o.floating[_]);const $=N/2-C/2,z=j/2-p[_]/2-1,H=xt(m[w],z),Y=xt(m[y],z),V=H,I=j-p[_]-Y,B=j/2-p[_]/2+$,J=An(V,B,I),Z=!d.arrow&&Yt(s)!=null&&B!==J&&o.reference[_]/2-(B<V?H:Y)-p[_]/2<0,G=Z?B<V?B-V:B-I:0;return{[g]:x[g]+G,data:{[g]:J,centerOffset:B-J-G,...Z&&{alignmentOffset:G}},reset:Z}}}),bf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:o,rects:a,initialPlacement:i,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:p=!0,...b}=rt(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const w=nt(s),y=Ge(i),S=nt(i)===i,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=x||(S||!p?[Dr(i)]:df(i)),O=_!=="none";!x&&O&&C.push(...hf(i,p,_,N));const j=[i,...C],$=await d.detectOverflow(t,b),z=[];let H=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&z.push($[w]),m){const B=lf(s,a,N);z.push($[B[0]],$[B[1]])}if(H=[...H,{placement:s,overflows:z}],!z.every(B=>B<=0)){var Y,V;const B=(((Y=o.flip)==null?void 0:Y.index)||0)+1,J=j[B];if(J&&(!(m==="alignment"?y!==Ge(J):!1)||H.every(W=>Ge(W.placement)===y?W.overflows[0]>0:!0)))return{data:{index:B,overflows:H},reset:{placement:J}};let Z=(V=H.filter(G=>G.overflows[0]<=0).sort((G,W)=>G.overflows[1]-W.overflows[1])[0])==null?void 0:V.placement;if(!Z)switch(g){case"bestFit":{var I;const G=(I=H.filter(W=>{if(O){const re=Ge(W.placement);return re===y||re==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(re=>re>0).reduce((re,ye)=>re+ye,0)]).sort((W,re)=>W[1]-re[1])[0])==null?void 0:I[0];G&&(Z=G);break}case"initialPlacement":Z=i;break}if(s!==Z)return{reset:{placement:Z}}}return{}}}};function mo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ho(e){return af.some(t=>e[t]>=0)}const wf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...o}=rt(e,t);switch(s){case"referenceHidden":{const a=await n.detectOverflow(t,{...o,elementContext:"reference"}),i=mo(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ho(i)}}}case"escaped":{const a=await n.detectOverflow(t,{...o,altBoundary:!0}),i=mo(a,r.floating);return{data:{escapedOffsets:i,escaped:ho(i)}}}default:return{}}}}},$a=new Set(["left","top"]);async function _f(e,t){const{placement:r,platform:n,elements:s}=e,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),a=nt(r),i=Yt(r),d=Ge(r)==="y",u=$a.has(a)?-1:1,f=o&&d?-1:1,m=rt(t,e);let{mainAxis:x,crossAxis:g,alignmentAxis:_}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof _=="number"&&(g=i==="end"?_*-1:_),d?{x:g*f,y:x*u}:{x:x*u,y:g*f}}const kf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:a,middlewareData:i}=t,d=await _f(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:s+d.x,y:o+d.y,data:{...d,placement:a}}}}},Cf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:d={fn:w=>{let{x:y,y:S}=w;return{x:y,y:S}}},...u}=rt(e,t),f={x:r,y:n},m=await o.detectOverflow(t,u),x=Ge(nt(s)),g=ss(x);let _=f[g],p=f[x];if(a){const w=g==="y"?"top":"left",y=g==="y"?"bottom":"right",S=_+m[w],N=_-m[y];_=An(S,_,N)}if(i){const w=x==="y"?"top":"left",y=x==="y"?"bottom":"right",S=p+m[w],N=p-m[y];p=An(S,p,N)}const b=d.fn({...t,[g]:_,[x]:p});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[g]:a,[x]:i}}}}}},Sf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:a}=t,{offset:i=0,mainAxis:d=!0,crossAxis:u=!0}=rt(e,t),f={x:r,y:n},m=Ge(s),x=ss(m);let g=f[x],_=f[m];const p=rt(i,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const S=x==="y"?"height":"width",N=o.reference[x]-o.floating[S]+b.mainAxis,C=o.reference[x]+o.reference[S]-b.mainAxis;g<N?g=N:g>C&&(g=C)}if(u){var w,y;const S=x==="y"?"width":"height",N=$a.has(nt(s)),C=o.reference[m]-o.floating[S]+(N&&((w=a.offset)==null?void 0:w[m])||0)+(N?0:b.crossAxis),O=o.reference[m]+o.reference[S]+(N?0:((y=a.offset)==null?void 0:y[m])||0)-(N?b.crossAxis:0);_<C?_=C:_>O&&(_=O)}return{[x]:g,[m]:_}}}},Nf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:o,platform:a,elements:i}=t,{apply:d=()=>{},...u}=rt(e,t),f=await a.detectOverflow(t,u),m=nt(s),x=Yt(s),g=Ge(s)==="y",{width:_,height:p}=o.floating;let b,w;m==="top"||m==="bottom"?(b=m,w=x===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(w=m,b=x==="end"?"top":"bottom");const y=p-f.top-f.bottom,S=_-f.left-f.right,N=xt(p-f[b],y),C=xt(_-f[w],S),O=!t.middlewareData.shift;let j=N,$=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&($=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(j=y),O&&!x){const H=Ae(f.left,0),Y=Ae(f.right,0),V=Ae(f.top,0),I=Ae(f.bottom,0);g?$=_-2*(H!==0||Y!==0?H+Y:Ae(f.left,f.right)):j=p-2*(V!==0||I!==0?V+I:Ae(f.top,f.bottom))}await d({...t,availableWidth:$,availableHeight:j});const z=await a.getDimensions(i.floating);return _!==z.width||p!==z.height?{reset:{rects:!0}}:{}}}};function Hr(){return typeof window<"u"}function Gt(e){return Ba(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qe(e){var t;return(t=(Ba(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ba(e){return Hr()?e instanceof Node||e instanceof Oe(e).Node:!1}function We(e){return Hr()?e instanceof Element||e instanceof Oe(e).Element:!1}function st(e){return Hr()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function po(e){return!Hr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function hr(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function Ef(e){return/^(table|td|th)$/.test(Gt(e))}function qr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const jf=/transform|translate|scale|rotate|perspective|filter/,Rf=/paint|layout|strict|content/,wt=e=>!!e&&e!=="none";let mn;function is(e){const t=We(e)?ze(e):e;return wt(t.transform)||wt(t.translate)||wt(t.scale)||wt(t.rotate)||wt(t.perspective)||!cs()&&(wt(t.backdropFilter)||wt(t.filter))||jf.test(t.willChange||"")||Rf.test(t.contain||"")}function Af(e){let t=yt(e);for(;st(t)&&!qt(t);){if(is(t))return t;if(qr(t))return null;t=yt(t)}return null}function cs(){return mn==null&&(mn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mn}function qt(e){return/^(html|body|#document)$/.test(Gt(e))}function ze(e){return Oe(e).getComputedStyle(e)}function Kr(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(Gt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||Qe(e);return po(t)?t.host:t}function Wa(e){const t=yt(e);return qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&hr(t)?t:Wa(t)}function lr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Wa(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),a=Oe(s);if(o){const i=Tn(a);
vendor: 4,197 bytes, line 45
45return t.concat(a,a.visualViewport||[],hr(s)?s:[],i&&r?lr(i):[])}else return t.concat(s,lr(s,[],r))}function Tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function za(e){const t=ze(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=st(e),o=s?e.offsetWidth:r,a=s?e.offsetHeight:n,i=Ir(r)!==o||Ir(n)!==a;return i&&(r=o,n=a),{width:r,height:n,$:i}}function ls(e){return We(e)?e:e.contextElement}function Bt(e){const t=ls(e);if(!st(t))return Je(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:o}=za(t);let a=(o?Ir(r.width):r.width)/n,i=(o?Ir(r.height):r.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Of=Je(0);function Ua(e){const t=Oe(e);return!cs()||!t.visualViewport?Of:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Oe(e)?!1:t}function Et(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=ls(e);let a=Je(1);t&&(n?We(n)&&(a=Bt(n)):a=Bt(e));const i=Tf(o,r,n)?Ua(o):Je(0);let d=(s.left+i.x)/a.x,u=(s.top+i.y)/a.y,f=s.width/a.x,m=s.height/a.y;if(o){const x=Oe(o),g=n&&We(n)?Oe(n):n;let _=x,p=Tn(_);for(;p&&n&&g!==_;){const b=Bt(p),w=p.getBoundingClientRect(),y=ze(p),S=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*b.x,N=w.top+(p.clientTop+parseFloat(y.paddingTop))*b.y;d*=b.x,u*=b.y,f*=b.x,m*=b.y,d+=S,u+=N,_=Oe(p),p=Tn(_)}}return Mr({width:f,height:m,x:d,y:u})}function Yr(e,t){const r=Kr(e).scrollLeft;return t?t.left+r:Et(Qe(e)).left+r}function Za(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Yr(e,r),s=r.top+t.scrollTop;return{x:n,y:s}}function Pf(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const o=s==="fixed",a=Qe(n),i=t?qr(t.floating):!1;if(n===a||i&&o)return r;let d={scrollLeft:0,scrollTop:0},u=Je(1);const f=Je(0),m=st(n);if((m||!m&&!o)&&((Gt(n)!=="body"||hr(a))&&(d=Kr(n)),m)){const g=Et(n);u=Bt(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const x=a&&!m&&!o?Za(a,d):Je(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+f.x+x.x,y:r.y*u.y-d.scrollTop*u.y+f.y+x.y}}function If(e){return Array.from(e.getClientRects())}function Df(e){const t=Qe(e),r=Kr(e),n=e.ownerDocument.body,s=Ae(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Ae(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Yr(e);const i=-r.scrollTop;return ze(n).direction==="rtl"&&(a+=Ae(t.clientWidth,n.clientWidth)-s),{width:s,height:o,x:a,y:i}}const go=25;function Mf(e,t){const r=Oe(e),n=Qe(e),s=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,i=0,d=0;if(s){o=s.width,a=s.height;const f=cs();(!f||f&&t==="fixed")&&(i=s.offsetLeft,d=s.offsetTop)}const u=Yr(n);if(u<=0){const f=n.ownerDocument,m=f.body,x=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,_=Math.abs(n.clientWidth-m.clientWidth-g);_<=go&&(o-=_)}else u<=go&&(o+=u);return{width:o,height:a,x:i,y:d}}function Vf(e,t){const r=Et(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,o=st(e)?Bt(e):Je(1),a=e.clientWidth*o.x,i=e.clientHeight*o.y,d=s*o.x,u=n*o.y;return{width:a,height:i,x:d,y:u}}function xo(e,t,r){let n;if(t==="viewport")n=Mf(e,r);else if(t==="document")n=Df(Qe(e));else if(We(t))n=Vf(t,r);else{const s=Ua(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Mr(n)}function Ha(e,t){const r=yt(e);return r===t||!We(r)||qt(r)?!1:ze(r).position==="fixed"||Ha(r,t)}function Lf(e,t){const r=t.get(e);if(r)return r;let n=lr(e,[],!1).filter(i=>We(i)&&Gt(i)!=="body"),s=null;const o=ze(e).position==="fixed";let a=o?yt(e):e;for(;We(a)&&!qt(a);){const i=ze(a),d=is(a);!d&&i.position==="fixed"&&(s=null),(o?!d&&!s:!d&&i.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||hr(a)&&!d&&Ha(e,a))?n=n.filter(f=>f!==a):s=i,a=yt(a)}return t.set(e,n),n}function Ff(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const a=[...r==="clippingAncestors"?qr(t)?[]:Lf(t,this._c):[].concat(r),n],i=xo(t,a[0],s);let d=i.top,u=i.right,f=i.bottom,m=i.left;for(let x=1;x<a.length;x++){const g=xo(t,a[x],s);d=Ae(g.top,d),u=xt(g.right,u),f=xt(g.bottom,f),m=Ae(g.left,m)}
vendor: 9,290 bytes, line 45
45return{width:u-m,height:f-d,x:m,y:d}}function $f(e){const{width:t,height:r}=za(e);return{width:t,height:r}}function Bf(e,t,r){const n=st(t),s=Qe(t),o=r==="fixed",a=Et(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const d=Je(0);function u(){d.x=Yr(s)}if(n||!n&&!o)if((Gt(t)!=="body"||hr(s))&&(i=Kr(t)),n){const g=Et(t,!0,o,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else s&&u();o&&!n&&s&&u();const f=s&&!n&&!o?Za(s,i):Je(0),m=a.left+i.scrollLeft-d.x-f.x,x=a.top+i.scrollTop-d.y-f.y;return{x:m,y:x,width:a.width,height:a.height}}function hn(e){return ze(e).position==="static"}function yo(e,t){if(!st(e)||ze(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Qe(e)===r&&(r=r.ownerDocument.body),r}function qa(e,t){const r=Oe(e);if(qr(e))return r;if(!st(e)){let s=yt(e);for(;s&&!qt(s);){if(We(s)&&!hn(s))return s;s=yt(s)}return r}let n=yo(e,t);for(;n&&Ef(n)&&hn(n);)n=yo(n,t);return n&&qt(n)&&hn(n)&&!is(n)?r:n||Af(e)||r}const Wf=async function(e){const t=this.getOffsetParent||qa,r=this.getDimensions,n=await r(e.floating);return{reference:Bf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zf(e){return ze(e).direction==="rtl"}const Uf={convertOffsetParentRelativeRectToViewportRelativeRect:Pf,getDocumentElement:Qe,getClippingRect:Ff,getOffsetParent:qa,getElementRects:Wf,getClientRects:If,getDimensions:$f,getScale:Bt,isElement:We,isRTL:zf};function Ka(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zf(e,t){let r=null,n;const s=Qe(e);function o(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,d){i===void 0&&(i=!1),d===void 0&&(d=1),o();const u=e.getBoundingClientRect(),{left:f,top:m,width:x,height:g}=u;if(i||t(),!x||!g)return;const _=wr(m),p=wr(s.clientWidth-(f+x)),b=wr(s.clientHeight-(m+g)),w=wr(f),S={rootMargin:-_+"px "+-p+"px "+-b+"px "+-w+"px",threshold:Ae(0,xt(1,d))||1};let N=!0;function C(O){const j=O[0].intersectionRatio;if(j!==d){if(!N)return a();j?a(!1,j):n=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Ka(u,e.getBoundingClientRect())&&a(),N=!1}try{r=new IntersectionObserver(C,{...S,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,S)}r.observe(e)}return a(!0),o}function Hf(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=ls(e),f=s||o?[...u?lr(u):[],...t?lr(t):[]]:[];f.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),o&&w.addEventListener("resize",r)});const m=u&&i?Zf(u,r):null;let x=-1,g=null;a&&(g=new ResizeObserver(w=>{let[y]=w;y&&y.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),r()}),u&&!d&&g.observe(u),t&&g.observe(t));let _,p=d?Et(e):null;d&&b();function b(){const w=Et(e);p&&!Ka(p,w)&&r(),p=w,_=requestAnimationFrame(b)}return r(),()=>{var w;f.forEach(y=>{s&&y.removeEventListener("scroll",r),o&&y.removeEventListener("resize",r)}),m?.(),(w=g)==null||w.disconnect(),g=null,d&&cancelAnimationFrame(_)}}const qf=kf,Kf=Cf,Yf=bf,Gf=Nf,Xf=wf,vo=vf,Jf=Sf,Qf=(e,t,r)=>{const n=new Map,s={platform:Uf,...r},o={...s.platform,_c:n};return yf(e,t,{...s,platform:o})};var em=typeof document<"u",tm=function(){},Cr=em?l.useLayoutEffect:tm;function Vr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Vr(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&e.$$typeof)&&!Vr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ya(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const r=Ya(e);return Math.round(t*r)/r}function pn(e){const t=l.useRef(e);return Cr(()=>{t.current=e}),t}function rm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:a}={},transform:i=!0,whileElementsMounted:d,open:u}=e,[f,m]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,g]=l.useState(n);Vr(x,n)||g(n);const[_,p]=l.useState(null),[b,w]=l.useState(null),y=l.useCallback(W=>{W!==O.current&&(O.current=W,p(W))},[]),S=l.useCallback(W=>{W!==j.current&&(j.current=W,w(W))},[]),N=o||_,C=a||b,O=l.useRef(null),j=l.useRef(null),$=l.useRef(f),z=d!=null,H=pn(d),Y=pn(s),V=pn(u),I=l.useCallback(()=>{if(!O.current||!j.current)return;const W={placement:t,strategy:r,middleware:x};Y.current&&(W.platform=Y.current),Qf(O.current,j.current,W).then(re=>{const ye={...re,isPositioned:V.current!==!1};B.current&&!Vr($.current,ye)&&($.current=ye,fr.flushSync(()=>{m(ye)}))})},[x,t,r,Y,V]);Cr(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[u]);const B=l.useRef(!1);Cr(()=>(B.current=!0,()=>{B.current=!1}),[]),Cr(()=>{if(N&&(O.current=N),C&&(j.current=C),N&&C){if(H.current)return H.current(N,C,I);I()}},[N,C,I,H,z]);const J=l.useMemo(()=>({reference:O,floating:j,setReference:y,setFloating:S}),[y,S]),Z=l.useMemo(()=>({reference:N,floating:C}),[N,C]),G=l.useMemo(()=>{const W={position:r,left:0,top:0};if(!Z.floating)return W;const re=bo(Z.floating,f.x),ye=bo(Z.floating,f.y);return i?{...W,transform:"translate("+re+"px, "+ye+"px)",...Ya(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:ye}},[r,i,Z.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:I,refs:J,elements:Z,floatingStyles:G}),[f,I,J,Z,G])}const nm=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?vo({element:n.current,padding:s}).fn(r):{}:n?vo({element:n,padding:s}).fn(r):{}}}},sm=(e,t)=>{const r=qf(e);return{name:r.name,fn:r.fn,options:[e,t]}},om=(e,t)=>{const r=Kf(e);return{name:r.name,fn:r.fn,options:[e,t]}},am=(e,t)=>({fn:Jf(e).fn,options:[e,t]}),im=(e,t)=>{const r=Yf(e);return{name:r.name,fn:r.fn,options:[e,t]}},cm=(e,t)=>{const r=Gf(e);return{name:r.name,fn:r.fn,options:[e,t]}},lm=(e,t)=>{const r=Xf(e);return{name:r.name,fn:r.fn,options:[e,t]}},dm=(e,t)=>{const r=nm(e);return{name:r.name,fn:r.fn,options:[e,t]}};var um="Arrow",Ga=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...o}=e;return c.jsx(se.svg,{...o,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ga.displayName=um;var fm=Ga,ds="Popper",[Xa,Ja]=ur(ds),[mm,Qa]=Xa(ds),ei=e=>{const{__scopePopper:t,children:r}=e,[n,s]=l.useState(null);return c.jsx(mm,{scope:t,anchor:n,onAnchorChange:s,children:r})};ei.displayName=ds;var ti="PopperAnchor",ri=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,o=Qa(ti,r),a=l.useRef(null),i=me(t,a),d=l.useRef(null);return l.useEffect(()=>{const u=d.current;d.current=n?.current||a.current,u!==d.current&&o.onAnchorChange(d.current)}),n?null:c.jsx(se.div,{...s,ref:i})});ri.displayName=ti;var us="PopperContent",[hm,pm]=Xa(us),ni=l.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:x=!1,updatePositionStrategy:g="optimized",onPlaced:_,...p}=e,b=Qa(us,r),[w,y]=l.useState(null),S=me(t,U=>y(U)),[N,C]=l.useState(null),O=Oa(N),j=O?.width??0,$=O?.height??0,z=n+(o!=="center"?"-"+o:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Y=Array.isArray(u)?u:[u],V=Y.length>0,I={padding:H,boundary:Y.filter(xm),altBoundary:V},{refs:B,floatingStyles:J,placement:Z,isPositioned:G,middlewareData:W}=rm({strategy:"fixed",placement:z,whileElementsMounted:(...U)=>Hf(...U,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[sm({mainAxis:s+$,alignmentAxis:a}),d&&om({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?am():void 0,...I}),d&&im({...I}),cm({...I,apply:({elements:U,rects:le,availableWidth:ve,availableHeight:oe})=>{const{width:ae,height:de}=le.reference,Ne=U.floating.style;Ne.setProperty("--radix-popper-available-width",`${ve}px`),Ne.setProperty("--radix-popper-available-height",`${oe}px`),Ne.setProperty("--radix-popper-anchor-width",`${ae}px`),Ne.setProperty("--radix-popper-anchor-height",`${de}px`)}}),N&&dm({element:N,padding:i}),ym({arrowWidth:j,arrowHeight:$}),x&&lm({strategy:"referenceHidden",...I})]}),[re,ye]=ai(Z),Ie=St(_);_e(()=>{G&&Ie?.()},[G,Ie]);const ot=W.arrow?.x,at=W.arrow?.y,De=W.arrow?.centerOffset!==0,[Me,et]=l.useState();return _e(()=>{w&&et(window.getComputedStyle(w).zIndex)},[w]),c.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:G?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(hm,{scope:r,placedSide:re,onArrowChange:C,arrowX:ot,arrowY:
vendor: 4,547 bytes, line 45
45at,shouldHideArrow:De,children:c.jsx(se.div,{"data-side":re,"data-align":ye,...p,ref:S,style:{...p.style,animation:G?void 0:"none"}})})})});ni.displayName=us;var si="PopperArrow",gm={top:"bottom",right:"left",bottom:"top",left:"right"},oi=l.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,o=pm(si,n),a=gm[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(fm,{...s,ref:r,style:{...s.style,display:"block"}})})});oi.displayName=si;function xm(e){return e!==null}var ym=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,a=s.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,f]=ai(r),m={start:"0%",center:"50%",end:"100%"}[f],x=(s.arrow?.x??0)+i/2,g=(s.arrow?.y??0)+d/2;let _="",p="";return u==="bottom"?(_=a?m:`${x}px`,p=`${-d}px`):u==="top"?(_=a?m:`${x}px`,p=`${n.floating.height+d}px`):u==="right"?(_=`${-d}px`,p=a?m:`${g}px`):u==="left"&&(_=`${n.floating.width+d}px`,p=a?m:`${g}px`),{data:{x:_,y:p}}}});function ai(e){const[t,r="center"]=e.split("-");return[t,r]}var vm=ei,bm=ri,wm=ni,_m=oi;function km(e){const t=Cm(e),r=l.forwardRef((n,s)=>{const{children:o,...a}=n,i=l.Children.toArray(o),d=i.find(Nm);if(d){const u=d.props.children,f=i.map(m=>m===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:s,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function Cm(e){const t=l.forwardRef((r,n)=>{const{children:s,...o}=r;if(l.isValidElement(s)){const a=jm(s),i=Em(o,s.props);return s.type!==l.Fragment&&(i.ref=n?Fr(n,a):a),l.cloneElement(s,i)}return l.Children.count(s)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sm=Symbol("radix.slottable");function Nm(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sm}function Em(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...i)=>{const d=o(...i);return s(...i),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function jm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ii=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Rm="VisuallyHidden",Am=l.forwardRef((e,t)=>c.jsx(se.span,{...e,ref:t,style:{...ii,...e.style}}));Am.displayName=Rm;var Om=[" ","Enter","ArrowUp","ArrowDown"],Tm=[" ","Enter"],jt="Select",[Gr,Xr,Pm]=nf(jt),[Xt]=ur(jt,[Pm,Ja]),Jr=Ja(),[Im,vt]=Xt(jt),[Dm,Mm]=Xt(jt),ci=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:s,onOpenChange:o,value:a,defaultValue:i,onValueChange:d,dir:u,name:f,autoComplete:m,disabled:x,required:g,form:_}=e,p=Jr(t),[b,w]=l.useState(null),[y,S]=l.useState(null),[N,C]=l.useState(!1),O=of(u),[j,$]=Tr({prop:n,defaultProp:s??!1,onChange:o,caller:jt}),[z,H]=Tr({prop:a,defaultProp:i,onChange:d,caller:jt}),Y=l.useRef(null),V=b?_||!!b.closest("form"):!0,[I,B]=l.useState(new Set),J=Array.from(I).map(Z=>Z.props.value).join(";");return c.jsx(vm,{...p,children:c.jsxs(Im,{required:g,scope:t,trigger:b,onTriggerChange:w,valueNode:y,onValueNodeChange:S,valueNodeHasChildren:N,onValueNodeHasChildrenChange:C,contentId:Ft(),value:z,onValueChange:H,open:j,onOpenChange:$,dir:O,triggerPointerDownPosRef:Y,disabled:x,children:[c.jsx(Gr.Provider,{scope:t,children:c.jsx(Dm,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(Z=>{B(G=>new Set(G).add(Z))},[]),onNativeOptionRemove:l.useCallback(Z=>{B(G=>{const W=new Set(G);return W.delete(Z),W})},[]),children:r})}),V?c.jsxs(Ti,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:z,onChange:Z=>H(Z.target.value),disabled:x,form:_,children:[z===void 0?c.jsx("option",{value:""}):null,Array.from(I)]},J):null]})})};ci.displayName=jt;var li="SelectTrigger",di=l.forwardRef((e,t)=>
vendor: 16,994 bytes, line 45
45{const{__scopeSelect:r,disabled:n=!1,...s}=e,o=Jr(r),a=vt(li,r),i=a.disabled||n,d=me(t,a.onTriggerChange),u=Xr(r),f=l.useRef("touch"),[m,x,g]=Ii(p=>{const b=u().filter(S=>!S.disabled),w=b.find(S=>S.value===a.value),y=Di(b,p,w);y!==void 0&&a.onValueChange(y.value)}),_=p=>{i||(a.onOpenChange(!0),g()),p&&(a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(bm,{asChild:!0,...o,children:c.jsx(se.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Pi(a.value)?"":void 0,...s,ref:d,onClick:ce(s.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&_(p)}),onPointerDown:ce(s.onPointerDown,p=>{f.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(_(p),p.preventDefault())}),onKeyDown:ce(s.onKeyDown,p=>{const b=m.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&x(p.key),!(b&&p.key===" ")&&Om.includes(p.key)&&(_(),p.preventDefault())})})})});di.displayName=li;var ui="SelectValue",fi=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,children:o,placeholder:a="",...i}=e,d=vt(ui,r),{onValueNodeHasChildrenChange:u}=d,f=o!==void 0,m=me(t,d.onValueNodeChange);return _e(()=>{u(f)},[u,f]),c.jsx(se.span,{...i,ref:m,style:{pointerEvents:"none"},children:Pi(d.value)?c.jsx(c.Fragment,{children:a}):o})});fi.displayName=ui;var Vm="SelectIcon",mi=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...s}=e;return c.jsx(se.span,{"aria-hidden":!0,...s,ref:t,children:n||"▼"})});mi.displayName=Vm;var Lm="SelectPortal",hi=e=>c.jsx(qn,{asChild:!0,...e});hi.displayName=Lm;var Rt="SelectContent",pi=l.forwardRef((e,t)=>{const r=vt(Rt,e.__scopeSelect),[n,s]=l.useState();if(_e(()=>{s(new DocumentFragment)},[]),!r.open){const o=n;return o?fr.createPortal(c.jsx(gi,{scope:e.__scopeSelect,children:c.jsx(Gr.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),o):null}return c.jsx(xi,{...e,ref:t})});pi.displayName=Rt;var Le=10,[gi,bt]=Xt(Rt),Fm="SelectContentImpl",$m=km("SelectContent.RemoveScroll"),xi=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:a,side:i,sideOffset:d,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:x,collisionPadding:g,sticky:_,hideWhenDetached:p,avoidCollisions:b,...w}=e,y=vt(Rt,r),[S,N]=l.useState(null),[C,O]=l.useState(null),j=me(t,U=>N(U)),[$,z]=l.useState(null),[H,Y]=l.useState(null),V=Xr(r),[I,B]=l.useState(!1),J=l.useRef(!1);l.useEffect(()=>{if(S)return aa(S)},[S]),Xo();const Z=l.useCallback(U=>{const[le,...ve]=V().map(de=>de.ref.current),[oe]=ve.slice(-1),ae=document.activeElement;for(const de of U)if(de===ae||(de?.scrollIntoView({block:"nearest"}),de===le&&C&&(C.scrollTop=0),de===oe&&C&&(C.scrollTop=C.scrollHeight),de?.focus(),document.activeElement!==ae))return},[V,C]),G=l.useCallback(()=>Z([$,S]),[Z,$,S]);l.useEffect(()=>{I&&G()},[I,G]);const{onOpenChange:W,triggerPointerDownPosRef:re}=y;l.useEffect(()=>{if(S){let U={x:0,y:0};const le=oe=>{U={x:Math.abs(Math.round(oe.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(oe.pageY)-(re.current?.y??0))}},ve=oe=>{U.x<=10&&U.y<=10?oe.preventDefault():S.contains(oe.target)||W(!1),document.removeEventListener("pointermove",le),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",ve,{capture:!0})}}},[S,W,re]),l.useEffect(()=>{const U=()=>W(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[W]);const[ye,Ie]=Ii(U=>{const le=V().filter(ae=>!ae.disabled),ve=le.find(ae=>ae.ref.current===document.activeElement),oe=Di(le,U,ve);oe&&setTimeout(()=>oe.ref.current.focus())}),ot=l.useCallback((U,le,ve)=>{const oe=!J.current&&!ve;(y.value!==void 0&&y.value===le||oe)&&(z(U),oe&&(J.current=!0))},[y.value]),at=l.useCallback(()=>S?.focus(),[S]),De=l.useCallback((U,le,ve)=>{const oe=!J.current&&!ve;(y.value!==void 0&&y.value===le||oe)&&Y(U)},[y.value]),Me=n==="popper"?Pn:yi,et=Me===Pn?{side:i,sideOffset:d,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:x,collisionPadding:g,sticky:_,hideWhenDetached:p,avoidCollisions:b}:{};return c.jsx(gi,{scope:r,content:S,viewport:C,onViewportChange:O,itemRefCallback:ot,selectedItem:$,onItemLeave:at,itemTextRefCallback:De,focusSelectedItem:G,selectedItemText:H,position:n,isPositioned:I,searchRef:ye,children:c.jsx(Kn,{as:$m,allowPinchZoom:!0,children:c.jsx(Hn,{asChild:!0,trapped:y.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:ce(s,U=>{y.trigger?.focus({preventScroll:!0}),U.preventDefault()}),children:c.jsx(Zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:c.jsx(Me,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:U=>U.preventDefault(),...w,...et,onPlaced:()=>B(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:ce(w.onKeyDown,U=>{const le=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!le&&U.key.length===1&&Ie(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let oe=V().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(U.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const ae=U.target,de=oe.indexOf(ae);oe=oe.slice(de+1)}setTimeout(()=>Z(oe)),U.preventDefault()}})})})})})})});xi.displayName=Fm;var Bm="SelectItemAlignedPosition",yi=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...s}=e,o=vt(Rt,r),a=bt(Rt,r),[i,d]=l.useState(null),[u,f]=l.useState(null),m=me(t,j=>f(j)),x=Xr(r),g=l.useRef(!1),_=l.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:w,focusSelectedItem:y}=a,S=l.useCallback(()=>{if(o.trigger&&o.valueNode&&i&&u&&p&&b&&w){const j=o.trigger.getBoundingClientRect(),$=u.getBoundingClientRect(),z=o.valueNode.getBoundingClientRect(),H=w.getBoundingClientRect();if(o.dir!=="rtl"){const ae=H.left-$.left,de=z.left-ae,Ne=j.left-de,Ze=j.width+Ne,Jt=Math.max(Ze,$.width),At=window.innerWidth-Le,Ot=io(de,[Le,Math.max(Le,At-Jt)]);i.style.minWidth=Ze+"px",i.style.left=Ot+"px"}else{const ae=$.right-H.right,de=window.innerWidth-z.right-ae,Ne=window.innerWidth-j.right-de,Ze=j.width+Ne,Jt=Math.max(Ze,$.width),At=window.innerWidth-Le,Ot=io(de,[Le,Math.max(Le,At-Jt)]);i.style.minWidth=Ze+"px",i.style.right=Ot+"px"}const Y=x(),V=window.innerHeight-Le*2,I=p.scrollHeight,B=window.getComputedStyle(u),J=parseInt(B.borderTopWidth,10),Z=parseInt(B.paddingTop,10),G=parseInt(B.borderBottomWidth,10),W=parseInt(B.paddingBottom,10),re=J+Z+I+W+G,ye=Math.min(b.offsetHeight*5,re),Ie=window.getComputedStyle(p),ot=parseInt(Ie.paddingTop,10),at=parseInt(Ie.paddingBottom,10),De=j.top+j.height/2-Le,Me=V-De,et=b.offsetHeight/2,U=b.offsetTop+et,le=J+Z+U,ve=re-le;if(le<=De){const ae=Y.length>0&&b===Y[Y.length-1].ref.current;i.style.bottom="0px";const de=u.clientHeight-p.offsetTop-p.offsetHeight,Ne=Math.max(Me,et+(ae?at:0)+de+G),Ze=le+Ne;i.style.height=Ze+"px"}else{const ae=Y.length>0&&b===Y[0].ref.current;i.style.top="0px";const Ne=Math.max(De,J+p.offsetTop+(ae?ot:0)+et)+ve;i.style.height=Ne+"px",p.scrollTop=le-De+p.offsetTop}i.style.margin=`${Le}px 0`,i.style.minHeight=ye+"px",i.style.maxHeight=V+"px",n?.(),requestAnimationFrame(()=>g.current=!0)}},[x,o.trigger,o.valueNode,i,u,p,b,w,o.dir,n]);_e(()=>S(),[S]);const[N,C]=l.useState();_e(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const O=l.useCallback(j=>{j&&_.current===!0&&(S(),y?.(),_.current=!1)},[S,y]);return c.jsx(zm,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:O,children:c.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:c.jsx(se.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});yi.displayName=Bm;var Wm="SelectPopperPosition",Pn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=Le,...o}=e,a=Jr(r);return c.jsx(wm,{...a,...o,ref:t,align:n,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Pn.displayName=Wm;var[zm,fs]=Xt(Rt,{}),In="SelectViewport",vi=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...s}=e,o=bt(In,r),a=fs(In,r),i=me(t,o.onViewportChange),d=l.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),c.jsx(Gr.Slot,{scope:r,children:c.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ce(s.onScroll,u=>{const f=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:x}=a;if(x?.current&&m){const g=Math.abs(d.current-f.scrollTop);if(g>0){const _=window.innerHeight-Le*2,p=parseFloat(m.style.minHeight),b=parseFloat(m.style.height),w=Math.max(p,b);if(w<_){const y=w+g,S=Math.min(_,y),N=y-S;m.style.height=S+"px",m.style.bottom==="0px"&&(f.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});vi.displayName=In;var bi="SelectGroup",[Um,Zm]=Xt(bi),Hm=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=Ft();return c.jsx(Um,{scope:r,id:s,children:c.jsx(se.div,{role:"group","aria-labelledby":s,...n,ref:t})})});Hm.displayName=bi;var wi="SelectLabel",_i=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=Zm(wi,r);return c.jsx(se.div,{id:s.id,...n,ref:t})});_i.displayName=wi;var Lr="SelectItem",[qm,ki]=Xt(Lr),Ci=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:o,...a}=e,i=vt(Lr,r),d=bt(Lr,r),u=i.value===n,[f,m]=l.useState(o??""),[x,g]=l.useState(!1),_=me(t,y=>d.itemRefCallback?.(y,n,s)),p=Ft(),b=l.useRef("touch"),w=()=>{s||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(qm,{scope:r,value:n,disabled:s,textId:p,isSelected:u,onItemTextChange:l.useCallback(y=>{m(S=>S||(y?.textContent??"").trim())},[]),children:c.jsx(Gr.ItemSlot,{scope:r,value:n,disabled:s,textValue:f,children:c.jsx(se.div,{role:"option","aria-labelledby":p,"data-highlighted":x?"":void 0,"aria-selected":u&&x,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:_,onFocus:ce(a.onFocus,()=>g(!0)),onBlur:ce(a.onBlur,()=>g(!1)),onClick:ce(a.onClick,()=>{b.current!=="mouse"&&w()}),onPointerUp:ce(a.onPointerUp,()=>{b.current==="mouse"&&w()}),onPointerDown:ce(a.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:ce(a.onPointerMove,y=>{b.current=y.pointerType,s?d.onItemLeave?.():b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(a.onPointerLeave,y=>{y.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:ce(a.onKeyDown,y=>{d.searchRef?.current!==""&&y.key===" "||(Tm.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Ci.displayName=Lr;var tr="SelectItemText",Si=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,...o}=e,a=vt(tr,r),i=bt(tr,r),d=ki(tr,r),u=Mm(tr,r),[f,m]=l.useState(null),x=me(t,w=>m(w),d.onItemTextChange,w=>i.itemTextRefCallback?.(w,d.value,d.disabled)),g=f?.textContent,_=l.useMemo(()=>c.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return _e(()=>(p(_),()=>b(_)),[p,b,_]),c.jsxs(c.Fragment,{children:[c.jsx(se.span,{id:d.textId,...o,ref:x}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?fr.createPortal(o.children,a.valueNode):null]})});Si.displayName=tr;var Ni="SelectItemIndicator",Ei=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ki(Ni,r).isSelected?c.jsx(se.span,{"aria-hidden":!0,...n,ref:t}):null});Ei.displayName=Ni;var Dn="SelectScrollUpButton",ji=l.forwardRef((e,t)=>{const r=bt(Dn,e.__scopeSelect),n=fs(Dn,e.__scopeSelect),[s,o]=l.useState(!1),a=me(t,n.onScrollButtonChange);return _e(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=d.scrollTop>0;o(u)};const d=r.viewport;return i(),d.addEventListener("scroll",i),()=>d.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),s?c.jsx(Ai,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:d}=r;i&&d&&(i.scrollTop=i.scrollTop-d.offsetHeight)}}):null});ji.displayName=Dn;var Mn="SelectScrollDownButton",Ri=l.forwardRef((e,t)=>{const r=bt(Mn,e.__scopeSelect),n=fs(Mn,e.__scopeSelect),[s,o]=l.useState(!1),a=me(t,n.onScrollButtonChange);return _e(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;o(f)};const d=r.viewport;return i(),d.addEventListener("scroll",i),()=>d.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),s?c.jsx(Ai,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:d}=r;i&&d&&(i.scrollTop=i.scrollTop+d.offsetHeight)}}):null});Ri.displayName=Mn;var Ai=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=e,o=bt("SelectScrollButton",r),a=l.useRef(null),i=Xr(r),d=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>d(),[d]),_e(()=>{i().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),c.jsx(se.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{o.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{d()})})}),Km="SelectSeparator",Oi=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return c.jsx(se.div,{"aria-hidden":!0,...n,ref:t})});Oi.displayName=Km;var Vn="SelectArrow",Ym=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=Jr(r),o=vt(Vn,r),a=bt(Vn,r);return o.open&&a.position==="popper"?c.jsx(_m,{...s,...n,ref:t}):null});Ym.displayName=Vn;var Gm="SelectBubbleInput",Ti=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const s=l.useRef(null),o=me(n,s),a=Aa(t);return l.useEffect(()=>{const i=s.current;if(!i)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==t&&f){const m=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(m)}},[a,t]),c.jsx(se.select,{...r,style:{...ii,...r.style},ref:o,defaultValue:t})});Ti.displayName=Gm;function Pi(e){return e===""||e===void 0}function Ii(e){const t=St(e),r=l.useRef(""),n=l.useRef(0),s=l.useCallback(a=>{const i=r.current+a;t(i),(function d(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>d(""),1e3))})(i)},[t]),o=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,o]}function Di(e,t,r){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=Xm(e,Math.max(o,0));s.length===1&&(a=a.filter(u=>u!==r));const d=a.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function Xm(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Jm=ci,Mi=di,Qm=fi,eh=mi,th=hi,Vi=pi,rh=vi,Li=_i,Fi=Ci,nh=Si,sh=Ei,$i=ji,Bi=Ri,Wi=Oi;const oh=Jm,ah=Qm,zi=l.forwardRef(({className:e,children:t,...r},n)=>c.jsxs(Mi,{ref:n,className:we("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,c.jsx(eh,{asChild:!0,children:c.jsx(Co,{className:"h-4 w-4 opacity-50"})})]}));zi.displayName=Mi.displayName;const Ui=l.forwardRef(({className:e,...t},r)=>c.jsx($i,{ref:r,className:we("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(_c,{className:"h-4 w-4"})}));
45Ui.displayName=$i.displayName;const Zi=l.forwardRef(({className:e,...t},r)=>c.jsx(Bi,{ref:r,className:we("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Co,{className:"h-4 w-4"})}));Zi.displayName=Bi.displayName;const Hi=l.forwardRef(({className:e,children:t,position:r="popper",...n},s)=>c.jsx(th,{children:c.jsxs(Vi,{ref:s,className:we("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[c.jsx(Ui,{}),c.jsx(rh,{className:we("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(Zi,{})]})}));Hi.displayName=Vi.displayName;const ih=l.forwardRef(({className:e,...t},r)=>c.jsx(Li,{ref:r,className:we("px-2 py-1.5 text-sm font-semibold",e),...t}));ih.displayName=Li.displayName;const qi=l.forwardRef(({className:e,children:t,...r},n)=>c.jsxs(Fi,{ref:n,className:we("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[c.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(sh,{children:c.jsx(Kt,{className:"h-4 w-4"})})}),c.jsx(nh,{children:t})]}));qi.displayName=Fi.displayName;const ch=l.forwardRef(({className:e,...t},r)=>c.jsx(Wi,{ref:r,className:we("-mx-1 my-1 h-px bg-muted",e),...t}));ch.displayName=Wi.displayName;const Ki=l.createContext(null);function Yi(){const e=l.useContext(Ki);if(!e)throw new Error("useBookDemo must be used within BookDemoProvider");return e}function lh({children:e}){const[t,r]=l.useState(!1),n=l.useCallback(()=>r(!0),[]),s=l.useCallback(()=>r(!1),[]);return c.jsxs(Ki.Provider,{value:{open:n,close:s},children:[e,c.jsx(uh,{open:t,onOpenChange:r})]})}function dh(e){return qo({firstName:Ke().trim().min(1,e.required).max(80),lastName:Ke().trim().min(1,e.required).max(80),email:Ke().trim().email(e.invalidEmail).max(255),company:Ke().trim().min(1,e.required).max(120),orgSize:Ke().min(1,e.required),phone:Ke().trim().max(40).optional().or(sn("")),message:Ke().trim().max(1e3).optional().or(sn("")),consent:sn(!0,{errorMap:()=>({message:e.required})}),marketing:nd().optional()})}function uh({open:e,onOpenChange:t}){const{t:r}=Se(),n=r.bookDemo,[s,o]=l.useState(!1),a=Mo({resolver:zo(dh(n)),defaultValues:{firstName:"",lastName:"",email:"",company:"",orgSize:"",phone:"",message:"",marketing:!1},mode:"onTouched"}),{register:i,handleSubmit:d,setValue:u,watch:f,reset:m,formState:{errors:x,isSubmitting:g}}=a,[_,p]=l.useState(null),b=async C=>{p(null);const{submitToForminit:O}=await _o(async()=>{const{submitToForminit:H}=await import("./forminit-Bqo-QxU6.js");return{submitToForminit:H}},[]),j={firstName:C.firstName,lastName:C.lastName,email:C.email,company:C.company};C.phone&&C.phone.trim()&&(j.phone=C.phone.trim());const $=[{type:"sender",properties:j},{type:"select",name:"orgSize",value:C.orgSize},{type:"checkbox",name:"consent",value:["yes"]}];C.message&&C.message.trim()&&$.push({type:"text",name:"message",value:C.message.trim()}),C.marketing&&$.push({type:"checkbox",name:"marketing",value:["yes"]});const z=await O($);if(!z.ok){p(z.message);return}o(!0)},w=C=>{t(C),C||setTimeout(()=>{o(!1),p(null),m()},200)},y=f("orgSize"),S=f("consent"),N=f("marketing");return c.jsx(Na,{open:e,onOpenChange:w,children:c.jsx(Jn,{className:"max-h-[92vh] w-[calc(100vw-1.5rem)] max-w-xl overflow-y-auto rounded-xl border-border bg-card p-0 sm:w-full",children:s?c.jsxs("div",{className:"flex flex-col items-center px-6 py-12 text-center sm:px-10",children:[c.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-success/15 text-success",children:c.jsx(So,{className:"h-6 w-6"})}),c.jsx(ir,{className:"mt-5 font-display text-2xl font-medium text-ink",children:n.successTitle}),c.jsx(cr,{className:"mt-3 max-w-sm text-sm text-ink-soft",children:n.successBody}),c.jsx(Wt,{className:"mt-7 h-11 rounded-md bg-primary px-5 text-sm text-primary-foreground hover:bg-primary-hover",onClick:()=>w(!1),children:n.close})]}):c.jsxs(c.Fragment,{children:[c.jsxs(Qn,{className:"px-6 pb-2 pt-6 text-left sm:px-8 sm:pt-8",children:[c.jsx(ir,{className:"font-display text-2xl font-medium text-ink sm:text-3xl",children:n.title}),c.jsx(cr,{className:"text-sm text-ink-soft",children:n.subtitle})]}),c.jsxs("form",{onSubmit:d(b),className:"space-y-4 px-6 pb-6 pt-4 sm:px-8 sm:pb-8",noValidate:!0,children:[c.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[c.jsx(_t,{id:"firstName",label:n.firstName,error:x.firstName?.message,children:c.jsx(dt,{id:"firstName",autoComplete:"given-name",...i("firstName")}
45)}),c.jsx(_t,{id:"lastName",label:n.lastName,error:x.lastName?.message,children:c.jsx(dt,{id:"lastName",autoComplete:"family-name",...i("lastName")})})]}),c.jsx(_t,{id:"email",label:n.email,error:x.email?.message,children:c.jsx(dt,{id:"email",type:"email",autoComplete:"email",...i("email")})}),c.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[c.jsx(_t,{id:"company",label:n.company,error:x.company?.message,children:c.jsx(dt,{id:"company",autoComplete:"organization",...i("company")})}),c.jsx(_t,{id:"orgSize",label:n.orgSize,error:x.orgSize?.message,children:c.jsxs(oh,{value:y,onValueChange:C=>u("orgSize",C,{shouldValidate:!0}),children:[c.jsx(zi,{id:"orgSize",children:c.jsx(ah,{placeholder:n.orgSizePlaceholder})}),c.jsx(Hi,{children:n.orgSizes.map(C=>c.jsx(qi,{value:C,children:C},C))})]})})]}),c.jsx(_t,{id:"phone",label:n.phone,error:x.phone?.message,children:c.jsx(dt,{id:"phone",type:"tel",autoComplete:"tel",...i("phone")})}),c.jsx(_t,{id:"message",label:n.message,error:x.message?.message,children:c.jsx(ts,{id:"message",rows:3,className:"resize-none",...i("message")})}),c.jsxs("div",{className:"space-y-3 pt-1",children:[c.jsxs("label",{className:"flex items-start gap-3 text-sm text-ink-soft",children:[c.jsx(Rn,{checked:!!S,onCheckedChange:C=>u("consent",C===!0,{shouldValidate:!0}),className:"mt-0.5","aria-invalid":!!x.consent}),c.jsx("span",{children:n.consent})]}),x.consent?.message&&c.jsx("p",{className:"-mt-2 ml-7 text-xs text-error",children:x.consent.message}),c.jsxs("label",{className:"flex items-start gap-3 text-sm text-ink-soft",children:[c.jsx(Rn,{checked:!!N,onCheckedChange:C=>u("marketing",C===!0),className:"mt-0.5"}),c.jsx("span",{children:n.marketing})]})]}),_&&c.jsx("p",{className:"text-sm text-error",role:"alert",children:_}),c.jsxs(Wt,{type:"submit",disabled:g,className:"h-11 w-full rounded-md bg-primary text-sm font-medium text-primary-foreground hover:bg-primary-hover",children:[g?n.submitting:n.submit,!g&&c.jsx(Br,{className:"ml-1 h-4 w-4"})]})]})]})})})}function _t({id:e,label:t,error:r,children:n}){return c.jsxs("div",{className:"space-y-1.5",children:[c.jsx(es,{htmlFor:e,className:"text-sm font-medium text-ink",children:t}),n,r&&c.jsx("p",{className:"text-xs text-error",children:r})]})}const fh="/assets/hero-feather-bg-BPR7IAwi.png",mh="/__l5e/assets-v1/a2e3d401-cca3-4f16-8008-916811a22d18/jobylon-logo.png",hh={url:mh},ph=[8,14,22,30,18,26,38,44,30,20,12,24,34,42,28,16,10,22,32,40,26,18,12,20,30,38,24,14,9,18,28,36,22,13,8,16];function gh(){const{t:e}=Se(),t=e.hero.report;return c.jsxs("div",{className:"relative w-full",children:[c.jsx("div",{className:"absolute -inset-3 rounded-[28px] bg-surface-sunken/70 blur-[2px]","aria-hidden":!0}),c.jsxs("div",{className:"relative w-full overflow-hidden rounded-3xl border-2 border-border-strong bg-surface-elevated shadow-2xl",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border bg-surface px-5 py-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"font-display text-lg font-semibold leading-tight text-text-primary",children:t.candidate}),c.jsx("p",{className:"mt-0.5 text-sm text-text-secondary",children:t.role})]}),c.jsx("span",{className:"shrink-0 rounded-full bg-primary-soft px-3 py-1 font-mono text-[11px] uppercase tracking-wider text-primary-active",children:t.date})]}),c.jsxs("div",{className:"space-y-4 p-5",children:[c.jsxs("section",{className:"rounded-2xl border border-border bg-surface p-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ys,{className:"h-4 w-4 text-primary"}),c.jsx("h4",{className:"font-mono text-[11px] uppercase tracking-wider text-text-secondary",children:t.recordingLabel})]}),c.jsxs("div",{className:"mt-3 flex items-center gap-3",children:[c.jsx("div",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-full bg-primary text-text-on-primary",children:c.jsx(ys,{className:"h-4 w-4"})}),c.jsx("div",{className:"flex h-10 flex-1 items-center gap-[3px] overflow-hidden",children:ph.map((r,n)=>c.jsx("span",{className:`w-[3px] rounded-full ${n<14?"bg-primary":"bg-border-strong"}`,style:{height:`${r}px`}},n))}),c.jsx("span",{className:"shrink-0 font-mono text-xs text-text-secondary",children:t.duration})]})]}),c.jsxs("section",{className:"rounded-2xl border border-border bg-surface-elevated p-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(jc,{className:"h-4 w-4 text-primary"}),c.jsx("h4",{className:"font-mono text-[11px] uppercase tracking-wider text-text-secondary",children:t.summaryLabel})]}),c.jsx("p",{className:"mt-2 text-[15px] leading-relaxed text-text-primary",children:t.summary})]}),c.jsxs("section",{className:"rounded-2xl border border-border bg-primary-soft/60 p-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(zc,{className:"h-4 w-4 text-primary-active"}),c.jsx("h4",{className:"font-mono text-[11px] uppercase tracking-wider text-primary-active",children:t.strengthsLabel})]}),c.jsx("ul",{className:"mt-2.5 space-y-2",children:t.strengths.map(r=>c.jsxs("li",{className:"flex items-start gap-2.5",children:[c.jsx("span",{className:"mt-0.5 grid h-5 w-5 shrink-0 place-items-center rounded-full bg-primary text-text-on-primary",children:c.jsx(Kt,{className:"h-3 w-3"})}),c.jsx("span",{className:"text-[15px] leading-snug text-text-primary",children:r})]},r))})]}),c.jsxs("section",{className:"rounded-2xl border border-border bg-surface-sunken p-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Zc,{className:"h-4 w-4 text-text-secondary"}),c.jsx("h4",{className:"font-mono text-[11px] uppercase tracking-wider text-text-secondary",children:t.concernsLabel})]}),c.jsx("ul",{className:"mt-2.5 space-y-2",children:t.concerns.map(r=>c.jsxs("li",{className:"flex items-start gap-2.5",children:[c.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-border-strong"}),c.jsx("span",{className:"text-[15px] leading-snug text-text-primary",children:r})]},r))})]})]})]})]})}function xh(){const{t:e}=Se(),{open:t}=Yi(),r=e.hero;return c.jsxs("section",{className:"relative overflow-hidden bg-gradient-hero bg-cover bg-center",style:{backgroundImage:`var(--gradient-hero), url(${fh})`},children:[c.jsx("div",{className:"absolute inset-0 bg-white/30"}),c.jsx("div",{className:"relative mx-auto max-w-7xl px-6 pt-32 pb-16 md:pt-40 md:pb-24",children:c.jsxs(Be.div,{...ht,className:"grid grid-cols-1 items-center gap-10 lg:grid-cols-2 lg:items-start lg:gap-16",children:[c.jsxs("div",{className:"flex flex-col items-center text-center lg:items-start lg:text-left",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-sky px-3 py-1 font-mono text-[11px] uppercase tracking-[0.14em] text-brand-deep",children:[c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-brand"}),r.label]}),c.jsxs("h1",{className:"mt-7 font-display text-5xl font-medium leading-[1.02] text-ink md:text-6xl lg:text-7xl text-balance",children:[r.title1,c.jsx("br",{}),r.title2]}),c.jsx("p",{className:"mt-6 max-w-xl text-base leading-relaxed text-ink-soft md:text-lg text-balance",children:r.subtitle}),c.jsx("div",{className:"mt-9 flex flex-col items-center gap-2 sm:flex-row",children:c.jsxs(Wt,{onClick:t,size:"lg",className:"h-11 rounded-md bg-primary px-5 text-sm font-medium text-primary-foreground hover:bg-primary-hover",children:[r.cta1," ",c.jsx(Br,{className:"ml-1 h-4 w-4"})]})}),c.jsxs("div",{className:"mt-12 flex flex-col items-center gap-5 lg:items-start",children:[c.jsx("p",{className:"max-w-md text-center font-mono text-sm font-medium uppercase tracking-wider text-ink lg:text-left",children:r.integrationsTitle}),c.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-4 lg:justify-start",children:c.jsx("img",{src:hh.url,alt:r.integrationsAltJobylon,className:"h-10 w-auto opacity-70 grayscale transition-opacity hover:opacity-100"})})]}),(r.interviews||r.languages||r.compliance)&&c.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-x-8 gap-y-3 font-mono text-[11px] uppercase tracking-wider text-ink-soft lg:justify-start",children:[r.interviews&&c.jsx("span",{className:"text-ink",children:r.interviews}),r.interviews&&r.languages&&c.jsx("span",{className:"hidden h-1 w-1 rounded-full bg-border md:inline-block"}),r.languages&&c.jsx("span",{className:"text-ink",children:r.languages}),(r.languages||r.interviews)&&r.compliance&&c.jsx("span",{className:"hidden h-1 w-1 rounded-full bg-border md:inline-block"}),r.compliance&&c.jsx("span",{className:"text-ink",children:r.compliance})]})]}),c.jsx("div",{className:"w-full",children:c.jsx(gh,{})})]})})]})}const yh="/__l5e/assets-v1/31d437ea-34e1-4373-ace8-c9770c4aabcc/fortcheck-logo.png",vh={url:yh};function bh(){const{t:e}=Se(),t=e.fortcheck;return c.jsx("section",{className:"border-y border-border/60 bg-accent-soft/40",children:c.jsx("div",{className:"mx-auto max-w-7xl px-6 py-8 md:py-10",children:c.jsxs(Be.div,{...ht,className:"grid grid-cols-1 items-center gap-4 lg:grid-cols-[auto_1fr_auto] lg:gap-10",children:[c.jsx("img",{src:vh.url,alt:t.logoAlt,className:"h-7 w-auto opacity-80 md:h-8"}),c.jsxs("div",{children:[t.label?c.jsx("p",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-brand-deep",children:t.label}):null,c.jsx("h2",{className:"font-display text-xl font-medium leading-tight text-ink md:text-2xl",children:t.title}),c.jsx("p",{className:"mt-1.5 max-w-xl text-sm leading-relaxed text-ink-soft",children:t.body})]}),c.jsxs("a",{href:"https://fortcheck.se",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm font-medium text-brand-deep underline-offset-4 hover:underline md:text-base",children:[t.link,c.jsx(hc,{className:"h-4 w-4"})]})]})})})}function wh({className:e="",height:t=220}){const r=l.useRef(null),n=l.useRef(null);return l.useEffect(()=>{const s=r.current;if(!s)return;const o=s.getContext("2d");if(!o)return;const a=(C,O)=>getComputedStyle(document.documentElement).getPropertyValue(C).trim()||O,i=a("--primary","oklch(0.67 0.19 148)"),d=a("--primary-hover",i),u=a("--primary-active",i),f=a("--primary-soft",i),m=a("--surface-elevated","#ffffff"),x=[i,d,f,m];let g=s.clientWidth,_=s.clientHeight;const p=Math.min(window.devicePixelRatio||1,2),b=()=>{g=s.clientWidth,_=s.clientHeight,s.width=g*p,s.height=_*p,o.setTransform(p,0,0,p,0,0)};b();const w=new ResizeObserver(b);w.observe(s);const y=Array.from({length:140}).map(()=>{const C=40+Math.random()*90;return{angle:Math.random()*Math.PI*2,radius:C,speed:(Math.random()*.0015+5e-4)*(Math.random()<.5?-1:1),size:Math.random()*1.8+.4,color:x[Math.floor(Math.random()*x.length)],drift:Math.random()*6+2,phase:Math.random()*Math.PI*2}});let S=0;const N=()=>{S+=1,o.clearRect(0,0,g,_);const C=g/2,O=_/2,j=o.createRadialGradient(C,O,10,C,O,130);j.addColorStop(0,`color-mix(in oklab, ${i} 35%, transparent)`),j.addColorStop(.5,`color-mix(in oklab, ${i} 12%, transparent)`),j.addColorStop(1,`color-mix(in oklab, ${i} 0%, transparent)`),o.fillStyle=j,o.beginPath(),o.arc(C,O,130,0,Math.PI*2),o.fill();const $=o.createRadialGradient(C-10,O-12,4,C,O,58);$.addColorStop(0,`color-mix(in oklab, ${f} 95%, transparent)`),$.addColorStop(.35,`color-mix(in oklab, ${i} 85%, transparent)`),$.addColorStop(1,`color-mix(in oklab, ${u} 95%, transparent)`),o.fillStyle=$,o.beginPath(),o.arc(C,O,52+Math.sin(S*.03)*1.5,0,Math.PI*2),o.fill();for(const z of y){z.angle+=z.speed;const H=Math.sin(S*.02+z.phase)*z.drift,Y=z.radius+H,V=C+Math.cos(z.angle)*Y,I=O+Math.sin(z.angle)*Y*.85;o.beginPath(),o.fillStyle=z.color,o.globalAlpha=.55+Math.sin(S*.04+z.phase)*.35,o.arc(V,I,z.size,0,Math.PI*2),o.fill()}o.globalAlpha=1,n.current=requestAnimationFrame(N)};return n.current=requestAnimationFrame(N),()=>{n.current&&cancelAnimationFrame(n.current),w.disconnect()}},[]),c.jsx("canvas",{ref:r,className:`block w-full ${e}`,style:{height:t},"aria-hidden":"true"})}function _h({bars:e=28,className:t=""}){return c.jsx("div",{className:`flex items-center gap-[3px] h-10 ${t}`,children:Array.from({length:e}).map((r,n)=>c.jsx("span",{className:"voice-bar w-[2px] rounded-full bg-ink/80",style:{height:`${20+Math.sin(n*.6)*50+30}%`,animationDelay:`${n*.06}s`,animationDuration:`${1+n%5*.15}s`}},n))})}function kh({n:e,title:t,text:r}){return c.jsxs("div",{className:"flex flex-col items-center text-center",children:[c.jsx("div",{className:"grid h-10 w-10 place-items-center rounded-full border border-border bg-card font-display text-base font-medium text-ink",children:e}),c.jsx("div",{className:"mt-5 font-display text-base font-medium text-ink md:text-lg",children:t}),c.jsx("p",{className:"mt-2 max-w-[18rem] text-sm text-ink-soft leading-relaxed",children:r})]})}function Ch(){const{t:e}=Se(),t=e.how.mock;return c.jsxs("div",{className:"flex h-full flex-col rounded-2xl border border-border bg-card p-5 shadow-md",children:[c.jsx("div",{className:"font-display text-sm font-medium text-ink",children:t.candidatesTitle}),c.jsx("ul",{className:"mt-4 space-y-2.5",children:t.candidates.map(r=>c.jsxs("li",{className:"flex items-center gap-3 rounded-lg border border-border/70 bg-background px-3 py-2.5",children:[c.jsx("span",{className:"grid h-7 w-7 place-items-center rounded-full bg-surface font-mono text-[10px] font-medium text-ink-soft",children:r.initials}),c.jsx("span",{className:"flex-1 text-sm text-ink",children:r.name}),c.jsx(Kt,{className:"h-4 w-4 text-success",strokeWidth:2.5})]},r.initials))}),c.jsx("div",{className:"mt-auto pt-5",children:c.jsxs("button",{type:"button",className:"inline-flex w-full items-center justify-center gap-2 rounded-lg bg-primary px-4 py-2.5 text-sm font-medium text-primary-foreground shadow-sm transition-colors hover:bg-primary-hover",children:[t.sendCta,
45c.jsx($c,{className:"h-3.5 w-3.5"})]})})]})}function Sh(){const{t:e}=Se(),t=e.how.mock;return c.jsxs("div",{className:"flex h-full flex-col items-center justify-between rounded-2xl border border-border bg-card p-5 shadow-md",children:[c.jsx("div",{className:"flex flex-1 items-center justify-center w-full",children:c.jsx(wh,{height:170,className:"max-w-[220px]"})}),c.jsx("div",{className:"mt-2 w-full",children:c.jsx(_h,{bars:36,className:"justify-center"})}),c.jsxs("div",{className:"mt-4 flex items-center gap-2 font-mono text-[10px] uppercase tracking-[0.14em] text-ink-soft",children:[c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-success"}),t.interviewLabel]})]})}function Nh({value:e}){const t=Math.max(0,Math.min(100,e))/100,r=32,n=Math.PI*r,s=n*t,o=e>=70?"var(--success)":e>=40?"var(--warning)":"var(--error)";return c.jsxs("svg",{viewBox:"0 0 80 44",className:"h-12 w-20","aria-hidden":"true",children:[c.jsx("path",{d:`M 8 40 A ${r} ${r} 0 0 1 72 40`,fill:"none",stroke:"var(--border)",strokeWidth:"6",strokeLinecap:"round"}),c.jsx("path",{d:`M 8 40 A ${r} ${r} 0 0 1 72 40`,fill:"none",stroke:o,strokeWidth:"6",strokeLinecap:"round",strokeDasharray:`${s} ${n}`})]})}function Eh(){const{t:e}=Se(),t=e.how.mock;return c.jsxs("div",{className:"flex h-full flex-col rounded-2xl border border-border bg-card p-5 shadow-md",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{className:"font-display text-sm font-medium text-ink",children:t.reportTitle}),c.jsx(Nc,{className:"h-4 w-4 text-ink-soft"})]}),c.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-ink-soft",children:t.scoreLabel}),c.jsxs("div",{className:"font-display text-3xl font-medium text-ink leading-none",children:["32",c.jsx("span",{className:"text-base text-ink-soft",children:"/100"})]})]}),c.jsx(Nh,{value:32})]}),c.jsxs("div",{className:"mt-5",children:[c.jsx("div",{className:"text-xs font-medium text-ink",children:t.strengthsLabel}),c.jsx("ul",{className:"mt-2 space-y-1.5",children:t.strengths.map(r=>c.jsxs("li",{className:"flex items-start gap-2 text-xs text-ink-soft",children:[c.jsx(Kt,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-success",strokeWidth:2.5}),c.jsx("span",{children:r})]},r))})]}),c.jsxs("div",{className:"mt-4",children:[c.jsx("div",{className:"text-xs font-medium text-ink",children:t.gapsLabel}),c.jsx("ul",{className:"mt-2 space-y-1.5",children:t.gaps.map(r=>c.jsxs("li",{className:"flex items-start gap-2 text-xs text-ink-soft",children:[c.jsx("span",{className:"mt-1 h-1.5 w-1.5 shrink-0 rounded-full bg-warning"}),c.jsx("span",{children:r})]},r))})]})]})}function jh(){const{t:e}=Se(),t=e.how,r=[Ch,Sh,Eh];return c.jsxs("section",{id:"how",className:"mx-auto max-w-7xl px-6 py-24 md:py-32",children:[c.jsxs(Be.div,{...ht,className:"mx-auto max-w-2xl text-center",children:[c.jsx($r,{children:t.label}),c.jsx("h2",{className:"mt-4 font-display text-4xl font-medium text-ink md:text-5xl text-balance",children:t.title})]}),c.jsx("div",{className:"mt-16 grid gap-10 md:grid-cols-3 md:gap-6",children:t.steps.map((n,s)=>c.jsxs(Be.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.45,delay:s*.08,ease:"easeOut"},className:"relative",children:[s<t.steps.length-1&&c.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute left-[calc(50%+28px)] right-[calc(-50%+28px)] top-5 hidden border-t border-dashed border-border-strong md:block"}),c.jsx(kh,{n:s+1,title:n.title,text:n.text})]},n.title))}),c.jsx("div",{className:"mt-12 grid items-stretch gap-6 md:grid-cols-[1fr_auto_1fr_auto_1fr] md:gap-3",children:r.map((n,s)=>c.jsxs(l.Fragment,{children:[c.jsx(Be.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5,delay:.1+s*.1,ease:"easeOut"},className:"h-full",children:c.jsx(n,{})}),s<r.length-1&&c.jsx("div",{"aria-hidden":"true",className:"hidden items-center justify-center text-text-muted md:flex",children:c.jsx(bc,{className:"h-5 w-5"})})]},s))})]})}const Rh="/assets/candidate-image-CPuCwwfc.png";function Ah(){const{t:e}=Se(),t=e.candidate,r=[Pc,No,qc,Ac];return c.jsx("section",{className:"border-y border-border/60 bg-accent-soft/40",children:c.jsx("div",{className:"mx-auto max-w-7xl px-6 py-24 md:py-32",children:c.jsxs("div",{className:"grid items-center gap-12 md:grid-cols-2 lg:gap-20",children:[c.jsxs(Be.div,{...ht,children:[c.jsx($r,{children:t.label}),c.jsx("h2",{className:"mt-4 font-display text-4xl font-medium text-ink md:text-5xl text-balance",children:t.title}),c.jsx("p",{className:"mt-5 text-lg text-ink-soft text-balance",children:t.subtitle}),c.jsx("ul",{className:"mt-10 space-y-6",children:t.items.map((n,s)=>{const o=r[s];return c.jsxs(Be.li,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45,delay:s*.06},className:"flex gap-4",children:[c.jsx("div",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-md border border-border bg-card text-moss",children:c.jsx(o,{className:"h-4 w-4"})}),c.jsxs("div",{children:[c.jsx("div",{className:"font-display text-base font-medium text-ink",children:n.title}),c.jsx("div",{className:"mt-1 text-sm text-ink-soft leading-relaxed",children:n.text})]})]},n.title)})})]}),c.jsx(Be.div,{...ht,className:"overflow-hidden rounded-2xl shadow-[0_20px_60px_-30px_rgba(0,0,0,0.25)]",children:c.jsx("img",{src:Rh,alt:t.title,loading:"lazy",width:1024,height:1280,className:"h-full w-full object-cover aspect-[4/5]"})})]})})})}function Oh(){const{t:e}=Se(),t=e.experience.interviewCard,r=[{icon:No,text:t.duration},{icon:Dc,text:t.microphone}];return c.jsx(Be.div,{...ht,className:"relative w-full max-w-sm rounded-2xl border border-border bg-surface-elevated p-5 shadow-card",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-display text-xl font-semibold text-text-primary md:text-2xl",children:t.greeting}),c.jsxs("p",{className:"mt-1 text-sm text-text-secondary leading-relaxed",children:[t.welcome," ",c.jsx("span",{className:"font-medium text-primary",children:t.role}),"."]})]}),c.jsx("div",{className:"h-px bg-border"}),c.jsx("ul",{className:"space-y-2.5",children:r.map(({icon:n,text:s})=>c.jsxs("li",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"grid h-8 w-8 shrink-0 place-items-center rounded-full bg-primary-soft text-primary",children:c.jsx(n,{className:"h-4 w-4"})}),c.jsx("span",{className:"text-sm font-medium text-text-primary",children:s})]},s))}),c.jsxs("div",{className:"flex items-start gap-3 rounded-xl bg-surface p-3",children:[c.jsx("div",{className:"mt-0.5 grid h-5 w-5 shrink-0 place-items-center rounded border border-border-strong bg-surface-elevated",children:c.jsx(Kt,{className:"h-3 w-3 text-primary"})}),c.jsx("span",{className:"text-xs text-text-secondary leading-relaxed",children:t.consent})]}),c.jsx("button",{type:"button",disabled:!0,className:"w-full rounded-xl bg-primary px-4 py-3 text-center font-display text-sm font-medium text-text-on-primary opacity-80",children:t.cta})]})})}function Th(){const{t:e}=Se(),t=e.experience;return c.jsx("section",{id:"problem",className:"bg-background",children:c.jsx("div",{className:"mx-auto max-w-7xl px-6 py-24 md:py-32",children:c.jsxs("div",{className:"grid items-center gap-12 lg:grid-cols-2 lg:gap-16",children:[c.jsxs(Be.div,{...ht,className:"max-w-2xl",children:[c.jsx($r,{children:t.label}),c.jsx("h2",{className:"mt-4 font-display text-4xl font-medium text-ink md:text-5xl text-balance",children:t.title}),c.jsx("p",{className:"mt-6 text-lg text-ink-soft leading-relaxed text-balance",children:t.subtitle})]}),c.jsx("div",{className:"flex justify-center lg:justify-end",children:c.jsx(Oh,{})})]})})})}function Ph(){const{t:e}=Se(),t=e.trust,r=[Xc,gc,vs,xs],n=[Lc,xs,vs,null];return c.jsxs("section",{id:"trust",className:"mx-auto max-w-7xl px-6 py-24 md:py-32",children:[c.jsxs(Be.div,{...ht,className:"mx-auto max-w-2xl text-center",children:[c.jsx($r,{children:t.label}),c.jsx("h2",{className:"mt-4 font-display text-4xl font-medium text-ink md:text-5xl text-balance",children:t.title})]}),c.jsx("div",{className:"mt-14 grid gap-3 md:grid-cols-2 lg:grid-cols-4",children:t.items.map((s,o)=>{const a=r[o];return c.jsxs("div",{className:"rounded-xl border border-border bg-card p-6 text-center flex flex-col items-center",children:[c.jsx("div",{className:"grid h-10 w-10 place-items-center rounded-md bg-brand/10 text-brand",children:c.jsx(a,{className:"h-4 w-4"})}),c.jsx("div",{className:"mt-5 font-display text-base font-medium text-ink whitespace-pre-line",children:s.title}),c.jsx("p",{className:"mt-2 text-sm text-ink-soft whitespace-pre-line",children:s.text})]},s.title)})}),c.jsx("div",{className:"mx-auto mt-10 flex max-w-2xl flex-wrap items-center justify-center gap-2 font-mono text-[11px] uppercase tracking-wider text-ink-soft",children:t.badges.map((s,o)=>{const a=n[o];return c.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-surface px-3 py-1.5",children:[a?c.jsx(a,{className:"h-3 w-3"}):null," ",s]},s)})})]})}const Gi=l.createContext(null);function Ih(){const e=l.useContext(Gi);if(!e)throw new Error("useTryCandidate must be used within TryCandidateProvider");return e}function Dh({children:e}){const[t,r]=l.useState(!1),n=l.useCallback(()=>r(!0),[]),s=l.useCallback(()=>r(!1),[]);return c.jsxs(Gi.Provider,{value:{open:n,close:s},children:[e,c.jsx(Lh,{open:t,onOpenChange:r})]})}function Mh(e){try{const t=new URL(e.trim());return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function Vh(e){return qo({name:Ke().trim().min(1,e.required).max(120),email:Ke().trim().email(e.invalidEmail).max(255),jobAd:Ke().trim().min(1,e.required).max(8e3).refine(t=>Mh(t)||t.length>=30,{message:e.invalidJobAd})})}function Lh({open:e,onOpenChange:t}){const{t:r}=Se(),n=r.tryCandidate,[s,o]=l.useState(!1),a=Mo({resolver:zo(Vh(n)),defaultValues:{name:"",email:"",j
45obAd:""},mode:"onTouched"}),{register:i,handleSubmit:d,reset:u,formState:{errors:f,isSubmitting:m}}=a,[x,g]=l.useState(null),_=async b=>{g(null);const{submitToForminit:w}=await _o(async()=>{const{submitToForminit:S}=await import("./forminit-Bqo-QxU6.js");return{submitToForminit:S}},[]),y=await w([{type:"sender",properties:{fullName:b.name,email:b.email}},{type:"text",name:"jobAd",value:b.jobAd}]);if(!y.ok){g(y.message);return}o(!0)},p=b=>{t(b),b||setTimeout(()=>{o(!1),g(null),u()},200)};return c.jsx(Na,{open:e,onOpenChange:p,children:c.jsx(Jn,{className:"max-h-[92vh] w-[calc(100vw-1.5rem)] max-w-xl overflow-y-auto rounded-xl border-border bg-card p-0 sm:w-full",children:s?c.jsxs("div",{className:"flex flex-col items-center px-6 py-12 text-center sm:px-10",children:[c.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-success/15 text-success",children:c.jsx(So,{className:"h-6 w-6"})}),c.jsx(ir,{className:"mt-5 font-display text-2xl font-medium text-ink",children:n.successTitle}),c.jsx(cr,{className:"mt-3 max-w-sm text-sm text-ink-soft",children:n.successBody}),c.jsx(Wt,{className:"mt-7 h-11 rounded-md bg-primary px-5 text-sm text-primary-foreground hover:bg-primary-hover",onClick:()=>p(!1),children:n.close})]}):c.jsxs(c.Fragment,{children:[c.jsxs(Qn,{className:"px-6 pb-2 pt-6 text-left sm:px-8 sm:pt-8",children:[c.jsx(ir,{className:"font-display text-2xl font-medium text-ink sm:text-3xl",children:n.title}),c.jsx(cr,{className:"text-sm text-ink-soft",children:n.subtitle})]}),c.jsxs("form",{onSubmit:d(_),className:"space-y-4 px-6 pb-6 pt-4 sm:px-8 sm:pb-8",noValidate:!0,children:[c.jsx(gn,{id:"name",label:n.name,error:f.name?.message,children:c.jsx(dt,{id:"name",autoComplete:"name",...i("name")})}),c.jsx(gn,{id:"email",label:n.email,error:f.email?.message,children:c.jsx(dt,{id:"email",type:"email",autoComplete:"email",...i("email")})}),c.jsx(gn,{id:"jobAd",label:n.jobAd,error:f.jobAd?.message,children:c.jsx(ts,{id:"jobAd",rows:6,placeholder:n.jobAdPlaceholder,className:"resize-y",...i("jobAd")})}),x&&c.jsx("p",{className:"text-sm text-error",role:"alert",children:x}),c.jsxs(Wt,{type:"submit",disabled:m,className:"h-11 w-full rounded-md bg-primary text-sm font-medium text-primary-foreground hover:bg-primary-hover",children:[m?n.submitting:n.submit,!m&&c.jsx(Br,{className:"ml-1 h-4 w-4"})]})]})]})})})}function gn({id:e,label:t,error:r,children:n}){return c.jsxs("div",{className:"space-y-1.5",children:[c.jsx(es,{htmlFor:e,className:"text-sm font-medium text-ink",children:t}),n,r&&c.jsx("p",{className:"text-xs text-error",children:r})]})}function Fh(){const{t:e}=Se(),{open:t}=Yi(),{open:r}=Ih(),n=e.cta;return c.jsx("section",{className:"mx-auto max-w-7xl px-6 pb-24",children:c.jsxs("div",{className:"relative overflow-hidden rounded-2xl border border-border bg-ink p-12 md:p-20 text-center",children:[c.jsx("div",{className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-brand to-transparent"}),c.jsx("div",{className:"absolute inset-0 opacity-[0.06] [background-image:linear-gradient(to_right,white_1px,transparent_1px),linear-gradient(to_bottom,white_1px,transparent_1px)] [background-size:64px_64px]"}),c.jsxs("div",{className:"relative mx-auto max-w-2xl",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 font-mono text-[11px] uppercase tracking-[0.14em] text-background/60",children:[c.jsx("span",{className:"h-px w-6 bg-background/40"}),n.label]}),c.jsx("h2",{className:"mt-6 font-display text-4xl font-medium text-background md:text-6xl text-balance",children:n.title}),c.jsx("p",{className:"mx-auto mt-5 max-w-lg text-base text-background/70",children:n.body}),c.jsx("div",{className:"mt-9 flex flex-col items-center justify-center gap-2 sm:flex-row",children:c.jsxs(Wt,{onClick:t,size:"lg",className:"h-11 rounded-md bg-primary px-5 text-sm font-medium text-primary-foreground hover:bg-primary-hover",children:[n.primary," ",c.jsx(Br,{className:"ml-1 h-4 w-4"})]})})]})]})})}function Uh(){const{t:e,lang:t}=Se();return l.useEffect(()=>{typeof document<"u"&&(document.title=e.meta.title)},[t,e.meta.title]),c.jsx(lh,{children:c.jsx(Dh,{children:c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(ac,{}),c.jsxs("main",{children:[c.jsx(xh,{}),c.jsx(bh,{}),c.jsx(jh,{}),c.jsx(Ah,{}),c.jsx(Ph,{}),c.jsx(Th,{}),c.jsx(Fh,{})]}),c.jsx("footer",{className:"border-t border-border/60 bg-surface",children:c.jsx("div",{className:"mx-auto max-w-7xl px-6 py-6 text-center font-mono text-[11px] uppercase tracking-wider text-ink-soft",children:e.footer})})]})})})}export{Uh as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.