YANZ UPLOAD ANJG

import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./index-BMYa8BDF.js";var c=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),l=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),u=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),d=e=>{let t=u(e);return t.charAt(0).toUpperCase()+t.slice(1)},f={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`},p=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},m=t(o()),h=(0,m.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},l)=>(0,m.createElement)(`svg`,{ref:l,...f,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:c(`lucide`,i),...!a&&!p(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,m.createElement)(e,t)),...Array.isArray(a)?a:[a]])),g=(e,t)=>{let n=(0,m.forwardRef)(({className:n,...r},i)=>(0,m.createElement)(h,{ref:i,iconNode:t,className:c(`lucide-${l(d(e))}`,`lucide-${e}`,n),...r}));return n.displayName=d(e),n},_=g(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),v=g(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=g(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),b=g(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),x=g(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),S=g(`calculator`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`line`,{x1:`8`,x2:`16`,y1:`6`,y2:`6`,key:`x4nwl0`}],[`line`,{x1:`16`,x2:`16`,y1:`14`,y2:`18`,key:`wjye3r`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]),C=g(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),w=g(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),T=g(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),E=g(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ee=g(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),D=g(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),te=g(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),O=g(`facebook`,[[`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`,key:`1jg4f8`}]]),ne=g(`file-spreadsheet`,[[`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:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]),k=g(`file-text`,[[`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`}]]),A=g(`graduation-cap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),re=g(`instagram`,[[`rect`,{width:`20`,height:`20`,x:`2`,y:`2`,rx:`5`,ry:`5`,key:`2e1cvw`}],[`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`,key:`9exkf1`}],[`line`,{x1:`17.5`,x2:`17.51`,y1:`6.5`,y2:`6.5`,key:`r4j83e`}]]),j=g(`linkedin`,[[`path`,{d:`M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z`,key:`c2jq9f`}],[`rect`,{width:`4`,height:`12`,x:`2`,y:`9`,key:`mk3on5`}],[`circle`,{cx:`4`,cy:`4`,r:`2`,key:`bt5ra8`}]]),M=g(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),ie=g(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),ae=g(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),oe=g(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),se=g(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),N=g(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),P=g(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),ce=g(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),le=g(`sparkles`,[[`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`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),F=g(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),ue=g(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),de=g(`user-check`,[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),fe=g(`users`,[[`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`}]]),pe=g(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),me=g(`youtube`,[[`path`,{d:`M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17`,key:`1q2vi4`}],[`path`,{d:`m10 15 5-3-5-3z`,key:`1jp15x`}]]);function he(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ge(...e){return t=>{let n=!1,r=e.map(e=>{let r=he(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...i}=e;be(r)&&typeof ve==`function`&&(r=ve(r._payload));let a=m.Children.toArray(r),o=a.find(Te);if(o){let e=o.props.children,r=a.map(t=>t===o?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Se=xe(`Slot`);function Ce(e){let t=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(be(n)&&typeof ve==`function`&&(n=ve(n._payload)),m.isValidElement(n)){let e=De(n),i=Ee(r,n.props);return n.type!==m.Fragment&&(i.ref=t?ge(t,e):e),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var we=Symbol(`radix.slottable`);function Te(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===we}function Ee(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function De(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Oe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e==`boolean`?`${e}`:e===0?`0`:e,je=ke,Me=(e,t)=>n=>{if(t?.variants==null)return je(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ae(t)||Ae(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return je(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ne=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Fe=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ie=`-`,Le=[],Re=`arbitrary..`,ze=e=>{let t=He(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ve(e);let n=e.split(Ie);return Be(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ne(i,t):t:i||Le}return n[e]||Le}}},Be=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Be(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ie):e.slice(t).join(Ie),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Re+r:void 0})(),He=e=>{let{theme:t,classGroups:n}=e;return Ue(n,t)},Ue=(e,t)=>{let n=Fe();for(let r in e){let i=e[r];We(i,n,r,t)}return n},We=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ke(e,t,n);return}if(typeof e==`function`){qe(e,t,n,r);return}Je(e,t,n,r)},Ke=(e,t,n)=>{let r=e===``?t:Ye(t,e);r.classGroupId=n},qe=(e,t,n,r)=>{if(Xe(e)){We(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Pe(n,e))},Je=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(Ie),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Ze=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Qe=`!`,$e=`:`,et=[],tt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),nt=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return tt(t,l,c,u)};if(t){let e=t+$e,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):tt(et,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},rt=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},it=e=>({cache:Ze(e.cacheSize),parseClassName:nt(e),sortModifiers:rt(e),...ze(e)}),at=/\s+/,ot=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(at),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Qe:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e0?` `+c:c)}return c},st=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=it(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ot(e,n);return i(e,a),a};return a=o,(...e)=>a(st(...e))},ut=[],dt=e=>{let t=t=>t[e]||ut;return t.isThemeGetter=!0,t},ft=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bt=e=>mt.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),xt=e=>!!e&&Number.isInteger(Number(e)),St=e=>e.endsWith(`%`)&&R(e.slice(0,-1)),Ct=e=>ht.test(e),wt=()=>!0,Tt=e=>gt.test(e)&&!_t.test(e),Et=()=>!1,Dt=e=>vt.test(e),Ot=e=>yt.test(e),kt=e=>!z(e)&&!B(e),At=e=>Gt(e,Yt,Et),z=e=>ft.test(e),jt=e=>Gt(e,Xt,Tt),Mt=e=>Gt(e,Zt,R),Nt=e=>Gt(e,$t,wt),Pt=e=>Gt(e,Qt,Et),Ft=e=>Gt(e,qt,Et),It=e=>Gt(e,Jt,Ot),Lt=e=>Gt(e,en,Dt),B=e=>pt.test(e),Rt=e=>Kt(e,Xt),zt=e=>Kt(e,Qt),Bt=e=>Kt(e,qt),Vt=e=>Kt(e,Yt),Ht=e=>Kt(e,Jt),Ut=e=>Kt(e,en,!0),Wt=e=>Kt(e,$t,!0),Gt=(e,t,n)=>{let r=ft.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Kt=(e,t,n=!1)=>{let r=pt.exec(e);return r?r[1]?t(r[1]):n:!1},qt=e=>e===`position`||e===`percentage`,Jt=e=>e===`image`||e===`url`,Yt=e=>e===`length`||e===`size`||e===`bg-size`,Xt=e=>e===`length`,Zt=e=>e===`number`,Qt=e=>e===`family-name`,$t=e=>e===`number`||e===`weight`,en=e=>e===`shadow`,tn=lt(()=>{let e=dt(`color`),t=dt(`font`),n=dt(`text`),r=dt(`font-weight`),i=dt(`tracking`),a=dt(`leading`),o=dt(`breakpoint`),s=dt(`container`),c=dt(`spacing`),l=dt(`radius`),u=dt(`shadow`),d=dt(`inset-shadow`),f=dt(`text-shadow`),p=dt(`drop-shadow`),m=dt(`blur`),h=dt(`perspective`),g=dt(`aspect`),_=dt(`ease`),v=dt(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),B,z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[B,z,c],T=()=>[bt,`full`,`auto`,...w()],E=()=>[xt,`none`,`subgrid`,B,z],ee=()=>[`auto`,{span:[`full`,xt,B,z]},xt,B,z],D=()=>[xt,`auto`,B,z],te=()=>[`auto`,`min`,`max`,`fr`,B,z],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[bt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[bt,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],j=()=>[bt,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,B,z],ie=()=>[...b(),Bt,Ft,{position:[B,z]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,Vt,At,{size:[B,z]}],se=()=>[St,Rt,jt],N=()=>[``,`none`,`full`,l,B,z],P=()=>[``,R,Rt,jt],ce=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[R,St,Bt,Ft],ue=()=>[``,`none`,m,B,z],de=()=>[`none`,R,B,z],fe=()=>[`none`,R,B,z],pe=()=>[R,B,z],me=()=>[bt,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ct],breakpoint:[Ct],color:[wt],container:[Ct],"drop-shadow":[Ct],ease:[`in`,`out`,`in-out`],font:[kt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ct],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ct],shadow:[Ct],spacing:[`px`,R],text:[Ct],"text-shadow":[Ct],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,bt,z,B,g]}],container:[`container`],columns:[{columns:[R,z,B,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[xt,`auto`,B,z]}],basis:[{basis:[bt,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[R,bt,`auto`,`initial`,`none`,z]}],grow:[{grow:[``,R,B,z]}],shrink:[{shrink:[``,R,B,z]}],order:[{order:[xt,`first`,`last`,`none`,B,z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...j()]}],"min-block-size":[{"min-block":[`auto`,...j()]}],"max-block-size":[{"max-block":[`none`,...j()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,Rt,jt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Wt,Nt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,St,z]}],"font-family":[{font:[zt,Pt,t]}],"font-features":[{"font-features":[z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,z]}],"line-clamp":[{"line-clamp":[R,`none`,B,Mt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,B,z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ce(),`wavy`]}],"text-decoration-thickness":[{decoration:[R,`from-font`,`auto`,B,jt]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[R,`auto`,B,z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},xt,B,z],radial:[``,B,z],conic:[xt,B,z]},Ht,It]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ce(),`hidden`,`none`]}],"divide-style":[{divide:[...ce(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[R,B,z]}],"outline-w":[{outline:[``,R,Rt,jt]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,Ut,Lt]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ut,Lt]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[R,jt]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,Ut,Lt]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[R,B,z]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[B,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,z]}],filter:[{filter:[``,`none`,B,z]}],blur:[{blur:ue()}],brightness:[{brightness:[R,B,z]}],contrast:[{contrast:[R,B,z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ut,Lt]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,R,B,z]}],"hue-rotate":[{"hue-rotate":[R,B,z]}],invert:[{invert:[``,R,B,z]}],saturate:[{saturate:[R,B,z]}],sepia:[{sepia:[``,R,B,z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,z]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[R,B,z]}],"backdrop-contrast":[{"backdrop-contrast":[R,B,z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,R,B,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,B,z]}],"backdrop-invert":[{"backdrop-invert":[``,R,B,z]}],"backdrop-opacity":[{"backdrop-opacity":[R,B,z]}],"backdrop-saturate":[{"backdrop-saturate":[R,B,z]}],"backdrop-sepia":[{"backdrop-sepia":[``,R,B,z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[R,`initial`,B,z]}],ease:[{ease:[`linear`,`initial`,_,B,z]}],delay:[{delay:[R,B,z]}],animate:[{animate:[`none`,v,B,z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[B,z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,z]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[R,Rt,jt,Mt]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function V(...e){return tn(ke(e))}var nn=Me(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),rn=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,L.jsx)(r?Se:`button`,{className:V(nn({variant:t,size:n,className:e})),ref:a,...i}));rn.displayName=`Button`;function an(e,t){let n=m.createContext(t),r=e=>{let{children:t,...r}=e,i=m.useMemo(()=>r,Object.values(r));return(0,L.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function on(e,t=[]){let n=[];function r(t,r){let i=m.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=m.useMemo(()=>o,Object.values(o));return(0,L.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=m.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>m.createContext(e));return function(n){let r=n?.[e]||t;return m.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,sn(i,...t)]}function sn(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function cn(e){let t=ln(e),n=m.forwardRef((e,n)=>{let{children:r,...i}=e,a=m.Children.toArray(r),o=a.find(dn);if(o){let e=o.props.children,r=a.map(t=>t===o?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ln(e){let t=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(m.isValidElement(n)){let e=pn(n),i=fn(r,n.props);return n.type!==m.Fragment&&(i.ref=t?ge(t,e):e),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var un=Symbol(`radix.slottable`);function dn(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===un}function fn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function pn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function mn(e){let t=e+`CollectionProvider`,[n,r]=on(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=m.useRef(null),a=m.useRef(new Map).current;return(0,L.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=cn(s),l=m.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,L.jsx)(c,{ref:I(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=cn(u),p=m.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=m.useRef(null),s=I(t,o),c=a(u,n);return m.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,L.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function h(t){let n=a(e+`CollectionConsumer`,t);return m.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},h,r]}typeof window<`u`&&window.document&&window.document.createElement;function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var hn=globalThis?.document?m.useLayoutEffect:()=>{},gn=m.useInsertionEffect||hn;function _n({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=vn({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=m.useRef(e!==void 0);m.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`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.`),t.current=s},[s,r])}return[c,m.useCallback(t=>{if(s){let n=yn(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function vn({defaultProp:e,onChange:t}){let[n,r]=m.useState(e),i=m.useRef(n),a=m.useRef(t);return gn(()=>{a.current=t},[t]),m.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function yn(e){return typeof e==`function`}var bn=t(i(),1);function xn(e){let t=Sn(e),n=m.forwardRef((e,n)=>{let{children:r,...i}=e,a=m.Children.toArray(r),o=a.find(wn);if(o){let e=o.props.children,r=a.map(t=>t===o?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Sn(e){let t=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(m.isValidElement(n)){let e=En(n),i=Tn(r,n.props);return n.type!==m.Fragment&&(i.ref=t?ge(t,e):e),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cn=Symbol(`radix.slottable`);function wn(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Cn}function Tn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function En(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var U=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=xn(`Primitive.${t}`),r=m.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,L.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Dn(e,t){e&&bn.flushSync(()=>e.dispatchEvent(t))}function On(e,t){return m.useReducer((e,n)=>t[e][n]??e,e)}var kn=e=>{let{present:t,children:n}=e,r=An(t),i=typeof n==`function`?n({present:r.isPresent}):m.Children.only(n),a=I(r.ref,Mn(i));return typeof n==`function`||r.isPresent?m.cloneElement(i,{ref:a}):null};kn.displayName=`Presence`;function An(e){let[t,n]=m.useState(),r=m.useRef(null),i=m.useRef(e),a=m.useRef(`none`),[o,s]=On(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return m.useEffect(()=>{let e=jn(r.current);a.current=o===`mounted`?e:`none`},[o]),hn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=jn(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),hn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=jn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=jn(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:m.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function jn(e){return e?.animationName||`none`}function Mn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nn=m.useId||(()=>void 0),Pn=0;function Fn(e){let[t,n]=m.useState(Nn());return hn(()=>{e||n(e=>e??String(Pn++))},[e]),e||(t?`radix-${t}`:``)}var In=`Collapsible`,[Ln,Rn]=on(In),[zn,Bn]=Ln(In),Vn=m.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=_n({prop:r,defaultProp:i??!1,onChange:o,caller:In});return(0,L.jsx)(zn,{scope:n,disabled:a,contentId:Fn(),open:c,onOpenToggle:m.useCallback(()=>l(e=>!e),[l]),children:(0,L.jsx)(U.div,{"data-state":qn(c),"data-disabled":a?``:void 0,...s,ref:t})})});Vn.displayName=In;var Hn=`CollapsibleTrigger`,Un=m.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=Bn(Hn,n);return(0,L.jsx)(U.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":qn(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:H(e.onClick,i.onOpenToggle)})});Un.displayName=Hn;var Wn=`CollapsibleContent`,Gn=m.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Bn(Wn,e.__scopeCollapsible);return(0,L.jsx)(kn,{present:n||i.open,children:({present:e})=>(0,L.jsx)(Kn,{...r,ref:t,present:e})})});Gn.displayName=Wn;var Kn=m.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Bn(Wn,n),[s,c]=m.useState(r),l=m.useRef(null),u=I(t,l),d=m.useRef(0),f=d.current,p=m.useRef(0),h=p.current,g=o.open||s,_=m.useRef(g),v=m.useRef(void 0);return m.useEffect(()=>{let e=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(e)},[]),hn(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,_.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,L.jsx)(U.div,{"data-state":qn(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!g,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&i})});function qn(e){return e?`open`:`closed`}var Jn=Vn,Yn=Un,Xn=Gn,Zn=m.createContext(void 0);function Qn(e){let t=m.useContext(Zn);return e||t||`ltr`}var $n=`Accordion`,er=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[tr,nr,rr]=mn($n),[ir,ar]=on($n,[rr,Rn]),or=Rn(),sr=m.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,L.jsx)(tr.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,L.jsx)(pr,{...a,ref:t}):(0,L.jsx)(fr,{...i,ref:t})})});sr.displayName=$n;var[cr,lr]=ir($n),[ur,dr]=ir($n,{collapsible:!1}),fr=m.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=_n({prop:n,defaultProp:r??``,onChange:i,caller:$n});return(0,L.jsx)(cr,{scope:e.__scopeAccordion,value:m.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:m.useCallback(()=>a&&c(``),[a,c]),children:(0,L.jsx)(ur,{scope:e.__scopeAccordion,collapsible:a,children:(0,L.jsx)(gr,{...o,ref:t})})})}),pr=m.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=_n({prop:n,defaultProp:r??[],onChange:i,caller:$n}),c=m.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=m.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,L.jsx)(cr,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,L.jsx)(ur,{scope:e.__scopeAccordion,collapsible:!0,children:(0,L.jsx)(gr,{...a,ref:t})})})}),[mr,hr]=ir($n),gr=m.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=I(m.useRef(null),t),c=nr(n),l=Qn(i)===`ltr`,u=H(e.onKeyDown,e=>{if(!er.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=()=>{o=r+1,o>s&&(o=0)},d=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(l?u():d());break;case`ArrowDown`:a===`vertical`&&u();break;case`ArrowLeft`:a===`horizontal`&&(l?d():u());break;case`ArrowUp`:a===`vertical`&&d();break}n[o%i].ref.current?.focus()});return(0,L.jsx)(mr,{scope:n,disabled:r,direction:i,orientation:a,children:(0,L.jsx)(tr.Slot,{scope:n,children:(0,L.jsx)(U.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})}),_r=`AccordionItem`,[vr,yr]=ir(_r),br=m.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=hr(_r,n),o=lr(_r,n),s=or(n),c=Fn(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,L.jsx)(vr,{scope:n,open:l,disabled:u,triggerId:c,children:(0,L.jsx)(Jn,{"data-orientation":a.orientation,"data-state":Dr(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});br.displayName=_r;var xr=`AccordionHeader`,Sr=m.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=hr($n,n),a=yr(xr,n);return(0,L.jsx)(U.h3,{"data-orientation":i.orientation,"data-state":Dr(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});Sr.displayName=xr;var Cr=`AccordionTrigger`,wr=m.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=hr($n,n),a=yr(Cr,n),o=dr(Cr,n),s=or(n);return(0,L.jsx)(tr.ItemSlot,{scope:n,children:(0,L.jsx)(Yn,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});wr.displayName=Cr;var Tr=`AccordionContent`,Er=m.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=hr($n,n),a=yr(Tr,n),o=or(n);return(0,L.jsx)(Xn,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});Er.displayName=Tr;function Dr(e){return e?`open`:`closed`}var Or=sr,kr=br,Ar=Sr,jr=wr,Mr=Er,Nr=Or,Pr=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(kr,{ref:n,className:V(`border-b`,e),...t}));Pr.displayName=`AccordionItem`;var Fr=m.forwardRef(({className:e,children:t,...n},r)=>(0,L.jsx)(Ar,{className:`flex`,children:(0,L.jsxs)(jr,{ref:r,className:V(`flex flex-1 items-center justify-between py-4 text-sm font-medium cursor-pointer transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,L.jsx)(w,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200`})]})}));Fr.displayName=jr.displayName;var Ir=m.forwardRef(({className:e,children:t,...n},r)=>(0,L.jsx)(Mr,{ref:r,className:`overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,L.jsx)(`div`,{className:V(`pb-4 pt-0`,e),children:t})}));Ir.displayName=Mr.displayName;function Lr(e){return Object.prototype.toString.call(e)===`[object Object]`}function Rr(e){return Lr(e)||Array.isArray(e)}function zr(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Br(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!Rr(r)||!Rr(i)?r===i:Br(r,i)})}function Vr(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function Hr(e,t){if(e.length!==t.length)return!1;let n=Vr(e),r=Vr(t);return n.every((e,t)=>{let n=r[t];return Br(e,n)})}function Ur(e){return typeof e==`number`}function Wr(e){return typeof e==`string`}function Gr(e){return typeof e==`boolean`}function Kr(e){return Object.prototype.toString.call(e)===`[object Object]`}function W(e){return Math.abs(e)}function qr(e){return Math.sign(e)}function Jr(e,t){return W(e-t)}function Yr(e,t){return e===0||t===0||W(e)<=W(t)?0:W(Jr(W(e),W(t))/e)}function Xr(e){return Math.round(e*100)/100}function Zr(e){return ni(e).map(Number)}function Qr(e){return e[$r(e)]}function $r(e){return Math.max(0,e.length-1)}function ei(e,t){return t===$r(e)}function ti(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function ni(e){return Object.keys(e)}function ri(e,t){return[e,t].reduce((e,t)=>(ni(t).forEach(n=>{let r=e[n],i=t[n];e[n]=Kr(r)&&Kr(i)?ri(r,i):i}),e),{})}function ii(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function ai(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return Wr(e)?n[e](r):e(t,r,i)}return{measure:o}}function oi(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function si(e,t,n,r){let i=oi(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function ci(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function li(e=0,t=0){let n=W(e-t);function r(t){return tt}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function ui(e,t,n){let{constrain:r}=li(0,e),i=e+1,a=o(t);function o(e){return n?W((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return ui(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function di(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=oi(),w=oi(),T=li(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},ee={mouse:500,touch:600},D=m?43:25,te=!1,O=0,ne=0,k=!1,A=!1,re=!1,j=!1;function M(e){if(!v)return;function n(t){(Gr(v)||v(e,t))&&P(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,le).add(r,`contextmenu`,le).add(r,`click`,F,!0)}function ie(){C.clear(),w.clear()}function ae(){let e=j?n:t;w.add(e,`touchmove`,ce,S).add(e,`touchend`,le).add(e,`mousemove`,ce,S).add(e,`mouseup`,le)}function oe(e){let t=e.nodeName||``;return x.includes(t)}function se(){return(m?ee:E)[j?`mouse`:`touch`]}function N(e,t){let n=d.add(qr(e)*-1),r=u.byDistance(e,!m).distance;return m||W(e)=2,!(t&&e.button!==0)&&(oe(e.target)||(k=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),ae(),O=a.readPoint(e),ne=a.readPoint(e,y),f.emit(`pointerDown`)))}function ce(e){if(!ii(e,r)&&e.touches.length>=2)return le(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=Jr(t,O),c=Jr(n,ne);if(!A&&!j&&(!e.cancelable||(A=o>c,!A)))return le(e);let u=a.pointerMove(e);o>h&&(re=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function le(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*se(),r=N(b(n),t),i=Yr(n,r),o=D-10*i,s=_+i/50;A=!1,k=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),j=!1,f.emit(`pointerUp`)}function F(e){re&&=(e.stopPropagation(),e.preventDefault(),!1)}function ue(){return k}return{init:M,destroy:ie,pointerDown:ue}}function fi(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(ii(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&W(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function pi(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function mi(e){function t(t){return t/100*e}return{measure:t}}function hi(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(W(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(Gr(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function gi(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=qr(a),d=u,x}function p(){return W(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function _i(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=li(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=W(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&W(u){let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=ei(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function yi(e,t,n){let r=t[0];return{limit:li(n?r-e:Qr(t),r)}}function bi(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=li(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function xi(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Si(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>Qr(e)[o]-e[0][a]).map(W)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-W(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function Ci(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=ei(n,t);return r?ti(Qr(n[0])+1):i?ti($r(a)-Qr(n)[0]+1,Qr(n)[0]):e})}return{slideRegistry:l}}function wi(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>W(e)-W(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>W(e.diff)-W(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>qr(e)===r);return a.length?c(a):Qr(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function Ti(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Ei(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));Ur(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(Gr(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function Di(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return Ur(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Oi(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=Xr(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function ki(e,t,n,r,i,a,o,s,c){let l=.5,u=Zr(i),d=Zr(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:Di(-1),translate:Oi(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Ai(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(Gr(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function ji(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return ni(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Mi(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return W(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(Qr(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=ei(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(W)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Ni(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=Ur(n);function p(e,t){return Zr(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?Zr(e).reduce((n,f,p)=>{let m=Qr(n)||0,h=m===0,g=f===$r(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=W(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Pi(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=pi(),w=C.measure(t),T=n.map(C.measure),E=ci(c,l),ee=E.measureSize(w),D=mi(ee),te=ai(s,ee),O=!d&&!!v,{slideSizes:ne,slideSizesWithGaps:k,startGap:A,endGap:re}=Mi(E,w,T,n,d||!!v,i),j=Ni(E,ee,g,d,w,T,A,re,2),{snaps:M,snapsAligned:ie}=Si(E,te,w,T,j),ae=-Qr(M)+Qr(k),{snapsContained:oe,scrollContainLimit:se}=vi(ee,ae,ie,v,2),N=O?oe:ie,{limit:P}=yi(ae,N,d),ce=ui($r(N),u,d),le=ce.clone(),F=Zr(n),ue=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},de=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},fe=si(r,i,()=>ue(Te),e=>de(Te,e)),pe=.68,me=N[ce.get()],he=Di(me),ge=Di(me),I=Di(me),L=Di(me),_e=gi(he,I,ge,L,f,pe),ve=wi(d,N,ae,P,L),ye=Ti(fe,ce,le,_e,ve,L,o),be=xi(P),xe=oi(),Se=ji(t,n,o,h),{slideRegistry:Ce}=Ci(O,v,N,se,j,F),we=Ei(e,n,Ce,ye,_e,xe,o,S),Te={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:fe,axis:E,dragHandler:di(E,e,r,i,L,fi(E,i),he,fe,ye,_e,ve,ce,o,D,p,m,_,pe,x),eventStore:xe,percentOfView:D,index:ce,indexPrevious:le,limit:P,location:he,offsetLocation:I,previousLocation:ge,options:a,resizeHandler:hi(t,o,i,n,E,y,C),scrollBody:_e,scrollBounds:_i(P,I,L,_e,D),scrollLooper:bi(ae,P,I,[he,I,ge,L]),scrollProgress:be,scrollSnapList:N.map(be.get),scrollSnaps:N,scrollTarget:ve,scrollTo:ye,slideLooper:ki(E,ee,ae,ne,k,M,N,I,n),slideFocus:we,slidesHandler:Ai(t,o,b),slidesInView:Se,slideIndexes:F,slideRegistry:Ce,slidesToScroll:j,target:L,translate:Oi(E,t)};return Te}function Fi(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Ii={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Li(e){function t(e,t){return ri(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,ni(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>ni(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Ri(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function zi(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Li(i),o=Ri(a),s=oi(),c=Fi(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=ee,g=!1,_,v=l(Ii,zi.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(Wr(t)?e.querySelector(t):t)||e.children[0];let r=Wr(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Pi(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,ee)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(ue),_.eventHandler.init(ue),_.resizeHandler.init(ue),_.slidesHandler.init(ue),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(ue),x=o.init(ue,b)))}function ee(e,t){let n=ie();D(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function D(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function te(){g||(g=!0,s.clear(),D(),c.emit(`destroy`),c.clear())}function O(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function ne(e){O(_.index.add(1).get(),e,-1)}function k(e){O(_.index.add(-1).get(),e,1)}function A(){return _.index.add(1).get()!==ie()}function re(){return _.index.add(-1).get()!==ie()}function j(){return _.scrollSnapList}function M(){return _.scrollProgress.get(_.offsetLocation.get())}function ie(){return _.index.get()}function ae(){return _.indexPrevious.get()}function oe(){return _.slidesInView.get()}function se(){return _.slidesInView.get(!1)}function N(){return x}function P(){return _}function ce(){return e}function le(){return S}function F(){return C}let ue={canScrollNext:A,canScrollPrev:re,containerNode:le,internalEngine:P,destroy:te,off:p,on:f,emit:m,plugins:N,previousScrollSnap:ae,reInit:h,rootNode:ce,scrollNext:ne,scrollPrev:k,scrollProgress:M,scrollSnapList:j,scrollTo:O,selectedScrollSnap:ie,slideNodes:F,slidesInView:oe,slidesNotInView:se};return E(t,n),setTimeout(()=>c.emit(`init`),0),ue}zi.globalOptions=void 0;function Bi(e={},t=[]){let n=(0,m.useRef)(e),r=(0,m.useRef)(t),[i,a]=(0,m.useState)(),[o,s]=(0,m.useState)(),c=(0,m.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,m.useEffect)(()=>{Br(n.current,e)||(n.current=e,c())},[e,c]),(0,m.useEffect)(()=>{Hr(r.current,t)||(r.current=t,c())},[t,c]),(0,m.useEffect)(()=>{if(zr()&&o){zi.globalOptions=Bi.globalOptions;let e=zi(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}Bi.globalOptions=void 0;var Vi=m.createContext(null);function Hi(){let e=m.useContext(Vi);if(!e)throw Error(`useCarousel must be used within a `);return e}var Ui=m.forwardRef(({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o},s)=>{let[c,l]=Bi({...t,axis:e===`horizontal`?`x`:`y`},r),[u,d]=m.useState(!1),[f,p]=m.useState(!1),h=m.useCallback(e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))},[]),g=m.useCallback(()=>{l?.scrollPrev()},[l]),_=m.useCallback(()=>{l?.scrollNext()},[l]),v=m.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),g()):e.key===`ArrowRight`&&(e.preventDefault(),_())},[g,_]);return m.useEffect(()=>{!l||!n||n(l)},[l,n]),m.useEffect(()=>{if(l)return h(l),l.on(`reInit`,h),l.on(`select`,h),()=>{l?.off(`select`,h)}},[l,h]),(0,L.jsx)(Vi.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:g,scrollNext:_,canScrollPrev:u,canScrollNext:f},children:(0,L.jsx)(`div`,{ref:s,onKeyDownCapture:v,className:V(`relative`,i),role:`region`,"aria-roledescription":`carousel`,...o,children:a})})});Ui.displayName=`Carousel`;var Wi=m.forwardRef(({className:e,...t},n)=>{let{carouselRef:r,orientation:i}=Hi();return(0,L.jsx)(`div`,{ref:r,className:`overflow-hidden`,children:(0,L.jsx)(`div`,{ref:n,className:V(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});Wi.displayName=`CarouselContent`;var Gi=m.forwardRef(({className:e,...t},n)=>{let{orientation:r}=Hi();return(0,L.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,className:V(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});Gi.displayName=`CarouselItem`;var Ki=m.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollPrev:o,canScrollPrev:s}=Hi();return(0,L.jsxs)(rn,{ref:i,variant:t,size:n,className:V(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-left-12 top-1/2 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,L.jsx)(_,{className:`h-4 w-4`}),(0,L.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})});Ki.displayName=`CarouselPrevious`;var qi=m.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollNext:o,canScrollNext:s}=Hi();return(0,L.jsxs)(rn,{ref:i,variant:t,size:n,className:V(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-right-12 top-1/2 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,L.jsx)(v,{className:`h-4 w-4`}),(0,L.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})});qi.displayName=`CarouselNext`;function Ji({end:e,suffix:t=`+`,duration:n=1600}){let[r,i]=(0,m.useState)(0),a=(0,m.useRef)(null),o=(0,m.useRef)(!1);return(0,m.useEffect)(()=>{let t=a.current;if(!t)return;let r=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting&&!o.current){o.current=!0;let t=performance.now(),r=a=>{let o=Math.min(1,(a-t)/n),s=1-(1-o)**3;i(Math.floor(s*e)),o<1&&requestAnimationFrame(r)};requestAnimationFrame(r)}})},{threshold:.3});return r.observe(t),()=>r.disconnect()},[e,n]),(0,L.jsxs)(`span`,{ref:a,children:[r,t]})}var Yi=`https://wa.me/message/FJM62MFSNAT3A1`;function Xi(){return(0,L.jsxs)(`div`,{className:`group fixed bottom-5 right-5 z-50 flex items-center gap-3`,children:[(0,L.jsx)(`span`,{className:`pointer-events-none invisible absolute right-full mr-3 whitespace-nowrap rounded-lg bg-foreground px-3 py-1.5 text-xs font-medium text-background opacity-0 shadow-lg transition-all duration-300 group-hover:visible group-hover:opacity-100 sm:visible sm:opacity-0`,children:`Chat with us on WhatsApp`}),(0,L.jsxs)(`a`,{href:Yi,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Chat with us on WhatsApp`,title:`Chat with us on WhatsApp`,className:`relative grid h-14 w-14 place-items-center rounded-full bg-[#25D366] text-white shadow-glow ring-4 ring-white/60 transition-transform duration-200 hover:scale-110`,children:[(0,L.jsx)(`span`,{className:`absolute inset-0 rounded-full bg-[#25D366] opacity-75 animate-ping`,"aria-hidden":!0}),(0,L.jsx)(`svg`,{viewBox:`0 0 32 32`,className:`relative z-10 h-7 w-7`,fill:`currentColor`,"aria-hidden":!0,children:(0,L.jsx)(`path`,{d:`M19.11 17.28c-.28-.14-1.66-.82-1.92-.91-.26-.09-.44-.14-.63.14s-.72.91-.88 1.1c-.16.19-.32.21-.6.07-.28-.14-1.18-.44-2.24-1.39-.83-.74-1.39-1.65-1.55-1.93-.16-.28-.02-.43.12-.57.13-.13.28-.32.42-.49.14-.16.19-.28.28-.47.09-.19.05-.35-.02-.49-.07-.14-.63-1.51-.86-2.07-.23-.55-.46-.47-.63-.48h-.54c-.19 0-.49.07-.75.35-.26.28-.99.97-.99 2.36 0 1.39 1.01 2.74 1.15 2.93.14.19 2 3.05 4.85 4.28.68.29 1.2.47 1.61.6.68.22 1.29.19 1.78.11.54-.08 1.66-.68 1.9-1.34.23-.65.23-1.21.16-1.34-.07-.12-.26-.19-.54-.33zM16.03 5.33c-5.9 0-10.7 4.8-10.7 10.7 0 1.88.5 3.71 1.44 5.33L5 27l5.79-1.52c1.56.85 3.32 1.3 5.1 1.3h.01c5.9 0 10.7-4.8 10.7-10.7 0-2.86-1.11-5.55-3.13-7.57a10.63 10.63 0 0 0-7.44-3.18z`})})]})]})}var G;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(G||={});var Zi;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(Zi||={});var K=G.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),Qi=e=>{switch(typeof e){case`undefined`:return K.undefined;case`string`:return K.string;case`number`:return Number.isNaN(e)?K.nan:K.number;case`boolean`:return K.boolean;case`function`:return K.function;case`bigint`:return K.bigint;case`symbol`:return K.symbol;case`object`:return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?K.promise:typeof Map<`u`&&e instanceof Map?K.map:typeof Set<`u`&&e instanceof Set?K.set:typeof Date<`u`&&e instanceof Date?K.date:K.object;default:return K.unknown}},q=G.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`]),$i=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};$i.create=e=>new $i(e);var ea=(e,t)=>{let n;switch(e.code){case q.invalid_type:n=e.received===K.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,G.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${G.joinValues(e.keys,`, `)}`;break;case q.invalid_union:n=`Invalid input`;break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${G.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${G.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n=`Invalid function arguments`;break;case q.invalid_return_type:n=`Invalid function return type`;break;case q.invalid_date:n=`Invalid date`;break;case q.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:G.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case q.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case q.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case q.custom:n=`Invalid input`;break;case q.invalid_intersection_types:n=`Intersection results could not be merged`;break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,G.assertNever(e)}return{message:n}},ta=ea;function na(){return ta}var ra=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function J(e,t){let n=na(),r=ra({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ea?void 0:ea].filter(e=>!!e)});e.common.issues.push(r)}var ia=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return Y;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return Y;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},Y=Object.freeze({status:`aborted`}),aa=e=>({status:`dirty`,value:e}),oa=e=>({status:`valid`,value:e}),sa=e=>e.status===`aborted`,ca=e=>e.status===`dirty`,la=e=>e.status===`valid`,ua=e=>typeof Promise<`u`&&e instanceof Promise,X;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(X||={});var da=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}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}},fa=(e,t)=>{if(la(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new $i(e.common.issues);return this._error=t,this._error}}};function Z(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var Q=class{get description(){return this._def.description}_getType(e){return Qi(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Qi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ia,ctx:{common:e.parent.common,data:e.data,parsedType:Qi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ua(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Qi(e)};return fa(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Qi(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return la(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>la(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Qi(e)},r=this._parse({data:e,path:n.path,parent:n});return fa(n,await(ua(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:q.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new go({schema:this,typeName:$.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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:e=>this[`~validate`](e)}}optional(){return _o.create(this,this._def)}nullable(){return vo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xa.create(this)}promise(){return ho.create(this,this._def)}or(e){return $a.create([this,e],this._def)}and(e){return ro.create(this,e,this._def)}transform(e){return new go({...Z(this._def),schema:this,typeName:$.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new yo({...Z(this._def),innerType:this,defaultValue:t,typeName:$.ZodDefault})}brand(){return new So({typeName:$.ZodBranded,type:this,...Z(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new bo({...Z(this._def),innerType:this,catchValue:t,typeName:$.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Co.create(this,e)}readonly(){return wo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pa=/^c[^\s-]{8,}$/i,ma=/^[0-9a-z]+$/,ha=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ga=/^[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,_a=/^[a-z0-9_-]{21}$/i,va=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ya=/^[-+]?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)?)??$/,ba=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xa=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Sa,Ca=/^(?:(?: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])$/,wa=/^(?:(?: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])$/,Ta=/^(([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]))$/,Ea=/^(([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])$/,Da=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Oa=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ka=`((\\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])))`,Aa=RegExp(`^${ka}$`);function ja(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Ma(e){return RegExp(`^${ja(e)}$`)}function Na(e){let t=`${ka}T${ja(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Pa(e,t){return!!((t===`v4`||!t)&&Ca.test(e)||(t===`v6`||!t)&&Ta.test(e))}function Fa(e,t){if(!va.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Ia(e,t){return!!((t===`v4`||!t)&&wa.test(e)||(t===`v6`||!t)&&Ea.test(e))}var La=class e extends Q{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.string,received:t.parsedType}),Y}let t=new ia,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:q.invalid_string,...X.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...X.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...X.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...X.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...X.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...X.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...X.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...X.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...X.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...X.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...X.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...X.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...X.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...X.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...X.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...X.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...X.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...X.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...X.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...X.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...X.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...X.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...X.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...X.errToObj(t)})}nonempty(e){return this.min(1,X.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew La({checks:[],typeName:$.ZodString,coerce:e?.coerce??!1,...Z(e)});function Ra(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var za=class e extends Q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.number,received:t.parsedType}),Y}let t,n=new ia;for(let r of this._def.checks)r.kind===`int`?G.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Ra(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_finite,message:r.message}),n.dirty()):G.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,X.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,X.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,X.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,X.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:X.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:X.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:X.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:X.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:X.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:X.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:X.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&G.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew za({checks:[],typeName:$.ZodNumber,coerce:e?.coerce||!1,...Z(e)});var Ba=class e extends Q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==K.bigint)return this._getInvalidInput(e);let t,n=new ia;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):G.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.bigint,received:t.parsedType}),Y}gte(e,t){return this.setLimit(`min`,e,!0,X.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,X.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,X.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,X.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:X.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:X.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:X.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Ba({checks:[],typeName:$.ZodBigInt,coerce:e?.coerce??!1,...Z(e)});var Va=class extends Q{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.boolean,received:t.parsedType}),Y}return oa(e.data)}};Va.create=e=>new Va({typeName:$.ZodBoolean,coerce:e?.coerce||!1,...Z(e)});var Ha=class e extends Q{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.date,received:t.parsedType}),Y}if(Number.isNaN(e.data.getTime()))return J(this._getOrReturnCtx(e),{code:q.invalid_date}),Y;let t=new ia,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):G.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:X.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:X.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Ha({checks:[],coerce:e?.coerce||!1,typeName:$.ZodDate,...Z(e)});var Ua=class extends Q{_parse(e){if(this._getType(e)!==K.symbol){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.symbol,received:t.parsedType}),Y}return oa(e.data)}};Ua.create=e=>new Ua({typeName:$.ZodSymbol,...Z(e)});var Wa=class extends Q{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.undefined,received:t.parsedType}),Y}return oa(e.data)}};Wa.create=e=>new Wa({typeName:$.ZodUndefined,...Z(e)});var Ga=class extends Q{_parse(e){if(this._getType(e)!==K.null){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.null,received:t.parsedType}),Y}return oa(e.data)}};Ga.create=e=>new Ga({typeName:$.ZodNull,...Z(e)});var Ka=class extends Q{constructor(){super(...arguments),this._any=!0}_parse(e){return oa(e.data)}};Ka.create=e=>new Ka({typeName:$.ZodAny,...Z(e)});var qa=class extends Q{constructor(){super(...arguments),this._unknown=!0}_parse(e){return oa(e.data)}};qa.create=e=>new qa({typeName:$.ZodUnknown,...Z(e)});var Ja=class extends Q{_parse(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.never,received:t.parsedType}),Y}};Ja.create=e=>new Ja({typeName:$.ZodNever,...Z(e)});var Ya=class extends Q{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.void,received:t.parsedType}),Y}return oa(e.data)}};Ya.create=e=>new Ya({typeName:$.ZodVoid,...Z(e)});var Xa=class e extends Q{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==K.array)return J(t,{code:q.invalid_type,expected:K.array,received:t.parsedType}),Y;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(J(t,{code:q.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new da(t,e,t.path,n)))).then(e=>ia.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new da(t,e,t.path,n)));return ia.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:X.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:X.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:X.toString(n)}})}nonempty(e){return this.min(1,e)}};Xa.create=(e,t)=>new Xa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$.ZodArray,...Z(t)});function Za(e){if(e instanceof Qa){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=_o.create(Za(r))}return new Qa({...e._def,shape:()=>t})}else if(e instanceof Xa)return new Xa({...e._def,type:Za(e.element)});else if(e instanceof _o)return _o.create(Za(e.unwrap()));else if(e instanceof vo)return vo.create(Za(e.unwrap()));else if(e instanceof io)return io.create(e.items.map(e=>Za(e)));else return e}var Qa=class e extends Q{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=G.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==K.object){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),Y}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ja&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new da(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Ja){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(J(n,{code:q.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new da(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>ia.mergeObjectSync(t,e)):ia.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return X.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:X.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:$.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of G.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of G.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return Za(this)}partial(t){let n={};for(let e of G.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of G.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof _o;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return fo(G.objectKeys(this.shape))}};Qa.create=(e,t)=>new Qa({shape:()=>e,unknownKeys:`strip`,catchall:Ja.create(),typeName:$.ZodObject,...Z(t)}),Qa.strictCreate=(e,t)=>new Qa({shape:()=>e,unknownKeys:`strict`,catchall:Ja.create(),typeName:$.ZodObject,...Z(t)}),Qa.lazycreate=(e,t)=>new Qa({shape:e,unknownKeys:`strip`,catchall:Ja.create(),typeName:$.ZodObject,...Z(t)});var $a=class extends Q{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new $i(e.ctx.common.issues));return J(t,{code:q.invalid_union,unionErrors:n}),Y}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new $i(e));return J(t,{code:q.invalid_union,unionErrors:i}),Y}}get options(){return this._def.options}};$a.create=(e,t)=>new $a({options:e,typeName:$.ZodUnion,...Z(t)});var eo=e=>e instanceof lo?eo(e.schema):e instanceof go?eo(e.innerType()):e instanceof uo?[e.value]:e instanceof po?e.options:e instanceof mo?G.objectValues(e.enum):e instanceof yo?eo(e._def.innerType):e instanceof Wa?[void 0]:e instanceof Ga?[null]:e instanceof _o?[void 0,...eo(e.unwrap())]:e instanceof vo?[null,...eo(e.unwrap())]:e instanceof So||e instanceof wo?eo(e.unwrap()):e instanceof bo?eo(e._def.innerType):[],to=class e extends Q{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.object)return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),Y;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(J(t,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Y)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=eo(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:$.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Z(r)})}};function no(e,t){let n=Qi(e),r=Qi(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){let n=G.objectKeys(t),r=G.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=no(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(sa(e)||sa(r))return Y;let i=no(e.value,r.value);return i.valid?((ca(e)||ca(r))&&t.dirty(),{status:t.value,value:i.data}):(J(n,{code:q.invalid_intersection_types}),Y)};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(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ro.create=(e,t,n)=>new ro({left:e,right:t,typeName:$.ZodIntersection,...Z(n)});var io=class e extends Q{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return J(n,{code:q.invalid_type,expected:K.array,received:n.parsedType}),Y;if(n.data.lengththis._def.items.length&&(J(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new da(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>ia.mergeArray(t,e)):ia.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};io.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new io({items:e,typeName:$.ZodTuple,rest:null,...Z(t)})};var ao=class e extends Q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return J(n,{code:q.invalid_type,expected:K.object,received:n.parsedType}),Y;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new da(n,e,n.path,e)),value:a._parse(new da(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?ia.mergeObjectAsync(t,r):ia.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Q?new e({keyType:t,valueType:n,typeName:$.ZodRecord,...Z(r)}):new e({keyType:La.create(),valueType:t,typeName:$.ZodRecord,...Z(n)})}},oo=class extends Q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return J(n,{code:q.invalid_type,expected:K.map,received:n.parsedType}),Y;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new da(n,e,n.path,[a,`key`])),value:i._parse(new da(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return Y;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return Y;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};oo.create=(e,t,n)=>new oo({valueType:t,keyType:e,typeName:$.ZodMap,...Z(n)});var so=class e extends Q{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return J(n,{code:q.invalid_type,expected:K.set,received:n.parsedType}),Y;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(J(n,{code:q.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return Y;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new da(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:X.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:X.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};so.create=(e,t)=>new so({valueType:e,minSize:null,maxSize:null,typeName:$.ZodSet,...Z(t)});var co=class e extends Q{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.function)return J(t,{code:q.invalid_type,expected:K.function,received:t.parsedType}),Y;function n(e,n){return ra({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,na(),ea].filter(e=>!!e),issueData:{code:q.invalid_arguments,argumentsError:n}})}function r(e,n){return ra({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,na(),ea].filter(e=>!!e),issueData:{code:q.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ho){let e=this;return oa(async function(...t){let o=new $i([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return oa(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new $i([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new $i([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:io.create(t).rest(qa.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||io.create([]).rest(qa.create()),returns:n||qa.create(),typeName:$.ZodFunction,...Z(r)})}},lo=class extends Q{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};lo.create=(e,t)=>new lo({getter:e,typeName:$.ZodLazy,...Z(t)});var uo=class extends Q{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return J(t,{received:t.data,code:q.invalid_literal,expected:this._def.value}),Y}return{status:`valid`,value:e.data}}get value(){return this._def.value}};uo.create=(e,t)=>new uo({value:e,typeName:$.ZodLiteral,...Z(t)});function fo(e,t){return new po({values:e,typeName:$.ZodEnum,...Z(t)})}var po=class e extends Q{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{expected:G.joinValues(n),received:t.parsedType,code:q.invalid_type}),Y}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{received:t.data,code:q.invalid_enum_value,options:n}),Y}return oa(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};po.create=fo;var mo=class extends Q{_parse(e){let t=G.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let e=G.objectValues(t);return J(n,{expected:G.joinValues(e),received:n.parsedType,code:q.invalid_type}),Y}if(this._cache||=new Set(G.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=G.objectValues(t);return J(n,{received:n.data,code:q.invalid_enum_value,options:e}),Y}return oa(e.data)}get enum(){return this._def.values}};mo.create=(e,t)=>new mo({values:e,typeName:$.ZodNativeEnum,...Z(t)});var ho=class extends Q{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==K.promise&&t.common.async===!1?(J(t,{code:q.invalid_type,expected:K.promise,received:t.parsedType}),Y):oa((t.parsedType===K.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};ho.create=(e,t)=>new ho({type:e,typeName:$.ZodPromise,...Z(t)});var go=class extends Q{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{J(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return Y;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?Y:r.status===`dirty`||t.value===`dirty`?aa(r.value):r});{if(t.value===`aborted`)return Y;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?Y:r.status===`dirty`||t.value===`dirty`?aa(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?Y:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?Y:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!la(e))return Y;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>la(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):Y);G.assertNever(r)}};go.create=(e,t,n)=>new go({schema:e,typeName:$.ZodEffects,effect:t,...Z(n)}),go.createWithPreprocess=(e,t,n)=>new go({schema:t,effect:{type:`preprocess`,transform:e},typeName:$.ZodEffects,...Z(n)});var _o=class extends Q{_parse(e){return this._getType(e)===K.undefined?oa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};_o.create=(e,t)=>new _o({innerType:e,typeName:$.ZodOptional,...Z(t)});var vo=class extends Q{_parse(e){return this._getType(e)===K.null?oa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};vo.create=(e,t)=>new vo({innerType:e,typeName:$.ZodNullable,...Z(t)});var yo=class extends Q{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};yo.create=(e,t)=>new yo({innerType:e,typeName:$.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...Z(t)});var bo=class extends Q{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ua(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new $i(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new $i(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};bo.create=(e,t)=>new bo({innerType:e,typeName:$.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...Z(t)});var xo=class extends Q{_parse(e){if(this._getType(e)!==K.nan){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.nan,received:t.parsedType}),Y}return{status:`valid`,value:e.data}}};xo.create=e=>new xo({typeName:$.ZodNaN,...Z(e)});var So=class extends Q{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},Co=class e extends Q{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?Y:e.status===`dirty`?(t.dirty(),aa(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?Y:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:$.ZodPipeline})}},wo=class extends Q{_parse(e){let t=this._def.innerType._parse(e),n=e=>(la(e)&&(e.value=Object.freeze(e.value)),e);return ua(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};wo.create=(e,t)=>new wo({innerType:e,typeName:$.ZodReadonly,...Z(t)}),Qa.lazycreate;var $;(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`})($||={});var To=La.create;za.create,xo.create,Ba.create,Va.create,Ha.create,Ua.create,Wa.create,Ga.create,Ka.create,qa.create,Ja.create,Ya.create,Xa.create;var Eo=Qa.create;Qa.strictCreate,$a.create,to.create,ro.create,io.create,ao.create,oo.create,so.create,co.create,lo.create;var Do=uo.create;po.create,mo.create,ho.create,go.create,_o.create,vo.create,go.createWithPreprocess,Co.create;var Oo=m.forwardRef(({className:e,type:t,...n},r)=>(0,L.jsx)(`input`,{type:t,className:V(`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:r,...n}));Oo.displayName=`Input`;var ko=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(`textarea`,{className:V(`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:n,...t}));ko.displayName=`Textarea`;function Ao(e){let t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function jo(e){let[t,n]=m.useState(void 0);return hn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Mo=`Checkbox`,[No,Po]=on(Mo),[Fo,Io]=No(Mo);function Lo(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=_n({prop:n,defaultProp:i??!1,onChange:c,caller:Mo}),[h,g]=m.useState(null),[_,v]=m.useState(null),y=m.useRef(!1),b=h?!!o||!!h.closest(`form`):!0,x={checked:f,disabled:a,setChecked:p,control:h,setControl:g,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:y,required:l,defaultChecked:Ko(i)?!1:i,isFormControl:b,bubbleInput:_,setBubbleInput:v};return(0,L.jsx)(Fo,{scope:t,...x,children:Go(d)?d(x):r})}var Ro=`CheckboxTrigger`,zo=m.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:h}=Io(Ro,e),g=I(i,u),_=m.useRef(c);return m.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(_.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,L.jsx)(U.button,{type:`button`,role:`checkbox`,"aria-checked":Ko(c)?`mixed`:c,"aria-required":l,"data-state":qo(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:H(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:H(n,e=>{d(e=>Ko(e)?!0:!e),h&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});zo.displayName=Ro;var Bo=m.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,L.jsx)(Lo,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(zo,{...d,ref:t,__scopeCheckbox:n}),e&&(0,L.jsx)(Wo,{__scopeCheckbox:n})]})})});Bo.displayName=Mo;var Vo=`CheckboxIndicator`,Ho=m.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Io(Vo,n);return(0,L.jsx)(kn,{present:r||Ko(a.checked)||a.checked===!0,children:(0,L.jsx)(U.span,{"data-state":qo(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});Ho.displayName=Vo;var Uo=`CheckboxBubbleInput`,Wo=m.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:p}=Io(Uo,e),h=I(n,p),g=Ao(a),_=jo(r);m.useEffect(()=>{let e=f;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(g!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Ko(a),n.call(e,Ko(a)?!1:a),e.dispatchEvent(t)}},[f,g,a,i]);let v=m.useRef(Ko(a)?!1:a);return(0,L.jsx)(U.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??v.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,..._,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});Wo.displayName=Uo;function Go(e){return typeof e==`function`}function Ko(e){return e===`indeterminate`}function qo(e){return Ko(e)?`indeterminate`:e?`checked`:`unchecked`}var Jo=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(Bo,{ref:n,className:V(`grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow cursor-pointer 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:(0,L.jsx)(Ho,{className:V(`grid place-content-center text-current`),children:(0,L.jsx)(C,{className:`h-4 w-4`})})}));Jo.displayName=Bo.displayName;function Yo(e,[t,n]){return Math.min(n,Math.max(t,e))}function Xo(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...e)=>t.current?.(...e),[])}function Zo(e,t=globalThis?.document){let n=Xo(e);m.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Qo=`DismissableLayer`,$o=`dismissableLayer.update`,es=`dismissableLayer.pointerDownOutside`,ts=`dismissableLayer.focusOutside`,ns,rs=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),is=m.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=m.useContext(rs),[u,d]=m.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=m.useState({}),h=I(t,e=>d(e)),g=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=ss(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),C=cs(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Zo(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ns=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ls(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ns)}},[u,f,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ls())},[u,l]),m.useEffect(()=>{let e=()=>p({});return document.addEventListener($o,e),()=>document.removeEventListener($o,e)},[]),(0,L.jsx)(U.div,{...c,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:H(e.onFocusCapture,C.onFocusCapture),onBlurCapture:H(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,S.onPointerDownCapture)})});is.displayName=Qo;var as=`DismissableLayerBranch`,os=m.forwardRef((e,t)=>{let n=m.useContext(rs),r=m.useRef(null),i=I(t,r);return m.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,L.jsx)(U.div,{...e,ref:i})});os.displayName=as;function ss(e,t=globalThis?.document){let n=Xo(e),r=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){us(es,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cs(e,t=globalThis?.document){let n=Xo(e),r=m.useRef(!1);return m.useEffect(()=>{let e=e=>{e.target&&!r.current&&us(ts,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ls(){let e=new CustomEvent($o);document.dispatchEvent(e)}function us(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Dn(i,a):i.dispatchEvent(a)}var ds=0;function fs(){m.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??ps()),document.body.insertAdjacentElement(`beforeend`,e[1]??ps()),ds++,()=>{ds===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),ds--}},[])}function ps(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var ms=`focusScope.autoFocusOnMount`,hs=`focusScope.autoFocusOnUnmount`,gs={bubbles:!1,cancelable:!0},_s=`FocusScope`,vs=m.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=m.useState(null),l=Xo(i),u=Xo(a),d=m.useRef(null),f=I(t,e=>c(e)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Ts(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Ts(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ts(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),m.useEffect(()=>{if(s){Es.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ms,gs);s.addEventListener(ms,l),s.dispatchEvent(t),t.defaultPrevented||(ys(ks(xs(s)),{select:!0}),document.activeElement===e&&Ts(s))}return()=>{s.removeEventListener(ms,l),setTimeout(()=>{let t=new CustomEvent(hs,gs);s.addEventListener(hs,u),s.dispatchEvent(t),t.defaultPrevented||Ts(e??document.body,{select:!0}),s.removeEventListener(hs,u),Es.remove(p)},0)}}},[s,l,u,p]);let h=m.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=bs(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Ts(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Ts(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,L.jsx)(U.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})});vs.displayName=_s;function ys(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ts(r,{select:t}),document.activeElement!==n)return}function bs(e){let t=xs(e);return[Ss(t,e),Ss(t.reverse(),e)]}function xs(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ss(e,t){for(let n of e)if(!Cs(n,{upTo:t}))return n}function Cs(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 ws(e){return e instanceof HTMLInputElement&&`select`in e}function Ts(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ws(e)&&t&&e.select()}}var Es=Ds();function Ds(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Os(e,t),e.unshift(t)},remove(t){e=Os(e,t),e[0]?.resume()}}}function Os(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ks(e){return e.filter(e=>e.tagName!==`A`)}var As=[`top`,`right`,`bottom`,`left`],js=Math.min,Ms=Math.max,Ns=Math.round,Ps=Math.floor,Fs=e=>({x:e,y:e}),Is={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ls(e,t,n){return Ms(e,js(t,n))}function Rs(e,t){return typeof e==`function`?e(t):e}function zs(e){return e.split(`-`)[0]}function Bs(e){return e.split(`-`)[1]}function Vs(e){return e===`x`?`y`:`x`}function Hs(e){return e===`y`?`height`:`width`}function Us(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ws(e){return Vs(Us(e))}function Gs(e,t,n){n===void 0&&(n=!1);let r=Bs(e),i=Ws(e),a=Hs(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ec(o)),[o,ec(o)]}function Ks(e){let t=ec(e);return[qs(e),t,qs(t)]}function qs(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Js=[`left`,`right`],Ys=[`right`,`left`],Xs=[`top`,`bottom`],Zs=[`bottom`,`top`];function Qs(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ys:Js:t?Js:Ys;case`left`:case`right`:return t?Xs:Zs;default:return[]}}function $s(e,t,n,r){let i=Bs(e),a=Qs(zs(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(qs)))),a}function ec(e){let t=zs(e);return Is[t]+e.slice(t.length)}function tc(e){return{top:0,right:0,bottom:0,left:0,...e}}function nc(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:tc(e)}function rc(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ic(e,t,n){let{reference:r,floating:i}=e,a=Us(t),o=Ws(t),s=Hs(o),c=zs(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Bs(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ac(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Rs(t,e),p=nc(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=rc(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=rc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var oc=50,sc=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ac},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ic(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Rs(e,t)||{};if(l==null)return{};let d=nc(u),f={x:n,y:r},p=Ws(i),m=Hs(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=js(d[_],T),ee=js(d[v],T),D=E,te=C-h[m]-ee,O=C/2-h[m]/2+w,ne=Ls(D,O,te),k=!c.arrow&&Bs(i)!=null&&O!==ne&&a.reference[m]/2-(Oe<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Us(t))||T.every(e=>Us(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Us(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function uc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dc(e){return As.some(t=>e[t]>=0)}var fc=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Rs(e,t);switch(i){case`referenceHidden`:{let e=uc(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:dc(e)}}}case`escaped`:{let e=uc(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:dc(e)}}}default:return{}}}}},pc=new Set([`left`,`top`]);async function mc(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=zs(n),s=Bs(n),c=Us(n)===`y`,l=pc.has(o)?-1:1,u=a&&c?-1:1,d=Rs(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var hc=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await mc(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},gc=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Rs(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Us(zs(i)),p=Vs(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Ls(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Ls(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},_c=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Rs(e,t),u={x:n,y:r},d=Us(i),f=Vs(d),p=u[f],m=u[d],h=Rs(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=pc.has(zs(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},vc=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Rs(e,t),u=await o.detectOverflow(t,l),d=zs(i),f=Bs(i),p=Us(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=js(h-u[g],v),x=js(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ms(u.left,0),t=Ms(u.right,0),n=Ms(u.top,0),r=Ms(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ms(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ms(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function yc(){return typeof window<`u`}function bc(e){return Cc(e)?(e.nodeName||``).toLowerCase():`#document`}function xc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sc(e){return((Cc(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Cc(e){return yc()?e instanceof Node||e instanceof xc(e).Node:!1}function wc(e){return yc()?e instanceof Element||e instanceof xc(e).Element:!1}function Tc(e){return yc()?e instanceof HTMLElement||e instanceof xc(e).HTMLElement:!1}function Ec(e){return!yc()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof xc(e).ShadowRoot}function Dc(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Rc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Oc(e){return/^(table|td|th)$/.test(bc(e))}function kc(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ac=/transform|translate|scale|rotate|perspective|filter/,jc=/paint|layout|strict|content/,Mc=e=>!!e&&e!==`none`,Nc;function Pc(e){let t=wc(e)?Rc(e):e;return Mc(t.transform)||Mc(t.translate)||Mc(t.scale)||Mc(t.rotate)||Mc(t.perspective)||!Ic()&&(Mc(t.backdropFilter)||Mc(t.filter))||Ac.test(t.willChange||``)||jc.test(t.contain||``)}function Fc(e){let t=Bc(e);for(;Tc(t)&&!Lc(t);){if(Pc(t))return t;if(kc(t))return null;t=Bc(t)}return null}function Ic(){return Nc??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Nc}function Lc(e){return/^(html|body|#document)$/.test(bc(e))}function Rc(e){return xc(e).getComputedStyle(e)}function zc(e){return wc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bc(e){if(bc(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ec(e)&&e.host||Sc(e);return Ec(t)?t.host:t}function Vc(e){let t=Bc(e);return Lc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tc(t)&&Dc(t)?t:Vc(t)}function Hc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Vc(e),i=r===e.ownerDocument?.body,a=xc(r);if(i){let e=Uc(a);return t.concat(a,a.visualViewport||[],Dc(r)?r:[],e&&n?Hc(e):[])}else return t.concat(r,Hc(r,[],n))}function Uc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wc(e){let t=Rc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Tc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ns(n)!==a||Ns(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Gc(e){return wc(e)?e:e.contextElement}function Kc(e){let t=Gc(e);if(!Tc(t))return Fs(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Wc(t),o=(a?Ns(n.width):n.width)/r,s=(a?Ns(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var qc=Fs(0);function Jc(e){let t=xc(e);return!Ic()||!t.visualViewport?qc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xc(e)?!1:t}function Xc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Gc(e),o=Fs(1);t&&(r?wc(r)&&(o=Kc(r)):o=Kc(e));let s=Yc(a,n,r)?Jc(a):Fs(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=xc(a),t=r&&wc(r)?xc(r):r,n=e,i=Uc(n);for(;i&&r&&t!==n;){let e=Kc(i),t=i.getBoundingClientRect(),r=Rc(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=xc(i),i=Uc(n)}}return rc({width:u,height:d,x:c,y:l})}function Zc(e,t){let n=zc(e).scrollLeft;return t?t.left+n:Xc(Sc(e)).left+n}function Qc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zc(e,n),y:n.top+t.scrollTop}}function $c(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Sc(r),s=t?kc(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Fs(1),u=Fs(0),d=Tc(r);if((d||!d&&!a)&&((bc(r)!==`body`||Dc(o))&&(c=zc(r)),d)){let e=Xc(r);l=Kc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Qc(o,c):Fs(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function el(e){return Array.from(e.getClientRects())}function tl(e){let t=Sc(e),n=zc(e),r=e.ownerDocument.body,i=Ms(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ms(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Zc(e),s=-n.scrollTop;return Rc(r).direction===`rtl`&&(o+=Ms(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var nl=25;function rl(e,t){let n=xc(e),r=Sc(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ic();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Zc(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=nl&&(a-=o)}else l<=nl&&(a+=l);return{width:a,height:o,x:s,y:c}}function il(e,t){let n=Xc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Tc(e)?Kc(e):Fs(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function al(e,t,n){let r;if(t===`viewport`)r=rl(e,n);else if(t===`document`)r=tl(Sc(e));else if(wc(t))r=il(t,n);else{let n=Jc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rc(r)}function ol(e,t){let n=Bc(e);return n===t||!wc(n)||Lc(n)?!1:Rc(n).position===`fixed`||ol(n,t)}function sl(e,t){let n=t.get(e);if(n)return n;let r=Hc(e,[],!1).filter(e=>wc(e)&&bc(e)!==`body`),i=null,a=Rc(e).position===`fixed`,o=a?Bc(e):e;for(;wc(o)&&!Lc(o);){let t=Rc(o),n=Pc(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Dc(o)&&!n&&ol(e,o))?r=r.filter(e=>e!==o):i=t,o=Bc(o)}return t.set(e,r),r}function cl(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?kc(t)?[]:sl(t,this._c):[].concat(n),r],o=al(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!_l(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function yl(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Gc(e),u=i||a?[...l?Hc(l):[],...t?Hc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?vl(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Xc(e):null;c&&g();function g(){let t=Xc(e);h&&!_l(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var bl=hc,xl=gc,Sl=lc,Cl=vc,wl=fc,Tl=cc,El=_c,Dl=(e,t,n)=>{let r=new Map,i={platform:gl,...n},a={...i.platform,_c:r};return sc(e,t,{...i,platform:a})},Ol=typeof document<`u`?m.useLayoutEffect:function(){};function kl(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 n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!kl(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Al(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jl(e,t){let n=Al(e);return Math.round(t*n)/n}function Ml(e){let t=m.useRef(e);return Ol(()=>{t.current=e}),t}function Nl(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);kl(f,r)||p(r);let[h,g]=m.useState(null),[_,v]=m.useState(null),y=m.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=m.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=m.useRef(null),w=m.useRef(null),T=m.useRef(u),E=c!=null,ee=Ml(c),D=Ml(i),te=Ml(l),O=m.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Dl(C.current,w.current,e).then(e=>{let t={...e,isPositioned:te.current!==!1};ne.current&&!kl(T.current,t)&&(T.current=t,bn.flushSync(()=>{d(t)}))})},[f,t,n,D,te]);Ol(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ne=m.useRef(!1);Ol(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Ol(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(ee.current)return ee.current(x,S,O);O()}},[x,S,O,ee,E]);let k=m.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),A=m.useMemo(()=>({reference:x,floating:S}),[x,S]),re=m.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=jl(A.floating,u.x),r=jl(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Al(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:O,refs:k,elements:A,floatingStyles:re}),[u,O,k,A,re])}var Pl=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Tl({element:r.current,padding:i}).fn(n):r?Tl({element:r,padding:i}).fn(n):{}}}},Fl=(e,t)=>{let n=bl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Il=(e,t)=>{let n=xl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ll=(e,t)=>({fn:El(e).fn,options:[e,t]}),Rl=(e,t)=>{let n=Sl(e);return{name:n.name,fn:n.fn,options:[e,t]}},zl=(e,t)=>{let n=Cl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bl=(e,t)=>{let n=wl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vl=(e,t)=>{let n=Pl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hl=`Arrow`,Ul=m.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,L.jsx)(U.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,L.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Ul.displayName=Hl;var Wl=Ul,Gl=`Popper`,[Kl,ql]=on(Gl),[Jl,Yl]=Kl(Gl),Xl=e=>{let{__scopePopper:t,children:n}=e,[r,i]=m.useState(null);return(0,L.jsx)(Jl,{scope:t,anchor:r,onAnchorChange:i,children:n})};Xl.displayName=Gl;var Zl=`PopperAnchor`,Ql=m.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Yl(Zl,n),o=m.useRef(null),s=I(t,o),c=m.useRef(null);return m.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,L.jsx)(U.div,{...i,ref:s})});Ql.displayName=Zl;var $l=`PopperContent`,[eu,tu]=Kl($l),nu=m.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:h,...g}=e,_=Yl($l,n),[v,y]=m.useState(null),b=I(t,e=>y(e)),[x,S]=m.useState(null),C=jo(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],te=D.length>0,O={padding:ee,boundary:D.filter(ou),altBoundary:te},{refs:ne,floatingStyles:k,placement:A,isPositioned:re,middlewareData:j}=Nl({strategy:`fixed`,placement:E,whileElementsMounted:(...e)=>yl(...e,{animationFrame:p===`always`}),elements:{reference:_.anchor},middleware:[Fl({mainAxis:i+T,alignmentAxis:o}),c&&Il({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Ll():void 0,...O}),c&&Rl({...O}),zl({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),x&&Vl({element:x,padding:s}),su({arrowWidth:w,arrowHeight:T}),f&&Bl({strategy:`referenceHidden`,...O})]}),[M,ie]=cu(A),ae=Xo(h);hn(()=>{re&&ae?.()},[re,ae]);let oe=j.arrow?.x,se=j.arrow?.y,N=j.arrow?.centerOffset!==0,[P,ce]=m.useState();return hn(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),(0,L.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...k,transform:re?k.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:P,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(` `),...j.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,L.jsx)(eu,{scope:n,placedSide:M,onArrowChange:S,arrowX:oe,arrowY:se,shouldHideArrow:N,children:(0,L.jsx)(U.div,{"data-side":M,"data-align":ie,...g,ref:b,style:{...g.style,animation:re?void 0:`none`}})})})});nu.displayName=$l;var ru=`PopperArrow`,iu={top:`bottom`,right:`left`,bottom:`top`,left:`right`},au=m.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tu(ru,n),a=iu[i.placedSide];return(0,L.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,L.jsx)(Wl,{...r,ref:t,style:{...r.style,display:`block`}})})});au.displayName=ru;function ou(e){return e!==null}var su=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=cu(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function cu(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var lu=Xl,uu=Ql,du=nu,fu=au,pu=`Portal`,mu=m.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=m.useState(!1);hn(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?bn.createPortal((0,L.jsx)(U.div,{...r,ref:t}),o):null});mu.displayName=pu;function hu(e){let t=gu(e),n=m.forwardRef((e,n)=>{let{children:r,...i}=e,a=m.Children.toArray(r),o=a.find(vu);if(o){let e=o.props.children,r=a.map(t=>t===o?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function gu(e){let t=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(m.isValidElement(n)){let e=bu(n),i=yu(r,n.props);return n.type!==m.Fragment&&(i.ref=t?ge(t,e):e),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _u=Symbol(`radix.slottable`);function vu(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===_u}function yu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function bu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xu=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`}),Su=`VisuallyHidden`,Cu=m.forwardRef((e,t)=>(0,L.jsx)(U.span,{...e,ref:t,style:{...xu,...e.style}}));Cu.displayName=Su;var wu=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Tu=new WeakMap,Eu=new WeakMap,Du={},Ou=0,ku=function(e){return e&&(e.host||ku(e.parentNode))},Au=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ku(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ju=function(e,t,n,r){var i=Au(t,Array.isArray(e)?e:[e]);Du[n]||(Du[n]=new WeakMap);var a=Du[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Tu.get(e)||0)+1,l=(a.get(e)||0)+1;Tu.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Eu.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ou++,function(){o.forEach(function(e){var t=Tu.get(e)-1,i=a.get(e)-1;Tu.set(e,t),a.set(e,i),t||(Eu.has(e)||e.removeAttribute(r),Eu.delete(e)),i||e.removeAttribute(n)}),Ou--,Ou||(Tu=new WeakMap,Tu=new WeakMap,Eu=new WeakMap,Du={})}},Mu=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||wu(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ju(r,i,n,`aria-hidden`)):function(){return null}},Nu=`right-scroll-bar-position`,Pu=`width-before-scroll-bar`,Fu=`with-scroll-bars-hidden`,Iu=`--removed-body-scroll-bar-size`;function Lu(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ru(e,t){var n=(0,m.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var zu=typeof window<`u`?m.useLayoutEffect:m.useEffect,Bu=new WeakMap;function Vu(e,t){var n=Ru(t||null,function(t){return e.forEach(function(e){return Lu(e,t)})});return zu(function(){var t=Bu.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Lu(e,null)}),i.forEach(function(e){r.has(e)||Lu(e,a)})}Bu.set(n,e)},[e]),n}function Hu(e){return e}function Uu(e,t){t===void 0&&(t=Hu);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Wu(e){e===void 0&&(e={});var t=Uu(null);return t.options=r({async:!0,ssr:!1},e),t}var Gu=function(e){var t=e.sideCar,n=a(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error(`Sidecar medium not found`);return m.createElement(i,r({},n))};Gu.isSideCarExport=!0;function Ku(e,t){return e.useMedium(t),Gu}var qu=Wu(),Ju=function(){},Yu=m.forwardRef(function(e,t){var n=m.useRef(null),i=m.useState({onScrollCapture:Ju,onWheelCapture:Ju,onTouchMoveCapture:Ju}),o=i[0],s=i[1],c=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?`div`:b,S=e.gapMode,C=a(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),w=h,T=Vu([n,t]),E=r(r({},C),o);return m.createElement(m.Fragment,null,f&&m.createElement(w,{sideCar:qu,removeScrollBar:d,shards:p,noRelative:g,noIsolation:_,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),c?m.cloneElement(m.Children.only(l),r(r({},E),{ref:T})):m.createElement(x,r({},E,{className:u,ref:T}),l))});Yu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Yu.classNames={fullWidth:Pu,zeroRight:Nu};var Xu,Zu=function(){if(Xu)return Xu;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Qu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Zu();return t&&e.setAttribute(`nonce`,t),e}function $u(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ed(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var td=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qu())&&($u(t,n),ed(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nd=function(){var e=td();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rd=function(){var e=nd();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},id={left:0,top:0,right:0,gap:0},ad=function(e){return parseInt(e||``,10)||0},od=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[ad(n),ad(r),ad(i)]},sd=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return id;var t=od(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},cd=rd(),ld=`data-scroll-locked`,ud=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` .${Fu} { overflow: hidden ${r}; padding-right: ${s}px ${r}; } body[${ld}] { overflow: hidden ${r}; overscroll-behavior: contain; ${[t&&`position: relative ${r};`,n===`margin`&&` padding-left: ${i}px; padding-top: ${a}px; padding-right: ${o}px; margin-left:0; margin-top:0; margin-right: ${s}px ${r}; `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} } .${Nu} { right: ${s}px ${r}; } .${Pu} { margin-right: ${s}px ${r}; } .${Nu} .${Nu} { right: 0 ${r}; } .${Pu} .${Pu} { margin-right: 0 ${r}; } body[${ld}] { ${Iu}: ${s}px; } `},dd=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},fd=function(){m.useEffect(function(){return document.body.setAttribute(ld,(dd()+1).toString()),function(){var e=dd()-1;e<=0?document.body.removeAttribute(ld):document.body.setAttribute(ld,e.toString())}},[])},pd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;fd();var a=m.useMemo(function(){return sd(i)},[i]);return m.createElement(cd,{styles:ud(a,!t,i,n?``:`!important`)})},md=!1;if(typeof window<`u`)try{var hd=Object.defineProperty({},"passive",{get:function(){return md=!0,!0}});window.addEventListener(`test`,hd,hd),window.removeEventListener(`test`,hd,hd)}catch{md=!1}var gd=md?{passive:!1}:!1,_d=function(e){return e.tagName===`TEXTAREA`},vd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!_d(e)&&n[t]===`visible`)},yd=function(e){return vd(e,`overflowY`)},bd=function(e){return vd(e,`overflowX`)},xd=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),wd(e,r)){var i=Td(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Sd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Cd=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},wd=function(e,t){return e===`v`?yd(t):bd(t)},Td=function(e,t){return e===`v`?Sd(t):Cd(t)},Ed=function(e,t){return e===`h`&&t===`rtl`?-1:1},Dd=function(e,t,n,r,i){var a=Ed(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Td(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&wd(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Od=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kd=function(e){return[e.deltaX,e.deltaY]},Ad=function(e){return e&&`current`in e?e.current:e},jd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Md=function(e){return` .block-interactivity-${e} {pointer-events: none;} .allow-interactivity-${e} {pointer-events: all;} `},Nd=0,Pd=[];function Fd(e){var t=m.useRef([]),r=m.useRef([0,0]),i=m.useRef(),a=m.useState(Nd++)[0],o=m.useState(rd)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=n([e.lockRef.current],(e.shards||[]).map(Ad),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=Od(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=xd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=xd(d,u)),!m)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var h=i.current||l;return Dd(h,t,e,h===`h`?o:c,!0)},[]),l=m.useCallback(function(e){var n=e;if(!(!Pd.length||Pd[Pd.length-1]!==o)){var r=`deltaY`in n?kd(n):Od(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&jd(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Ad).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=m.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Id(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=m.useCallback(function(e){r.current=Od(e),i.current=void 0},[]),f=m.useCallback(function(t){u(t.type,kd(t),t.target,c(t,e.lockRef.current))},[]),p=m.useCallback(function(t){u(t.type,Od(t),t.target,c(t,e.lockRef.current))},[]);m.useEffect(function(){return Pd.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,gd),document.addEventListener(`touchmove`,l,gd),document.addEventListener(`touchstart`,d,gd),function(){Pd=Pd.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,gd),document.removeEventListener(`touchmove`,l,gd),document.removeEventListener(`touchstart`,d,gd)}},[]);var h=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(o,{styles:Md(a)}):null,h?m.createElement(pd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Id(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ld=Ku(qu,Fd),Rd=m.forwardRef(function(e,t){return m.createElement(Yu,r({},e,{ref:t,sideCar:Ld}))});Rd.classNames=Yu.classNames;var zd=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Bd=[` `,`Enter`],Vd=`Select`,[Hd,Ud,Wd]=mn(Vd),[Gd,Kd]=on(Vd,[Wd,ql]),qd=ql(),[Jd,Yd]=Gd(Vd),[Xd,Zd]=Gd(Vd),Qd=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:h}=e,g=qd(t),[_,v]=m.useState(null),[y,b]=m.useState(null),[x,S]=m.useState(!1),C=Qn(l),[w,T]=_n({prop:r,defaultProp:i??!1,onChange:a,caller:Vd}),[E,ee]=_n({prop:o,defaultProp:s,onChange:c,caller:Vd}),D=m.useRef(null),te=_?h||!!_.closest(`form`):!0,[O,ne]=m.useState(new Set),k=Array.from(O).map(e=>e.props.value).join(`;`);return(0,L.jsx)(lu,{...g,children:(0,L.jsxs)(Jd,{required:p,scope:t,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:Fn(),value:E,onValueChange:ee,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:D,disabled:f,children:[(0,L.jsx)(Hd.Provider,{scope:t,children:(0,L.jsx)(Xd,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback(e=>{ne(t=>new Set(t).add(e))},[]),onNativeOptionRemove:m.useCallback(e=>{ne(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),te?(0,L.jsxs)(Jf,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:E,onChange:e=>ee(e.target.value),disabled:f,form:h,children:[E===void 0?(0,L.jsx)(`option`,{value:``}):null,Array.from(O)]},k):null]})})};Qd.displayName=Vd;var $d=`SelectTrigger`,ef=m.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=qd(n),o=Yd($d,n),s=o.disabled||r,c=I(t,o.onTriggerChange),l=Ud(n),u=m.useRef(`touch`),[d,f,p]=Xf(e=>{let t=l().filter(e=>!e.disabled),n=Zf(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),h=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,L.jsx)(uu,{asChild:!0,...a,children:(0,L.jsx)(U.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Yf(o.value)?``:void 0,...i,ref:c,onClick:H(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&h(e)}),onPointerDown:H(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:H(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&zd.includes(e.key)&&(h(),e.preventDefault())})})})});ef.displayName=$d;var tf=`SelectValue`,nf=m.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Yd(tf,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=I(t,c.onValueNodeChange);return hn(()=>{l(u)},[l,u]),(0,L.jsx)(U.span,{...s,ref:d,style:{pointerEvents:`none`},children:Yf(c.value)?(0,L.jsx)(L.Fragment,{children:o}):a})});nf.displayName=tf;var rf=`SelectIcon`,af=m.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,L.jsx)(U.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});af.displayName=rf;var of=`SelectPortal`,sf=e=>(0,L.jsx)(mu,{asChild:!0,...e});sf.displayName=of;var cf=`SelectContent`,lf=m.forwardRef((e,t)=>{let n=Yd(cf,e.__scopeSelect),[r,i]=m.useState();if(hn(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?bn.createPortal((0,L.jsx)(df,{scope:e.__scopeSelect,children:(0,L.jsx)(Hd.Slot,{scope:e.__scopeSelect,children:(0,L.jsx)(`div`,{children:e.children})})}),t):null}return(0,L.jsx)(hf,{...e,ref:t})});lf.displayName=cf;var uf=10,[df,ff]=Gd(cf),pf=`SelectContentImpl`,mf=hu(`SelectContent.RemoveScroll`),hf=m.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:_,...v}=e,y=Yd(cf,n),[b,x]=m.useState(null),[S,C]=m.useState(null),w=I(t,e=>x(e)),[T,E]=m.useState(null),[ee,D]=m.useState(null),te=Ud(n),[O,ne]=m.useState(!1),k=m.useRef(!1);m.useEffect(()=>{if(b)return Mu(b)},[b]),fs();let A=m.useCallback(e=>{let[t,...n]=te().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[te,S]),re=m.useCallback(()=>A([T,b]),[A,T,b]);m.useEffect(()=>{O&&re()},[O,re]);let{onOpenChange:j,triggerPointerDownPosRef:M}=y;m.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(M.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(M.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||j(!1),document.removeEventListener(`pointermove`,t),M.current=null};return M.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,j,M]),m.useEffect(()=>{let e=()=>j(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[j]);let[ie,ae]=Xf(e=>{let t=te().filter(e=>!e.disabled),n=Zf(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),oe=m.useCallback((e,t,n)=>{let r=!k.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(k.current=!0))},[y.value]),se=m.useCallback(()=>b?.focus(),[b]),N=m.useCallback((e,t,n)=>{let r=!k.current&&!n;(y.value!==void 0&&y.value===t||r)&&D(e)},[y.value]),P=r===`popper`?yf:_f,ce=P===yf?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:_}:{};return(0,L.jsx)(df,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:oe,selectedItem:T,onItemLeave:se,itemTextRefCallback:N,focusSelectedItem:re,selectedItemText:ee,position:r,isPositioned:O,searchRef:ie,children:(0,L.jsx)(Rd,{as:mf,allowPinchZoom:!0,children:(0,L.jsx)(vs,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:H(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,L.jsx)(is,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,L.jsx)(P,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...ce,onPlaced:()=>ne(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:H(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ae(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=te().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});hf.displayName=pf;var gf=`SelectItemAlignedPosition`,_f=m.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Yd(cf,n),o=ff(cf,n),[s,c]=m.useState(null),[l,u]=m.useState(null),d=I(t,e=>u(e)),f=Ud(n),p=m.useRef(!1),h=m.useRef(!0),{viewport:g,selectedItem:_,selectedItemText:v,focusSelectedItem:y}=o,b=m.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&g&&_&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-uf,d=Yo(a,[uf,Math.max(uf,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-uf,d=Yo(a,[uf,Math.max(uf,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-uf*2,u=g.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+h+u+b+y,S=Math.min(_.offsetHeight*5,x),C=window.getComputedStyle(g),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-uf,ee=c-E,D=_.offsetHeight/2,te=_.offsetTop+D,O=m+h+te,ne=x-O;if(O<=E){let e=o.length>0&&_===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-g.offsetTop-g.offsetHeight,n=O+Math.max(ee,D+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&_===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+g.offsetTop+(e?w:0)+D)+ne;s.style.height=t+`px`,g.scrollTop=O-E+g.offsetTop}s.style.margin=`${uf}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,g,_,v,a.dir,r]);hn(()=>b(),[b]);let[x,S]=m.useState();return hn(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]),(0,L.jsx)(bf,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:m.useCallback(e=>{e&&h.current===!0&&(b(),y?.(),h.current=!1)},[b,y]),children:(0,L.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,L.jsx)(U.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});_f.displayName=gf;var vf=`SelectPopperPosition`,yf=m.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=uf,...a}=e,o=qd(n);return(0,L.jsx)(du,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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)`}})});yf.displayName=vf;var[bf,xf]=Gd(cf,{}),Sf=`SelectViewport`,Cf=m.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=ff(Sf,n),o=xf(Sf,n),s=I(t,a.onViewportChange),c=m.useRef(0);return(0,L.jsxs)(L.Fragment,{children:[(0,L.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:r}),(0,L.jsx)(Hd.Slot,{scope:n,children:(0,L.jsx)(U.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:H(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-uf*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});Cf.displayName=Sf;var wf=`SelectGroup`,[Tf,Ef]=Gd(wf),Df=m.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Fn();return(0,L.jsx)(Tf,{scope:n,id:i,children:(0,L.jsx)(U.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Df.displayName=wf;var Of=`SelectLabel`,kf=m.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ef(Of,n);return(0,L.jsx)(U.div,{id:i.id,...r,ref:t})});kf.displayName=Of;var Af=`SelectItem`,[jf,Mf]=Gd(Af),Nf=m.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Yd(Af,n),c=ff(Af,n),l=s.value===r,[u,d]=m.useState(a??``),[f,p]=m.useState(!1),h=I(t,e=>c.itemRefCallback?.(e,r,i)),g=Fn(),_=m.useRef(`touch`),v=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A 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(0,L.jsx)(jf,{scope:n,value:r,disabled:i,textId:g,isSelected:l,onItemTextChange:m.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,L.jsx)(Hd.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,L.jsx)(U.div,{role:`option`,"aria-labelledby":g,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:h,onFocus:H(o.onFocus,()=>p(!0)),onBlur:H(o.onBlur,()=>p(!1)),onClick:H(o.onClick,()=>{_.current!==`mouse`&&v()}),onPointerUp:H(o.onPointerUp,()=>{_.current===`mouse`&&v()}),onPointerDown:H(o.onPointerDown,e=>{_.current=e.pointerType}),onPointerMove:H(o.onPointerMove,e=>{_.current=e.pointerType,i?c.onItemLeave?.():_.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:H(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:H(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(Bd.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})});Nf.displayName=Af;var Pf=`SelectItemText`,Ff=m.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Yd(Pf,n),s=ff(Pf,n),c=Mf(Pf,n),l=Zd(Pf,n),[u,d]=m.useState(null),f=I(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,h=m.useMemo(()=>(0,L.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return hn(()=>(g(h),()=>_(h)),[g,_,h]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(U.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?bn.createPortal(a.children,o.valueNode):null]})});Ff.displayName=Pf;var If=`SelectItemIndicator`,Lf=m.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Mf(If,n).isSelected?(0,L.jsx)(U.span,{"aria-hidden":!0,...r,ref:t}):null});Lf.displayName=If;var Rf=`SelectScrollUpButton`,zf=m.forwardRef((e,t)=>{let n=ff(Rf,e.__scopeSelect),r=xf(Rf,e.__scopeSelect),[i,a]=m.useState(!1),o=I(t,r.onScrollButtonChange);return hn(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,L.jsx)(Hf,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});zf.displayName=Rf;var Bf=`SelectScrollDownButton`,Vf=m.forwardRef((e,t)=>{let n=ff(Bf,e.__scopeSelect),r=xf(Bf,e.__scopeSelect),[i,a]=m.useState(!1),o=I(t,r.onScrollButtonChange);return hn(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,L.jsx)(Hf,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Vf.displayName=Bf;var Hf=m.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=ff(`SelectScrollButton`,n),o=m.useRef(null),s=Ud(n),c=m.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),hn(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,L.jsx)(U.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:H(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:H(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:H(i.onPointerLeave,()=>{c()})})}),Uf=`SelectSeparator`,Wf=m.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,L.jsx)(U.div,{"aria-hidden":!0,...r,ref:t})});Wf.displayName=Uf;var Gf=`SelectArrow`,Kf=m.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=qd(n),a=Yd(Gf,n),o=ff(Gf,n);return a.open&&o.position===`popper`?(0,L.jsx)(fu,{...i,...r,ref:t}):null});Kf.displayName=Gf;var qf=`SelectBubbleInput`,Jf=m.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=m.useRef(null),a=I(r,i),o=Ao(t);return m.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,L.jsx)(U.select,{...n,style:{...xu,...n.style},ref:a,defaultValue:t})});Jf.displayName=qf;function Yf(e){return e===``||e===void 0}function Xf(e){let t=Xo(e),n=m.useRef(``),r=m.useRef(0),i=m.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=m.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Zf(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Qf(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Qf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $f=Qd,ep=ef,tp=nf,np=af,rp=sf,ip=lf,ap=Cf,op=kf,sp=Nf,cp=Ff,lp=Lf,up=zf,dp=Vf,fp=Wf,pp=$f,mp=tp,hp=m.forwardRef(({className:e,children:t,...n},r)=>(0,L.jsxs)(ep,{ref:r,className:V(`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 cursor-pointer 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),...n,children:[t,(0,L.jsx)(np,{asChild:!0,children:(0,L.jsx)(w,{className:`h-4 w-4 opacity-50`})})]}));hp.displayName=ep.displayName;var gp=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(up,{ref:n,className:V(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,L.jsx)(T,{className:`h-4 w-4`})}));gp.displayName=up.displayName;var _p=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(dp,{ref:n,className:V(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,L.jsx)(w,{className:`h-4 w-4`})}));_p.displayName=dp.displayName;var vp=m.forwardRef(({className:e,children:t,position:n=`popper`,...r},i)=>(0,L.jsx)(rp,{children:(0,L.jsxs)(ip,{ref:i,className:V(`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)`,n===`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:n,...r,children:[(0,L.jsx)(gp,{}),(0,L.jsx)(ap,{className:V(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,L.jsx)(_p,{})]})}));vp.displayName=ip.displayName;var yp=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(op,{ref:n,className:V(`px-2 py-1.5 text-sm font-semibold`,e),...t}));yp.displayName=op.displayName;var bp=m.forwardRef(({className:e,children:t,...n},r)=>(0,L.jsxs)(sp,{ref:r,className:V(`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),...n,children:[(0,L.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,L.jsx)(lp,{children:(0,L.jsx)(C,{className:`h-4 w-4`})})}),(0,L.jsx)(cp,{children:t})]}));bp.displayName=sp.displayName;var xp=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(fp,{ref:n,className:V(`-mx-1 my-1 h-px bg-muted`,e),...t}));xp.displayName=fp.displayName;function Sp(e){let t=Cp(e),n=m.forwardRef((e,n)=>{let{children:r,...i}=e,a=m.Children.toArray(r),o=a.find(Tp);if(o){let e=o.props.children,r=a.map(t=>t===o?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:m.isValidElement(e)?m.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Cp(e){let t=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(m.isValidElement(n)){let e=Dp(n),i=Ep(r,n.props);return n.type!==m.Fragment&&(i.ref=t?ge(t,e):e),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wp=Symbol(`radix.slottable`);function Tp(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===wp}function Ep(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Dp(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Op=`Dialog`,[kp,Ap]=on(Op),[jp,Mp]=kp(Op),Np=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=m.useRef(null),c=m.useRef(null),[l,u]=_n({prop:r,defaultProp:i??!1,onChange:a,caller:Op});return(0,L.jsx)(jp,{scope:t,triggerRef:s,contentRef:c,contentId:Fn(),titleId:Fn(),descriptionId:Fn(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};Np.displayName=Op;var Pp=`DialogTrigger`,Fp=m.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Mp(Pp,n),a=I(t,i.triggerRef);return(0,L.jsx)(U.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":tm(i.open),...r,ref:a,onClick:H(e.onClick,i.onOpenToggle)})});Fp.displayName=Pp;var Ip=`DialogPortal`,[Lp,Rp]=kp(Ip,{forceMount:void 0}),zp=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Mp(Ip,t);return(0,L.jsx)(Lp,{scope:t,forceMount:n,children:m.Children.map(r,e=>(0,L.jsx)(kn,{present:n||a.open,children:(0,L.jsx)(mu,{asChild:!0,container:i,children:e})}))})};zp.displayName=Ip;var Bp=`DialogOverlay`,Vp=m.forwardRef((e,t)=>{let n=Rp(Bp,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Mp(Bp,e.__scopeDialog);return a.modal?(0,L.jsx)(kn,{present:r||a.open,children:(0,L.jsx)(Up,{...i,ref:t})}):null});Vp.displayName=Bp;var Hp=Sp(`DialogOverlay.RemoveScroll`),Up=m.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Mp(Bp,n);return(0,L.jsx)(Rd,{as:Hp,allowPinchZoom:!0,shards:[i.contentRef],children:(0,L.jsx)(U.div,{"data-state":tm(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),Wp=`DialogContent`,Gp=m.forwardRef((e,t)=>{let n=Rp(Wp,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Mp(Wp,e.__scopeDialog);return(0,L.jsx)(kn,{present:r||a.open,children:a.modal?(0,L.jsx)(Kp,{...i,ref:t}):(0,L.jsx)(qp,{...i,ref:t})})});Gp.displayName=Wp;var Kp=m.forwardRef((e,t)=>{let n=Mp(Wp,e.__scopeDialog),r=m.useRef(null),i=I(t,n.contentRef,r);return m.useEffect(()=>{let e=r.current;if(e)return Mu(e)},[]),(0,L.jsx)(Jp,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault())})}),qp=m.forwardRef((e,t)=>{let n=Mp(Wp,e.__scopeDialog),r=m.useRef(!1),i=m.useRef(!1);return(0,L.jsx)(Jp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Jp=m.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Mp(Wp,n),c=m.useRef(null),l=I(t,c);return fs(),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(vs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,L.jsx)(is,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tm(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(am,{titleId:s.titleId}),(0,L.jsx)(sm,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Yp=`DialogTitle`,Xp=m.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Mp(Yp,n);return(0,L.jsx)(U.h2,{id:i.titleId,...r,ref:t})});Xp.displayName=Yp;var Zp=`DialogDescription`,Qp=m.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Mp(Zp,n);return(0,L.jsx)(U.p,{id:i.descriptionId,...r,ref:t})});Qp.displayName=Zp;var $p=`DialogClose`,em=m.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Mp($p,n);return(0,L.jsx)(U.button,{type:`button`,...r,ref:t,onClick:H(e.onClick,()=>i.onOpenChange(!1))})});em.displayName=$p;function tm(e){return e?`open`:`closed`}var nm=`DialogTitleWarning`,[rm,im]=an(nm,{contentName:Wp,titleName:Yp,docsSlug:`dialog`}),am=({titleId:e})=>{let t=im(nm),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},om=`DialogDescriptionWarning`,sm=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${im(om).contentName}}.`;return m.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},cm=Np,lm=zp,um=Vp,dm=Gp,fm=Xp,pm=Qp,mm=em,hm=cm,gm=lm,_m=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(um,{ref:n,className:V(`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}));_m.displayName=um.displayName;var vm=m.forwardRef(({className:e,children:t,...n},r)=>(0,L.jsxs)(gm,{children:[(0,L.jsx)(_m,{}),(0,L.jsxs)(dm,{ref:r,className:V(`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 sm:rounded-lg`,e),...n,children:[t,(0,L.jsxs)(mm,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer 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:[(0,L.jsx)(pe,{className:`h-4 w-4`}),(0,L.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));vm.displayName=dm.displayName;var ym=({className:e,...t})=>(0,L.jsx)(`div`,{className:V(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});ym.displayName=`DialogHeader`;var bm=({className:e,...t})=>(0,L.jsx)(`div`,{className:V(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});bm.displayName=`DialogFooter`;var xm=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(fm,{ref:n,className:V(`text-lg font-semibold leading-none tracking-tight`,e),...t}));xm.displayName=fm.displayName;var Sm=m.forwardRef(({className:e,...t},n)=>(0,L.jsx)(pm,{ref:n,className:V(`text-sm text-muted-foreground`,e),...t}));Sm.displayName=pm.displayName;var Cm=Eo({name:To().trim().min(2,`Enter your full name`).max(80),mobile:To().trim().regex(/^[0-9+\-\s()]{7,15}$/,`Enter a valid mobile number`),email:To().trim().email(`Enter a valid email`).max(120),course:To().min(1,`Select a course`),city:To().trim().min(2,`Enter your city`).max(60),message:To().trim().max(500).optional(),agree:Do(!0,{errorMap:()=>({message:`Please agree to be contacted`})})}),wm=`https://wa.me/message/FJM62MFSNAT3A1`;function Tm({compact:e=!1}){let[t,n]=(0,m.useState)({name:``,mobile:``,email:``,course:``,city:``,message:``,agree:!1}),[r,i]=(0,m.useState)({}),[a,o]=(0,m.useState)(!1),[c,l]=(0,m.useState)(!1),[u,d]=(0,m.useState)(``),f=(e,t)=>n(n=>({...n,[e]:t}));return(0,L.jsxs)(`div`,{className:e?`rounded-3xl bg-white p-6 shadow-elegant ring-1 ring-primary/10`:`rounded-3xl bg-white p-6 shadow-elegant ring-1 ring-primary/10 sm:p-8`,children:[(0,L.jsxs)(`div`,{className:`mb-5`,children:[(0,L.jsx)(`div`,{className:`inline-flex items-center gap-2 rounded-full bg-secondary/30 px-3 py-1 text-xs font-semibold text-primary`,children:`🎁 Limited seats · Free demo`}),(0,L.jsx)(`h3`,{className:`mt-3 font-display text-2xl font-extrabold text-primary sm:text-3xl`,children:`Book Your Free Demo Class`}),(0,L.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:`Fill the form and your details will open in WhatsApp for our counsellor.`})]}),(0,L.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let r=Cm.safeParse(t);if(!r.success){let e={};r.error.issues.forEach(t=>e[t.path[0]]=t.message),i(e);return}i({}),d(``),l(!0);let{error:a}=await s.from(`course_leads`).insert({name:r.data.name,mobile:r.data.mobile,email:r.data.email,course:r.data.course,city:r.data.city,message:r.data.message||null});if(a){console.error(`Unable to save course enquiry`,a),d(`We could not save your details. Please try again.`),l(!1);return}let c=[`Hello Add Skill Academy, I want to book a free demo class.`,`Name: ${r.data.name}`,`Mobile: ${r.data.mobile}`,`Email: ${r.data.email}`,`Course: ${r.data.course}`,`City: ${r.data.city}`,r.data.message?`Message: ${r.data.message}`:null].filter(e=>e!==null).join(` `);window.open(`${wm}?text=${encodeURIComponent(c)}`,`_blank`,`noopener,noreferrer`),o(!0),n({name:``,mobile:``,email:``,course:``,city:``,message:``,agree:!1}),l(!1)},noValidate:!0,className:`space-y-3`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(Oo,{placeholder:`Full Name`,value:t.name,onChange:e=>f(`name`,e.target.value),"aria-invalid":!!r.name}),r.name&&(0,L.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:r.name})]}),(0,L.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 sm:grid-cols-2`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(Oo,{placeholder:`Mobile Number`,inputMode:`tel`,value:t.mobile,onChange:e=>f(`mobile`,e.target.value),"aria-invalid":!!r.mobile}),r.mobile&&(0,L.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:r.mobile})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(Oo,{placeholder:`City`,value:t.city,onChange:e=>f(`city`,e.target.value),"aria-invalid":!!r.city}),r.city&&(0,L.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:r.city})]})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(Oo,{type:`email`,placeholder:`Email Address`,value:t.email,onChange:e=>f(`email`,e.target.value),"aria-invalid":!!r.email}),r.email&&(0,L.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:r.email})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsxs)(pp,{value:t.course,onValueChange:e=>f(`course`,e),children:[(0,L.jsx)(hp,{"aria-invalid":!!r.course,children:(0,L.jsx)(mp,{placeholder:`Select Course`})}),(0,L.jsxs)(vp,{children:[(0,L.jsx)(bp,{value:`Digital Marketing`,children:`Digital Marketing`}),(0,L.jsx)(bp,{value:`Tally Expert`,children:`Tally Expert`}),(0,L.jsx)(bp,{value:`MS Office`,children:`MS Office`}),(0,L.jsx)(bp,{value:`Advanced AI`,children:`Advanced AI`})]})]}),r.course&&(0,L.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:r.course})]}),(0,L.jsx)(`div`,{children:(0,L.jsx)(ko,{placeholder:`Message (optional)`,rows:3,value:t.message,onChange:e=>f(`message`,e.target.value)})}),(0,L.jsxs)(`label`,{className:`flex items-start gap-2 text-xs text-muted-foreground`,children:[(0,L.jsx)(Jo,{checked:t.agree,onCheckedChange:e=>f(`agree`,e===!0),className:`mt-0.5`}),(0,L.jsx)(`span`,{children:`I agree to be contacted by Add Skill Academy about their courses.`})]}),r.agree&&(0,L.jsx)(`p`,{className:`text-xs text-destructive`,children:r.agree}),u&&(0,L.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:u}),(0,L.jsx)(rn,{type:`submit`,size:`lg`,className:`w-full bg-brand-gradient font-bold shadow-glow`,disabled:c,children:c?`Saving your details…`:`Send Details on WhatsApp →`})]}),(0,L.jsx)(hm,{open:a,onOpenChange:o,children:(0,L.jsxs)(vm,{className:`max-w-md text-center`,children:[(0,L.jsx)(`div`,{className:`mx-auto grid h-16 w-16 place-items-center rounded-full bg-gold-gradient shadow-glow`,children:(0,L.jsx)(E,{className:`h-9 w-9 text-primary`,strokeWidth:2.5})}),(0,L.jsxs)(ym,{children:[(0,L.jsx)(xm,{className:`text-center font-display text-2xl text-primary`,children:`🎉 You're all set!`}),(0,L.jsx)(Sm,{className:`text-center`,children:`Thanks for booking your free demo class. Our team will reach out to you shortly on WhatsApp and phone. Your details have been prepared in WhatsApp — tap Send to share them.`})]})]})})]})}var Em=`/assets/addskill-logo-KdRCqD1A.png`,Dm=`/assets/hero-students-CngKZnRg.jpg`,Om=`/assets/100-60-x-30-in-1536x768-1-1024x512-CUrHF5-3.jpg`,km=`/assets/IMG-20250517-WA0011.jpg-1024x768-e5y-C2ni.jpeg`,Am=`/assets/IMG_20260321_130242979.jpg-1024x768-CHQqSet4.jpeg`,jm=`/assets/IMG_20260507_125235084.jpg-1152x1536-y62v_1KK.jpeg`,Mm=`/assets/IMG_20260617_163057_249.jpg-1024x768-DIxSNolT.jpeg`,Nm=`/assets/IMG_20260617_163057_538.jpg-DQwHwm1X.jpeg`,Pm=`https://wa.me/message/FJM62MFSNAT3A1`,Fm=[`100% Placement Support`,`ISO Certified Academy`,`Practical Learning`,`Live Projects`,`Expert Trainers`],Im=[{icon:le,title:`Advanced AI`,duration:`3 Months`,tag:`New & Trending`,features:[`Video Generation`,`AI Agents`,`AI Avatars`,`Website Building with AI`,`App Building with AI`]},{icon:ae,title:`Digital Marketing with AI`,duration:`4 Months`,tag:`Most Popular`,features:[`SEO`,`Google Ads`,`Meta Ads`,`Instagram Marketing`,`YouTube Marketing`,`WordPress`,`Canva`,`AI Tools`,`Freelancing`,`Live Projects`]},{icon:S,title:`Tally Expert with GST`,duration:`3 Months`,tag:`High Demand`,features:[`Tally Prime`,`GST`,`Accounting`,`Payroll`,`Inventory`,`Banking`]},{icon:ne,title:`MS Office`,duration:`2 Months`,tag:`Beginner Friendly`,features:[`Advanced Excel`,`MS Word`,`PowerPoint`,`Computer Fundamentals`,`Typing Skills`]}],Lm=[{icon:ce,label:`Practical Training`},{icon:b,label:`Live Projects`},{icon:A,label:`Experienced Trainers`},{icon:fe,label:`Small Batch Size`},{icon:de,label:`Interview Preparation`},{icon:k,label:`Resume Building`},{icon:le,label:`Freelancing Guidance`},{icon:y,label:`Lifetime Support`},{icon:x,label:`100% Placement Assistance`}],Rm=[{icon:D,label:`Register`},{icon:ee,label:`Free Demo`},{icon:y,label:`Admission`},{icon:b,label:`Practical Training`},{icon:ce,label:`Live Projects`},{icon:k,label:`Resume Building`},{icon:de,label:`Mock Interview`},{icon:x,label:`Placement Support`}],zm=[{end:500,label:`Students Trained`},{end:100,label:`Successful Placements`},{end:10,label:`Years Experience`},{end:3,label:`Professional Courses`}],Bm=[{name:`Priya Sharma`,role:`Digital Marketing Executive`,text:`The live projects and AI tools training gave me confidence. Got placed within 45 days of finishing the course!`,avatar:`https://i.pravatar.cc/120?img=47`},{name:`Rahul Verma`,role:`Accountant`,text:`Tally with GST was taught practically. I now handle full accounting for two small businesses as a freelancer.`,avatar:`https://i.pravatar.cc/120?img=15`},{name:`Sneha Patel`,role:`Office Administrator`,text:`Advanced Excel changed my career. The trainers explained every formula with real examples. Highly recommended!`,avatar:`https://i.pravatar.cc/120?img=32`},{name:`Aman Gupta`,role:`Freelance Marketer`,text:`From zero knowledge to running my own Instagram agency — the freelancing guidance here is unmatched.`,avatar:`https://i.pravatar.cc/120?img=12`},{name:`Neha Singh`,role:`SEO Analyst`,text:`Small batch size means everyone gets attention. I loved the mock interviews and resume workshop.`,avatar:`https://i.pravatar.cc/120?img=45`}],Vm=[{src:Om,alt:`Add Skill Academy — 100% placement support banner`},{src:km,alt:`Classroom session with students at Add Skill Academy`},{src:Am,alt:`Students receiving certificates`},{src:jm,alt:`Young learners with achievement certificates`},{src:Mm,alt:`Tally and digital marketing certified students`},{src:Nm,alt:`Certified students group photo`}],Hm=[{q:`Do you provide placement?`,a:`Yes. Every student gets 100% placement support including resume building, mock interviews, and direct interview opportunities with our hiring partners.`},{q:`Are classes practical?`,a:`Absolutely. Every course is 80% practical with live projects, real case studies, assignments, and AI tools — no boring theory-only sessions.`},{q:`Do beginners join?`,a:`Yes. Our courses are beginner-friendly. We start from the basics and gradually take you to an advanced, industry-ready level.`},{q:`Online classes available?`,a:`Yes, we offer both classroom and live online classes. You can choose the mode that fits your schedule.`},{q:`Course fees?`,a:`Fees vary by course and are very affordable. Book a free demo and our counsellor will share the complete fee structure and available EMI options.`},{q:`Certificates provided?`,a:`Yes. Every student receives an ISO-certified completion certificate that is recognised by employers across India.`}];function Um(){let[e,t]=(0,m.useState)(!1),[n,r]=(0,m.useState)(null);return(0,L.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,L.jsxs)(`header`,{className:`sticky top-0 z-40 border-b border-border/60 bg-background/80 backdrop-blur-xl`,children:[(0,L.jsxs)(`div`,{className:`mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-3 sm:px-6`,children:[(0,L.jsxs)(`a`,{href:`#top`,className:`flex items-center gap-2`,children:[(0,L.jsx)(`img`,{src:Em,alt:`Add Skill Academy logo`,className:`h-11 w-11 object-contain`,width:44,height:44}),(0,L.jsxs)(`span`,{className:`hidden font-display text-lg font-extrabold text-primary sm:block`,children:[`Add Skill `,(0,L.jsx)(`span`,{className:`text-secondary-foreground`,children:`Academy`})]})]}),(0,L.jsxs)(`nav`,{className:`hidden items-center gap-7 text-sm font-medium text-foreground/80 lg:flex`,children:[(0,L.jsx)(`a`,{href:`#courses`,className:`hover:text-primary`,children:`Courses`}),(0,L.jsx)(`a`,{href:`#why`,className:`hover:text-primary`,children:`Why Us`}),(0,L.jsx)(`a`,{href:`#placement`,className:`hover:text-primary`,children:`Placement`}),(0,L.jsx)(`a`,{href:`#testimonials`,className:`hover:text-primary`,children:`Reviews`}),(0,L.jsx)(`a`,{href:`#faq`,className:`hover:text-primary`,children:`FAQ`}),(0,L.jsx)(`a`,{href:`#contact`,className:`hover:text-primary`,children:`Contact`})]}),(0,L.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,L.jsx)(rn,{asChild:!0,className:`hidden bg-brand-gradient font-semibold shadow-elegant sm:inline-flex`,children:(0,L.jsx)(`a`,{href:`#lead`,children:`Book Free Demo`})}),(0,L.jsx)(`button`,{className:`grid h-10 w-10 place-items-center rounded-md border border-border lg:hidden`,onClick:()=>t(e=>!e),"aria-label":`Toggle menu`,children:e?(0,L.jsx)(pe,{className:`h-5 w-5`}):(0,L.jsx)(oe,{className:`h-5 w-5`})})]})]}),e&&(0,L.jsx)(`div`,{className:`border-t border-border bg-background lg:hidden`,children:(0,L.jsx)(`nav`,{className:`mx-auto flex max-w-7xl flex-col px-4 py-3 text-sm font-medium`,children:[`Courses`,`Why Us`,`Placement`,`Reviews`,`FAQ`,`Contact`].map(e=>(0,L.jsx)(`a`,{href:`#${e.toLowerCase().replace(` `,``)}`,onClick:()=>t(!1),className:`py-2`,children:e},e))})})]}),(0,L.jsxs)(`section`,{id:`top`,className:`relative overflow-hidden`,children:[(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute inset-0 -z-10`,style:{background:`var(--gradient-hero)`}}),(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute -left-32 top-10 -z-10 h-72 w-72 rounded-full bg-secondary/40 blur-3xl animate-blob`}),(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute right-0 top-40 -z-10 h-80 w-80 rounded-full bg-primary/20 blur-3xl animate-blob`}),(0,L.jsxs)(`div`,{className:`mx-auto grid max-w-7xl grid-cols-1 gap-10 px-4 py-14 sm:px-6 lg:grid-cols-[1.05fr_0.95fr] lg:gap-8 lg:py-20`,children:[(0,L.jsxs)(`div`,{className:`min-w-0`,children:[(0,L.jsxs)(`div`,{className:`inline-flex items-center gap-2 rounded-full border border-primary/15 bg-white/60 px-3 py-1 text-xs font-semibold text-primary shadow-sm backdrop-blur`,children:[(0,L.jsx)(le,{className:`h-3.5 w-3.5 text-secondary-foreground`}),`ISO Certified · Practical Skill Training Since 2015`]}),(0,L.jsxs)(`h1`,{className:`mt-4 font-display text-4xl font-extrabold leading-[1.05] text-primary sm:text-5xl lg:text-6xl`,children:[`Become `,(0,L.jsx)(`span`,{className:`gradient-text`,children:`Job-Ready`}),` with Industry-Focused Skill Training`]}),(0,L.jsx)(`p`,{className:`mt-5 max-w-xl text-base text-muted-foreground sm:text-lg`,children:`Learn Digital Marketing, Tally Expert with GST, and MS Office from industry professionals. Gain practical skills, live project experience, ISO-certified training, and 100% placement support.`}),(0,L.jsxs)(`div`,{className:`mt-7 flex flex-wrap gap-3`,children:[(0,L.jsx)(rn,{asChild:!0,size:`lg`,className:`bg-brand-gradient font-bold shadow-elegant`,children:(0,L.jsxs)(`a`,{href:`#lead`,children:[`Book Free Demo Class `,(0,L.jsx)(v,{className:`ml-1 h-4 w-4`})]})}),(0,L.jsx)(rn,{asChild:!0,size:`lg`,variant:`outline`,className:`border-2 border-primary/20 bg-white font-semibold text-primary hover:bg-secondary/20`,children:(0,L.jsxs)(`a`,{href:Pm,target:`_blank`,rel:`noopener noreferrer`,children:[(0,L.jsx)(se,{className:`h-4 w-4 text-[#25D366]`}),` Chat on WhatsApp`]})})]}),(0,L.jsx)(`ul`,{className:`mt-8 flex flex-wrap gap-2.5`,children:Fm.map(e=>(0,L.jsxs)(`li`,{className:`inline-flex items-center gap-1.5 rounded-full bg-white/70 px-3 py-1.5 text-xs font-semibold text-primary shadow-sm ring-1 ring-primary/10 backdrop-blur`,children:[(0,L.jsx)(E,{className:`h-3.5 w-3.5 text-emerald-500`}),e]},e))})]}),(0,L.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,L.jsx)(`div`,{className:`glass relative overflow-hidden rounded-[2rem] p-3 shadow-elegant`,children:(0,L.jsx)(`img`,{src:Dm,alt:`Students learning digital marketing, tally, and MS Office at Add Skill Academy`,width:1280,height:1024,className:`h-auto w-full rounded-[1.5rem] object-cover`})}),(0,L.jsx)(`div`,{className:`absolute -left-4 top-8 animate-float-slow rounded-2xl bg-white p-3 shadow-card ring-1 ring-primary/10 sm:-left-8`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,L.jsx)(`div`,{className:`grid h-9 w-9 place-items-center rounded-xl bg-gold-gradient`,children:(0,L.jsx)(ue,{className:`h-4 w-4 text-primary`})}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`text-[10px] uppercase tracking-wide text-muted-foreground`,children:`Placed`}),(0,L.jsx)(`p`,{className:`text-sm font-extrabold text-primary`,children:`100+ Students`})]})]})}),(0,L.jsx)(`div`,{className:`absolute -right-2 bottom-6 animate-float-slow rounded-2xl bg-white p-3 shadow-card ring-1 ring-primary/10`,style:{animationDelay:`1.2s`},children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,L.jsx)(`div`,{className:`grid h-9 w-9 place-items-center rounded-xl bg-primary text-primary-foreground`,children:(0,L.jsx)(F,{className:`h-4 w-4 fill-secondary text-secondary-foreground`})}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`text-[10px] uppercase tracking-wide text-muted-foreground`,children:`Rated`}),(0,L.jsx)(`p`,{className:`text-sm font-extrabold text-primary`,children:`4.9 / 5.0`})]})]})})]})]})]}),(0,L.jsxs)(`section`,{id:`lead`,className:`relative overflow-hidden py-16 lg:py-24`,children:[(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute inset-0 -z-10 bg-accent/50`}),(0,L.jsxs)(`div`,{className:`mx-auto grid max-w-7xl grid-cols-1 items-center gap-10 px-4 sm:px-6 lg:grid-cols-[1.1fr_0.9fr]`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`Get Started`}),(0,L.jsxs)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:[`Ready to `,(0,L.jsx)(`span`,{className:`gradient-text`,children:`upgrade your career?`})]}),(0,L.jsx)(`p`,{className:`mt-4 max-w-lg text-muted-foreground`,children:`Book a free demo class today. Fill in your details and send them directly to our WhatsApp counsellor.`}),(0,L.jsx)(`ul`,{className:`mt-6 space-y-2 text-sm`,children:[`Free 1-hour demo class`,`Career counselling by experts`,`Live curriculum walkthrough`,`Fee & EMI options shared`].map(e=>(0,L.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,L.jsx)(E,{className:`h-4 w-4 text-emerald-500`}),(0,L.jsx)(`span`,{className:`font-medium text-foreground/80`,children:e})]},e))})]}),(0,L.jsx)(`div`,{className:`lg:sticky lg:top-24`,children:(0,L.jsx)(Tm,{})})]})]}),(0,L.jsxs)(`section`,{id:`about`,className:`mx-auto max-w-5xl px-4 py-16 sm:px-6 lg:py-24 text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`About Us`}),(0,L.jsxs)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:[`Why `,(0,L.jsx)(`span`,{className:`gradient-text`,children:`Add Skill Academy`}),`?`]}),(0,L.jsx)(`p`,{className:`mx-auto mt-5 max-w-3xl text-base text-muted-foreground sm:text-lg`,children:`At Add Skill Academy, we focus on practical training instead of theory. Our courses are designed according to current industry requirements. Every student learns through live projects, case studies, AI tools, assignments, and interview preparation to become job-ready.`})]}),(0,L.jsxs)(`section`,{id:`courses`,className:`mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:py-24`,children:[(0,L.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`Our Courses`}),(0,L.jsx)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:`Career-focused, hands-on programmes`}),(0,L.jsx)(`p`,{className:`mt-4 text-muted-foreground`,children:`Choose from four high-demand programmes designed to land you a job or freelance income.`})]}),(0,L.jsx)(`div`,{className:`mt-12 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3`,children:Im.map(e=>(0,L.jsxs)(`article`,{className:`group relative overflow-hidden rounded-3xl border border-primary/10 bg-white p-6 shadow-card transition-all hover:-translate-y-1 hover:shadow-elegant`,children:[(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute -right-16 -top-16 h-48 w-48 rounded-full bg-secondary/10 blur-2xl transition-opacity group-hover:bg-secondary/25`}),(0,L.jsxs)(`div`,{className:`relative`,children:[(0,L.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,L.jsx)(`div`,{className:`grid h-14 w-14 shrink-0 place-items-center rounded-2xl bg-brand-gradient text-primary-foreground shadow-elegant`,children:(0,L.jsx)(e.icon,{className:`h-6 w-6`})}),(0,L.jsx)(`span`,{className:`rounded-full bg-secondary/30 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-primary`,children:e.tag})]}),(0,L.jsx)(`h3`,{className:`mt-5 font-display text-xl font-extrabold text-primary`,children:e.title}),(0,L.jsxs)(`p`,{className:`mt-1 inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground`,children:[(0,L.jsx)(te,{className:`h-3.5 w-3.5`}),` Duration: `,e.duration]}),(0,L.jsx)(`ul`,{className:`mt-4 flex flex-wrap gap-1.5`,children:e.features.map(e=>(0,L.jsx)(`li`,{className:`rounded-full bg-accent px-2.5 py-1 text-xs font-medium text-primary/80`,children:e},e))}),(0,L.jsxs)(`div`,{className:`mt-5 inline-flex items-center gap-1.5 rounded-full bg-emerald-50 px-3 py-1 text-xs font-bold text-emerald-700 ring-1 ring-emerald-200`,children:[(0,L.jsx)(y,{className:`h-3.5 w-3.5`}),`100% Placement Support`]}),(0,L.jsx)(rn,{asChild:!0,className:`mt-6 w-full bg-brand-gradient font-semibold shadow-elegant`,children:(0,L.jsxs)(`a`,{href:`${Pm}?text=${encodeURIComponent(`Hello Add Skill Academy, I want to enquire about the ${e.title} course.`)}`,target:`_blank`,rel:`noopener noreferrer`,children:[`Enquire Now `,(0,L.jsx)(v,{className:`h-4 w-4`})]})})]})]},e.title))})]}),(0,L.jsxs)(`section`,{id:`why`,className:`relative overflow-hidden py-16 lg:py-24`,children:[(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute inset-0 -z-10 bg-gradient-to-b from-accent/60 via-background to-background`}),(0,L.jsxs)(`div`,{className:`mx-auto max-w-7xl px-4 sm:px-6`,children:[(0,L.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`Why Choose Us`}),(0,L.jsx)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:`Everything you need to succeed`})]}),(0,L.jsx)(`div`,{className:`mt-12 grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-3`,children:Lm.map((e,t)=>(0,L.jsxs)(`div`,{className:`group rounded-2xl border border-primary/10 bg-white p-5 shadow-card transition-all hover:-translate-y-1 hover:border-secondary/60 hover:shadow-elegant`,style:{animationDelay:`${t*80}ms`},children:[(0,L.jsx)(`div`,{className:`grid h-11 w-11 place-items-center rounded-xl bg-gold-gradient text-primary transition-transform group-hover:rotate-6`,children:(0,L.jsx)(e.icon,{className:`h-5 w-5`,strokeWidth:2.4})}),(0,L.jsx)(`p`,{className:`mt-3 text-sm font-bold text-primary sm:text-base`,children:e.label})]},e.label))})]})]}),(0,L.jsxs)(`section`,{id:`placement`,className:`mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:py-24`,children:[(0,L.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`Our Process`}),(0,L.jsx)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:`From Registration to Placement`}),(0,L.jsx)(`p`,{className:`mt-4 text-muted-foreground`,children:`A structured 8-step journey that turns you into an industry-ready professional.`})]}),(0,L.jsx)(`ol`,{className:`relative mt-14 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4`,children:Rm.map((e,t)=>(0,L.jsxs)(`li`,{className:`relative rounded-3xl border border-primary/10 bg-white p-5 shadow-card`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,L.jsx)(`div`,{className:`grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-brand-gradient text-primary-foreground shadow-elegant`,children:(0,L.jsx)(e.icon,{className:`h-5 w-5`})}),(0,L.jsxs)(`div`,{className:`min-w-0`,children:[(0,L.jsxs)(`p`,{className:`text-[10px] font-bold uppercase tracking-widest text-muted-foreground`,children:[`Step `,t+1]}),(0,L.jsx)(`p`,{className:`truncate font-display text-base font-extrabold text-primary`,children:e.label})]})]}),(0,L.jsx)(`div`,{className:`absolute -right-3 top-1/2 hidden -translate-y-1/2 lg:block`,children:t(0,L.jsxs)(`div`,{className:`glass-dark rounded-3xl p-6`,children:[(0,L.jsx)(`p`,{className:`font-display text-4xl font-extrabold text-secondary sm:text-5xl`,children:(0,L.jsx)(Ji,{end:e.end})}),(0,L.jsx)(`p`,{className:`mt-1 text-sm font-semibold text-primary-foreground/90 sm:text-base`,children:e.label})]},e.label))})]}),(0,L.jsxs)(`section`,{id:`testimonials`,className:`mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:py-24`,children:[(0,L.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`Testimonials`}),(0,L.jsx)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:`What our students say`})]}),(0,L.jsx)(`div`,{className:`mt-12`,children:(0,L.jsxs)(Ui,{opts:{align:`start`,loop:!0},className:`w-full`,children:[(0,L.jsx)(Wi,{children:Bm.map(e=>(0,L.jsx)(Gi,{className:`md:basis-1/2 lg:basis-1/3`,children:(0,L.jsxs)(`div`,{className:`h-full rounded-3xl border border-primary/10 bg-white p-6 shadow-card`,children:[(0,L.jsx)(P,{className:`h-6 w-6 text-secondary-foreground/70`}),(0,L.jsxs)(`p`,{className:`mt-3 text-sm text-foreground/80`,children:[`"`,e.text,`"`]}),(0,L.jsxs)(`div`,{className:`mt-5 flex items-center gap-3`,children:[(0,L.jsx)(`img`,{src:e.avatar,alt:e.name,width:48,height:48,loading:`lazy`,className:`h-12 w-12 rounded-full object-cover ring-2 ring-secondary`}),(0,L.jsxs)(`div`,{className:`min-w-0`,children:[(0,L.jsx)(`p`,{className:`truncate font-bold text-primary`,children:e.name}),(0,L.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:e.role})]})]}),(0,L.jsx)(`div`,{className:`mt-3 flex gap-0.5`,children:Array.from({length:5}).map((e,t)=>(0,L.jsx)(F,{className:`h-4 w-4 fill-secondary text-secondary-foreground`},t))})]})},e.name))}),(0,L.jsx)(Ki,{className:`hidden sm:flex`}),(0,L.jsx)(qi,{className:`hidden sm:flex`})]})})]}),(0,L.jsxs)(`section`,{id:`gallery`,className:`mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:py-24`,children:[(0,L.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`Life at the Academy`}),(0,L.jsx)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:`Our Gallery`}),(0,L.jsx)(`p`,{className:`mt-4 text-base text-muted-foreground sm:text-lg`,children:`Explore our classrooms, workshops, practical sessions, student achievements, and placement moments.`})]}),(0,L.jsx)(`div`,{className:`mt-12 columns-1 gap-4 sm:columns-2 lg:columns-3 [column-fill:_balance]`,children:Vm.map((e,t)=>(0,L.jsxs)(`button`,{type:`button`,onClick:()=>r(t),className:`group relative mb-4 block w-full overflow-hidden rounded-2xl shadow-card ring-1 ring-primary/10 transition-all duration-300 hover:-translate-y-1 hover:shadow-elegant focus:outline-none focus:ring-2 focus:ring-secondary break-inside-avoid`,children:[(0,L.jsx)(`img`,{src:e.src,alt:e.alt,loading:`lazy`,decoding:`async`,className:`h-auto w-full object-cover transition-transform duration-500 group-hover:scale-105`}),(0,L.jsx)(`div`,{className:`pointer-events-none absolute inset-0 bg-gradient-to-t from-primary/60 via-transparent to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100`})]},e.src))}),n!==null&&(0,L.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,onClick:()=>r(null),className:`fixed inset-0 z-[100] flex items-center justify-center bg-black/90 p-4 backdrop-blur-sm animate-in fade-in duration-200`,children:[(0,L.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r(null)},"aria-label":`Close`,className:`absolute right-4 top-4 rounded-full bg-white/10 p-2 text-white hover:bg-white/20`,children:(0,L.jsx)(pe,{className:`h-6 w-6`})}),(0,L.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r((n-1+Vm.length)%Vm.length)},"aria-label":`Previous`,className:`absolute left-4 top-1/2 -translate-y-1/2 rounded-full bg-white/10 p-3 text-white hover:bg-white/20`,children:(0,L.jsx)(v,{className:`h-6 w-6 rotate-180`})}),(0,L.jsx)(`img`,{src:Vm[n].src,alt:Vm[n].alt,onClick:e=>e.stopPropagation(),className:`max-h-[90vh] max-w-[92vw] rounded-xl object-contain shadow-elegant`}),(0,L.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r((n+1)%Vm.length)},"aria-label":`Next`,className:`absolute right-4 top-1/2 -translate-y-1/2 rounded-full bg-white/10 p-3 text-white hover:bg-white/20`,children:(0,L.jsx)(v,{className:`h-6 w-6`})})]})]}),(0,L.jsxs)(`section`,{id:`faq`,className:`mx-auto max-w-4xl px-4 py-16 sm:px-6 lg:py-24`,children:[(0,L.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,L.jsx)(`p`,{className:`text-sm font-bold uppercase tracking-widest text-secondary-foreground`,children:`FAQ`}),(0,L.jsx)(`h2`,{className:`mt-3 font-display text-3xl font-extrabold text-primary sm:text-4xl lg:text-5xl`,children:`Frequently asked questions`})]}),(0,L.jsx)(Nr,{type:`single`,collapsible:!0,className:`mt-10 space-y-3`,children:Hm.map((e,t)=>(0,L.jsxs)(Pr,{value:`item-${t}`,className:`overflow-hidden rounded-2xl border border-primary/10 bg-white px-5 shadow-card`,children:[(0,L.jsx)(Fr,{className:`py-4 text-left font-display text-base font-bold text-primary hover:no-underline sm:text-lg`,children:e.q}),(0,L.jsx)(Ir,{className:`pb-5 text-sm text-muted-foreground`,children:e.a})]},e.q))})]}),(0,L.jsxs)(`footer`,{id:`contact`,className:`relative overflow-hidden bg-primary text-primary-foreground`,children:[(0,L.jsx)(`div`,{"aria-hidden":!0,className:`absolute inset-0 opacity-10 [background-image:radial-gradient(circle_at_1px_1px,white_1px,transparent_0)] [background-size:22px_22px]`}),(0,L.jsxs)(`div`,{className:`relative mx-auto grid max-w-7xl grid-cols-1 gap-10 px-4 py-14 sm:grid-cols-2 sm:px-6 lg:grid-cols-4`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,L.jsx)(`div`,{className:`rounded-xl bg-white p-1.5`,children:(0,L.jsx)(`img`,{src:Em,alt:`Add Skill Academy logo`,className:`h-9 w-9`,width:36,height:36})}),(0,L.jsx)(`span`,{className:`font-display text-lg font-extrabold`,children:`Add Skill Academy`})]}),(0,L.jsx)(`p`,{className:`mt-4 text-sm text-primary-foreground/80`,children:`ISO-certified academy training students in Digital Marketing, Tally with GST, and MS Office with practical, job-ready curriculum.`}),(0,L.jsx)(`div`,{className:`mt-5 flex gap-2`,children:[{icon:re,href:`#`},{icon:O,href:`#`},{icon:me,href:`#`},{icon:j,href:`#`}].map((e,t)=>(0,L.jsx)(`a`,{href:e.href,"aria-label":`social link`,className:`grid h-9 w-9 place-items-center rounded-full bg-white/10 transition-colors hover:bg-secondary hover:text-primary`,children:(0,L.jsx)(e.icon,{className:`h-4 w-4`})},t))})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`font-display text-sm font-bold uppercase tracking-widest text-secondary`,children:`Quick Links`}),(0,L.jsxs)(`ul`,{className:`mt-4 space-y-2 text-sm text-primary-foreground/80`,children:[(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#about`,className:`hover:text-secondary`,children:`About`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#why`,className:`hover:text-secondary`,children:`Why Us`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#placement`,className:`hover:text-secondary`,children:`Placement Process`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#testimonials`,className:`hover:text-secondary`,children:`Reviews`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#faq`,className:`hover:text-secondary`,children:`FAQ`})})]})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`font-display text-sm font-bold uppercase tracking-widest text-secondary`,children:`Courses`}),(0,L.jsxs)(`ul`,{className:`mt-4 space-y-2 text-sm text-primary-foreground/80`,children:[(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#courses`,className:`hover:text-secondary`,children:`Digital Marketing with AI`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#courses`,className:`hover:text-secondary`,children:`Tally Expert with GST`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#courses`,className:`hover:text-secondary`,children:`MS Office`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(`a`,{href:`#lead`,className:`hover:text-secondary`,children:`Book Free Demo`})})]})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`font-display text-sm font-bold uppercase tracking-widest text-secondary`,children:`Contact`}),(0,L.jsxs)(`ul`,{className:`mt-4 space-y-3 text-sm text-primary-foreground/80`,children:[(0,L.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,L.jsx)(M,{className:`mt-0.5 h-4 w-4 shrink-0 text-secondary`}),(0,L.jsx)(`a`,{href:`mailto:addacacdemy@gmail.com`,className:`hover:text-secondary`,children:`addacacdemy@gmail.com`})]}),(0,L.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,L.jsx)(N,{className:`mt-0.5 h-4 w-4 shrink-0 text-secondary`}),(0,L.jsx)(`a`,{href:`tel:+917225912330`,className:`hover:text-secondary`,children:`+91 7225912330`})]}),(0,L.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,L.jsx)(ie,{className:`mt-0.5 h-4 w-4 shrink-0 text-secondary`}),(0,L.jsx)(`span`,{children:`1st Floor, 12, South Ave, Near Bhagwat Hospital, Choubey Colony, Raipur, Chhattisgarh – 492001`})]})]}),(0,L.jsx)(`div`,{className:`mt-4 overflow-hidden rounded-xl ring-1 ring-white/20`,children:(0,L.jsx)(`iframe`,{title:`Add Skill Academy location`,src:`https://maps.google.com/maps?q=21.2446492,81.6143799&z=17&output=embed`,width:`100%`,height:`180`,loading:`lazy`,referrerPolicy:`no-referrer-when-downgrade`,className:`block`})})]})]}),(0,L.jsx)(`div`,{className:`border-t border-white/10`,children:(0,L.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col items-center justify-between gap-2 px-4 py-5 text-xs text-primary-foreground/70 sm:flex-row sm:px-6`,children:[(0,L.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` Add Skill Academy. All rights reserved.`]}),(0,L.jsx)(`p`,{children:`Made with dedication for aspiring learners.`})]})})]}),(0,L.jsx)(Xi,{})]})}export{Um as component};