@1d1s/design-system 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,45 +1,45 @@
1
- (function(D,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("next/image"),require("lucide-react"),require("next/link")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","next/image","lucide-react","next/link"],i):(D=typeof globalThis<"u"?globalThis:D||self,i(D.OdosDesignSystem={},D.jsxRuntime,D.React,D.ReactDOM,D.nextImage,D.LucideReact,D.nextLink))})(this,(function(D,i,E,Bo,ht,de,fc){"use strict";function $o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=$o(E),tn=$o(Bo);function hc(e,t){const n=h.createContext(t),r=a=>{const{children:s,...l}=a,c=h.useMemo(()=>l,Object.values(l));return i.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ce(e,t=[]){let n=[];function r(a,s){const l=h.createContext(s),c=n.length;n=[...n,s];const d=f=>{const{scope:g,children:m,...y}=f,p=g?.[e]?.[c]||l,v=h.useMemo(()=>y,Object.values(y));return i.jsx(p.Provider,{value:v,children:m})};d.displayName=a+"Provider";function u(f,g){const m=g?.[e]?.[c]||l,y=h.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,u]}const o=()=>{const a=n.map(s=>h.createContext(s));return function(l){const c=l?.[e]||a;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,pc(o,...t)]}function pc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(a)[`__scope${d}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function zo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=zo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():zo(e[o],null)}}}}function X(...e){return h.useCallback(Jn(...e),e)}function pt(e){const t=gc(e),n=h.forwardRef((r,o)=>{const{children:a,...s}=r,l=h.Children.toArray(a),c=l.find(vc);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return i.jsx(t,{...s,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return i.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function gc(e){const t=h.forwardRef((n,r)=>{const{children:o,...a}=n;if(h.isValidElement(o)){const s=yc(o),l=bc(a,o.props);return o.type!==h.Fragment&&(l.ref=r?Jn(r,s):s),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ho=Symbol("radix.slottable");function mc(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ho,t}function vc(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ho}function bc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function yc(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 Rn(e){const t=e+"CollectionProvider",[n,r]=Ce(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:w}=p,b=E.useRef(null),x=E.useRef(new Map).current;return i.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:w})};s.displayName=t;const l=e+"CollectionSlot",c=pt(l),d=E.forwardRef((p,v)=>{const{scope:w,children:b}=p,x=a(l,w),N=X(v,x.collectionRef);return i.jsx(c,{ref:N,children:b})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",g=pt(u),m=E.forwardRef((p,v)=>{const{scope:w,children:b,...x}=p,N=E.useRef(null),S=X(v,N),T=a(u,w);return E.useEffect(()=>(T.itemMap.set(N,{ref:N,...x}),()=>{T.itemMap.delete(N)})),i.jsx(g,{[f]:"",ref:S,children:b})});m.displayName=u;function y(p){const v=a(e+"CollectionConsumer",p);return E.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((T,k)=>x.indexOf(T.ref.current)-x.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:m},y,r]}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var fe=globalThis?.document?h.useLayoutEffect:()=>{},wc=h[" useInsertionEffect ".trim().toString()]||fe;function be({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=xc({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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.`),u.current=l},[l,r])}const d=h.useCallback(u=>{if(l){const f=Cc(u)?u(e):u;f!==e&&s.current?.(f)}else a(u)},[l,e,a,s]);return[c,d]}function xc({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return wc(()=>{a.current=t},[t]),h.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Cc(e){return typeof e=="function"}var Nc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Nc.reduce((e,t)=>{const n=pt(`Primitive.${t}`),r=h.forwardRef((o,a)=>{const{asChild:s,...l}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Sc(e,t){e&&tn.flushSync(()=>e.dispatchEvent(t))}function Ac(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Oe=e=>{const{present:t,children:n}=e,r=kc(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=X(r.ref,Pc(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};Oe.displayName="Presence";function kc(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),s=e?"mounted":"unmounted",[l,c]=Ac(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=nn(r.current);a.current=l==="mounted"?d:"none"},[l]),fe(()=>{const d=r.current,u=o.current;if(u!==e){const g=a.current,m=nn(d);e?c("MOUNT"):m==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),fe(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=m=>{const p=nn(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=m=>{m.target===t&&(a.current=nn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function nn(e){return e?.animationName||"none"}function Pc(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 Ec=h[" useId ".trim().toString()]||(()=>{}),_c=0;function Ne(e){const[t,n]=h.useState(Ec());return fe(()=>{n(r=>r??String(_c++))},[e]),e||(t?`radix-${t}`:"")}var rn="Collapsible",[Tc,Vo]=Ce(rn),[Mc,er]=Tc(rn),Yo=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...l}=e,[c,d]=be({prop:r,defaultProp:o??!1,onChange:s,caller:rn});return i.jsx(Mc,{scope:n,disabled:a,contentId:Ne(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:i.jsx(K.div,{"data-state":nr(c),"data-disabled":a?"":void 0,...l,ref:t})})});Yo.displayName=rn;var jo="CollapsibleTrigger",Go=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=er(jo,n);return i.jsx(K.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":nr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:Y(e.onClick,o.onOpenToggle)})});Go.displayName=jo;var tr="CollapsibleContent",Uo=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=er(tr,e.__scopeCollapsible);return i.jsx(Oe,{present:n||o.open,children:({present:a})=>i.jsx(Dc,{...r,ref:t,present:a})})});Uo.displayName=tr;var Dc=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=er(tr,n),[l,c]=h.useState(r),d=h.useRef(null),u=X(t,d),f=h.useRef(0),g=f.current,m=h.useRef(0),y=m.current,p=s.open||l,v=h.useRef(p),w=h.useRef(void 0);return h.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),fe(()=>{const b=d.current;if(b){w.current=w.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();f.current=x.height,m.current=x.width,v.current||(b.style.transitionDuration=w.current.transitionDuration,b.style.animationName=w.current.animationName),c(r)}},[s.open,r]),i.jsx(K.div,{"data-state":nr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:p&&o})});function nr(e){return e?"open":"closed"}var Oc=Yo,Ic=Go,Lc=Uo,Fc=h.createContext(void 0);function on(e){const t=h.useContext(Fc);return e||t||"ltr"}var Se="Accordion",Wc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rr,Bc,$c]=Rn(Se),[an]=Ce(Se,[$c,Vo]),or=Vo(),Ko=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return i.jsx(rr.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?i.jsx(Yc,{...a,ref:t}):i.jsx(Vc,{...o,ref:t})})});Ko.displayName=Se;var[Qo,zc]=an(Se),[qo,Hc]=an(Se,{collapsible:!1}),Vc=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[l,c]=be({prop:n,defaultProp:r??"",onChange:o,caller:Se});return i.jsx(Qo,{scope:e.__scopeAccordion,value:E.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:E.useCallback(()=>a&&c(""),[a,c]),children:i.jsx(qo,{scope:e.__scopeAccordion,collapsible:a,children:i.jsx(Xo,{...s,ref:t})})})}),Yc=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=be({prop:n,defaultProp:r??[],onChange:o,caller:Se}),c=E.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=E.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return i.jsx(Qo,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:i.jsx(qo,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(Xo,{...a,ref:t})})})}),[jc,sn]=an(Se),Xo=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,l=E.useRef(null),c=X(l,t),d=Bc(n),f=on(o)==="ltr",g=Y(e.onKeyDown,m=>{if(!Wc.includes(m.key))return;const y=m.target,p=d().filter(A=>!A.ref.current?.disabled),v=p.findIndex(A=>A.ref.current===y),w=p.length;if(v===-1)return;m.preventDefault();let b=v;const x=0,N=w-1,S=()=>{b=v+1,b>N&&(b=x)},T=()=>{b=v-1,b<x&&(b=N)};switch(m.key){case"Home":b=x;break;case"End":b=N;break;case"ArrowRight":a==="horizontal"&&(f?S():T());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(f?T():S());break;case"ArrowUp":a==="vertical"&&T();break}const k=b%w;p[k].ref.current?.focus()});return i.jsx(jc,{scope:n,disabled:r,direction:o,orientation:a,children:i.jsx(rr.Slot,{scope:n,children:i.jsx(K.div,{...s,"data-orientation":a,ref:c,onKeyDown:r?void 0:g})})})}),ln="AccordionItem",[Gc,ar]=an(ln),Zo=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=sn(ln,n),s=zc(ln,n),l=or(n),c=Ne(),d=r&&s.value.includes(r)||!1,u=a.disabled||e.disabled;return i.jsx(Gc,{scope:n,open:d,disabled:u,triggerId:c,children:i.jsx(Oc,{"data-orientation":a.orientation,"data-state":ra(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Zo.displayName=ln;var Jo="AccordionHeader",Ro=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sn(Se,n),a=ar(Jo,n);return i.jsx(K.h3,{"data-orientation":o.orientation,"data-state":ra(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Ro.displayName=Jo;var sr="AccordionTrigger",ea=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sn(Se,n),a=ar(sr,n),s=Hc(sr,n),l=or(n);return i.jsx(rr.ItemSlot,{scope:n,children:i.jsx(Ic,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});ea.displayName=sr;var ta="AccordionContent",na=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sn(Se,n),a=ar(ta,n),s=or(n);return i.jsx(Lc,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});na.displayName=ta;function ra(e){return e?"open":"closed"}var Uc=Ko,Kc=Zo,Qc=Ro,qc=ea,Xc=na;function oa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=oa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function aa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=oa(e))&&(r&&(r+=" "),r+=t);return r}const Zc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Jc=(e,t)=>({classGroupId:e,validator:t}),sa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),cn="-",ia=[],Rc="arbitrary..",ed=e=>{const t=nd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return td(s);const l=s.split(cn),c=l[0]===""&&l.length>1?1:0;return la(l,c,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=r[s],d=n[s];return c?d?Zc(d,c):c:d||ia}return n[s]||ia}}},la=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=la(e,t+1,a);if(d)return d}const s=n.validators;if(s===null)return;const l=t===0?e.join(cn):e.slice(t).join(cn),c=s.length;for(let d=0;d<c;d++){const u=s[d];if(u.validator(l))return u.classGroupId}},td=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Rc+r:void 0})(),nd=e=>{const{theme:t,classGroups:n}=e;return rd(n,t)},rd=(e,t)=>{const n=sa();for(const r in e){const o=e[r];ir(o,n,r,t)}return n},ir=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];od(s,t,n,r)}},od=(e,t,n,r)=>{if(typeof e=="string"){ad(e,t,n);return}if(typeof e=="function"){sd(e,t,n,r);return}id(e,t,n,r)},ad=(e,t,n)=>{const r=e===""?t:ca(t,e);r.classGroupId=n},sd=(e,t,n,r)=>{if(ld(e)){ir(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Jc(n,e))},id=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[l,c]=o[s];ir(c,ca(t,l),n,r)}},ca=(e,t)=>{let n=e;const r=t.split(cn),o=r.length;for(let a=0;a<o;a++){const s=r[a];let l=n.nextPart.get(s);l||(l=sa(),n.nextPart.set(s,l)),n=l}return n},ld=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,cd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return o(a,s),s},set(a,s){a in n?n[a]=s:o(a,s)}}},lr="!",da=":",dd=[],ua=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),ud=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,l=0,c=0,d;const u=o.length;for(let p=0;p<u;p++){const v=o[p];if(s===0&&l===0){if(v===da){a.push(o.slice(c,p)),c=p+1;continue}if(v==="/"){d=p;continue}}v==="["?s++:v==="]"?s--:v==="("?l++:v===")"&&l--}const f=a.length===0?o:o.slice(c);let g=f,m=!1;f.endsWith(lr)?(g=f.slice(0,-1),m=!0):f.startsWith(lr)&&(g=f.slice(1),m=!0);const y=d&&d>c?d-c:void 0;return ua(a,m,g,y)};if(t){const o=t+da,a=r;r=s=>s.startsWith(o)?a(s.slice(o.length)):ua(dd,!1,s,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},fd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const s=n[a],l=s[0]==="[",c=t.has(s);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},hd=e=>({cache:cd(e.cacheSize),parseClassName:ud(e),sortModifiers:fd(e),...ed(e)}),pd=/\s+/,gd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],l=e.trim().split(pd);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:g,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:p}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let v=!!p,w=r(v?y.substring(0,p):y);if(!w){if(!v){c=u+(c.length>0?" "+c:c);continue}if(w=r(y),!w){c=u+(c.length>0?" "+c:c);continue}v=!1}const b=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=m?b+lr:b,N=x+w;if(s.indexOf(N)>-1)continue;s.push(N);const S=o(w,v);for(let T=0;T<S.length;++T){const k=S[T];s.push(x+k)}c=u+(c.length>0?" "+c:c)}return c},md=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=fa(n))&&(o&&(o+=" "),o+=r);return o},fa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=fa(e[r]))&&(n&&(n+=" "),n+=t);return n},vd=(e,...t)=>{let n,r,o,a;const s=c=>{const d=t.reduce((u,f)=>f(u),e());return n=hd(d),r=n.cache.get,o=n.cache.set,a=l,l(c)},l=c=>{const d=r(c);if(d)return d;const u=gd(c,n);return o(c,u),u};return a=s,(...c)=>a(md(...c))},bd=[],le=e=>{const t=n=>n[e]||bd;return t.isThemeGetter=!0,t},ha=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yd=/^\d+\/\d+$/,wd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xd=/\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$/,Cd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Nd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>yd.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>!!e&&Number.isInteger(Number(e)),cr=e=>e.endsWith("%")&&Q(e.slice(0,-1)),Ye=e=>wd.test(e),Ad=()=>!0,kd=e=>xd.test(e)&&!Cd.test(e),ga=()=>!1,Pd=e=>Nd.test(e),Ed=e=>Sd.test(e),_d=e=>!I(e)&&!L(e),Td=e=>mt(e,wa,ga),I=e=>ha.test(e),ot=e=>mt(e,xa,kd),dr=e=>mt(e,Ld,Q),ma=e=>mt(e,ba,ga),Md=e=>mt(e,ya,Ed),dn=e=>mt(e,Ca,Pd),L=e=>pa.test(e),Lt=e=>vt(e,xa),Dd=e=>vt(e,Fd),va=e=>vt(e,ba),Od=e=>vt(e,wa),Id=e=>vt(e,ya),un=e=>vt(e,Ca,!0),mt=(e,t,n)=>{const r=ha.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},vt=(e,t,n=!1)=>{const r=pa.exec(e);return r?r[1]?t(r[1]):n:!1},ba=e=>e==="position"||e==="percentage",ya=e=>e==="image"||e==="url",wa=e=>e==="length"||e==="size"||e==="bg-size",xa=e=>e==="length",Ld=e=>e==="number",Fd=e=>e==="family-name",Ca=e=>e==="shadow",Wd=vd(()=>{const e=le("color"),t=le("font"),n=le("text"),r=le("font-weight"),o=le("tracking"),a=le("leading"),s=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),u=le("shadow"),f=le("inset-shadow"),g=le("text-shadow"),m=le("drop-shadow"),y=le("blur"),p=le("perspective"),v=le("aspect"),w=le("ease"),b=le("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...N(),L,I],T=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],A=()=>[L,I,c],z=()=>[gt,"full","auto",...A()],G=()=>[Ke,"none","subgrid",L,I],M=()=>["auto",{span:["full",Ke,L,I]},Ke,L,I],F=()=>[Ke,"auto",L,I],V=()=>["auto","min","max","fr",L,I],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...A()],_=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],C=()=>[e,L,I],q=()=>[...N(),va,ma,{position:[L,I]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Od,Td,{size:[L,I]}],De=()=>[cr,Lt,ot],ae=()=>["","none","full",d,L,I],U=()=>["",Q,Lt,ot],se=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[Q,cr,va,ma],re=()=>["","none",y,L,I],ie=()=>["none",Q,L,I],Z=()=>["none",Q,L,I],ee=()=>[Q,L,I],oe=()=>[gt,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ye],breakpoint:[Ye],color:[Ad],container:[Ye],"drop-shadow":[Ye],ease:["in","out","in-out"],font:[_d],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ye],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ye],shadow:[Ye],spacing:["px",Q],text:[Ye],"text-shadow":[Ye],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,I,L,v]}],container:["container"],columns:[{columns:[Q,I,L,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",L,I]}],basis:[{basis:[gt,"full","auto",l,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,gt,"auto","initial","none",I]}],grow:[{grow:["",Q,L,I]}],shrink:[{shrink:["",Q,L,I]}],order:[{order:[Ke,"first","last","none",L,I]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[l,"screen",..._()]}],"min-w":[{"min-w":[l,"screen","none",..._()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,Lt,ot]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,dr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cr,I]}],"font-family":[{font:[Dd,I,t]}],"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:[o,L,I]}],"line-clamp":[{"line-clamp":[Q,"none",L,dr]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",L,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",L,ot]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Q,"auto",L,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,I]}],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",L,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,L,I],radial:["",L,I],conic:[Ke,L,I]},Id,Md]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:De()}],"gradient-via-pos":[{via:De()}],"gradient-to-pos":[{to:De()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,L,I]}],"outline-w":[{outline:["",Q,Lt,ot]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,un,dn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,un,dn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Q,ot]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,un,dn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Q,L,I]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[L,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,I]}],filter:[{filter:["","none",L,I]}],blur:[{blur:re()}],brightness:[{brightness:[Q,L,I]}],contrast:[{contrast:[Q,L,I]}],"drop-shadow":[{"drop-shadow":["","none",m,un,dn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Q,L,I]}],"hue-rotate":[{"hue-rotate":[Q,L,I]}],invert:[{invert:["",Q,L,I]}],saturate:[{saturate:[Q,L,I]}],sepia:[{sepia:["",Q,L,I]}],"backdrop-filter":[{"backdrop-filter":["","none",L,I]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[Q,L,I]}],"backdrop-contrast":[{"backdrop-contrast":[Q,L,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,L,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,L,I]}],"backdrop-invert":[{"backdrop-invert":["",Q,L,I]}],"backdrop-opacity":[{"backdrop-opacity":[Q,L,I]}],"backdrop-saturate":[{"backdrop-saturate":[Q,L,I]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,L,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",L,I]}],ease:[{ease:["linear","initial",w,L,I]}],delay:[{delay:[Q,L,I]}],animate:[{animate:["none",b,L,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,L,I]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[L,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",L,I]}],"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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",L,I]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Q,Lt,ot,dr]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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 P(...e){return Wd(aa(e))}const fn=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M20 8L12 16L4 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Bd=Uc;function $d({className:e,...t}){return i.jsx(Kc,{className:P("border-b border-gray-200 last:border-b-0",e),...t})}function zd({className:e,children:t,...n}){return i.jsx(Qc,{className:"flex",children:i.jsxs(qc,{className:P("flex flex-1 items-center justify-between py-3 sm:py-4 text-left","text-sm sm:text-base font-medium text-gray-900 transition-colors","hover:text-main-900","focus:outline-none focus-visible:ring-2 focus-visible:ring-main-500 focus-visible:ring-offset-2 rounded-1","[&[data-state=open]>svg]:rotate-180","cursor-pointer",e),...n,children:[t,i.jsx(fn,{className:P("h-4 w-4 sm:h-5 sm:w-5 shrink-0 text-gray-500 transition-transform duration-200")})]})})}function Hd({className:e,children:t,...n}){return i.jsx(Xc,{className:P("overflow-hidden text-gray-700","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"),...n,children:i.jsx("div",{className:P("pb-3 sm:pb-4 pt-0 text-sm sm:text-base",e),children:t})})}var Vd=Symbol.for("react.lazy"),hn=h[" use ".trim().toString()];function Yd(e){return typeof e=="object"&&e!==null&&"then"in e}function Na(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Vd&&"_payload"in e&&Yd(e._payload)}function jd(e){const t=Ud(e),n=h.forwardRef((r,o)=>{let{children:a,...s}=r;Na(a)&&typeof hn=="function"&&(a=hn(a._payload));const l=h.Children.toArray(a),c=l.find(Qd);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return i.jsx(t,{...s,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return i.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Gd=jd("Slot");function Ud(e){const t=h.forwardRef((n,r)=>{let{children:o,...a}=n;if(Na(o)&&typeof hn=="function"&&(o=hn(o._payload)),h.isValidElement(o)){const s=Xd(o),l=qd(a,o.props);return o.type!==h.Fragment&&(l.ref=r?Jn(r,s):s),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kd=Symbol("radix.slottable");function Qd(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kd}function qd(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Xd(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)}const Sa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Aa=aa,at=(e,t)=>n=>{var r;if(t?.variants==null)return Aa(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const u=n?.[d],f=a?.[d];if(u===null)return null;const g=Sa(u)||Sa(f);return o[d][g]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,g]=u;return g===void 0||(d[f]=g),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:g,...m}=u;return Object.entries(m).every(y=>{let[p,v]=y;return Array.isArray(v)?v.includes({...a,...l}[p]):{...a,...l}[p]===v})?[...d,f,g]:d},[]);return Aa(e,s,c,n?.class,n?.className)},pn=at("leading-none",{variants:{size:{display1:"text-5xl",display2:"text-4xl",heading1:"text-3xl",heading2:"text-2xl",body1:"text-xl",body2:"text-lg",caption1:"text-base",caption2:"text-sm",caption3:"text-xs",pageTitle:"text-3xl"},weight:{bold:"font-bold",medium:"font-medium",regular:"font-normal",light:"font-light"}},defaultVariants:{size:"body2",weight:"medium"}});function B({className:e,size:t,weight:n,as:r="span",...o}){return i.jsx(r,{className:P(pn({size:t,weight:n,className:e})),...o})}const Zd=at("inline-flex items-center justify-center gap-2 rounded-3 border border-transparent transition-colors duration-200 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-main-800 text-white hover:bg-main-600 disabled:bg-main-400 disabled:text-white",outlined:"bg-white text-gray-800 border-gray-300 hover:bg-gray-100 disabled:bg-gray-200 disabled:text-gray-400",secondary:"bg-white text-gray-800 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400",ghost:"bg-transparent text-gray-800 hover:bg-gray-100 disabled:text-gray-400"},size:{small:"h-9 px-3.5",medium:"h-11 px-3.5",large:"h-13 px-5",icon:"h-9 w-9 p-0"}},defaultVariants:{variant:"default",size:"large"}});function ge({className:e,variant:t="default",size:n="large",asChild:r=!1,disabled:o=!1,...a}){const s=r?Gd:"button",l=t??"default",c=n??"large",d={small:{size:"caption2",weight:"bold"},medium:{size:"caption1",weight:"bold"},large:{size:"body2",weight:"bold"},icon:{size:"caption1",weight:"bold"}},u=c!=="icon"&&(typeof a.children=="string"||typeof a.children=="number");return i.jsx(s,{"data-slot":"button",className:P(Zd({variant:l,size:c,className:e})),disabled:o,...a,children:u?i.jsx(B,{size:d[c].size,weight:d[c].weight,children:a.children}):a.children})}function Ft({imageUrl:e,size:t="md",className:n}){const r={sm:"w-10 h-10",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-20 h-20"},o="/DefaultProfile.png",[a,s]=E.useState(!0);E.useEffect(()=>{s(!0)},[e]);const l=typeof e=="string"&&/^(\/|https?:\/\/)/.test(e);return i.jsx("div",{className:P("relative overflow-hidden rounded-full",r[t],n),children:i.jsx(ht,{src:!e||!l||!a?o:e,alt:"avatar",fill:!0,className:"object-cover",onError:()=>s(!1)})})}const Jd=e=>i.jsxs("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsx("rect",{width:"60",height:"60",fill:"url(#pattern0_3714_3925)"}),i.jsxs("defs",{children:[i.jsx("pattern",{id:"pattern0_3714_3925",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:i.jsx("use",{xlinkHref:"#image0_3714_3925",transform:"translate(-0.1 -0.1) scale(0.0125)"})}),i.jsx("image",{id:"image0_3714_3925",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAGy0lEQVR4Ae2dT2gcVRzHk6wR1nQJkYZqsnR3kbIoLRbsJafQg4b0kJMHPVmCh4pQb/Wo1+ZWQexBigVBzz00tB6KJy8RFAsSetjd/G1I0IQkLhg28fszb0uyO/Peb9682dmd+T0YZue9N7/f+32+M2/+v+3rkyQEhIAQEAJCQAgIASEgBIRA2gj0d3PA4+Pj+cHBwXeOjo4u9vf3X8C8iPa+hulVTGcwvYyJ0r+Y9jD9hek56lZR9xnmTw8ODn5dXV1dQX5Xpq4SoFwu5+r1+jRITQPeVcwLjqjVIMgT2JrPZrPzi4uLu47shjbTDQJkCoXCFCKZxXQNUzZ0VHoDdRQ/xHSvVqs9wryhrx5taWwCjI6OnhkaGvoYW+ZnCLEYbZi+1qvY0+7s7+9/u7m5SV1Yx1PHBRgbG3sF/fqniPQWprMdj9jb4Ray53C8+Hptbe0f7yrR5HZUgGKx+AG2+NsI5Xw04YS2uoQ94vNqtfpjaEtMAx0RAH18CYHdBfz3mO2KtRra+hhtvYFjRCXqhmSidoCt/jp8PMD0VtS+HNp/A7ZmR0ZG1re3t39zaLfNVGR7QD6fzw4MDHyDremjNq89lIE94f7h4eEnKysrdPbkPEUiALqc19FS2uqvOG9xPAYX4HYGXdK6a/fOBSiVSmVsMXR+7eoiynXMtvZq2KOnKpXKoq0Br/UGvDJt89DtXAL8n7F+0uATkgLFRjHa8vFaz9keoLZ8gn/Oy1GC8jawJ0y62hOcCKD6/F8AOYlbvte2U0PmhItjQuguiM520Bg64KYFPglCsT5QsdOydQotAJ1qwntSznaCgLyiYg+yTlvdUBdi6iLrizarKcnANc5lXKzVwlysWR8D6PYCOP+OKZcS3n5h0rOFt21vW1h3QXRvR+D/r0lOsfATSJtvJYC6q9kTN9a00TsqpJuMxMTGXOAuSN3P/xPOYrmljF1d22Z0jUc2IByss4TnCW8GfZ4QeA9QD1Nige8AUpQmzis2gXwEEoAeI8I6PcmS5E3glmLkXeqRG0gAeoYLG93yGNEjnNizzipG7IYEESCDgw09QJekIaAYsa+v2ALg4EavjhQ1vqXomEBRsWLxYAsAa7Msi1KJCLBZsQSgN9ZglF6aksQjcE0xM9ZmCaBeF4z6jTVjY3uoQlYxMzaZJQCsTBstSYVWAixmLAFwr+Nqq3VZ1hPgMjMKQK+Iw1WaHrboyfJLC4qddg2jAPR+vtaCFPoS4LAzCoALi4u+HqRAS4DDzigA+rILWi9S6EuAw84oAFQs+nqQAi0BDruXtBaOC+mbLGfJdD8/rKOw9h0/TzCyM+4BAEIfxEmyI2BkxxGAngFIsiNgZMcRoPkpqF0T0r2WkR1HgHQjjDh6jgD0EbQkOwJGdhwB9ux8y1ogYGTHEYA+/5dkR8DIjnMd8By+y3b+29cKe55tOs8Pa7+9xaFyiJ02GfcAXE5XtRak0JcAh51RAFxOP/P1IAVaAhx2RgGg4lOtFyn0JcBhZxSAxtvx9SAFWgIcdkYB1GBHNa0nKfQiUOMMFGUUgCyjL3vi5UHy/AlwmbEEgJt5f1dS4kOAxYwlAA3zBSd1H0eS3U6grpi1l7TksARQY6zRMF+SeAQecselYwmgfN7j+ZZaIMBmxRYAtwBoAI6q4DUSqCpWxopUgS0A6jZwYXGHZTXFlRQj9kiMQQToo9EFwXYrxXxNoW8pRqZ6L8oDCaCGdpx7sbb8aCUwF3T4y0ACkDca2hGzpVbPstxHn6kSm0BJ+82tnyX1ofYPfuVpzEff/6HNcJdWAhBgiPAIl9vytTxYAP5jwKdv6AKnwF1Q0wPg38DvrhkEu9muGOa7ioWVa2sBcK5bgfI3rbwmaCViQCxsQ2J/z+rlgMbJGR4eLqERl73Kk56HLf8+4H8ZJk7rPaDplAY1xe+F5nKK5gsq9lAhhxZAjSg7g1ak6aENxTrjYjTd0AKQ/NgN12lQU/zcoOWEJxq2copidhGn9Wmol3Ma1DSTyfyEsnNe5QnI22g0Gu9iy//DVSxO9oBmY6hh2DomsZzE7oiGLp50CZ+4ORWADKoRZSfwM0kHZoplwtVoucSpmUKdhjaNtM53dnb2crnc9zg9zff6KSqdauJs5/3l5eW/W+N0sez0GODVINyyuI4gvkJZrw1vuYuN5yZuMXznFZervMgFoIbihdkSgpG/MPFQrSMCNP2qu6i3sdytg/4l8098mgLQXP7G6iQN3Ek9vdi5Jfkjt2PWsQlwQmr5K8MTMGL9ScN8yZ95xirBaedp+Dvb0xHLkhAQAkJACAgBISAEhIAQEAJpIPAfJpcfclVEKqsAAAAASUVORK5CYII="})]})]}),ka=e=>i.jsx(de.Bell,{...e}),Rd=e=>i.jsx(de.BookOpen,{...e}),Pa=e=>i.jsx(de.CalendarDays,{...e}),eu=e=>i.jsx(de.Dumbbell,{...e}),tu=e=>i.jsx(de.Flag,{...e}),Ea=e=>i.jsx(de.Flame,{...e}),nu=e=>i.jsx(de.Code2,{...e}),bt=({strokeWidth:e=14,...t})=>i.jsx("svg",{width:"65",height:"50",viewBox:"0 0 65 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:i.jsx("path",{d:"M57.5 7.5L23.125 41.875L7.5 26.25",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})}),ru=e=>i.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M0 0.6C0 0.268629 0.268629 0 0.6 0H6C7.10457 0 8 0.895431 8 2V7.4C8 7.73137 7.73137 8 7.4 8C7.06863 8 6.8 7.73137 6.8 7.4V2.2C6.8 1.64772 6.35228 1.2 5.8 1.2H0.6C0.268629 1.2 0 0.931371 0 0.6Z",fill:"currentColor"})}),ur=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M16 20L8 12L16 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),gn=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M8 4L16 12L8 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),_a=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M4 16L12 8L20 16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),mn=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M18 6L6 18M18 18L6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),ou=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),au=e=>i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.01759 11.1645C4.0676 6.79251 8.02225 4.5 11.9841 4.5C16.6371 4.5 20.6453 7.53129 23.0101 11.1836L23.0112 11.1853C23.1677 11.4285 23.2509 11.7115 23.2509 12.0007C23.2509 12.2893 23.168 12.5719 23.012 12.8147C20.6493 16.5141 16.6671 19.5 11.9841 19.5C7.2513 19.5 3.3458 16.5203 0.988892 12.8317C0.828743 12.583 0.745679 12.2925 0.750173 11.9968C0.754679 11.7002 0.846976 11.4117 1.0154 11.1676L1.01759 11.1645ZM2.25001 12.0196L2.25208 12.0228C4.42901 15.4304 7.91813 18 11.9841 18C16.0045 18 19.5689 15.4195 21.7484 12.0065L21.7498 12.0043C21.7505 12.0032 21.7509 12.002 21.7509 12.0007C21.7509 12.0002 21.7508 11.9996 21.7507 11.9991C21.7505 11.9985 21.7503 11.9979 21.7499 11.9973C19.5621 8.61915 15.9686 6 11.9841 6C8.63995 6 5.10025 7.93555 2.25001 12.0196Z",fill:"currentColor"}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9ZM7.5 12C7.5 9.51472 9.51472 7.5 12 7.5C14.4853 7.5 16.5 9.51472 16.5 12C16.5 14.4853 14.4853 16.5 12 16.5C9.51472 16.5 7.5 14.4853 7.5 12Z",fill:"currentColor"})]}),su=e=>i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsx("path",{d:"M20.2501 21.0001C20.1516 21.0003 20.054 20.9809 19.963 20.9432C19.872 20.9054 19.7894 20.8501 19.7199 20.7803L3.21994 4.28025C3.08522 4.13845 3.01123 3.94964 3.01373 3.75407C3.01624 3.5585 3.09504 3.37164 3.23334 3.23334C3.37164 3.09504 3.5585 3.01624 3.75407 3.01373C3.94964 3.01123 4.13845 3.08522 4.28025 3.21994L20.7803 19.7199C20.8851 19.8248 20.9564 19.9584 20.9854 20.1039C21.0143 20.2493 20.9994 20.4001 20.9427 20.5371C20.8859 20.6741 20.7899 20.7912 20.6666 20.8736C20.5433 20.956 20.3984 21 20.2501 21.0001Z",fill:"currentColor"}),i.jsx("path",{d:"M11.984 18.0002C10.0392 18.0002 8.16371 17.4245 6.40965 16.2892C4.81261 15.258 3.37496 13.7809 2.25183 12.0236V12.0198C3.18652 10.6806 4.21027 9.54812 5.30996 8.635C5.31991 8.62668 5.32802 8.61639 5.33379 8.60478C5.33956 8.59317 5.34285 8.58048 5.34347 8.56753C5.34409 8.55458 5.34201 8.54164 5.33737 8.52953C5.33273 8.51742 5.32563 8.50641 5.31652 8.49719L4.38277 7.56484C4.36618 7.54811 4.34389 7.53824 4.32035 7.5372C4.29682 7.53616 4.27375 7.54402 4.25574 7.55922C3.08761 8.54359 2.0034 9.75109 1.01761 11.1648C0.848014 11.4083 0.754608 11.6966 0.749266 11.9932C0.743924 12.2899 0.826888 12.5814 0.987615 12.8308C2.22558 14.7681 3.81886 16.3998 5.59449 17.5487C7.59371 18.8439 9.74527 19.5002 11.984 19.5002C13.1924 19.4964 14.3923 19.2973 15.5371 18.9105C15.5522 18.9053 15.5658 18.8965 15.5765 18.8846C15.5872 18.8728 15.5947 18.8585 15.5983 18.8429C15.602 18.8274 15.6015 18.8112 15.5972 18.7959C15.5928 18.7805 15.5845 18.7666 15.5732 18.7553L14.5617 17.7437C14.5384 17.721 14.5096 17.7048 14.4781 17.6965C14.4466 17.6883 14.4136 17.6884 14.3821 17.6969C13.5987 17.8986 12.793 18.0005 11.984 18.0002Z",fill:"currentColor"}),i.jsx("path",{d:"M23.0081 11.1844C21.7678 9.26625 20.1586 7.63688 18.3548 6.47203C16.3594 5.18203 14.1562 4.5 11.9841 4.5C10.7884 4.50212 9.60172 4.70543 8.47358 5.10141C8.45855 5.10664 8.4451 5.11561 8.4345 5.12747C8.42389 5.13934 8.41648 5.15371 8.41296 5.16923C8.40945 5.18475 8.40994 5.20091 8.41439 5.21619C8.41885 5.23147 8.42712 5.24536 8.43843 5.25656L9.44858 6.26672C9.4721 6.28984 9.5013 6.30634 9.53323 6.31457C9.56516 6.3228 9.5987 6.32246 9.63046 6.31359C10.3978 6.10602 11.1891 6.00058 11.9841 6C13.8914 6 15.7612 6.58266 17.5411 7.73438C19.1681 8.78438 20.6226 10.26 21.7486 12C21.7494 12.0011 21.7499 12.0024 21.7499 12.0037C21.7499 12.0051 21.7494 12.0064 21.7486 12.0075C20.9313 13.2942 19.9171 14.4446 18.743 15.4167C18.7329 15.425 18.7247 15.4353 18.7188 15.4469C18.713 15.4586 18.7096 15.4713 18.7089 15.4843C18.7083 15.4973 18.7103 15.5103 18.715 15.5225C18.7196 15.5347 18.7268 15.5457 18.7359 15.555L19.6687 16.4873C19.6852 16.504 19.7074 16.5139 19.7308 16.515C19.7543 16.5161 19.7773 16.5084 19.7953 16.4934C21.0487 15.4381 22.1337 14.1975 23.0128 12.8147C23.1682 12.571 23.2503 12.2878 23.2495 11.9988C23.2487 11.7098 23.1649 11.4272 23.0081 11.1844Z",fill:"currentColor"}),i.jsx("path",{d:"M12.0002 7.5C11.6632 7.49982 11.3271 7.53756 10.9985 7.6125C10.9819 7.61595 10.9666 7.62383 10.9541 7.63531C10.9416 7.64679 10.9325 7.66144 10.9277 7.6777C10.9229 7.69395 10.9226 7.71121 10.9268 7.72763C10.931 7.74405 10.9396 7.75901 10.9516 7.77094L16.2293 13.0472C16.2412 13.0592 16.2562 13.0678 16.2726 13.0721C16.289 13.0763 16.3063 13.076 16.3225 13.0712C16.3388 13.0663 16.3534 13.0572 16.3649 13.0447C16.3764 13.0323 16.3843 13.0169 16.3877 13.0003C16.538 12.3413 16.5379 11.6568 16.3873 10.9979C16.2368 10.3389 15.9397 9.72228 15.5182 9.19385C15.0967 8.66542 14.5615 8.23874 13.9525 7.9455C13.3435 7.65226 12.6762 7.49999 12.0002 7.5Z",fill:"currentColor"}),i.jsx("path",{d:"M7.77091 10.9526C7.75899 10.9406 7.74402 10.932 7.7276 10.9278C7.71118 10.9235 7.69392 10.9238 7.67767 10.9287C7.66141 10.9335 7.64676 10.9426 7.63528 10.9551C7.6238 10.9675 7.61592 10.9829 7.61247 10.9995C7.44248 11.7422 7.46382 12.5158 7.67451 13.248C7.88519 13.9801 8.27832 14.6468 8.81704 15.1855C9.35577 15.7243 10.0224 16.1174 10.7546 16.3281C11.4868 16.5388 12.2604 16.5601 13.0031 16.3901C13.0197 16.3867 13.035 16.3788 13.0475 16.3673C13.06 16.3558 13.0691 16.3412 13.0739 16.3249C13.0787 16.3087 13.0791 16.2914 13.0748 16.275C13.0706 16.2586 13.062 16.2436 13.05 16.2317L7.77091 10.9526Z",fill:"currentColor"})]}),iu=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M6 12H18M6 6H18M6 18H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ta=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),Ma=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"})}),lu=e=>i.jsx(de.Laptop,{...e}),fr=e=>i.jsx(de.LogIn,{...e}),Wt=e=>i.jsxs("svg",{width:"48",height:"80",viewBox:"0 0 48 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsx("path",{d:"M0 78.622V15.4757C0 14.1285 1.72603 13.5819 2.49497 14.6855L46.4899 77.8318C47.1262 78.7453 46.4759 79.9999 45.3664 79.9999H1.37144C0.614016 79.9999 0 79.3833 0 78.622Z",fill:"currentColor"}),i.jsx("path",{d:"M48 78.622V15.4757C48 14.1285 46.274 13.5819 45.505 14.6855L1.51006 77.8318C0.873795 78.7453 1.52406 79.9999 2.63359 79.9999H46.6285C47.386 79.9999 48 79.3833 48 78.622Z",fill:"currentColor"}),i.jsx("path",{d:"M23.3378 0.511435L21.3598 7.96401C21.2965 8.20239 21.1111 8.38861 20.8739 8.4522L13.4563 10.4396C12.7776 10.6214 12.7776 11.5891 13.4563 11.7709L20.8739 13.7583C21.1111 13.8218 21.2965 14.0081 21.3598 14.2464L23.3378 21.699C23.5188 22.3809 24.4819 22.3809 24.6629 21.699L26.6409 14.2464C26.7042 14.0081 26.8896 13.8218 27.1268 13.7583L34.5444 11.7709C35.2231 11.5891 35.2231 10.6214 34.5444 10.4396L27.1268 8.4522C26.8896 8.38861 26.7042 8.20239 26.6409 7.96401L24.6629 0.511435C24.4819 -0.170478 23.5188 -0.170478 23.3378 0.511435Z",fill:"currentColor"})]}),cu=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),du=e=>i.jsx(de.Palette,{...e}),Da=e=>i.jsx(de.Users,{...e}),hr=e=>i.jsx(de.PencilLine,{...e}),Bt=e=>i.jsx(de.UserRound,{...e}),uu=e=>i.jsxs("svg",{width:"36",height:"60",viewBox:"0 0 36 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsx("rect",{width:"36",height:"60",fill:"url(#pattern0_3714_3923)"}),i.jsxs("defs",{children:[i.jsx("pattern",{id:"pattern0_3714_3923",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:i.jsx("use",{xlinkHref:"#image0_3714_3923",transform:"matrix(0.0208333 0 0 0.0125 -0.5 -0.15)"})}),i.jsx("image",{id:"image0_3714_3923",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAACZUlEQVR4Ae2bUU7CUBBFqa6AFcBS2Jm4M5cCO2AH1X6QkEFqrrm9Q/WYGJ12mNt3Dk3aj7fZ8AMBCEAAAhCAAAQgAAEIQAACEIAABCDwXwgM6YXudrsxnanknc/nKJMX5eLo9RNAgJ+pNBEBEi5/MwL8TKWJCJBw+ZsR4GcqTUSAhMvfHH3m/e7yu98L0s/9lQF3QCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhOtWAfv9/hhe711c9zW83l1R6MC08HEc30JxczGH7XY7XC6Xj7mmpc61CHgi+FeubRLiAp4QfquEqIAnht8mISZgBfBbJEQErAh+XMLiAlYIPyph8T1i3XvArjR/+3fpPWStL2K/hfKXPoeAZpsIQEAzgeZ47gAENBNojucOaBaw+HuAe30/vVcs/dzuXg93gJuoOA8BIjB3OwLcRMV5CBCBudsR4CYqzkOACMzdjgA3UXEeAkRg7nYEuImK8xAgAnO3I8BNVJyHABGYux0BbqLiPASIwNztCHATFechQATmbkeAm6g4DwEiMHc7AtxExXkIEIG52xHgJirOQ4AIzN2OADdRcd7qBAzD8P5ojXPnHn2m+/jiO2TcC5z28077er/mHm5nT/BPp9Px9tga/l+dgAlqlbBW+Gv4gsxe47T/bPqdbeIkBCAAAQhA4EkJfAJCj18c5aGGIQAAAABJRU5ErkJggg=="})]})]}),fu=e=>i.jsx(de.Plane,{...e}),Oa=e=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:i.jsx("path",{d:"M12 5V19M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),hu=e=>i.jsx(de.Salad,{...e}),Ia=e=>i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),i.jsx("path",{d:"M20 20L16.5 16.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),pr=e=>i.jsx(de.Settings,{...e}),pu={AddCircle:Jd,Bell:ka,BookOpen:Rd,Calendar:Pa,Check:bt,Code2:nu,Chevron:ru,ChevronDown:fn,ChevronLeft:ur,ChevronRight:gn,ChevronUp:_a,Close:mn,Dumbbell:eu,Endless:ou,Eye:au,EyeOff:su,Flag:tu,Flame:Ea,HamburgerMenu:iu,Heart:Ta,HeartFilled:Ma,Laptop:lu,LogIn:fr,Logo:Wt,Minus:cu,Palette:du,People:Da,PencilLine:hr,Person:Bt,Pin:uu,Plane:fu,Plus:Oa,Salad:hu,Search:Ia,Settings:pr,Target:e=>i.jsx(de.Target,{...e}),Trophy:e=>i.jsx(de.Trophy,{...e})};function La({name:e,size:t,width:n,height:r,...o}){const a=pu[e],s=n??t,l=r??t;return i.jsx(a,{width:s,height:l,...o})}function gu({baseSize:e,radius:t,strokeWidth:n,circumference:r,dashOffset:o,className:a}){return i.jsx("svg",{viewBox:`0 0 ${e} ${e}`,className:P("rounded-full",a),children:i.jsx("circle",{cx:e/2,cy:e/2,r:t,fill:"none",className:"stroke-main-800",strokeWidth:n,strokeDasharray:r,strokeDashoffset:o,transform:`rotate(-100 ${e/2} ${e/2})`,style:{transition:"stroke-dashoffset 800ms cubic-bezier(0.2, 0.7, 0.1, 1)"},strokeLinecap:"round"})})}const mu=[{key:"home",label:"홈"},{key:"explore",label:"탐색"},{key:"challenge",label:"챌린지"},{key:"diary",label:"일지"}];function vu({brandName:e="1D1S",logo:t,navItems:n=mu,activeKey:r="challenge",showProfile:o=!0,profileImage:a,className:s,onLogoClick:l,onNavChange:c,onNotificationClick:d,onProfileClick:u}){const f=t??i.jsx(Wt,{className:"h-5 w-3.5 text-white","aria-hidden":!0});return i.jsx("header",{className:P("w-full rounded-4 border border-gray-200 bg-white px-6 py-4",s),children:i.jsxs("div",{className:"flex items-center justify-between gap-5",children:[i.jsxs("div",{className:"flex min-w-0 items-center gap-8",children:[i.jsxs("button",{type:"button",onClick:l,className:"inline-flex shrink-0 cursor-pointer items-center gap-2","aria-label":"홈으로 이동",children:[i.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-3 bg-main-800",children:f}),i.jsx(B,{size:"heading2",weight:"bold",className:"text-gray-900",children:e})]}),i.jsx("nav",{className:"min-w-0 overflow-x-auto","aria-label":"주요 메뉴",children:i.jsx("ul",{className:"flex items-center gap-6 whitespace-nowrap",children:n.map(g=>{const m=g.key===r;return i.jsx("li",{children:i.jsx("button",{type:"button",disabled:g.disabled,"aria-current":m?"page":void 0,onClick:()=>c?.(g.key),className:P("cursor-pointer transition-colors",g.disabled&&"cursor-not-allowed opacity-50",!g.disabled&&"hover:text-main-700"),children:i.jsx(B,{size:"body2",weight:m?"bold":"medium",className:P(m?"text-main-800":"text-gray-600"),children:g.label})})},g.key)})})})]}),i.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[i.jsx(ge,{type:"button",variant:"ghost",size:"icon",onClick:d,"aria-label":"알림",className:"cursor-pointer text-gray-700 hover:text-gray-900",children:i.jsx(ka,{className:"h-4 w-4"})}),o?i.jsx("button",{type:"button",onClick:u,"aria-label":"프로필 열기",className:"cursor-pointer rounded-full",children:i.jsx(Ft,{imageUrl:a,size:"sm",className:"ring-2 ring-mint-900/30"})}):null]})]})})}const bu="banner",yu="#FF6D2D",wu="#FF9A3E";function xu({items:e,autoSlideIntervalMs:t=5e3,initialIndex:n=0,enableLoop:r=!0,showIndicators:o=!0,aspectRatioClassName:a="aspect-[4/1]",componentId:s,enableDataLayerTracking:l=!1,impressionMode:c="once",onBannerClick:d,onBannerImpression:u,onBannerChange:f,onItemClick:g,className:m,...y}){const p=e.length,v=E.useMemo(()=>p===0||n<0?0:n>p-1?p-1:n,[n,p]),w=r&&p>1,b=E.useMemo(()=>{if(p===0)return[];if(!w)return e;const[M]=e,[F]=e.slice(-1);return[F,...e,M]},[w,p,e]),[x,N]=E.useState(w?v+1:v),[S,T]=E.useState(!0);E.useEffect(()=>{N(w?v+1:v)},[w,v,p]),E.useEffect(()=>{if(p<=1||t<=0)return;const M=window.setInterval(()=>{N(F=>F+1)},t);return()=>window.clearInterval(M)},[t,p]),E.useEffect(()=>{if(S)return;const M=window.setTimeout(()=>{T(!0)},30);return()=>window.clearTimeout(M)},[S]);const k=p===0?0:((x-(w?1:0)+p)%p+p)%p,A=E.useRef(new Set),z=E.useCallback((M,F,V)=>{const j=F.id===void 0?`${V}`:String(F.id),$={event:M,componentId:s,bannerId:j,bannerIndex:V,bannerType:F.type,bannerTitle:F.title,bannerSubtitle:F.subtitle,timestamp:Date.now()};if(M==="click"&&d?.($),M==="impression"&&u?.($),M==="change"&&f?.($),l&&typeof window<"u"){const W=window;Array.isArray(W.dataLayer)&&W.dataLayer.push({event:`${bu}_${M}`,component_id:s??"banner-carousel",banner_id:$.bannerId,banner_index:$.bannerIndex,banner_type:$.bannerType,banner_title:$.bannerTitle,banner_subtitle:$.bannerSubtitle,timestamp:$.timestamp})}},[s,l,f,d,u]);E.useEffect(()=>{if(p===0)return;const M=e[k];if(!M)return;z("change",M,k);const F=`${M.id===void 0?`${k}`:String(M.id)}-${k}`,V=A.current.has(F);c==="once"&&V||(A.current.add(F),z("impression",M,k))},[k,z,c,p,e]);const G=()=>{if(w){if(x===p+1){T(!1),N(1);return}x===0&&(T(!1),N(p))}};return p===0?null:i.jsx("div",{className:P("w-full",m),...y,children:i.jsxs("div",{className:"relative overflow-hidden rounded-4",children:[i.jsx("div",{className:P("flex",S&&"transition-transform duration-500 ease-out"),style:{transform:`translateX(-${x*100}%)`},onTransitionEnd:G,children:b.map((M,F)=>{const V=M.backgroundImageUrl??M.backgroundImage,j=!!(V&&V.trim().length>0),$=p===0?0:(F-(w?1:0)+p)%p,W=M.id===void 0?`${$}-${F}`:String(M.id);return i.jsxs("button",{type:"button",onClick:()=>{z("click",M,$),g?.(M,$)},"data-banner-id":M.id===void 0?`${$}`:String(M.id),"data-banner-index":$,"data-banner-type":M.type,"data-banner-title":M.title,"data-banner-image-url":V??"",className:P("relative w-full shrink-0 overflow-hidden p-6 text-left text-white transition hover:brightness-105","cursor-pointer",a),style:{backgroundImage:`linear-gradient(to right, ${yu}, ${wu})`},children:[j?i.jsxs(i.Fragment,{children:[i.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${V})`}}),i.jsx("div",{className:"absolute inset-0 bg-black/28"})]}):null,i.jsx("div",{className:"pointer-events-none absolute -top-10 -right-8 h-36 w-36 rounded-full bg-white/15 blur-2xl"}),i.jsxs("div",{className:"relative flex h-full flex-col justify-between",children:[i.jsx(B,{size:"caption3",weight:"medium",className:"text-white/85",children:M.type}),i.jsxs("div",{className:"flex items-end justify-between gap-4",children:[i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx(B,{size:"heading1",weight:"bold",className:"line-clamp-1 text-white",children:M.title}),i.jsx(B,{size:"body2",weight:"medium",className:"line-clamp-1 text-white/90",children:M.subtitle})]}),i.jsx(B,{size:"heading1",weight:"bold",className:"text-white",children:"→"})]})]})]},`${W}-${F}`)})}),o?i.jsx("div",{className:"pointer-events-none absolute right-4 bottom-3 left-4 flex justify-center",children:i.jsx("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-black/25 px-2 py-1",children:e.map((M,F)=>i.jsx("button",{type:"button",onClick:()=>{T(!0),N(w?F+1:F)},className:P("h-2 cursor-pointer rounded-full transition-all",k===F?"w-5 bg-white":"w-2 bg-white/50 hover:bg-white/80"),"aria-label":`${F+1}번째 배너로 이동`},M.id===void 0?`${F}`:String(M.id)))})}):null]})})}const gr=6048e5,Cu=864e5,Fa=Symbol.for("constructDateFrom");function ue(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Fa in e?e[Fa](t):e instanceof Date?new e.constructor(t):new Date(t)}function J(e,t){return ue(t||e,e)}function pe(e,t,n){const r=J(e,n?.in);return isNaN(t)?ue(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Ae(e,t,n){const r=J(e,n?.in);if(isNaN(t))return ue(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=ue(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Nu={};function $t(){return Nu}function Ie(e,t){const n=$t(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=J(e,t?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function st(e,t){return Ie(e,{...t,weekStartsOn:1})}function Wa(e,t){const n=J(e,t?.in),r=n.getFullYear(),o=ue(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=st(o),s=ue(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=st(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function vn(e){const t=J(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function yt(e,...t){const n=ue.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function wt(e,t){const n=J(e,t?.in);return n.setHours(0,0,0,0),n}function Le(e,t,n){const[r,o]=yt(n?.in,e,t),a=wt(r),s=wt(o),l=+a-vn(a),c=+s-vn(s);return Math.round((l-c)/Cu)}function Su(e,t){const n=Wa(e,t),r=ue(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),st(r)}function mr(e,t,n){return pe(e,t*7,n)}function Au(e,t,n){return Ae(e,t*12,n)}function ku(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=J(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function Pu(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=J(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function me(e,t,n){const[r,o]=yt(n?.in,e,t);return+wt(r)==+wt(o)}function vr(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Eu(e){return!(!vr(e)&&typeof e!="number"||isNaN(+J(e)))}function zt(e,t,n){const[r,o]=yt(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function _u(e,t,n){const[r,o]=yt(n?.in,e,t),a=Ie(r,n),s=Ie(o,n),l=+a-vn(a),c=+s-vn(s);return Math.round((l-c)/gr)}function br(e,t){const n=J(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ve(e,t){const n=J(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Ba(e,t){const n=J(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function yr(e,t){const n=$t(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=J(e,t?.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function $a(e,t){return yr(e,{...t,weekStartsOn:1})}const Tu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mu=(e,t,n)=>{let r;const o=Tu[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Du={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ou={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Iu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lu={date:xt({formats:Du,defaultWidth:"full"}),time:xt({formats:Ou,defaultWidth:"full"}),dateTime:xt({formats:Iu,defaultWidth:"full"})},Fu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wu=(e,t,n,r)=>Fu[e];function Fe(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Bu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hu={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ju={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Fe({values:Bu,defaultWidth:"wide"}),quarter:Fe({values:$u,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fe({values:zu,defaultWidth:"wide"}),day:Fe({values:Hu,defaultWidth:"wide"}),dayPeriod:Fe({values:Vu,defaultWidth:"wide",formattingValues:Yu,defaultFormattingWidth:"wide"})};function We(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Uu(l,f=>f.test(s)):Gu(l,f=>f.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(s.length);return{value:d,rest:u}}}function Gu(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Uu(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function za(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const Ku=/^(\d+)(th|st|nd|rd)?/i,Qu=/\d+/i,qu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Xu={any:[/^b/i,/^(a|c)/i]},Zu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ju={any:[/1/i,/2/i,/3/i,/4/i]},Ru={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ef={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tf={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nf={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},rf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},of={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},af={ordinalNumber:za({matchPattern:Ku,parsePattern:Qu,valueCallback:e=>parseInt(e,10)}),era:We({matchPatterns:qu,defaultMatchWidth:"wide",parsePatterns:Xu,defaultParseWidth:"any"}),quarter:We({matchPatterns:Zu,defaultMatchWidth:"wide",parsePatterns:Ju,defaultParseWidth:"any",valueCallback:e=>e+1}),month:We({matchPatterns:Ru,defaultMatchWidth:"wide",parsePatterns:ef,defaultParseWidth:"any"}),day:We({matchPatterns:tf,defaultMatchWidth:"wide",parsePatterns:nf,defaultParseWidth:"any"}),dayPeriod:We({matchPatterns:rf,defaultMatchWidth:"any",parsePatterns:of,defaultParseWidth:"any"})},Ha={code:"en-US",formatDistance:Mu,formatLong:Lu,formatRelative:Wu,localize:ju,match:af,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sf(e,t){const n=J(e,t?.in);return Le(n,Ba(n))+1}function Va(e,t){const n=J(e,t?.in),r=+st(n)-+Su(n);return Math.round(r/gr)+1}function Ya(e,t){const n=J(e,t?.in),r=n.getFullYear(),o=$t(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=ue(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const l=Ie(s,t),c=ue(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=Ie(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function lf(e,t){const n=$t(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Ya(e,t),a=ue(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Ie(a,t)}function ja(e,t){const n=J(e,t?.in),r=+Ie(n,t)-+lf(n,t);return Math.round(r/gr)+1}function R(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Qe={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return R(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):R(n+1,2)},d(e,t){return R(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return R(e.getHours()%12||12,t.length)},H(e,t){return R(e.getHours(),t.length)},m(e,t){return R(e.getMinutes(),t.length)},s(e,t){return R(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return R(o,t.length)}},Ct={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ga={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Qe.y(e,t)},Y:function(e,t,n,r){const o=Ya(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return R(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):R(a,t.length)},R:function(e,t){const n=Wa(e);return R(n,t.length)},u:function(e,t){const n=e.getFullYear();return R(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return R(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return R(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Qe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return R(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ja(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):R(o,t.length)},I:function(e,t,n){const r=Va(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):R(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Qe.d(e,t)},D:function(e,t,n){const r=sf(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):R(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return R(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return R(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return R(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Ct.noon:r===0?o=Ct.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Ct.evening:r>=12?o=Ct.afternoon:r>=4?o=Ct.morning:o=Ct.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Qe.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Qe.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):R(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):R(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qe.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Qe.s(e,t)},S:function(e,t){return Qe.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ka(r);case"XXXX":case"XX":return it(r);default:return it(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ka(r);case"xxxx":case"xx":return it(r);default:return it(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ua(r,":");default:return"GMT"+it(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ua(r,":");default:return"GMT"+it(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return R(r,t.length)},T:function(e,t,n){return R(+e,t.length)}};function Ua(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+R(a,2)}function Ka(e,t){return e%60===0?(e>0?"-":"+")+R(Math.abs(e)/60,2):it(e,t)}function it(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=R(Math.trunc(r/60),2),a=R(r%60,2);return n+o+t+a}const Qa=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qa=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},cf={p:qa,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Qa(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Qa(r,t)).replace("{{time}}",qa(o,t))}},df=/^D+$/,uf=/^Y+$/,ff=["D","DD","YY","YYYY"];function hf(e){return df.test(e)}function pf(e){return uf.test(e)}function gf(e,t,n){const r=mf(e,t,n);if(console.warn(r),ff.includes(e))throw new RangeError(r)}function mf(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const vf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yf=/^'([^]*?)'?$/,wf=/''/g,xf=/[a-zA-Z]/;function ke(e,t,n){const r=$t(),o=n?.locale??r.locale??Ha,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=J(e,n?.in);if(!Eu(l))throw new RangeError("Invalid time value");let c=t.match(bf).map(u=>{const f=u[0];if(f==="p"||f==="P"){const g=cf[f];return g(u,o.formatLong)}return u}).join("").match(vf).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:Cf(u)};if(Ga[f])return{isToken:!0,value:u};if(f.match(xf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&pf(f)||!n?.useAdditionalDayOfYearTokens&&hf(f))&&gf(f,t,String(e));const g=Ga[f[0]];return g(l,f,o.localize,d)}).join("")}function Cf(e){const t=e.match(yf);return t?t[1].replace(wf,"'"):e}function Nf(e,t){const n=J(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=ue(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Sf(e){return Math.trunc(+J(e)/1e3)}function Af(e,t){const n=J(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),J(n,t?.in)}function kf(e,t){const n=J(e,t?.in);return _u(Af(n,t),ve(n,t),t)+1}function wr(e,t){return+J(e)>+J(t)}function Xa(e,t){return+J(e)<+J(t)}function xr(e,t,n){const[r,o]=yt(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Pf(e,t,n){const[r,o]=yt(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Cr(e,t,n){return pe(e,-t,n)}function Nr(e,t,n){const r=J(e,n?.in),o=r.getFullYear(),a=r.getDate(),s=ue(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=Nf(s);return r.setMonth(t,Math.min(a,l)),r}function Za(e,t,n){const r=J(e,n?.in);return isNaN(+r)?ue(e,NaN):(r.setFullYear(t),r)}const Ef={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},_f=(e,t,n)=>{let r;const o=Ef[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},Tf={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Mf={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Df={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Of={date:xt({formats:Tf,defaultWidth:"full"}),time:xt({formats:Mf,defaultWidth:"full"}),dateTime:xt({formats:Df,defaultWidth:"full"})},If={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Lf=(e,t,n,r)=>If[e],Ff={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Wf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},Bf={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},$f={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},zf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Hf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Vf={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:Fe({values:Ff,defaultWidth:"wide"}),quarter:Fe({values:Wf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fe({values:Bf,defaultWidth:"wide"}),day:Fe({values:$f,defaultWidth:"wide"}),dayPeriod:Fe({values:zf,defaultWidth:"wide",formattingValues:Hf,defaultFormattingWidth:"wide"})},Yf=/^(\d+)(일|번째)?/i,jf=/\d+/i,Gf={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Uf={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Kf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Qf={any:[/1/i,/2/i,/3/i,/4/i]},qf={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Xf={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Zf={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Jf={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Rf={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},eh={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},th={ordinalNumber:za({matchPattern:Yf,parsePattern:jf,valueCallback:e=>parseInt(e,10)}),era:We({matchPatterns:Gf,defaultMatchWidth:"wide",parsePatterns:Uf,defaultParseWidth:"any"}),quarter:We({matchPatterns:Kf,defaultMatchWidth:"wide",parsePatterns:Qf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:We({matchPatterns:qf,defaultMatchWidth:"wide",parsePatterns:Xf,defaultParseWidth:"any"}),day:We({matchPatterns:Zf,defaultMatchWidth:"wide",parsePatterns:Jf,defaultParseWidth:"any"}),dayPeriod:We({matchPatterns:Rf,defaultMatchWidth:"any",parsePatterns:eh,defaultParseWidth:"any"})},nh={code:"ko",formatDistance:_f,formatLong:Of,formatRelative:Lf,localize:Vf,match:th,options:{weekStartsOn:0,firstWeekContainsDate:1}};var H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function rh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ja(e,t,n){for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ht(e){return e.mode==="multiple"}function Vt(e){return e.mode==="range"}function bn(e){return e.mode==="single"}var oh={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function ah(e,t){return ke(e,"LLLL y",t)}function sh(e,t){return ke(e,"d",t)}function ih(e,t){return ke(e,"LLLL",t)}function lh(e){return"".concat(e)}function ch(e,t){return ke(e,"cccccc",t)}function dh(e,t){return ke(e,"yyyy",t)}var uh=Object.freeze({__proto__:null,formatCaption:ah,formatDay:sh,formatMonthCaption:ih,formatWeekNumber:lh,formatWeekdayName:ch,formatYearCaption:dh}),fh=function(e,t,n){return ke(e,"do MMMM (EEEE)",n)},hh=function(){return"Month: "},ph=function(){return"Go to next month"},gh=function(){return"Go to previous month"},mh=function(e,t){return ke(e,"cccc",t)},vh=function(e){return"Week n. ".concat(e)},bh=function(){return"Year: "},yh=Object.freeze({__proto__:null,labelDay:fh,labelMonthDropdown:hh,labelNext:ph,labelPrevious:gh,labelWeekNumber:vh,labelWeekday:mh,labelYearDropdown:bh});function wh(){var e="buttons",t=oh,n=Ha,r={},o={},a=1,s={},l=new Date;return{captionLayout:e,classNames:t,formatters:uh,labels:yh,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:s,today:l,mode:"default"}}function xh(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=ve(r):t&&(a=new Date(t,0,1)),o?s=br(o):n&&(s=new Date(n,11,31)),{fromDate:a?wt(a):void 0,toDate:s?wt(s):void 0}}var Ra=E.createContext(void 0);function Ch(e){var t,n=e.initialProps,r=wh(),o=xh(n),a=o.fromDate,s=o.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;l!=="buttons"&&(!a||!s)&&(l="buttons");var c;(bn(n)||Ht(n)||Vt(n))&&(c=n.onSelect);var d=H(H(H({},r),n),{captionLayout:l,classNames:H(H({},r.classNames),n.classNames),components:H({},n.components),formatters:H(H({},r.formatters),n.formatters),fromDate:a,labels:H(H({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:H(H({},r.modifiers),n.modifiers),modifiersClassNames:H(H({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:H(H({},r.styles),n.styles),toDate:s});return i.jsx(Ra.Provider,{value:d,children:e.children})}function te(){var e=E.useContext(Ra);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function es(e){var t=te(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return i.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Nh(e){return i.jsx("svg",H({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:i.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ts(e){var t,n,r=e.onChange,o=e.value,a=e.children,s=e.caption,l=e.className,c=e.style,d=te(),u=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:Nh;return i.jsxs("div",{className:l,style:c,children:[i.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),i.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),i.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[s,i.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Sh(e){var t,n=te(),r=n.fromDate,o=n.toDate,a=n.styles,s=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,u=n.labels.labelMonthDropdown;if(!r)return i.jsx(i.Fragment,{});if(!o)return i.jsx(i.Fragment,{});var f=[];if(Pf(r,o))for(var g=ve(r),m=r.getMonth();m<=o.getMonth();m++)f.push(Nr(g,m));else for(var g=ve(new Date),m=0;m<=11;m++)f.push(Nr(g,m));var y=function(v){var w=Number(v.target.value),b=Nr(ve(e.displayMonth),w);e.onChange(b)},p=(t=d?.Dropdown)!==null&&t!==void 0?t:ts;return i.jsx(p,{name:"months","aria-label":u(),className:c.dropdown_month,style:a.dropdown_month,onChange:y,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:s}),children:f.map(function(v){return i.jsx("option",{value:v.getMonth(),children:l(v,{locale:s})},v.getMonth())})})}function Ah(e){var t,n=e.displayMonth,r=te(),o=r.fromDate,a=r.toDate,s=r.locale,l=r.styles,c=r.classNames,d=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,g=[];if(!o)return i.jsx(i.Fragment,{});if(!a)return i.jsx(i.Fragment,{});for(var m=o.getFullYear(),y=a.getFullYear(),p=m;p<=y;p++)g.push(Za(Ba(new Date),p));var v=function(b){var x=Za(ve(n),Number(b.target.value));e.onChange(x)},w=(t=d?.Dropdown)!==null&&t!==void 0?t:ts;return i.jsx(w,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:v,value:n.getFullYear(),caption:u(n,{locale:s}),children:g.map(function(b){return i.jsx("option",{value:b.getFullYear(),children:u(b,{locale:s})},b.getFullYear())})})}function kh(e,t){var n=E.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function Ph(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,s=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(a&&zt(a,o)<0){var d=-1*(c-1);o=Ae(a,d)}return s&&zt(o,s)<0&&(o=s),ve(o)}function Eh(){var e=te(),t=Ph(e),n=kh(t,e.month),r=n[0],o=n[1],a=function(s){var l;if(!e.disableNavigation){var c=ve(s);o(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[r,a]}function _h(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=ve(e),a=ve(Ae(o,r)),s=zt(a,o),l=[],c=0;c<s;c++){var d=Ae(o,c);l.push(d)}return n&&(l=l.reverse()),l}function Th(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=r?a:1,l=ve(e);if(!n)return Ae(l,s);var c=zt(n,e);if(!(c<a))return Ae(l,s)}}function Mh(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=r?a:1,l=ve(e);if(!n)return Ae(l,-s);var c=zt(l,n);if(!(c<=0))return Ae(l,-s)}}var ns=E.createContext(void 0);function Dh(e){var t=te(),n=Eh(),r=n[0],o=n[1],a=_h(r,t),s=Th(r,t),l=Mh(r,t),c=function(f){return a.some(function(g){return xr(f,g)})},d=function(f,g){c(f)||(g&&Xa(f,g)?o(Ae(f,1+t.numberOfMonths*-1)):o(f))},u={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:d,previousMonth:l,nextMonth:s,isDateDisplayed:c};return i.jsx(ns.Provider,{value:u,children:e.children})}function Yt(){var e=E.useContext(ns);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function rs(e){var t,n=te(),r=n.classNames,o=n.styles,a=n.components,s=Yt().goToMonth,l=function(u){s(Ae(u,e.displayIndex?-e.displayIndex:0))},c=(t=a?.CaptionLabel)!==null&&t!==void 0?t:es,d=i.jsx(c,{id:e.id,displayMonth:e.displayMonth});return i.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[i.jsx("div",{className:r.vhidden,children:d}),i.jsx(Sh,{onChange:l,displayMonth:e.displayMonth}),i.jsx(Ah,{onChange:l,displayMonth:e.displayMonth})]})}function Oh(e){return i.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:i.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Ih(e){return i.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:i.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var yn=E.forwardRef(function(e,t){var n=te(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var s=a.join(" "),l=H(H({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),i.jsx("button",H({},e,{ref:t,type:"button",className:s,style:l}))});function Lh(e){var t,n,r=te(),o=r.dir,a=r.locale,s=r.classNames,l=r.styles,c=r.labels,d=c.labelPrevious,u=c.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return i.jsx(i.Fragment,{});var g=d(e.previousMonth,{locale:a}),m=[s.nav_button,s.nav_button_previous].join(" "),y=u(e.nextMonth,{locale:a}),p=[s.nav_button,s.nav_button_next].join(" "),v=(t=f?.IconRight)!==null&&t!==void 0?t:Ih,w=(n=f?.IconLeft)!==null&&n!==void 0?n:Oh;return i.jsxs("div",{className:s.nav,style:l.nav,children:[!e.hidePrevious&&i.jsx(yn,{name:"previous-month","aria-label":g,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?i.jsx(v,{className:s.nav_icon,style:l.nav_icon}):i.jsx(w,{className:s.nav_icon,style:l.nav_icon})}),!e.hideNext&&i.jsx(yn,{name:"next-month","aria-label":y,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?i.jsx(w,{className:s.nav_icon,style:l.nav_icon}):i.jsx(v,{className:s.nav_icon,style:l.nav_icon})})]})}function os(e){var t=te().numberOfMonths,n=Yt(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,s=n.displayMonths,l=s.findIndex(function(y){return xr(e.displayMonth,y)}),c=l===0,d=l===s.length-1,u=t>1&&(c||!d),f=t>1&&(d||!c),g=function(){r&&a(r)},m=function(){o&&a(o)};return i.jsx(Lh,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:g,onNextClick:m})}function Fh(e){var t,n=te(),r=n.classNames,o=n.disableNavigation,a=n.styles,s=n.captionLayout,l=n.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:es,d;return o?d=i.jsx(c,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?d=i.jsx(rs,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?d=i.jsxs(i.Fragment,{children:[i.jsx(rs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),i.jsx(os,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=i.jsxs(i.Fragment,{children:[i.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),i.jsx(os,{displayMonth:e.displayMonth,id:e.id})]}),i.jsx("div",{className:r.caption,style:a.caption,children:d})}function Wh(e){var t=te(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?i.jsx("tfoot",{className:o,style:r.tfoot,children:i.jsx("tr",{children:i.jsx("td",{colSpan:8,children:n})})}):i.jsx(i.Fragment,{})}function Bh(e,t,n){for(var r=n?st(new Date):Ie(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=pe(r,a);o.push(s)}return o}function $h(){var e=te(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=Bh(o,a,s);return i.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&i.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(u,f){return i.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(u,{locale:o}),children:l(u,{locale:o})},f)})]})}function zh(){var e,t=te(),n=t.classNames,r=t.styles,o=t.components,a=(e=o?.HeadRow)!==null&&e!==void 0?e:$h;return i.jsx("thead",{style:r.head,className:n.head,children:i.jsx(a,{})})}function Hh(e){var t=te(),n=t.locale,r=t.formatters.formatDay;return i.jsx(i.Fragment,{children:r(e.date,{locale:n})})}var Sr=E.createContext(void 0);function Vh(e){if(!Ht(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return i.jsx(Sr.Provider,{value:t,children:e.children})}return i.jsx(Yh,{initialProps:e.initialProps,children:e.children})}function Yh(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,s=function(d,u,f){var g,m;(g=t.onDayClick)===null||g===void 0||g.call(t,d,u,f);var y=!!(u.selected&&o&&r?.length===o);if(!y){var p=!!(!u.selected&&a&&r?.length===a);if(!p){var v=r?Ja([],r):[];if(u.selected){var w=v.findIndex(function(b){return me(d,b)});v.splice(w,1)}else v.push(d);(m=t.onSelect)===null||m===void 0||m.call(t,v,d,u,f)}}},l={disabled:[]};r&&l.disabled.push(function(d){var u=a&&r.length>a-1,f=r.some(function(g){return me(g,d)});return!!(u&&!f)});var c={selected:r,onDayClick:s,modifiers:l};return i.jsx(Sr.Provider,{value:c,children:n})}function Ar(){var e=E.useContext(Sr);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function jh(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?me(o,e)&&me(r,e)?void 0:me(o,e)?{from:o,to:void 0}:me(r,e)?void 0:wr(r,e)?{from:e,to:o}:{from:r,to:e}:o?wr(e,o)?{from:o,to:e}:{from:e,to:o}:r?Xa(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var kr=E.createContext(void 0);function Gh(e){if(!Vt(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return i.jsx(kr.Provider,{value:t,children:e.children})}return i.jsx(Uh,{initialProps:e.initialProps,children:e.children})}function Uh(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,s=o.to,l=t.min,c=t.max,d=function(m,y,p){var v,w;(v=t.onDayClick)===null||v===void 0||v.call(t,m,y,p);var b=jh(m,r);(w=t.onSelect)===null||w===void 0||w.call(t,b,m,y,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],me(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),l&&(a&&!s&&u.disabled.push({after:Cr(a,l-1),before:pe(a,l-1)}),a&&s&&u.disabled.push({after:a,before:pe(a,l-1)}),!a&&s&&u.disabled.push({after:Cr(s,l-1),before:pe(s,l-1)})),c){if(a&&!s&&(u.disabled.push({before:pe(a,-c+1)}),u.disabled.push({after:pe(a,c-1)})),a&&s){var f=Le(s,a)+1,g=c-f;u.disabled.push({before:Cr(a,g)}),u.disabled.push({after:pe(s,g)})}!a&&s&&(u.disabled.push({before:pe(s,-c+1)}),u.disabled.push({after:pe(s,c-1)}))}return i.jsx(kr.Provider,{value:{selected:r,onDayClick:d,modifiers:u},children:n})}function Pr(){var e=E.useContext(kr);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function wn(e){return Array.isArray(e)?Ja([],e):e!==void 0?[e]:[]}function Kh(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=wn(o)}),t}var Pe;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Pe||(Pe={}));var Qh=Pe.Selected,je=Pe.Disabled,qh=Pe.Hidden,Xh=Pe.Today,Er=Pe.RangeEnd,_r=Pe.RangeMiddle,Tr=Pe.RangeStart,Zh=Pe.Outside;function Jh(e,t,n){var r,o=(r={},r[Qh]=wn(e.selected),r[je]=wn(e.disabled),r[qh]=wn(e.hidden),r[Xh]=[e.today],r[Er]=[],r[_r]=[],r[Tr]=[],r[Zh]=[],r);return e.fromDate&&o[je].push({before:e.fromDate}),e.toDate&&o[je].push({after:e.toDate}),Ht(e)?o[je]=o[je].concat(t.modifiers[je]):Vt(e)&&(o[je]=o[je].concat(n.modifiers[je]),o[Tr]=n.modifiers[Tr],o[_r]=n.modifiers[_r],o[Er]=n.modifiers[Er]),o}var as=E.createContext(void 0);function Rh(e){var t=te(),n=Ar(),r=Pr(),o=Jh(t,n,r),a=Kh(t.modifiers),s=H(H({},o),a);return i.jsx(as.Provider,{value:s,children:e.children})}function ss(){var e=E.useContext(as);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function ep(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function tp(e){return!!(e&&typeof e=="object"&&"from"in e)}function np(e){return!!(e&&typeof e=="object"&&"after"in e)}function rp(e){return!!(e&&typeof e=="object"&&"before"in e)}function op(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function ap(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=Le(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var s=Le(e,r)>=0&&Le(o,e)>=0;return s}return o?me(o,e):r?me(r,e):!1}function sp(e){return vr(e)}function ip(e){return Array.isArray(e)&&e.every(vr)}function lp(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(sp(n))return me(e,n);if(ip(n))return n.includes(e);if(tp(n))return ap(e,n);if(op(n))return n.dayOfWeek.includes(e.getDay());if(ep(n)){var r=Le(n.before,e),o=Le(n.after,e),a=r>0,s=o<0,l=wr(n.before,n.after);return l?s&&a:a||s}return np(n)?Le(e,n.after)>0:rp(n)?Le(n.before,e)>0:typeof n=="function"?n(e):!1})}function Mr(e,t,n){var r=Object.keys(t).reduce(function(a,s){var l=t[s];return lp(e,l)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!xr(e,n)&&(o.outside=!0),o}function cp(e,t){for(var n=ve(e[0]),r=br(e[e.length-1]),o,a,s=n;s<=r;){var l=Mr(s,t),c=!l.disabled&&!l.hidden;if(!c){s=pe(s,1);continue}if(l.selected)return s;l.today&&!a&&(a=s),o||(o=s),s=pe(s,1)}return a||o}var dp=365;function is(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,l=s===void 0?{count:0,lastFocused:e}:s,c=o.weekStartsOn,d=o.fromDate,u=o.toDate,f=o.locale,g={day:pe,week:mr,month:Ae,year:Au,startOfWeek:function(v){return o.ISOWeek?st(v):Ie(v,{locale:f,weekStartsOn:c})},endOfWeek:function(v){return o.ISOWeek?$a(v):yr(v,{locale:f,weekStartsOn:c})}},m=g[n](e,r==="after"?1:-1);r==="before"&&d?m=ku([d,m]):r==="after"&&u&&(m=Pu([u,m]));var y=!0;if(a){var p=Mr(m,a);y=!p.disabled&&!p.hidden}return y?m:l.count>dp?l.lastFocused:is(m,{moveBy:n,direction:r,context:o,modifiers:a,retry:H(H({},l),{count:l.count+1})})}var ls=E.createContext(void 0);function up(e){var t=Yt(),n=ss(),r=E.useState(),o=r[0],a=r[1],s=E.useState(),l=s[0],c=s[1],d=cp(t.displayMonths,n),u=o??(l&&t.isDateDisplayed(l))?l:d,f=function(){c(o),a(void 0)},g=function(v){a(v)},m=te(),y=function(v,w){if(o){var b=is(o,{moveBy:v,direction:w,context:m,modifiers:n});me(o,b)||(t.goToDate(b,o),g(b))}},p={focusedDay:o,focusTarget:u,blur:f,focus:g,focusDayAfter:function(){return y("day","after")},focusDayBefore:function(){return y("day","before")},focusWeekAfter:function(){return y("week","after")},focusWeekBefore:function(){return y("week","before")},focusMonthBefore:function(){return y("month","before")},focusMonthAfter:function(){return y("month","after")},focusYearBefore:function(){return y("year","before")},focusYearAfter:function(){return y("year","after")},focusStartOfWeek:function(){return y("startOfWeek","before")},focusEndOfWeek:function(){return y("endOfWeek","after")}};return i.jsx(ls.Provider,{value:p,children:e.children})}function Dr(){var e=E.useContext(ls);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function fp(e,t){var n=ss(),r=Mr(e,n,t);return r}var Or=E.createContext(void 0);function hp(e){if(!bn(e.initialProps)){var t={selected:void 0};return i.jsx(Or.Provider,{value:t,children:e.children})}return i.jsx(pp,{initialProps:e.initialProps,children:e.children})}function pp(e){var t=e.initialProps,n=e.children,r=function(a,s,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,s,l),s.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,a,s,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,l)},o={selected:t.selected,onDayClick:r};return i.jsx(Or.Provider,{value:o,children:n})}function cs(){var e=E.useContext(Or);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function gp(e,t){var n=te(),r=cs(),o=Ar(),a=Pr(),s=Dr(),l=s.focusDayAfter,c=s.focusDayBefore,d=s.focusWeekAfter,u=s.focusWeekBefore,f=s.blur,g=s.focus,m=s.focusMonthBefore,y=s.focusMonthAfter,p=s.focusYearBefore,v=s.focusYearAfter,w=s.focusStartOfWeek,b=s.focusEndOfWeek,x=function(_){var C,q,ne,he;bn(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,_):Ht(n)?(q=o.onDayClick)===null||q===void 0||q.call(o,e,t,_):Vt(n)?(ne=a.onDayClick)===null||ne===void 0||ne.call(a,e,t,_):(he=n.onDayClick)===null||he===void 0||he.call(n,e,t,_)},N=function(_){var C;g(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,_)},S=function(_){var C;f(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,_)},T=function(_){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,_)},k=function(_){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,_)},A=function(_){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,_)},z=function(_){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,_)},G=function(_){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,_)},M=function(_){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,_)},F=function(_){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,_)},V=function(_){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,_)},j=function(_){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,_)},$=function(_){var C;switch(_.key){case"ArrowLeft":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":_.preventDefault(),_.stopPropagation(),d();break;case"ArrowUp":_.preventDefault(),_.stopPropagation(),u();break;case"PageUp":_.preventDefault(),_.stopPropagation(),_.shiftKey?p():m();break;case"PageDown":_.preventDefault(),_.stopPropagation(),_.shiftKey?v():y();break;case"Home":_.preventDefault(),_.stopPropagation(),w();break;case"End":_.preventDefault(),_.stopPropagation(),b();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,_)},W={onClick:x,onFocus:N,onBlur:S,onKeyDown:$,onKeyUp:j,onMouseEnter:T,onMouseLeave:k,onPointerEnter:A,onPointerLeave:z,onTouchCancel:G,onTouchEnd:M,onTouchMove:F,onTouchStart:V};return W}function mp(){var e=te(),t=cs(),n=Ar(),r=Pr(),o=bn(e)?t.selected:Ht(e)?n.selected:Vt(e)?r.selected:void 0;return o}function vp(e){return Object.values(Pe).includes(e)}function bp(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(vp(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function yp(e,t){var n=H({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=H(H({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function wp(e,t,n){var r,o,a,s=te(),l=Dr(),c=fp(e,t),d=gp(e,c),u=mp(),f=!!(s.onDayClick||s.mode!=="default");E.useEffect(function(){var T;c.outside||l.focusedDay&&f&&me(l.focusedDay,e)&&((T=n.current)===null||T===void 0||T.focus())},[l.focusedDay,e,n,f,c.outside]);var g=bp(s,c).join(" "),m=yp(s,c),y=!!(c.outside&&!s.showOutsideDays||c.hidden),p=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:Hh,v=i.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),w={style:m,className:g,children:v,role:"gridcell"},b=l.focusTarget&&me(l.focusTarget,e)&&!c.outside,x=l.focusedDay&&me(l.focusedDay,e),N=H(H(H({},w),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=x||b?0:-1,r)),d),S={isButton:f,isHidden:y,activeModifiers:c,selectedDays:u,buttonProps:N,divProps:w};return S}function xp(e){var t=E.useRef(null),n=wp(e.date,e.displayMonth,t);return n.isHidden?i.jsx("div",{role:"gridcell"}):n.isButton?i.jsx(yn,H({name:"day",ref:t},n.buttonProps)):i.jsx("div",H({},n.divProps))}function Cp(e){var t=e.number,n=e.dates,r=te(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,l=r.locale,c=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!o)return i.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var f=c(Number(t),{locale:l}),g=function(m){o(t,n,m)};return i.jsx(yn,{name:"week-number","aria-label":f,className:s.weeknumber,style:a.weeknumber,onClick:g,children:u})}function Np(e){var t,n,r=te(),o=r.styles,a=r.classNames,s=r.showWeekNumber,l=r.components,c=(t=l?.Day)!==null&&t!==void 0?t:xp,d=(n=l?.WeekNumber)!==null&&n!==void 0?n:Cp,u;return s&&(u=i.jsx("td",{className:a.cell,style:o.cell,children:i.jsx(d,{number:e.weekNumber,dates:e.dates})})),i.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(f){return i.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:i.jsx(c,{displayMonth:e.displayMonth,date:f})},Sf(f))})]})}function ds(e,t,n){for(var r=n?.ISOWeek?$a(t):yr(t,n),o=n?.ISOWeek?st(e):Ie(e,n),a=Le(r,o),s=[],l=0;l<=a;l++)s.push(pe(o,l));var c=s.reduce(function(d,u){var f=n?.ISOWeek?Va(u):ja(u,n),g=d.find(function(m){return m.weekNumber===f});return g?(g.dates.push(u),d):(d.push({weekNumber:f,dates:[u]}),d)},[]);return c}function Sp(e,t){var n=ds(ve(e),br(e),t);if(t?.useFixedWeeks){var r=kf(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=mr(a,6-r),l=ds(mr(a,1),s,t);n.push.apply(n,l)}}return n}function Ap(e){var t,n,r,o=te(),a=o.locale,s=o.classNames,l=o.styles,c=o.hideHead,d=o.fixedWeeks,u=o.components,f=o.weekStartsOn,g=o.firstWeekContainsDate,m=o.ISOWeek,y=Sp(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:a,weekStartsOn:f,firstWeekContainsDate:g}),p=(t=u?.Head)!==null&&t!==void 0?t:zh,v=(n=u?.Row)!==null&&n!==void 0?n:Np,w=(r=u?.Footer)!==null&&r!==void 0?r:Wh;return i.jsxs("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&i.jsx(p,{}),i.jsx("tbody",{className:s.tbody,style:l.tbody,children:y.map(function(b){return i.jsx(v,{displayMonth:e.displayMonth,dates:b.dates,weekNumber:b.weekNumber},b.weekNumber)})}),i.jsx(w,{displayMonth:e.displayMonth})]})}function kp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Pp=kp()?E.useLayoutEffect:E.useEffect,Ir=!1,Ep=0;function us(){return"react-day-picker-".concat(++Ep)}function _p(e){var t,n=e??(Ir?us():null),r=E.useState(n),o=r[0],a=r[1];return Pp(function(){o===null&&a(us())},[]),E.useEffect(function(){Ir===!1&&(Ir=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Tp(e){var t,n,r=te(),o=r.dir,a=r.classNames,s=r.styles,l=r.components,c=Yt().displayMonths,d=_p(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],g=s.month,m=e.displayIndex===0,y=e.displayIndex===c.length-1,p=!m&&!y;o==="rtl"&&(t=[m,y],y=t[0],m=t[1]),m&&(f.push(a.caption_start),g=H(H({},g),s.caption_start)),y&&(f.push(a.caption_end),g=H(H({},g),s.caption_end)),p&&(f.push(a.caption_between),g=H(H({},g),s.caption_between));var v=(n=l?.Caption)!==null&&n!==void 0?n:Fh;return i.jsxs("div",{className:f.join(" "),style:g,children:[i.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),i.jsx(Ap,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function Mp(e){var t=te(),n=t.classNames,r=t.styles;return i.jsx("div",{className:n.months,style:r.months,children:e.children})}function Dp(e){var t,n,r=e.initialProps,o=te(),a=Dr(),s=Yt(),l=E.useState(!1),c=l[0],d=l[1];E.useEffect(function(){o.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),d(!0)))},[o.initialFocus,c,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var f=H(H({},o.styles.root),o.style),g=Object.keys(r).filter(function(y){return y.startsWith("data-")}).reduce(function(y,p){var v;return H(H({},y),(v={},v[p]=r[p],v))},{}),m=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Mp;return i.jsx("div",H({className:u.join(" "),style:f,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},g,{children:i.jsx(m,{children:s.displayMonths.map(function(y,p){return i.jsx(Tp,{displayIndex:p,displayMonth:y},p)})})}))}function Op(e){var t=e.children,n=rh(e,["children"]);return i.jsx(Ch,{initialProps:n,children:i.jsx(Dh,{children:i.jsx(hp,{initialProps:n,children:i.jsx(Vh,{initialProps:n,children:i.jsx(Gh,{initialProps:n,children:i.jsx(Rh,{children:i.jsx(up,{children:t})})})})})})})}function Ip(e){return i.jsx(Op,H({},e,{children:i.jsx(Dp,{initialProps:e})}))}function Lr({className:e,classNames:t,showOutsideDays:n=!0,...r}){const o=r.mode==="range";return i.jsx(Ip,{locale:nh,showOutsideDays:n,className:P("w-fit p-1.5",e),classNames:{months:"flex flex-col gap-2",month:"flex flex-col gap-2",caption:"relative flex h-9 items-center justify-center",caption_label:"text-base font-bold text-gray-800",nav:"absolute inset-x-0 top-1/2 flex -translate-y-1/2 items-center justify-between px-1",nav_button:"inline-flex h-8 w-8 items-center justify-center rounded-2 border border-gray-300 bg-white p-0 text-gray-700 transition-colors hover:bg-gray-100 hover:text-gray-900 disabled:opacity-40",nav_button_previous:"",nav_button_next:"",table:"w-full border-collapse",head_row:"flex",head_cell:"h-8 w-9 text-center text-xs font-bold tracking-[0.02em] text-gray-500",row:"mt-1 flex w-full",cell:P("relative h-9 w-9 p-0 text-center text-sm","focus-within:relative focus-within:z-20",o?"[&:has(.day-range-middle)]:bg-main-200/70 [&:has(.day-range-start)]:bg-main-200/70 [&:has(.day-range-end)]:bg-main-200/70 [&:has(.day-range-start)]:rounded-l-2 [&:has(.day-range-end)]:rounded-r-2":"[&:has([aria-selected])]:rounded-2"),day:"inline-flex h-9 w-9 items-center justify-center rounded-2 border border-transparent p-0 text-sm font-medium text-gray-700 transition-colors aria-selected:opacity-100 hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-300/70",day_range_start:"day-range-start aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_range_end:"day-range-end aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_selected:"bg-main-800 text-white hover:bg-main-700 hover:text-white focus:bg-main-700 focus:text-white",day_today:"border-main-500 text-main-800",day_outside:"day-outside text-gray-400 aria-selected:text-gray-500",day_disabled:"text-gray-400 opacity-50",day_range_middle:"day-range-middle aria-selected:rounded-none aria-selected:bg-main-200 aria-selected:text-main-800",day_hidden:"invisible",...t},components:{IconLeft:({className:a,...s})=>i.jsx(ur,{className:P("size-4",a),...s}),IconRight:({className:a,...s})=>i.jsx(gn,{className:P("size-4",a),...s})},...r})}function Fr({className:e,logoSize:t="md"}){const n={sm:"w-4 h-6",md:"w-6 h-10",lg:"w-8 h-14"};return i.jsx("div",{className:P("flex items-center justify-center bg-main-200",e),children:i.jsx(Wt,{className:P("text-main-500",n[t])})})}const Lp=at("inline-flex items-center rounded-2 px-2.5 py-1 bg-main-800 text-white",{variants:{hasIcon:{true:"gap-1.5",false:""}},defaultVariants:{hasIcon:!1}});function Wr({icon:e,children:t,size:n="caption2",weight:r="bold",className:o}){return i.jsxs("span",{className:P(Lp({hasIcon:!!e}),o),children:[e&&i.jsx(B,{size:n,weight:"medium",children:e}),i.jsx(B,{size:n,weight:r,children:t})]})}function Fp({challengeTitle:e,challengeType:t,challengeCategory:n,imageUrl:r,currentUserCount:o,maxUserCount:a,startDate:s,endDate:l,isOngoing:c=!1,isEnded:d=!1,className:u,onClick:f}){const g=!!(r&&r.trim().length>0),m=d?"종료됨":c?"진행중":"모집중",y=d?"bg-gray-500":c?"bg-green-500":"bg-blue-500";return i.jsxs("div",{className:P("min-w-62.5 w-full overflow-hidden rounded-[12px] border border-gray-200 bg-white",f&&"cursor-pointer","transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default",u),onClick:f,children:[i.jsxs("div",{className:"relative h-52 w-full overflow-hidden bg-gray-100",children:[g?i.jsx("div",{className:"absolute inset-0",children:i.jsx(ht,{src:r,alt:e,width:1200,height:800,className:"h-full w-full object-cover"})}):i.jsx(Fr,{className:"absolute inset-0",logoSize:"lg"}),g?i.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-16 bg-linear-to-b from-black/20 to-transparent"}):null,i.jsxs("div",{className:"absolute top-3 left-3 z-20 flex items-center gap-1.5",children:[i.jsx(Wr,{size:"caption2",weight:"bold",children:n??t}),i.jsx(Wr,{size:"caption2",weight:"bold",className:y,children:m})]})]}),i.jsxs("div",{className:"w-full bg-white px-5 py-5",children:[i.jsx(B,{size:"heading2",weight:"bold",className:"line-clamp-2 min-h-10 text-gray-900",children:e}),i.jsxs("div",{className:"mt-4 flex w-full items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(Bt,{className:"h-3.5 w-3.5 text-gray-600"}),i.jsx(B,{size:"caption1",weight:"medium",className:"text-gray-600",children:t})]}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(Da,{className:"h-3.5 w-3.5 text-gray-600"}),i.jsxs(B,{size:"caption1",weight:"medium",className:"text-gray-600",children:[o," / ",a]})]})]}),i.jsxs(B,{size:"caption1",weight:"regular",className:"mt-3 text-gray-500",children:[s," - ",l]})]})]})}function Wp({label:e,icon:t,children:n,checked:r,defaultChecked:o=!1,onCheckedChange:a,showCheckIndicator:s=!0,width:l=320,height:c=220,className:d,disabled:u,onClick:f,style:g,"aria-label":m,...y}){const p=typeof r=="boolean",[v,w]=E.useState(o),b=p?r:v,x=n!==void 0,N=m??(typeof e=="string"||typeof e=="number"?String(e):void 0),S=T=>{if(u)return;const k=!b;p||w(k),a?.(k),f?.(T)};return i.jsxs("button",{type:"button",role:"checkbox","aria-checked":b,"aria-label":N,disabled:u,onClick:S,className:P("relative overflow-hidden rounded-[28px] border-2 transition-colors duration-200","flex flex-col items-center justify-center",!x&&"gap-4",b?"border-main-800 bg-main-200 text-main-800":"border-gray-300 bg-white text-gray-500",!u&&(b?"hover:bg-main-300":"hover:bg-gray-100"),u&&"cursor-not-allowed opacity-60",d),style:{width:l,height:c,...g},...y,children:[s?i.jsx("span",{className:P("absolute top-4 right-4 flex w-[clamp(18px,8%,32px)] aspect-square shrink-0 items-center justify-center rounded-full border-2 transition-colors",b?"border-main-800 bg-main-800 text-white":"border-gray-300 bg-white text-transparent"),children:i.jsx(bt,{className:"h-[46%] w-[46%]",strokeWidth:4.4})}):null,x?n:i.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[t?i.jsx("span",{className:"text-inherit [&>svg]:h-14 [&>svg]:w-14",children:t}):null,typeof e=="string"||typeof e=="number"?i.jsx(B,{size:"heading1",weight:"bold",className:P("text-inherit",b?"text-main-800":"text-gray-600"),children:e}):e]})]})}function fs(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function hs(e){const[t,n]=h.useState(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,l=d.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var xn="Checkbox",[Bp]=Ce(xn),[$p,Br]=Bp(xn);function zp(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:f}=e,[g,m]=be({prop:n,defaultProp:o??!1,onChange:c,caller:xn}),[y,p]=h.useState(null),[v,w]=h.useState(null),b=h.useRef(!1),x=y?!!s||!!y.closest("form"):!0,N={checked:g,disabled:a,setChecked:m,control:y,setControl:p,name:l,form:s,value:u,hasConsumerStoppedPropagationRef:b,required:d,defaultChecked:qe(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:w};return i.jsx($p,{scope:t,...N,children:Hp(f)?f(N):r})}var ps="CheckboxTrigger",gs=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:l,checked:c,required:d,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:g,isFormControl:m,bubbleInput:y}=Br(ps,e),p=X(o,u),v=h.useRef(c);return h.useEffect(()=>{const w=a?.form;if(w){const b=()=>f(v.current);return w.addEventListener("reset",b),()=>w.removeEventListener("reset",b)}},[a,f]),i.jsx(K.button,{type:"button",role:"checkbox","aria-checked":qe(c)?"mixed":c,"aria-required":d,"data-state":ws(c),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:p,onKeyDown:Y(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Y(n,w=>{f(b=>qe(b)?!0:!b),y&&m&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});gs.displayName=ps;var $r=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return i.jsx(zp,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:s,onCheckedChange:d,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:g})=>i.jsxs(i.Fragment,{children:[i.jsx(gs,{...f,ref:t,__scopeCheckbox:n}),g&&i.jsx(ys,{__scopeCheckbox:n})]})})});$r.displayName=xn;var ms="CheckboxIndicator",vs=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Br(ms,n);return i.jsx(Oe,{present:r||qe(a.checked)||a.checked===!0,children:i.jsx(K.span,{"data-state":ws(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});vs.displayName=ms;var bs="CheckboxBubbleInput",ys=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:l,disabled:c,name:d,value:u,form:f,bubbleInput:g,setBubbleInput:m}=Br(bs,e),y=X(n,m),p=fs(a),v=hs(r);h.useEffect(()=>{const b=g;if(!b)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,T=!o.current;if(p!==a&&S){const k=new Event("click",{bubbles:T});b.indeterminate=qe(a),S.call(b,qe(a)?!1:a),b.dispatchEvent(k)}},[g,p,a,o]);const w=h.useRef(qe(a)?!1:a);return i.jsx(K.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??w.current,required:l,disabled:c,name:d,value:u,form:f,...t,tabIndex:-1,ref:y,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ys.displayName=bs;function Hp(e){return typeof e=="function"}function qe(e){return e==="indeterminate"}function ws(e){return qe(e)?"indeterminate":e?"checked":"unchecked"}const zr=h.forwardRef(({className:e,label:t,id:n,readOnly:r,...o},a)=>{const s=h.useId(),l=n||s;return i.jsxs("div",{className:P("flex items-center gap-2.5",r&&"pointer-events-none"),children:[i.jsx($r,{ref:a,id:l,className:P("peer h-5 w-5 shrink-0 rounded-1.5 border border-gray-300 bg-white transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-900 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-main-900 data-[state=checked]:border-main-900 data-[state=checked]:text-white","cursor-pointer",e),...o,children:i.jsx(vs,{className:P("flex items-center justify-center text-current"),children:i.jsx(bt,{className:"h-3 w-3",strokeWidth:13})})}),t&&i.jsx("label",{htmlFor:l,className:P("text-gray-900 select-none cursor-pointer","peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),children:i.jsx(B,{size:"body2",weight:"medium",children:t})})]})});zr.displayName=$r.displayName;function Vp({options:e,value:t,onValueChange:n,className:r,disabled:o=!1}){const a=E.useId(),s=(l,c)=>{if(c){n(t.includes(l)?t:[...t,l]);return}n(t.filter(d=>d!==l))};return i.jsx("div",{className:P("overflow-hidden rounded-4 border border-gray-200 bg-white",r),children:e.map((l,c)=>{const d=t.includes(l.id),u=o||l.disabled,f=`${a}-${l.id}`;return i.jsxs("div",{role:"group","aria-disabled":u,onClick:()=>{u||s(l.id,!d)},className:P("flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",c>0&&"border-t border-gray-200",!u&&"cursor-pointer hover:bg-gray-100/70",u&&"cursor-not-allowed"),children:[i.jsx(zr,{id:f,checked:d,disabled:u,onClick:g=>{g.stopPropagation()},onCheckedChange:g=>{u||g==="indeterminate"||s(l.id,g===!0)},className:P("h-5 w-5 rounded-1.5","data-[state=checked]:border-main-800 data-[state=checked]:bg-main-800")}),typeof l.label=="string"||typeof l.label=="number"?i.jsx(B,{size:"body1",weight:"medium",className:P("transition-colors",d?"text-gray-900":"text-gray-500",u&&"text-gray-400"),children:l.label}):i.jsx("span",{className:P(!d&&"text-gray-500",u&&"opacity-60"),children:l.label})]},l.id)})})}const Yp=at("",{variants:{size:{sm:"w-11 h-11",lg:"w-30 h-30"}},defaultVariants:{size:"sm"}});function xs({value:e,size:t,showPercentage:n=!0,className:r}){const o=t==="lg"?"lg":"sm",a={sm:50,lg:120},s={sm:5,lg:10},l={sm:"caption3",lg:"display2"},c=a[o],d=s[o],u=(c-d)/2,f=2*Math.PI*u,g=Math.min(Math.max(e,0),100),[m,y]=E.useState(0);E.useEffect(()=>{const w=requestAnimationFrame(()=>{y(g)});return()=>cancelAnimationFrame(w)},[g]);const p=f-f*m/100,v=P(Yp({size:o}),"rounded-full",r);return i.jsxs("div",{className:"relative inline-block",children:[i.jsx(gu,{baseSize:c,radius:u,strokeWidth:d,circumference:f,dashOffset:p,className:v}),n&&i.jsx(B,{className:"absolute inset-0 flex items-center justify-center text-main-800",size:l[o],weight:"bold",children:`${g}%`})]})}function Xe(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function jp(e,t=globalThis?.document){const n=Xe(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Gp="DismissableLayer",Hr="dismissableLayer.update",Up="dismissableLayer.pointerDownOutside",Kp="dismissableLayer.focusOutside",Cs,Ns=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=h.useContext(Ns),[u,f]=h.useState(null),g=u?.ownerDocument??globalThis?.document,[,m]=h.useState({}),y=X(t,k=>f(k)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),b=u?p.indexOf(u):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=b>=w,S=Xp(k=>{const A=k.target,z=[...d.branches].some(G=>G.contains(A));!N||z||(o?.(k),s?.(k),k.defaultPrevented||l?.())},g),T=Zp(k=>{const A=k.target;[...d.branches].some(G=>G.contains(A))||(a?.(k),s?.(k),k.defaultPrevented||l?.())},g);return jp(k=>{b===d.layers.size-1&&(r?.(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},g),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Cs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Ss(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Cs)}},[u,g,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Ss())},[u,d]),h.useEffect(()=>{const k=()=>m({});return document.addEventListener(Hr,k),()=>document.removeEventListener(Hr,k)},[]),i.jsx(K.div,{...c,ref:y,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,S.onPointerDownCapture)})});jt.displayName=Gp;var Qp="DismissableLayerBranch",qp=h.forwardRef((e,t)=>{const n=h.useContext(Ns),r=h.useRef(null),o=X(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),i.jsx(K.div,{...e,ref:o})});qp.displayName=Qp;function Xp(e,t=globalThis?.document){const n=Xe(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){As(Up,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zp(e,t=globalThis?.document){const n=Xe(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&As(Kp,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ss(){const e=new CustomEvent(Hr);document.dispatchEvent(e)}function As(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sc(o,a):o.dispatchEvent(a)}var Vr=0;function Yr(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ks()),document.body.insertAdjacentElement("beforeend",e[1]??ks()),Vr++,()=>{Vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vr--}},[])}function ks(){const 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 jr="focusScope.autoFocusOnMount",Gr="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},Jp="FocusScope",Cn=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,c]=h.useState(null),d=Xe(o),u=Xe(a),f=h.useRef(null),g=X(t,p=>c(p)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let p=function(x){if(m.paused||!l)return;const N=x.target;l.contains(N)?f.current=N:Ze(f.current,{select:!0})},v=function(x){if(m.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||Ze(f.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ze(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(w);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[r,l,m.paused]),h.useEffect(()=>{if(l){Ts.add(m);const p=document.activeElement;if(!l.contains(p)){const w=new CustomEvent(jr,Ps);l.addEventListener(jr,d),l.dispatchEvent(w),w.defaultPrevented||(Rp(og(Es(l)),{select:!0}),document.activeElement===p&&Ze(l))}return()=>{l.removeEventListener(jr,d),setTimeout(()=>{const w=new CustomEvent(Gr,Ps);l.addEventListener(Gr,u),l.dispatchEvent(w),w.defaultPrevented||Ze(p??document.body,{select:!0}),l.removeEventListener(Gr,u),Ts.remove(m)},0)}}},[l,d,u,m]);const y=h.useCallback(p=>{if(!n&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(v&&w){const b=p.currentTarget,[x,N]=eg(b);x&&N?!p.shiftKey&&w===N?(p.preventDefault(),n&&Ze(x,{select:!0})):p.shiftKey&&w===x&&(p.preventDefault(),n&&Ze(N,{select:!0})):w===b&&p.preventDefault()}},[n,r,m.paused]);return i.jsx(K.div,{tabIndex:-1,...s,ref:g,onKeyDown:y})});Cn.displayName=Jp;function Rp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ze(r,{select:t}),document.activeElement!==n)return}function eg(e){const t=Es(e),n=_s(t,e),r=_s(t.reverse(),e);return[n,r]}function Es(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _s(e,t){for(const n of e)if(!tg(n,{upTo:t}))return n}function tg(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 ng(e){return e instanceof HTMLInputElement&&"select"in e}function Ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ng(e)&&t&&e.select()}}var Ts=rg();function rg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ms(e,t),e.unshift(t)},remove(t){e=Ms(e,t),e[0]?.resume()}}}function Ms(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function og(e){return e.filter(t=>t.tagName!=="A")}const ag=["top","right","bottom","left"],Je=Math.min,ye=Math.max,Nn=Math.round,Sn=Math.floor,Be=e=>({x:e,y:e}),sg={left:"right",right:"left",bottom:"top",top:"bottom"},ig={start:"end",end:"start"};function Ur(e,t,n){return ye(e,Je(t,n))}function Ge(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Kr(e){return e==="x"?"y":"x"}function Qr(e){return e==="y"?"height":"width"}const lg=new Set(["top","bottom"]);function $e(e){return lg.has(Ue(e))?"y":"x"}function qr(e){return Kr($e(e))}function cg(e,t,n){n===void 0&&(n=!1);const r=Nt(e),o=qr(e),a=Qr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=An(s)),[s,An(s)]}function dg(e){const t=An(e);return[Xr(e),t,Xr(t)]}function Xr(e){return e.replace(/start|end/g,t=>ig[t])}const Ds=["left","right"],Os=["right","left"],ug=["top","bottom"],fg=["bottom","top"];function hg(e,t,n){switch(e){case"top":case"bottom":return n?t?Os:Ds:t?Ds:Os;case"left":case"right":return t?ug:fg;default:return[]}}function pg(e,t,n,r){const o=Nt(e);let a=hg(Ue(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Xr)))),a}function An(e){return e.replace(/left|right|bottom|top/g,t=>sg[t])}function gg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Is(e){return typeof e!="number"?gg(e):{top:e,right:e,bottom:e,left:e}}function kn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ls(e,t,n){let{reference:r,floating:o}=e;const a=$e(t),s=qr(t),l=Qr(s),c=Ue(t),d=a==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let m;switch(c){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Nt(t)){case"start":m[s]-=g*(n&&d?-1:1);break;case"end":m[s]+=g*(n&&d?-1:1);break}return m}const mg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ls(d,r,c),g=r,m={},y=0;for(let p=0;p<l.length;p++){const{name:v,fn:w}=l[p],{x:b,y:x,data:N,reset:S}=await w({x:u,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:d,platform:s,elements:{reference:e,floating:t}});u=b??u,f=x??f,m={...m,[v]:{...m[v],...N}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(d=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=Ls(d,g,c)),p=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:m}};async function Gt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=Ge(t,e),y=Is(m),v=l[g?f==="floating"?"reference":"floating":f],w=kn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),b=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),N=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=kn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:x,strategy:c}):b);return{top:(w.top-S.top+y.top)/N.y,bottom:(S.bottom-w.bottom+y.bottom)/N.y,left:(w.left-S.left+y.left)/N.x,right:(S.right-w.right+y.right)/N.x}}const vg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=Ge(e,t)||{};if(d==null)return{};const f=Is(u),g={x:n,y:r},m=qr(o),y=Qr(m),p=await s.getDimensions(d),v=m==="y",w=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",N=a.reference[y]+a.reference[m]-g[m]-a.floating[y],S=g[m]-a.reference[m],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let k=T?T[x]:0;(!k||!await(s.isElement==null?void 0:s.isElement(T)))&&(k=l.floating[x]||a.floating[y]);const A=N/2-S/2,z=k/2-p[y]/2-1,G=Je(f[w],z),M=Je(f[b],z),F=G,V=k-p[y]-M,j=k/2-p[y]/2+A,$=Ur(F,j,V),W=!c.arrow&&Nt(o)!=null&&j!==$&&a.reference[y]/2-(j<F?G:M)-p[y]/2<0,_=W?j<F?j-F:j-V:0;return{[m]:g[m]+_,data:{[m]:$,centerOffset:j-$-_,...W&&{alignmentOffset:_}},reset:W}}}),bg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:p=!0,...v}=Ge(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Ue(o),b=$e(l),x=Ue(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=g||(x||!p?[An(l)]:dg(l)),T=y!=="none";!g&&T&&S.push(...pg(l,p,y,N));const k=[l,...S],A=await Gt(t,v),z=[];let G=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&z.push(A[w]),f){const j=cg(o,s,N);z.push(A[j[0]],A[j[1]])}if(G=[...G,{placement:o,overflows:z}],!z.every(j=>j<=0)){var M,F;const j=(((M=a.flip)==null?void 0:M.index)||0)+1,$=k[j];if($&&(!(f==="alignment"?b!==$e($):!1)||G.every(C=>$e(C.placement)===b?C.overflows[0]>0:!0)))return{data:{index:j,overflows:G},reset:{placement:$}};let W=(F=G.filter(_=>_.overflows[0]<=0).sort((_,C)=>_.overflows[1]-C.overflows[1])[0])==null?void 0:F.placement;if(!W)switch(m){case"bestFit":{var V;const _=(V=G.filter(C=>{if(T){const q=$e(C.placement);return q===b||q==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(q=>q>0).reduce((q,ne)=>q+ne,0)]).sort((C,q)=>C[1]-q[1])[0])==null?void 0:V[0];_&&(W=_);break}case"initialPlacement":W=l;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function Fs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ws(e){return ag.some(t=>e[t]>=0)}const yg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ge(e,t);switch(r){case"referenceHidden":{const a=await Gt(t,{...o,elementContext:"reference"}),s=Fs(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ws(s)}}}case"escaped":{const a=await Gt(t,{...o,altBoundary:!0}),s=Fs(a,n.floating);return{data:{escapedOffsets:s,escaped:Ws(s)}}}default:return{}}}}},Bs=new Set(["left","top"]);async function wg(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ue(n),l=Nt(n),c=$e(n)==="y",d=Bs.has(s)?-1:1,u=a&&c?-1:1,f=Ge(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof y=="number"&&(m=l==="end"?y*-1:y),c?{x:m*u,y:g*d}:{x:g*d,y:m*u}}const xg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:l}=t,c=await wg(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},Cg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:w,y:b}=v;return{x:w,y:b}}},...c}=Ge(e,t),d={x:n,y:r},u=await Gt(t,c),f=$e(Ue(o)),g=Kr(f);let m=d[g],y=d[f];if(a){const v=g==="y"?"top":"left",w=g==="y"?"bottom":"right",b=m+u[v],x=m-u[w];m=Ur(b,m,x)}if(s){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",b=y+u[v],x=y-u[w];y=Ur(b,y,x)}const p=l.fn({...t,[g]:m,[f]:y});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[g]:a,[f]:s}}}}}},Ng=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Ge(e,t),u={x:n,y:r},f=$e(o),g=Kr(f);let m=u[g],y=u[f];const p=Ge(l,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=g==="y"?"height":"width",N=a.reference[g]-a.floating[x]+v.mainAxis,S=a.reference[g]+a.reference[x]-v.mainAxis;m<N?m=N:m>S&&(m=S)}if(d){var w,b;const x=g==="y"?"width":"height",N=Bs.has(Ue(o)),S=a.reference[f]-a.floating[x]+(N&&((w=s.offset)==null?void 0:w[f])||0)+(N?0:v.crossAxis),T=a.reference[f]+a.reference[x]+(N?0:((b=s.offset)==null?void 0:b[f])||0)-(N?v.crossAxis:0);y<S?y=S:y>T&&(y=T)}return{[g]:m,[f]:y}}}},Sg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:l}=t,{apply:c=()=>{},...d}=Ge(e,t),u=await Gt(t,d),f=Ue(o),g=Nt(o),m=$e(o)==="y",{width:y,height:p}=a.floating;let v,w;f==="top"||f==="bottom"?(v=f,w=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,v=g==="end"?"top":"bottom");const b=p-u.top-u.bottom,x=y-u.left-u.right,N=Je(p-u[v],b),S=Je(y-u[w],x),T=!t.middlewareData.shift;let k=N,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=b),T&&!g){const G=ye(u.left,0),M=ye(u.right,0),F=ye(u.top,0),V=ye(u.bottom,0);m?A=y-2*(G!==0||M!==0?G+M:ye(u.left,u.right)):k=p-2*(F!==0||V!==0?F+V:ye(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});const z=await s.getDimensions(l.floating);return y!==z.width||p!==z.height?{reset:{rects:!0}}:{}}}};function Pn(){return typeof window<"u"}function St(e){return $s(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=($s(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $s(e){return Pn()?e instanceof Node||e instanceof we(e).Node:!1}function Ee(e){return Pn()?e instanceof Element||e instanceof we(e).Element:!1}function He(e){return Pn()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function zs(e){return!Pn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const Ag=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ag.has(o)}const kg=new Set(["table","td","th"]);function Pg(e){return kg.has(St(e))}const Eg=[":popover-open",":modal"];function En(e){return Eg.some(t=>{try{return e.matches(t)}catch{return!1}})}const _g=["transform","translate","scale","rotate","perspective"],Tg=["transform","translate","scale","rotate","perspective","filter"],Mg=["paint","layout","strict","content"];function Zr(e){const t=Jr(),n=Ee(e)?_e(e):e;return _g.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tg.some(r=>(n.willChange||"").includes(r))||Mg.some(r=>(n.contain||"").includes(r))}function Dg(e){let t=Re(e);for(;He(t)&&!At(t);){if(Zr(t))return t;if(En(t))return null;t=Re(t)}return null}function Jr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Og=new Set(["html","body","#document"]);function At(e){return Og.has(St(e))}function _e(e){return we(e).getComputedStyle(e)}function _n(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(St(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zs(e)&&e.host||ze(e);return zs(t)?t.host:t}function Hs(e){const t=Re(e);return At(t)?e.ownerDocument?e.ownerDocument.body:e.body:He(t)&&Ut(t)?t:Hs(t)}function Kt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hs(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=we(o);if(a){const l=Rr(s);return t.concat(s,s.visualViewport||[],Ut(o)?o:[],l&&n?Kt(l):[])}return t.concat(o,Kt(o,[],n))}function Rr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vs(e){const t=_e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=He(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Nn(n)!==a||Nn(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function eo(e){return Ee(e)?e:e.contextElement}function kt(e){const t=eo(e);if(!He(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Vs(t);let s=(a?Nn(n.width):n.width)/r,l=(a?Nn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ig=Be(0);function Ys(e){const t=we(e);return!Jr()||!t.visualViewport?Ig:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=eo(e);let s=Be(1);t&&(r?Ee(r)&&(s=kt(r)):s=kt(e));const l=Lg(a,n,r)?Ys(a):Be(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(a){const g=we(a),m=r&&Ee(r)?we(r):r;let y=g,p=Rr(y);for(;p&&r&&m!==y;){const v=kt(p),w=p.getBoundingClientRect(),b=_e(p),x=w.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,N=w.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,d*=v.y,u*=v.x,f*=v.y,c+=x,d+=N,y=we(p),p=Rr(y)}}return kn({width:u,height:f,x:c,y:d})}function Tn(e,t){const n=_n(e).scrollLeft;return t?t.left+n:lt(ze(e)).left+n}function js(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Tn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Fg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ze(r),l=t?En(t.floating):!1;if(r===s||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Be(1);const u=Be(0),f=He(r);if((f||!f&&!a)&&((St(r)!=="body"||Ut(s))&&(c=_n(r)),He(r))){const m=lt(r);d=kt(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const g=s&&!f&&!a?js(s,c):Be(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+g.x,y:n.y*d.y-c.scrollTop*d.y+u.y+g.y}}function Wg(e){return Array.from(e.getClientRects())}function Bg(e){const t=ze(e),n=_n(e),r=e.ownerDocument.body,o=ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Tn(e);const l=-n.scrollTop;return _e(r).direction==="rtl"&&(s+=ye(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}const Gs=25;function $g(e,t){const n=we(e),r=ze(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;const u=Jr();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=Tn(r);if(d<=0){const u=r.ownerDocument,f=u.body,g=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(r.clientWidth-f.clientWidth-m);y<=Gs&&(a-=y)}else d<=Gs&&(a+=d);return{width:a,height:s,x:l,y:c}}const zg=new Set(["absolute","fixed"]);function Hg(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=He(e)?kt(e):Be(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:s,height:l,x:c,y:d}}function Us(e,t,n){let r;if(t==="viewport")r=$g(e,n);else if(t==="document")r=Bg(ze(e));else if(Ee(t))r=Hg(t,n);else{const o=Ys(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kn(r)}function Ks(e,t){const n=Re(e);return n===t||!Ee(n)||At(n)?!1:_e(n).position==="fixed"||Ks(n,t)}function Vg(e,t){const n=t.get(e);if(n)return n;let r=Kt(e,[],!1).filter(l=>Ee(l)&&St(l)!=="body"),o=null;const a=_e(e).position==="fixed";let s=a?Re(e):e;for(;Ee(s)&&!At(s);){const l=_e(s),c=Zr(s);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&zg.has(o.position)||Ut(s)&&!c&&Ks(e,s))?r=r.filter(u=>u!==s):o=l,s=Re(s)}return t.set(e,r),r}function Yg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?En(t)?[]:Vg(t,this._c):[].concat(n),r],l=s[0],c=s.reduce((d,u)=>{const f=Us(t,u,o);return d.top=ye(f.top,d.top),d.right=Je(f.right,d.right),d.bottom=Je(f.bottom,d.bottom),d.left=ye(f.left,d.left),d},Us(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function jg(e){const{width:t,height:n}=Vs(e);return{width:t,height:n}}function Gg(e,t,n){const r=He(t),o=ze(t),a=n==="fixed",s=lt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Be(0);function d(){c.x=Tn(o)}if(r||!r&&!a)if((St(t)!=="body"||Ut(o))&&(l=_n(t)),r){const m=lt(t,!0,a,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&d();a&&!r&&o&&d();const u=o&&!r&&!a?js(o,l):Be(0),f=s.left+l.scrollLeft-c.x-u.x,g=s.top+l.scrollTop-c.y-u.y;return{x:f,y:g,width:s.width,height:s.height}}function to(e){return _e(e).position==="static"}function Qs(e,t){if(!He(e)||_e(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ze(e)===n&&(n=n.ownerDocument.body),n}function qs(e,t){const n=we(e);if(En(e))return n;if(!He(e)){let o=Re(e);for(;o&&!At(o);){if(Ee(o)&&!to(o))return o;o=Re(o)}return n}let r=Qs(e,t);for(;r&&Pg(r)&&to(r);)r=Qs(r,t);return r&&At(r)&&to(r)&&!Zr(r)?n:r||Dg(e)||n}const Ug=async function(e){const t=this.getOffsetParent||qs,n=this.getDimensions,r=await n(e.floating);return{reference:Gg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kg(e){return _e(e).direction==="rtl"}const Qg={convertOffsetParentRelativeRectToViewportRelativeRect:Fg,getDocumentElement:ze,getClippingRect:Yg,getOffsetParent:qs,getElementRects:Ug,getClientRects:Wg,getDimensions:jg,getScale:kt,isElement:Ee,isRTL:Kg};function Xs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qg(e,t){let n=null,r;const o=ze(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:u,top:f,width:g,height:m}=d;if(l||t(),!g||!m)return;const y=Sn(f),p=Sn(o.clientWidth-(u+g)),v=Sn(o.clientHeight-(f+m)),w=Sn(u),x={rootMargin:-y+"px "+-p+"px "+-v+"px "+-w+"px",threshold:ye(0,Je(1,c))||1};let N=!0;function S(T){const k=T[0].intersectionRatio;if(k!==c){if(!N)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Xs(d,e.getBoundingClientRect())&&s(),N=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),a}function Xg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=eo(e),u=o||a?[...d?Kt(d):[],...Kt(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const f=d&&l?qg(d,n):null;let g=-1,m=null;s&&(m=new ResizeObserver(w=>{let[b]=w;b&&b.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),d&&!c&&m.observe(d),m.observe(t));let y,p=c?lt(e):null;c&&v();function v(){const w=lt(e);p&&!Xs(p,w)&&n(),p=w,y=requestAnimationFrame(v)}return n(),()=>{var w;u.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),f?.(),(w=m)==null||w.disconnect(),m=null,c&&cancelAnimationFrame(y)}}const Zg=xg,Jg=Cg,Rg=bg,em=Sg,tm=yg,Zs=vg,nm=Ng,rm=(e,t,n)=>{const r=new Map,o={platform:Qg,...n},a={...o.platform,_c:r};return mg(e,t,{...o,platform:a})};var om=typeof document<"u",am=function(){},Mn=om?E.useLayoutEffect:am;function Dn(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,o;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(!Dn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Dn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Js(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rs(e,t){const n=Js(e);return Math.round(t*n)/n}function no(e){const t=h.useRef(e);return Mn(()=>{t.current=e}),t}function sm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=h.useState(r);Dn(g,r)||m(r);const[y,p]=h.useState(null),[v,w]=h.useState(null),b=h.useCallback(C=>{C!==T.current&&(T.current=C,p(C))},[]),x=h.useCallback(C=>{C!==k.current&&(k.current=C,w(C))},[]),N=a||y,S=s||v,T=h.useRef(null),k=h.useRef(null),A=h.useRef(u),z=c!=null,G=no(c),M=no(o),F=no(d),V=h.useCallback(()=>{if(!T.current||!k.current)return;const C={placement:t,strategy:n,middleware:g};M.current&&(C.platform=M.current),rm(T.current,k.current,C).then(q=>{const ne={...q,isPositioned:F.current!==!1};j.current&&!Dn(A.current,ne)&&(A.current=ne,tn.flushSync(()=>{f(ne)}))})},[g,t,n,M,F]);Mn(()=>{d===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[d]);const j=h.useRef(!1);Mn(()=>(j.current=!0,()=>{j.current=!1}),[]),Mn(()=>{if(N&&(T.current=N),S&&(k.current=S),N&&S){if(G.current)return G.current(N,S,V);V()}},[N,S,V,G,z]);const $=h.useMemo(()=>({reference:T,floating:k,setReference:b,setFloating:x}),[b,x]),W=h.useMemo(()=>({reference:N,floating:S}),[N,S]),_=h.useMemo(()=>{const C={position:n,left:0,top:0};if(!W.floating)return C;const q=Rs(W.floating,u.x),ne=Rs(W.floating,u.y);return l?{...C,transform:"translate("+q+"px, "+ne+"px)",...Js(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:ne}},[n,l,W.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:V,refs:$,elements:W,floatingStyles:_}),[u,V,$,W,_])}const im=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Zs({element:r.current,padding:o}).fn(n):{}:r?Zs({element:r,padding:o}).fn(n):{}}}},lm=(e,t)=>({...Zg(e),options:[e,t]}),cm=(e,t)=>({...Jg(e),options:[e,t]}),dm=(e,t)=>({...nm(e),options:[e,t]}),um=(e,t)=>({...Rg(e),options:[e,t]}),fm=(e,t)=>({...em(e),options:[e,t]}),hm=(e,t)=>({...tm(e),options:[e,t]}),pm=(e,t)=>({...im(e),options:[e,t]});var gm="Arrow",ei=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.jsx(K.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ei.displayName=gm;var mm=ei,ro="Popper",[ti,Pt]=Ce(ro),[vm,ni]=ti(ro),ri=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return i.jsx(vm,{scope:t,anchor:r,onAnchorChange:o,children:n})};ri.displayName=ro;var oi="PopperAnchor",ai=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ni(oi,n),s=h.useRef(null),l=X(t,s),c=h.useRef(null);return h.useEffect(()=>{const d=c.current;c.current=r?.current||s.current,d!==c.current&&a.onAnchorChange(c.current)}),r?null:i.jsx(K.div,{...o,ref:l})});ai.displayName=oi;var oo="PopperContent",[bm,ym]=ti(oo),si=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:y,...p}=e,v=ni(oo,n),[w,b]=h.useState(null),x=X(t,O=>b(O)),[N,S]=h.useState(null),T=hs(N),k=T?.width??0,A=T?.height??0,z=r+(a!=="center"?"-"+a:""),G=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(d)?d:[d],F=M.length>0,V={padding:G,boundary:M.filter(xm),altBoundary:F},{refs:j,floatingStyles:$,placement:W,isPositioned:_,middlewareData:C}=sm({strategy:"fixed",placement:z,whileElementsMounted:(...O)=>Xg(...O,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[lm({mainAxis:o+A,alignmentAxis:s}),c&&cm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?dm():void 0,...V}),c&&um({...V}),fm({...V,apply:({elements:O,rects:re,availableWidth:ie,availableHeight:Z})=>{const{width:ee,height:oe}=re.reference,xe=O.floating.style;xe.setProperty("--radix-popper-available-width",`${ie}px`),xe.setProperty("--radix-popper-available-height",`${Z}px`),xe.setProperty("--radix-popper-anchor-width",`${ee}px`),xe.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),N&&pm({element:N,padding:l}),Cm({arrowWidth:k,arrowHeight:A}),g&&hm({strategy:"referenceHidden",...V})]}),[q,ne]=ci(W),he=Xe(y);fe(()=>{_&&he?.()},[_,he]);const De=C.arrow?.x,ae=C.arrow?.y,U=C.arrow?.centerOffset!==0,[se,ce]=h.useState();return fe(()=>{w&&ce(window.getComputedStyle(w).zIndex)},[w]),i.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:_?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(bm,{scope:n,placedSide:q,onArrowChange:S,arrowX:De,arrowY:ae,shouldHideArrow:U,children:i.jsx(K.div,{"data-side":q,"data-align":ne,...p,ref:x,style:{...p.style,animation:_?void 0:"none"}})})})});si.displayName=oo;var ii="PopperArrow",wm={top:"bottom",right:"left",bottom:"top",left:"right"},li=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=ym(ii,r),s=wm[a.placedSide];return i.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:i.jsx(mm,{...o,ref:n,style:{...o.style,display:"block"}})})});li.displayName=ii;function xm(e){return e!==null}var Cm=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,u]=ci(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(o.arrow?.x??0)+l/2,m=(o.arrow?.y??0)+c/2;let y="",p="";return d==="bottom"?(y=s?f:`${g}px`,p=`${-c}px`):d==="top"?(y=s?f:`${g}px`,p=`${r.floating.height+c}px`):d==="right"?(y=`${-c}px`,p=s?f:`${m}px`):d==="left"&&(y=`${r.floating.width+c}px`,p=s?f:`${m}px`),{data:{x:y,y:p}}}});function ci(e){const[t,n="center"]=e.split("-");return[t,n]}var ao=ri,On=ai,so=si,io=li,Nm="Portal",Qt=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=h.useState(!1);fe(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Bo.createPortal(i.jsx(K.div,{...r,ref:t}),s):null});Qt.displayName=Nm;var Sm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Et=new WeakMap,In=new WeakMap,Ln={},lo=0,di=function(e){return e&&(e.host||di(e.parentNode))},Am=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=di(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},km=function(e,t,n,r){var o=Am(t,Array.isArray(e)?e:[e]);Ln[n]||(Ln[n]=new WeakMap);var a=Ln[n],s=[],l=new Set,c=new Set(o),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};o.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(l.has(g))u(g);else try{var m=g.getAttribute(r),y=m!==null&&m!=="false",p=(Et.get(g)||0)+1,v=(a.get(g)||0)+1;Et.set(g,p),a.set(g,v),s.push(g),p===1&&y&&In.set(g,!0),v===1&&g.setAttribute(n,"true"),y||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return u(t),l.clear(),lo++,function(){s.forEach(function(f){var g=Et.get(f)-1,m=a.get(f)-1;Et.set(f,g),a.set(f,m),g||(In.has(f)||f.removeAttribute(r),In.delete(f)),m||f.removeAttribute(n)}),lo--,lo||(Et=new WeakMap,Et=new WeakMap,In=new WeakMap,Ln={})}},co=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Sm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),km(r,o,n,"aria-hidden")):function(){return null}},Ve=function(){return Ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ve.apply(this,arguments)};function ui(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Pm(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Fn="right-scroll-bar-position",Wn="width-before-scroll-bar",Em="with-scroll-bars-hidden",_m="--removed-body-scroll-bar-size";function uo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Tm(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Mm=typeof window<"u"?h.useLayoutEffect:h.useEffect,fi=new WeakMap;function Dm(e,t){var n=Tm(null,function(r){return e.forEach(function(o){return uo(o,r)})});return Mm(function(){var r=fi.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(l){a.has(l)||uo(l,null)}),a.forEach(function(l){o.has(l)||uo(l,s)})}fi.set(n,e)},[e]),n}function Om(e){return e}function Im(e,t){t===void 0&&(t=Om);var n=[],r=!1,o={read:function(){if(r)throw new 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(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(a),s=n}var c=function(){var u=s;s=[],u.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){s.push(u),d()},filter:function(u){return s=s.filter(u),n}}}};return o}function Lm(e){e===void 0&&(e={});var t=Im(null);return t.options=Ve({async:!0,ssr:!1},e),t}var hi=function(e){var t=e.sideCar,n=ui(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Ve({},n))};hi.isSideCarExport=!0;function Fm(e,t){return e.useMedium(t),hi}var pi=Lm(),fo=function(){},Bn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:fo,onWheelCapture:fo,onTouchMoveCapture:fo}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,f=e.shards,g=e.sideCar,m=e.noRelative,y=e.noIsolation,p=e.inert,v=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,x=e.gapMode,N=ui(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,T=Dm([n,t]),k=Ve(Ve({},N),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:pi,removeScrollBar:d,shards:f,noRelative:m,noIsolation:y,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?h.cloneElement(h.Children.only(l),Ve(Ve({},k),{ref:T})):h.createElement(b,Ve({},k,{className:c,ref:T}),l))});Bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bn.classNames={fullWidth:Wn,zeroRight:Fn};var Wm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wm();return t&&e.setAttribute("nonce",t),e}function $m(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bm())&&($m(t,n),zm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vm=function(){var e=Hm();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gi=function(){var e=Vm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ym={left:0,top:0,right:0,gap:0},ho=function(e){return parseInt(e||"",10)||0},jm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ho(n),ho(r),ho(o)]},Gm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ym;var t=jm(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])}},Um=gi(),_t="data-scroll-locked",Km=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(Em,` {
1
+ (function(D,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("next/image"),require("lucide-react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","next/image","lucide-react"],s):(D=typeof globalThis<"u"?globalThis:D||self,s(D.OdosDesignSystem={},D.jsxRuntime,D.React,D.ReactDOM,D.nextImage,D.LucideReact))})(this,(function(D,s,P,Bo,It,le){"use strict";function zo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=zo(P),tn=zo(Bo);function uc(e,t){const n=h.createContext(t),r=a=>{const{children:i,...l}=a,c=h.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=h.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ne(e,t=[]){let n=[];function r(a,i){const l=h.createContext(i),c=n.length;n=[...n,i];const d=f=>{const{scope:g,children:m,...b}=f,p=g?.[e]?.[c]||l,v=h.useMemo(()=>b,Object.values(b));return s.jsx(p.Provider,{value:v,children:m})};d.displayName=a+"Provider";function u(f,g){const m=g?.[e]?.[c]||l,b=h.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,u]}const o=()=>{const a=n.map(i=>h.createContext(i));return function(l){const c=l?.[e]||a;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,fc(o,...t)]}function fc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(a)[`__scope${d}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function $o(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=$o(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():$o(e[o],null)}}}}function J(...e){return h.useCallback(Rn(...e),e)}function ht(e){const t=hc(e),n=h.forwardRef((r,o)=>{const{children:a,...i}=r,l=h.Children.toArray(a),c=l.find(gc);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...i,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function hc(e){const t=h.forwardRef((n,r)=>{const{children:o,...a}=n;if(h.isValidElement(o)){const i=vc(o),l=mc(a,o.props);return o.type!==h.Fragment&&(l.ref=r?Rn(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ho=Symbol("radix.slottable");function pc(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ho,t}function gc(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ho}function mc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function vc(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 er(e){const t=e+"CollectionProvider",[n,r]=Ne(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:v,children:w}=p,y=P.useRef(null),x=P.useRef(new Map).current;return s.jsx(o,{scope:v,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const l=e+"CollectionSlot",c=ht(l),d=P.forwardRef((p,v)=>{const{scope:w,children:y}=p,x=a(l,w),N=J(v,x.collectionRef);return s.jsx(c,{ref:N,children:y})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",g=ht(u),m=P.forwardRef((p,v)=>{const{scope:w,children:y,...x}=p,N=P.useRef(null),S=J(v,N),M=a(u,w);return P.useEffect(()=>(M.itemMap.set(N,{ref:N,...x}),()=>{M.itemMap.delete(N)})),s.jsx(g,{[f]:"",ref:S,children:y})});m.displayName=u;function b(p){const v=a(e+"CollectionConsumer",p);return P.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((M,A)=>x.indexOf(M.ref.current)-x.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:d,ItemSlot:m},b,r]}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ue=globalThis?.document?h.useLayoutEffect:()=>{},bc=h[" useInsertionEffect ".trim().toString()]||ue;function be({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=yc({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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.`),u.current=l},[l,r])}const d=h.useCallback(u=>{if(l){const f=wc(u)?u(e):u;f!==e&&i.current?.(f)}else a(u)},[l,e,a,i]);return[c,d]}function yc({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return bc(()=>{a.current=t},[t]),h.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function wc(e){return typeof e=="function"}var xc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=xc.reduce((e,t)=>{const n=ht(`Primitive.${t}`),r=h.forwardRef((o,a)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cc(e,t){e&&tn.flushSync(()=>e.dispatchEvent(t))}function Nc(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Oe=e=>{const{present:t,children:n}=e,r=Sc(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=J(r.ref,Ac(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};Oe.displayName="Presence";function Sc(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Nc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=nn(r.current);a.current=l==="mounted"?d:"none"},[l]),ue(()=>{const d=r.current,u=o.current;if(u!==e){const g=a.current,m=nn(d);e?c("MOUNT"):m==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ue(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=m=>{const p=nn(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=m=>{m.target===t&&(a.current=nn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function nn(e){return e?.animationName||"none"}function Ac(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 kc=h[" useId ".trim().toString()]||(()=>{}),Pc=0;function Se(e){const[t,n]=h.useState(kc());return ue(()=>{n(r=>r??String(Pc++))},[e]),e||(t?`radix-${t}`:"")}var rn="Collapsible",[Ec,Vo]=Ne(rn),[_c,tr]=Ec(rn),Yo=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[c,d]=be({prop:r,defaultProp:o??!1,onChange:i,caller:rn});return s.jsx(_c,{scope:n,disabled:a,contentId:Se(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:s.jsx(U.div,{"data-state":rr(c),"data-disabled":a?"":void 0,...l,ref:t})})});Yo.displayName=rn;var jo="CollapsibleTrigger",Go=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=tr(jo,n);return s.jsx(U.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":rr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:V(e.onClick,o.onOpenToggle)})});Go.displayName=jo;var nr="CollapsibleContent",Uo=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=tr(nr,e.__scopeCollapsible);return s.jsx(Oe,{present:n||o.open,children:({present:a})=>s.jsx(Mc,{...r,ref:t,present:a})})});Uo.displayName=nr;var Mc=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=tr(nr,n),[l,c]=h.useState(r),d=h.useRef(null),u=J(t,d),f=h.useRef(0),g=f.current,m=h.useRef(0),b=m.current,p=i.open||l,v=h.useRef(p),w=h.useRef(void 0);return h.useEffect(()=>{const y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),ue(()=>{const y=d.current;if(y){w.current=w.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const x=y.getBoundingClientRect();f.current=x.height,m.current=x.width,v.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),c(r)}},[i.open,r]),s.jsx(U.div,{"data-state":rr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:p&&o})});function rr(e){return e?"open":"closed"}var Tc=Yo,Dc=Go,Oc=Uo,Ic=h.createContext(void 0);function on(e){const t=h.useContext(Ic);return e||t||"ltr"}var Ae="Accordion",Lc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[or,Fc,Wc]=er(Ae),[an]=Ne(Ae,[Wc,Vo]),ar=Vo(),Ko=P.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return s.jsx(or.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(Hc,{...a,ref:t}):s.jsx($c,{...o,ref:t})})});Ko.displayName=Ae;var[Qo,Bc]=an(Ae),[qo,zc]=an(Ae,{collapsible:!1}),$c=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,c]=be({prop:n,defaultProp:r??"",onChange:o,caller:Ae});return s.jsx(Qo,{scope:e.__scopeAccordion,value:P.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:P.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(qo,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(Xo,{...i,ref:t})})})}),Hc=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=be({prop:n,defaultProp:r??[],onChange:o,caller:Ae}),c=P.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=P.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return s.jsx(Qo,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(qo,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(Xo,{...a,ref:t})})})}),[Vc,sn]=an(Ae),Xo=P.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=P.useRef(null),c=J(l,t),d=Fc(n),f=on(o)==="ltr",g=V(e.onKeyDown,m=>{if(!Lc.includes(m.key))return;const b=m.target,p=d().filter(k=>!k.ref.current?.disabled),v=p.findIndex(k=>k.ref.current===b),w=p.length;if(v===-1)return;m.preventDefault();let y=v;const x=0,N=w-1,S=()=>{y=v+1,y>N&&(y=x)},M=()=>{y=v-1,y<x&&(y=N)};switch(m.key){case"Home":y=x;break;case"End":y=N;break;case"ArrowRight":a==="horizontal"&&(f?S():M());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(f?M():S());break;case"ArrowUp":a==="vertical"&&M();break}const A=y%w;p[A].ref.current?.focus()});return s.jsx(Vc,{scope:n,disabled:r,direction:o,orientation:a,children:s.jsx(or.Slot,{scope:n,children:s.jsx(U.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:g})})})}),ln="AccordionItem",[Yc,sr]=an(ln),Zo=P.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=sn(ln,n),i=Bc(ln,n),l=ar(n),c=Se(),d=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return s.jsx(Yc,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(Tc,{"data-orientation":a.orientation,"data-state":ra(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});Zo.displayName=ln;var Jo="AccordionHeader",Ro=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sn(Ae,n),a=sr(Jo,n);return s.jsx(U.h3,{"data-orientation":o.orientation,"data-state":ra(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Ro.displayName=Jo;var ir="AccordionTrigger",ea=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sn(Ae,n),a=sr(ir,n),i=zc(ir,n),l=ar(n);return s.jsx(or.ItemSlot,{scope:n,children:s.jsx(Dc,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});ea.displayName=ir;var ta="AccordionContent",na=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=sn(Ae,n),a=sr(ta,n),i=ar(n);return s.jsx(Oc,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});na.displayName=ta;function ra(e){return e?"open":"closed"}var jc=Ko,Gc=Zo,Uc=Ro,Kc=ea,Qc=na;function oa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=oa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function aa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=oa(e))&&(r&&(r+=" "),r+=t);return r}const qc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Xc=(e,t)=>({classGroupId:e,validator:t}),sa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),cn="-",ia=[],Zc="arbitrary..",Jc=e=>{const t=ed(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Rc(i);const l=i.split(cn),c=l[0]===""&&l.length>1?1:0;return la(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],d=n[i];return c?d?qc(d,c):c:d||ia}return n[i]||ia}}},la=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=la(e,t+1,a);if(d)return d}const i=n.validators;if(i===null)return;const l=t===0?e.join(cn):e.slice(t).join(cn),c=i.length;for(let d=0;d<c;d++){const u=i[d];if(u.validator(l))return u.classGroupId}},Rc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Zc+r:void 0})(),ed=e=>{const{theme:t,classGroups:n}=e;return td(n,t)},td=(e,t)=>{const n=sa();for(const r in e){const o=e[r];lr(o,n,r,t)}return n},lr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];nd(i,t,n,r)}},nd=(e,t,n,r)=>{if(typeof e=="string"){rd(e,t,n);return}if(typeof e=="function"){od(e,t,n,r);return}ad(e,t,n,r)},rd=(e,t,n)=>{const r=e===""?t:ca(t,e);r.classGroupId=n},od=(e,t,n,r)=>{if(sd(e)){lr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xc(n,e))},ad=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[l,c]=o[i];lr(c,ca(t,l),n,r)}},ca=(e,t)=>{let n=e;const r=t.split(cn),o=r.length;for(let a=0;a<o;a++){const i=r[a];let l=n.nextPart.get(i);l||(l=sa(),n.nextPart.set(i,l)),n=l}return n},sd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,id=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return o(a,i),i},set(a,i){a in n?n[a]=i:o(a,i)}}},cr="!",da=":",ld=[],ua=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),cd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,l=0,c=0,d;const u=o.length;for(let p=0;p<u;p++){const v=o[p];if(i===0&&l===0){if(v===da){a.push(o.slice(c,p)),c=p+1;continue}if(v==="/"){d=p;continue}}v==="["?i++:v==="]"?i--:v==="("?l++:v===")"&&l--}const f=a.length===0?o:o.slice(c);let g=f,m=!1;f.endsWith(cr)?(g=f.slice(0,-1),m=!0):f.startsWith(cr)&&(g=f.slice(1),m=!0);const b=d&&d>c?d-c:void 0;return ua(a,m,g,b)};if(t){const o=t+da,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):ua(ld,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},dd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const i=n[a],l=i[0]==="[",c=t.has(i);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},ud=e=>({cache:id(e.cacheSize),parseClassName:cd(e),sortModifiers:dd(e),...Jc(e)}),fd=/\s+/,hd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(fd);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:g,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:p}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let v=!!p,w=r(v?b.substring(0,p):b);if(!w){if(!v){c=u+(c.length>0?" "+c:c);continue}if(w=r(b),!w){c=u+(c.length>0?" "+c:c);continue}v=!1}const y=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=m?y+cr:y,N=x+w;if(i.indexOf(N)>-1)continue;i.push(N);const S=o(w,v);for(let M=0;M<S.length;++M){const A=S[M];i.push(x+A)}c=u+(c.length>0?" "+c:c)}return c},pd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=fa(n))&&(o&&(o+=" "),o+=r);return o},fa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=fa(e[r]))&&(n&&(n+=" "),n+=t);return n},gd=(e,...t)=>{let n,r,o,a;const i=c=>{const d=t.reduce((u,f)=>f(u),e());return n=ud(d),r=n.cache.get,o=n.cache.set,a=l,l(c)},l=c=>{const d=r(c);if(d)return d;const u=hd(c,n);return o(c,u),u};return a=i,(...c)=>a(pd(...c))},md=[],ie=e=>{const t=n=>n[e]||md;return t.isThemeGetter=!0,t},ha=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vd=/^\d+\/\d+$/,bd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yd=/\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$/,wd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pt=e=>vd.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>!!e&&Number.isInteger(Number(e)),dr=e=>e.endsWith("%")&&q(e.slice(0,-1)),Ye=e=>bd.test(e),Nd=()=>!0,Sd=e=>yd.test(e)&&!wd.test(e),ga=()=>!1,Ad=e=>xd.test(e),kd=e=>Cd.test(e),Pd=e=>!I(e)&&!L(e),Ed=e=>gt(e,wa,ga),I=e=>ha.test(e),ot=e=>gt(e,xa,Sd),ur=e=>gt(e,Od,q),ma=e=>gt(e,ba,ga),_d=e=>gt(e,ya,kd),dn=e=>gt(e,Ca,Ad),L=e=>pa.test(e),Lt=e=>mt(e,xa),Md=e=>mt(e,Id),va=e=>mt(e,ba),Td=e=>mt(e,wa),Dd=e=>mt(e,ya),un=e=>mt(e,Ca,!0),gt=(e,t,n)=>{const r=ha.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},mt=(e,t,n=!1)=>{const r=pa.exec(e);return r?r[1]?t(r[1]):n:!1},ba=e=>e==="position"||e==="percentage",ya=e=>e==="image"||e==="url",wa=e=>e==="length"||e==="size"||e==="bg-size",xa=e=>e==="length",Od=e=>e==="number",Id=e=>e==="family-name",Ca=e=>e==="shadow",Ld=gd(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),a=ie("leading"),i=ie("breakpoint"),l=ie("container"),c=ie("spacing"),d=ie("radius"),u=ie("shadow"),f=ie("inset-shadow"),g=ie("text-shadow"),m=ie("drop-shadow"),b=ie("blur"),p=ie("perspective"),v=ie("aspect"),w=ie("ease"),y=ie("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...N(),L,I],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],k=()=>[L,I,c],$=()=>[pt,"full","auto",...k()],G=()=>[Ke,"none","subgrid",L,I],T=()=>["auto",{span:["full",Ke,L,I]},Ke,L,I],W=()=>[Ke,"auto",L,I],Y=()=>["auto","min","max","fr",L,I],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...k()],_=()=>[pt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],C=()=>[e,L,I],Z=()=>[...N(),va,ma,{position:[L,I]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",Td,Ed,{size:[L,I]}],ve=()=>[dr,Lt,ot],te=()=>["","none","full",d,L,I],ae=()=>["",q,Lt,ot],he=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[q,dr,va,ma],ne=()=>["","none",b,L,I],K=()=>["none",q,L,I],Q=()=>["none",q,L,I],X=()=>[q,L,I],re=()=>[pt,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ye],breakpoint:[Ye],color:[Nd],container:[Ye],"drop-shadow":[Ye],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ye],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ye],shadow:[Ye],spacing:["px",q],text:[Ye],"text-shadow":[Ye],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pt,I,L,v]}],container:["container"],columns:[{columns:[q,I,L,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:S()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",L,I]}],basis:[{basis:[pt,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,pt,"auto","initial","none",I]}],grow:[{grow:["",q,L,I]}],shrink:[{shrink:["",q,L,I]}],order:[{order:[Ke,"first","last","none",L,I]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[l,"screen",..._()]}],"min-w":[{"min-w":[l,"screen","none",..._()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,Lt,ot]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,ur]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dr,I]}],"font-family":[{font:[Md,I,t]}],"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:[o,L,I]}],"line-clamp":[{"line-clamp":[q,"none",L,ur]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",L,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",L,ot]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[q,"auto",L,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,I]}],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",L,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Z()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,L,I],radial:["",L,I],conic:[Ke,L,I]},Dd,_d]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,L,I]}],"outline-w":[{outline:["",q,Lt,ot]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,un,dn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,un,dn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[q,ot]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,un,dn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[q,L,I]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[L,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Z()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,I]}],filter:[{filter:["","none",L,I]}],blur:[{blur:ne()}],brightness:[{brightness:[q,L,I]}],contrast:[{contrast:[q,L,I]}],"drop-shadow":[{"drop-shadow":["","none",m,un,dn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",q,L,I]}],"hue-rotate":[{"hue-rotate":[q,L,I]}],invert:[{invert:["",q,L,I]}],saturate:[{saturate:[q,L,I]}],sepia:[{sepia:["",q,L,I]}],"backdrop-filter":[{"backdrop-filter":["","none",L,I]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[q,L,I]}],"backdrop-contrast":[{"backdrop-contrast":[q,L,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,L,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,L,I]}],"backdrop-invert":[{"backdrop-invert":["",q,L,I]}],"backdrop-opacity":[{"backdrop-opacity":[q,L,I]}],"backdrop-saturate":[{"backdrop-saturate":[q,L,I]}],"backdrop-sepia":[{"backdrop-sepia":["",q,L,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",L,I]}],ease:[{ease:["linear","initial",w,L,I]}],delay:[{delay:[q,L,I]}],animate:[{animate:["none",y,L,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,L,I]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[L,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",L,I]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",L,I]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[q,Lt,ot,ur]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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 E(...e){return Ld(aa(e))}const fn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M20 8L12 16L4 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Fd=jc;function Wd({className:e,...t}){return s.jsx(Gc,{className:E("border-b border-gray-200 last:border-b-0",e),...t})}function Bd({className:e,children:t,...n}){return s.jsx(Uc,{className:"flex",children:s.jsxs(Kc,{className:E("flex flex-1 items-center justify-between py-3 sm:py-4 text-left","text-sm sm:text-base font-medium text-gray-900 transition-colors","hover:text-main-900","focus:outline-none focus-visible:ring-2 focus-visible:ring-main-500 focus-visible:ring-offset-2 rounded-1","[&[data-state=open]>svg]:rotate-180","cursor-pointer",e),...n,children:[t,s.jsx(fn,{className:E("h-4 w-4 sm:h-5 sm:w-5 shrink-0 text-gray-500 transition-transform duration-200")})]})})}function zd({className:e,children:t,...n}){return s.jsx(Qc,{className:E("overflow-hidden text-gray-700","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"),...n,children:s.jsx("div",{className:E("pb-3 sm:pb-4 pt-0 text-sm sm:text-base",e),children:t})})}var $d=Symbol.for("react.lazy"),hn=h[" use ".trim().toString()];function Hd(e){return typeof e=="object"&&e!==null&&"then"in e}function Na(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$d&&"_payload"in e&&Hd(e._payload)}function Vd(e){const t=jd(e),n=h.forwardRef((r,o)=>{let{children:a,...i}=r;Na(a)&&typeof hn=="function"&&(a=hn(a._payload));const l=h.Children.toArray(a),c=l.find(Ud);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...i,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Yd=Vd("Slot");function jd(e){const t=h.forwardRef((n,r)=>{let{children:o,...a}=n;if(Na(o)&&typeof hn=="function"&&(o=hn(o._payload)),h.isValidElement(o)){const i=Qd(o),l=Kd(a,o.props);return o.type!==h.Fragment&&(l.ref=r?Rn(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gd=Symbol("radix.slottable");function Ud(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gd}function Kd(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Qd(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)}const Sa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Aa=aa,at=(e,t)=>n=>{var r;if(t?.variants==null)return Aa(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const u=n?.[d],f=a?.[d];if(u===null)return null;const g=Sa(u)||Sa(f);return o[d][g]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,g]=u;return g===void 0||(d[f]=g),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:g,...m}=u;return Object.entries(m).every(b=>{let[p,v]=b;return Array.isArray(v)?v.includes({...a,...l}[p]):{...a,...l}[p]===v})?[...d,f,g]:d},[]);return Aa(e,i,c,n?.class,n?.className)},pn=at("leading-none",{variants:{size:{display1:"text-5xl",display2:"text-4xl",heading1:"text-3xl",heading2:"text-2xl",body1:"text-xl",body2:"text-lg",caption1:"text-base",caption2:"text-sm",caption3:"text-xs",pageTitle:"text-3xl"},weight:{bold:"font-bold",medium:"font-medium",regular:"font-normal",light:"font-light"}},defaultVariants:{size:"body2",weight:"medium"}});function F({className:e,size:t,weight:n,as:r="span",...o}){return s.jsx(r,{className:E(pn({size:t,weight:n,className:e})),...o})}const qd=at("inline-flex cursor-pointer items-center justify-center gap-2 rounded-3 border border-transparent transition-colors duration-200 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-main-800 text-white hover:bg-main-600 disabled:bg-main-400 disabled:text-white",outlined:"bg-white text-gray-800 border-gray-300 hover:bg-gray-100 disabled:bg-gray-200 disabled:text-gray-400",secondary:"bg-white text-gray-800 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400",ghost:"bg-transparent text-gray-800 hover:bg-gray-100 disabled:text-gray-400"},size:{small:"h-9 px-3.5",medium:"h-11 px-3.5",large:"h-13 px-5",icon:"h-9 w-9 p-0"}},defaultVariants:{variant:"default",size:"large"}});function fe({className:e,variant:t="default",size:n="large",asChild:r=!1,disabled:o=!1,...a}){const i=r?Yd:"button",l=t??"default",c=n??"large",d={small:{size:"caption2",weight:"bold"},medium:{size:"caption1",weight:"bold"},large:{size:"body2",weight:"bold"},icon:{size:"caption1",weight:"bold"}},u=c!=="icon"&&(typeof a.children=="string"||typeof a.children=="number");return s.jsx(i,{"data-slot":"button",className:E(qd({variant:l,size:c,className:e})),disabled:o,...a,children:u?s.jsx(F,{size:d[c].size,weight:d[c].weight,children:a.children}):a.children})}function Ft({imageUrl:e,size:t="md",className:n}){const r={sm:"w-10 h-10",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-20 h-20"},o="/DefaultProfile.png",[a,i]=P.useState(!0);P.useEffect(()=>{i(!0)},[e]);const l=typeof e=="string"&&/^(\/|https?:\/\/)/.test(e);return s.jsx("div",{className:E("relative overflow-hidden rounded-full",r[t],n),children:s.jsx(It,{src:!e||!l||!a?o:e,alt:"avatar",fill:!0,className:"object-cover",onError:()=>i(!1)})})}const Xd=e=>s.jsxs("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("rect",{width:"60",height:"60",fill:"url(#pattern0_3714_3925)"}),s.jsxs("defs",{children:[s.jsx("pattern",{id:"pattern0_3714_3925",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:s.jsx("use",{xlinkHref:"#image0_3714_3925",transform:"translate(-0.1 -0.1) scale(0.0125)"})}),s.jsx("image",{id:"image0_3714_3925",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAGy0lEQVR4Ae2dT2gcVRzHk6wR1nQJkYZqsnR3kbIoLRbsJafQg4b0kJMHPVmCh4pQb/Wo1+ZWQexBigVBzz00tB6KJy8RFAsSetjd/G1I0IQkLhg28fszb0uyO/Peb9682dmd+T0YZue9N7/f+32+M2/+v+3rkyQEhIAQEAJCQAgIASEgBIRA2gj0d3PA4+Pj+cHBwXeOjo4u9vf3X8C8iPa+hulVTGcwvYyJ0r+Y9jD9hek56lZR9xnmTw8ODn5dXV1dQX5Xpq4SoFwu5+r1+jRITQPeVcwLjqjVIMgT2JrPZrPzi4uLu47shjbTDQJkCoXCFCKZxXQNUzZ0VHoDdRQ/xHSvVqs9wryhrx5taWwCjI6OnhkaGvoYW+ZnCLEYbZi+1qvY0+7s7+9/u7m5SV1Yx1PHBRgbG3sF/fqniPQWprMdj9jb4Ray53C8+Hptbe0f7yrR5HZUgGKx+AG2+NsI5Xw04YS2uoQ94vNqtfpjaEtMAx0RAH18CYHdBfz3mO2KtRra+hhtvYFjRCXqhmSidoCt/jp8PMD0VtS+HNp/A7ZmR0ZG1re3t39zaLfNVGR7QD6fzw4MDHyDremjNq89lIE94f7h4eEnKysrdPbkPEUiALqc19FS2uqvOG9xPAYX4HYGXdK6a/fOBSiVSmVsMXR+7eoiynXMtvZq2KOnKpXKoq0Br/UGvDJt89DtXAL8n7F+0uATkgLFRjHa8vFaz9keoLZ8gn/Oy1GC8jawJ0y62hOcCKD6/F8AOYlbvte2U0PmhItjQuguiM520Bg64KYFPglCsT5QsdOydQotAJ1qwntSznaCgLyiYg+yTlvdUBdi6iLrizarKcnANc5lXKzVwlysWR8D6PYCOP+OKZcS3n5h0rOFt21vW1h3QXRvR+D/r0lOsfATSJtvJYC6q9kTN9a00TsqpJuMxMTGXOAuSN3P/xPOYrmljF1d22Z0jUc2IByss4TnCW8GfZ4QeA9QD1Nige8AUpQmzis2gXwEEoAeI8I6PcmS5E3glmLkXeqRG0gAeoYLG93yGNEjnNizzipG7IYEESCDgw09QJekIaAYsa+v2ALg4EavjhQ1vqXomEBRsWLxYAsAa7Msi1KJCLBZsQSgN9ZglF6aksQjcE0xM9ZmCaBeF4z6jTVjY3uoQlYxMzaZJQCsTBstSYVWAixmLAFwr+Nqq3VZ1hPgMjMKQK+Iw1WaHrboyfJLC4qddg2jAPR+vtaCFPoS4LAzCoALi4u+HqRAS4DDzigA+rILWi9S6EuAw84oAFQs+nqQAi0BDruXtBaOC+mbLGfJdD8/rKOw9h0/TzCyM+4BAEIfxEmyI2BkxxGAngFIsiNgZMcRoPkpqF0T0r2WkR1HgHQjjDh6jgD0EbQkOwJGdhwB9ux8y1ogYGTHEYA+/5dkR8DIjnMd8By+y3b+29cKe55tOs8Pa7+9xaFyiJ02GfcAXE5XtRak0JcAh51RAFxOP/P1IAVaAhx2RgGg4lOtFyn0JcBhZxSAxtvx9SAFWgIcdkYB1GBHNa0nKfQiUOMMFGUUgCyjL3vi5UHy/AlwmbEEgJt5f1dS4kOAxYwlAA3zBSd1H0eS3U6grpi1l7TksARQY6zRMF+SeAQecselYwmgfN7j+ZZaIMBmxRYAtwBoAI6q4DUSqCpWxopUgS0A6jZwYXGHZTXFlRQj9kiMQQToo9EFwXYrxXxNoW8pRqZ6L8oDCaCGdpx7sbb8aCUwF3T4y0ACkDca2hGzpVbPstxHn6kSm0BJ+82tnyX1ofYPfuVpzEff/6HNcJdWAhBgiPAIl9vytTxYAP5jwKdv6AKnwF1Q0wPg38DvrhkEu9muGOa7ioWVa2sBcK5bgfI3rbwmaCViQCxsQ2J/z+rlgMbJGR4eLqERl73Kk56HLf8+4H8ZJk7rPaDplAY1xe+F5nKK5gsq9lAhhxZAjSg7g1ak6aENxTrjYjTd0AKQ/NgN12lQU/zcoOWEJxq2copidhGn9Wmol3Ma1DSTyfyEsnNe5QnI22g0Gu9iy//DVSxO9oBmY6hh2DomsZzE7oiGLp50CZ+4ORWADKoRZSfwM0kHZoplwtVoucSpmUKdhjaNtM53dnb2crnc9zg9zff6KSqdauJs5/3l5eW/W+N0sez0GODVINyyuI4gvkJZrw1vuYuN5yZuMXznFZervMgFoIbihdkSgpG/MPFQrSMCNP2qu6i3sdytg/4l8098mgLQXP7G6iQN3Ek9vdi5Jfkjt2PWsQlwQmr5K8MTMGL9ScN8yZ95xirBaedp+Dvb0xHLkhAQAkJACAgBISAEhIAQEAJpIPAfJpcfclVEKqsAAAAASUVORK5CYII="})]})]}),ka=e=>s.jsx(le.Bell,{...e}),Zd=e=>s.jsx(le.BookOpen,{...e}),Pa=e=>s.jsx(le.CalendarDays,{...e}),Jd=e=>s.jsx(le.Dumbbell,{...e}),Rd=e=>s.jsx(le.Flag,{...e}),Ea=e=>s.jsx(le.Flame,{...e}),eu=e=>s.jsx(le.Code2,{...e}),vt=({strokeWidth:e=14,...t})=>s.jsx("svg",{width:"65",height:"50",viewBox:"0 0 65 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:s.jsx("path",{d:"M57.5 7.5L23.125 41.875L7.5 26.25",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})}),tu=e=>s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M0 0.6C0 0.268629 0.268629 0 0.6 0H6C7.10457 0 8 0.895431 8 2V7.4C8 7.73137 7.73137 8 7.4 8C7.06863 8 6.8 7.73137 6.8 7.4V2.2C6.8 1.64772 6.35228 1.2 5.8 1.2H0.6C0.268629 1.2 0 0.931371 0 0.6Z",fill:"currentColor"})}),fr=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M16 20L8 12L16 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),gn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M8 4L16 12L8 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),_a=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M4 16L12 8L20 16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),mn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M18 6L6 18M18 18L6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),nu=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ru=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.01759 11.1645C4.0676 6.79251 8.02225 4.5 11.9841 4.5C16.6371 4.5 20.6453 7.53129 23.0101 11.1836L23.0112 11.1853C23.1677 11.4285 23.2509 11.7115 23.2509 12.0007C23.2509 12.2893 23.168 12.5719 23.012 12.8147C20.6493 16.5141 16.6671 19.5 11.9841 19.5C7.2513 19.5 3.3458 16.5203 0.988892 12.8317C0.828743 12.583 0.745679 12.2925 0.750173 11.9968C0.754679 11.7002 0.846976 11.4117 1.0154 11.1676L1.01759 11.1645ZM2.25001 12.0196L2.25208 12.0228C4.42901 15.4304 7.91813 18 11.9841 18C16.0045 18 19.5689 15.4195 21.7484 12.0065L21.7498 12.0043C21.7505 12.0032 21.7509 12.002 21.7509 12.0007C21.7509 12.0002 21.7508 11.9996 21.7507 11.9991C21.7505 11.9985 21.7503 11.9979 21.7499 11.9973C19.5621 8.61915 15.9686 6 11.9841 6C8.63995 6 5.10025 7.93555 2.25001 12.0196Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9ZM7.5 12C7.5 9.51472 9.51472 7.5 12 7.5C14.4853 7.5 16.5 9.51472 16.5 12C16.5 14.4853 14.4853 16.5 12 16.5C9.51472 16.5 7.5 14.4853 7.5 12Z",fill:"currentColor"})]}),ou=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.2501 21.0001C20.1516 21.0003 20.054 20.9809 19.963 20.9432C19.872 20.9054 19.7894 20.8501 19.7199 20.7803L3.21994 4.28025C3.08522 4.13845 3.01123 3.94964 3.01373 3.75407C3.01624 3.5585 3.09504 3.37164 3.23334 3.23334C3.37164 3.09504 3.5585 3.01624 3.75407 3.01373C3.94964 3.01123 4.13845 3.08522 4.28025 3.21994L20.7803 19.7199C20.8851 19.8248 20.9564 19.9584 20.9854 20.1039C21.0143 20.2493 20.9994 20.4001 20.9427 20.5371C20.8859 20.6741 20.7899 20.7912 20.6666 20.8736C20.5433 20.956 20.3984 21 20.2501 21.0001Z",fill:"currentColor"}),s.jsx("path",{d:"M11.984 18.0002C10.0392 18.0002 8.16371 17.4245 6.40965 16.2892C4.81261 15.258 3.37496 13.7809 2.25183 12.0236V12.0198C3.18652 10.6806 4.21027 9.54812 5.30996 8.635C5.31991 8.62668 5.32802 8.61639 5.33379 8.60478C5.33956 8.59317 5.34285 8.58048 5.34347 8.56753C5.34409 8.55458 5.34201 8.54164 5.33737 8.52953C5.33273 8.51742 5.32563 8.50641 5.31652 8.49719L4.38277 7.56484C4.36618 7.54811 4.34389 7.53824 4.32035 7.5372C4.29682 7.53616 4.27375 7.54402 4.25574 7.55922C3.08761 8.54359 2.0034 9.75109 1.01761 11.1648C0.848014 11.4083 0.754608 11.6966 0.749266 11.9932C0.743924 12.2899 0.826888 12.5814 0.987615 12.8308C2.22558 14.7681 3.81886 16.3998 5.59449 17.5487C7.59371 18.8439 9.74527 19.5002 11.984 19.5002C13.1924 19.4964 14.3923 19.2973 15.5371 18.9105C15.5522 18.9053 15.5658 18.8965 15.5765 18.8846C15.5872 18.8728 15.5947 18.8585 15.5983 18.8429C15.602 18.8274 15.6015 18.8112 15.5972 18.7959C15.5928 18.7805 15.5845 18.7666 15.5732 18.7553L14.5617 17.7437C14.5384 17.721 14.5096 17.7048 14.4781 17.6965C14.4466 17.6883 14.4136 17.6884 14.3821 17.6969C13.5987 17.8986 12.793 18.0005 11.984 18.0002Z",fill:"currentColor"}),s.jsx("path",{d:"M23.0081 11.1844C21.7678 9.26625 20.1586 7.63688 18.3548 6.47203C16.3594 5.18203 14.1562 4.5 11.9841 4.5C10.7884 4.50212 9.60172 4.70543 8.47358 5.10141C8.45855 5.10664 8.4451 5.11561 8.4345 5.12747C8.42389 5.13934 8.41648 5.15371 8.41296 5.16923C8.40945 5.18475 8.40994 5.20091 8.41439 5.21619C8.41885 5.23147 8.42712 5.24536 8.43843 5.25656L9.44858 6.26672C9.4721 6.28984 9.5013 6.30634 9.53323 6.31457C9.56516 6.3228 9.5987 6.32246 9.63046 6.31359C10.3978 6.10602 11.1891 6.00058 11.9841 6C13.8914 6 15.7612 6.58266 17.5411 7.73438C19.1681 8.78438 20.6226 10.26 21.7486 12C21.7494 12.0011 21.7499 12.0024 21.7499 12.0037C21.7499 12.0051 21.7494 12.0064 21.7486 12.0075C20.9313 13.2942 19.9171 14.4446 18.743 15.4167C18.7329 15.425 18.7247 15.4353 18.7188 15.4469C18.713 15.4586 18.7096 15.4713 18.7089 15.4843C18.7083 15.4973 18.7103 15.5103 18.715 15.5225C18.7196 15.5347 18.7268 15.5457 18.7359 15.555L19.6687 16.4873C19.6852 16.504 19.7074 16.5139 19.7308 16.515C19.7543 16.5161 19.7773 16.5084 19.7953 16.4934C21.0487 15.4381 22.1337 14.1975 23.0128 12.8147C23.1682 12.571 23.2503 12.2878 23.2495 11.9988C23.2487 11.7098 23.1649 11.4272 23.0081 11.1844Z",fill:"currentColor"}),s.jsx("path",{d:"M12.0002 7.5C11.6632 7.49982 11.3271 7.53756 10.9985 7.6125C10.9819 7.61595 10.9666 7.62383 10.9541 7.63531C10.9416 7.64679 10.9325 7.66144 10.9277 7.6777C10.9229 7.69395 10.9226 7.71121 10.9268 7.72763C10.931 7.74405 10.9396 7.75901 10.9516 7.77094L16.2293 13.0472C16.2412 13.0592 16.2562 13.0678 16.2726 13.0721C16.289 13.0763 16.3063 13.076 16.3225 13.0712C16.3388 13.0663 16.3534 13.0572 16.3649 13.0447C16.3764 13.0323 16.3843 13.0169 16.3877 13.0003C16.538 12.3413 16.5379 11.6568 16.3873 10.9979C16.2368 10.3389 15.9397 9.72228 15.5182 9.19385C15.0967 8.66542 14.5615 8.23874 13.9525 7.9455C13.3435 7.65226 12.6762 7.49999 12.0002 7.5Z",fill:"currentColor"}),s.jsx("path",{d:"M7.77091 10.9526C7.75899 10.9406 7.74402 10.932 7.7276 10.9278C7.71118 10.9235 7.69392 10.9238 7.67767 10.9287C7.66141 10.9335 7.64676 10.9426 7.63528 10.9551C7.6238 10.9675 7.61592 10.9829 7.61247 10.9995C7.44248 11.7422 7.46382 12.5158 7.67451 13.248C7.88519 13.9801 8.27832 14.6468 8.81704 15.1855C9.35577 15.7243 10.0224 16.1174 10.7546 16.3281C11.4868 16.5388 12.2604 16.5601 13.0031 16.3901C13.0197 16.3867 13.035 16.3788 13.0475 16.3673C13.06 16.3558 13.0691 16.3412 13.0739 16.3249C13.0787 16.3087 13.0791 16.2914 13.0748 16.275C13.0706 16.2586 13.062 16.2436 13.05 16.2317L7.77091 10.9526Z",fill:"currentColor"})]}),au=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M6 12H18M6 6H18M6 18H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ma=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),Ta=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"})}),su=e=>s.jsx(le.Laptop,{...e}),hr=e=>s.jsx(le.LogIn,{...e}),Wt=e=>s.jsxs("svg",{width:"48",height:"80",viewBox:"0 0 48 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M0 78.622V15.4757C0 14.1285 1.72603 13.5819 2.49497 14.6855L46.4899 77.8318C47.1262 78.7453 46.4759 79.9999 45.3664 79.9999H1.37144C0.614016 79.9999 0 79.3833 0 78.622Z",fill:"currentColor"}),s.jsx("path",{d:"M48 78.622V15.4757C48 14.1285 46.274 13.5819 45.505 14.6855L1.51006 77.8318C0.873795 78.7453 1.52406 79.9999 2.63359 79.9999H46.6285C47.386 79.9999 48 79.3833 48 78.622Z",fill:"currentColor"}),s.jsx("path",{d:"M23.3378 0.511435L21.3598 7.96401C21.2965 8.20239 21.1111 8.38861 20.8739 8.4522L13.4563 10.4396C12.7776 10.6214 12.7776 11.5891 13.4563 11.7709L20.8739 13.7583C21.1111 13.8218 21.2965 14.0081 21.3598 14.2464L23.3378 21.699C23.5188 22.3809 24.4819 22.3809 24.6629 21.699L26.6409 14.2464C26.7042 14.0081 26.8896 13.8218 27.1268 13.7583L34.5444 11.7709C35.2231 11.5891 35.2231 10.6214 34.5444 10.4396L27.1268 8.4522C26.8896 8.38861 26.7042 8.20239 26.6409 7.96401L24.6629 0.511435C24.4819 -0.170478 23.5188 -0.170478 23.3378 0.511435Z",fill:"currentColor"})]}),iu=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),lu=e=>s.jsx(le.Palette,{...e}),Da=e=>s.jsx(le.Users,{...e}),vn=e=>s.jsx(le.PencilLine,{...e}),Bt=e=>s.jsx(le.UserRound,{...e}),cu=e=>s.jsxs("svg",{width:"36",height:"60",viewBox:"0 0 36 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("rect",{width:"36",height:"60",fill:"url(#pattern0_3714_3923)"}),s.jsxs("defs",{children:[s.jsx("pattern",{id:"pattern0_3714_3923",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:s.jsx("use",{xlinkHref:"#image0_3714_3923",transform:"matrix(0.0208333 0 0 0.0125 -0.5 -0.15)"})}),s.jsx("image",{id:"image0_3714_3923",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAACZUlEQVR4Ae2bUU7CUBBFqa6AFcBS2Jm4M5cCO2AH1X6QkEFqrrm9Q/WYGJ12mNt3Dk3aj7fZ8AMBCEAAAhCAAAQgAAEIQAACEIAABCDwXwgM6YXudrsxnanknc/nKJMX5eLo9RNAgJ+pNBEBEi5/MwL8TKWJCJBw+ZsR4GcqTUSAhMvfHH3m/e7yu98L0s/9lQF3QCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhOtWAfv9/hhe711c9zW83l1R6MC08HEc30JxczGH7XY7XC6Xj7mmpc61CHgi+FeubRLiAp4QfquEqIAnht8mISZgBfBbJEQErAh+XMLiAlYIPyph8T1i3XvArjR/+3fpPWStL2K/hfKXPoeAZpsIQEAzgeZ47gAENBNojucOaBaw+HuAe30/vVcs/dzuXg93gJuoOA8BIjB3OwLcRMV5CBCBudsR4CYqzkOACMzdjgA3UXEeAkRg7nYEuImK8xAgAnO3I8BNVJyHABGYux0BbqLiPASIwNztCHATFechQATmbkeAm6g4DwEiMHc7AtxExXkIEIG52xHgJirOQ4AIzN2OADdRcd7qBAzD8P5ojXPnHn2m+/jiO2TcC5z28077er/mHm5nT/BPp9Px9tga/l+dgAlqlbBW+Gv4gsxe47T/bPqdbeIkBCAAAQhA4EkJfAJCj18c5aGGIQAAAABJRU5ErkJggg=="})]})]}),du=e=>s.jsx(le.Plane,{...e}),uu=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 5V19M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),fu=e=>s.jsx(le.Salad,{...e}),Oa=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M20 20L16.5 16.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),pr=e=>s.jsx(le.Settings,{...e}),hu={AddCircle:Xd,Bell:ka,BookOpen:Zd,Calendar:Pa,Check:vt,Code2:eu,Chevron:tu,ChevronDown:fn,ChevronLeft:fr,ChevronRight:gn,ChevronUp:_a,Close:mn,Dumbbell:Jd,Endless:nu,Eye:ru,EyeOff:ou,Flag:Rd,Flame:Ea,HamburgerMenu:au,Heart:Ma,HeartFilled:Ta,Laptop:su,LogIn:hr,Logo:Wt,Minus:iu,Palette:lu,People:Da,PencilLine:vn,Person:Bt,Pin:cu,Plane:du,Plus:uu,Salad:fu,Search:Oa,Settings:pr,Target:e=>s.jsx(le.Target,{...e}),Trophy:e=>s.jsx(le.Trophy,{...e})};function Ia({name:e,size:t,width:n,height:r,...o}){const a=hu[e],i=n??t,l=r??t;return s.jsx(a,{width:i,height:l,...o})}function pu({baseSize:e,radius:t,strokeWidth:n,circumference:r,dashOffset:o,className:a}){return s.jsx("svg",{viewBox:`0 0 ${e} ${e}`,className:E("rounded-full",a),children:s.jsx("circle",{cx:e/2,cy:e/2,r:t,fill:"none",className:"stroke-main-800",strokeWidth:n,strokeDasharray:r,strokeDashoffset:o,transform:`rotate(-100 ${e/2} ${e/2})`,style:{transition:"stroke-dashoffset 800ms cubic-bezier(0.2, 0.7, 0.1, 1)"},strokeLinecap:"round"})})}const gu=[{key:"home",label:"홈"},{key:"explore",label:"탐색"},{key:"challenge",label:"챌린지"},{key:"diary",label:"일지"}];function mu({brandName:e="1D1S",logo:t,navItems:n=gu,activeKey:r="challenge",showProfile:o=!0,profileImage:a,className:i,onLogoClick:l,onNavChange:c,onNotificationClick:d,onProfileClick:u}){const f=t??s.jsx(Wt,{className:"h-5 w-3.5 text-white","aria-hidden":!0});return s.jsx("header",{className:E("w-full rounded-4 border border-gray-200 bg-white px-6 py-4",i),children:s.jsxs("div",{className:"flex items-center justify-between gap-5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-8",children:[s.jsxs("button",{type:"button",onClick:l,className:"inline-flex shrink-0 cursor-pointer items-center gap-2","aria-label":"홈으로 이동",children:[s.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-3 bg-main-800",children:f}),s.jsx(F,{size:"heading2",weight:"bold",className:"text-gray-900",children:e})]}),s.jsx("nav",{className:"min-w-0 overflow-x-auto","aria-label":"주요 메뉴",children:s.jsx("ul",{className:"flex items-center gap-6 whitespace-nowrap",children:n.map(g=>{const m=g.key===r;return s.jsx("li",{children:s.jsx("button",{type:"button",disabled:g.disabled,"aria-current":m?"page":void 0,onClick:()=>c?.(g.key),className:E("cursor-pointer transition-colors",g.disabled&&"cursor-not-allowed opacity-50",!g.disabled&&"hover:text-main-700"),children:s.jsx(F,{size:"body2",weight:m?"bold":"medium",className:E(m?"text-main-800":"text-gray-600"),children:g.label})})},g.key)})})})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[s.jsx(fe,{type:"button",variant:"ghost",size:"icon",onClick:d,"aria-label":"알림",className:"cursor-pointer text-gray-700 hover:text-gray-900",children:s.jsx(ka,{className:"h-4 w-4"})}),o?s.jsx("button",{type:"button",onClick:u,"aria-label":"프로필 열기",className:"cursor-pointer rounded-full",children:s.jsx(Ft,{imageUrl:a,size:"sm",className:"ring-2 ring-mint-900/30"})}):null]})]})})}const vu="banner",bu="#FF6D2D",yu="#FF9A3E";function wu({items:e,autoSlideIntervalMs:t=5e3,initialIndex:n=0,enableLoop:r=!0,showIndicators:o=!0,aspectRatioClassName:a="aspect-[4/1]",componentId:i,enableDataLayerTracking:l=!1,impressionMode:c="once",onBannerClick:d,onBannerImpression:u,onBannerChange:f,onItemClick:g,className:m,...b}){const p=e.length,v=P.useMemo(()=>p===0||n<0?0:n>p-1?p-1:n,[n,p]),w=r&&p>1,y=P.useMemo(()=>{if(p===0)return[];if(!w)return e;const[T]=e,[W]=e.slice(-1);return[W,...e,T]},[w,p,e]),[x,N]=P.useState(w?v+1:v),[S,M]=P.useState(!0);P.useEffect(()=>{N(w?v+1:v)},[w,v,p]),P.useEffect(()=>{if(p<=1||t<=0)return;const T=window.setInterval(()=>{N(W=>W+1)},t);return()=>window.clearInterval(T)},[t,p]),P.useEffect(()=>{if(S)return;const T=window.setTimeout(()=>{M(!0)},30);return()=>window.clearTimeout(T)},[S]);const A=p===0?0:((x-(w?1:0)+p)%p+p)%p,k=P.useRef(new Set),$=P.useCallback((T,W,Y)=>{const j=W.id===void 0?`${Y}`:String(W.id),z={event:T,componentId:i,bannerId:j,bannerIndex:Y,bannerType:W.type,bannerTitle:W.title,bannerSubtitle:W.subtitle,timestamp:Date.now()};if(T==="click"&&d?.(z),T==="impression"&&u?.(z),T==="change"&&f?.(z),l&&typeof window<"u"){const B=window;Array.isArray(B.dataLayer)&&B.dataLayer.push({event:`${vu}_${T}`,component_id:i??"banner-carousel",banner_id:z.bannerId,banner_index:z.bannerIndex,banner_type:z.bannerType,banner_title:z.bannerTitle,banner_subtitle:z.bannerSubtitle,timestamp:z.timestamp})}},[i,l,f,d,u]);P.useEffect(()=>{if(p===0)return;const T=e[A];if(!T)return;$("change",T,A);const W=`${T.id===void 0?`${A}`:String(T.id)}-${A}`,Y=k.current.has(W);c==="once"&&Y||(k.current.add(W),$("impression",T,A))},[A,$,c,p,e]);const G=()=>{if(w){if(x===p+1){M(!1),N(1);return}x===0&&(M(!1),N(p))}};return p===0?null:s.jsx("div",{className:E("w-full",m),...b,children:s.jsxs("div",{className:"relative overflow-hidden rounded-4",children:[s.jsx("div",{className:E("flex",S&&"transition-transform duration-500 ease-out"),style:{transform:`translateX(-${x*100}%)`},onTransitionEnd:G,children:y.map((T,W)=>{const Y=T.backgroundImageUrl??T.backgroundImage,j=!!(Y&&Y.trim().length>0),z=p===0?0:(W-(w?1:0)+p)%p,B=T.id===void 0?`${z}-${W}`:String(T.id);return s.jsxs("button",{type:"button",onClick:()=>{$("click",T,z),g?.(T,z)},"data-banner-id":T.id===void 0?`${z}`:String(T.id),"data-banner-index":z,"data-banner-type":T.type,"data-banner-title":T.title,"data-banner-image-url":Y??"",className:E("relative w-full shrink-0 overflow-hidden p-6 text-left text-white transition hover:brightness-105","cursor-pointer",a),style:{backgroundImage:`linear-gradient(to right, ${bu}, ${yu})`},children:[j?s.jsxs(s.Fragment,{children:[s.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${Y})`}}),s.jsx("div",{className:"absolute inset-0 bg-black/28"})]}):null,s.jsx("div",{className:"pointer-events-none absolute -top-10 -right-8 h-36 w-36 rounded-full bg-white/15 blur-2xl"}),s.jsxs("div",{className:"relative flex h-full flex-col justify-between",children:[s.jsx(F,{size:"caption3",weight:"medium",className:"text-white/85",children:T.type}),s.jsxs("div",{className:"flex items-end justify-between gap-4",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(F,{size:"heading1",weight:"bold",className:"line-clamp-1 text-white",children:T.title}),s.jsx(F,{size:"body2",weight:"medium",className:"line-clamp-1 text-white/90",children:T.subtitle})]}),s.jsx(F,{size:"heading1",weight:"bold",className:"text-white",children:"→"})]})]})]},`${B}-${W}`)})}),o?s.jsx("div",{className:"pointer-events-none absolute right-4 bottom-3 left-4 flex justify-center",children:s.jsx("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-black/25 px-2 py-1",children:e.map((T,W)=>s.jsx("button",{type:"button",onClick:()=>{M(!0),N(w?W+1:W)},className:E("h-2 cursor-pointer rounded-full transition-all",A===W?"w-5 bg-white":"w-2 bg-white/50 hover:bg-white/80"),"aria-label":`${W+1}번째 배너로 이동`},T.id===void 0?`${W}`:String(T.id)))})}):null]})})}const gr=6048e5,xu=864e5,La=Symbol.for("constructDateFrom");function ce(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&La in e?e[La](t):e instanceof Date?new e.constructor(t):new Date(t)}function R(e,t){return ce(t||e,e)}function pe(e,t,n){const r=R(e,n?.in);return isNaN(t)?ce(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ke(e,t,n){const r=R(e,n?.in);if(isNaN(t))return ce(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=ce(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Cu={};function zt(){return Cu}function Ie(e,t){const n=zt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=R(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function st(e,t){return Ie(e,{...t,weekStartsOn:1})}function Fa(e,t){const n=R(e,t?.in),r=n.getFullYear(),o=ce(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=st(o),i=ce(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const l=st(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function bn(e){const t=R(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function bt(e,...t){const n=ce.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function yt(e,t){const n=R(e,t?.in);return n.setHours(0,0,0,0),n}function Le(e,t,n){const[r,o]=bt(n?.in,e,t),a=yt(r),i=yt(o),l=+a-bn(a),c=+i-bn(i);return Math.round((l-c)/xu)}function Nu(e,t){const n=Fa(e,t),r=ce(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),st(r)}function mr(e,t,n){return pe(e,t*7,n)}function Su(e,t,n){return ke(e,t*12,n)}function Au(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ce.bind(null,o));const a=R(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ce(r,n||NaN)}function ku(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ce.bind(null,o));const a=R(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ce(r,n||NaN)}function ge(e,t,n){const[r,o]=bt(n?.in,e,t);return+yt(r)==+yt(o)}function vr(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Pu(e){return!(!vr(e)&&typeof e!="number"||isNaN(+R(e)))}function $t(e,t,n){const[r,o]=bt(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Eu(e,t,n){const[r,o]=bt(n?.in,e,t),a=Ie(r,n),i=Ie(o,n),l=+a-bn(a),c=+i-bn(i);return Math.round((l-c)/gr)}function br(e,t){const n=R(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function me(e,t){const n=R(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Wa(e,t){const n=R(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function yr(e,t){const n=zt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=R(e,t?.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Ba(e,t){return yr(e,{...t,weekStartsOn:1})}const _u={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mu=(e,t,n)=>{let r;const o=_u[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function wt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Tu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Du={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ou={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Iu={date:wt({formats:Tu,defaultWidth:"full"}),time:wt({formats:Du,defaultWidth:"full"}),dateTime:wt({formats:Ou,defaultWidth:"full"})},Lu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fu=(e,t,n,r)=>Lu[e];function Fe(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Wu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},$u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Yu={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Fe({values:Wu,defaultWidth:"wide"}),quarter:Fe({values:Bu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fe({values:zu,defaultWidth:"wide"}),day:Fe({values:$u,defaultWidth:"wide"}),dayPeriod:Fe({values:Hu,defaultWidth:"wide",formattingValues:Vu,defaultFormattingWidth:"wide"})};function We(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Gu(l,f=>f.test(i)):ju(l,f=>f.test(i));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(i.length);return{value:d,rest:u}}}function ju(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Gu(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function za(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(o.length);return{value:i,rest:l}}}const Uu=/^(\d+)(th|st|nd|rd)?/i,Ku=/\d+/i,Qu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qu={any:[/^b/i,/^(a|c)/i]},Xu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zu={any:[/1/i,/2/i,/3/i,/4/i]},Ju={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ru={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ef={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},tf={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rf={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},of={ordinalNumber:za({matchPattern:Uu,parsePattern:Ku,valueCallback:e=>parseInt(e,10)}),era:We({matchPatterns:Qu,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),quarter:We({matchPatterns:Xu,defaultMatchWidth:"wide",parsePatterns:Zu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:We({matchPatterns:Ju,defaultMatchWidth:"wide",parsePatterns:Ru,defaultParseWidth:"any"}),day:We({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:tf,defaultParseWidth:"any"}),dayPeriod:We({matchPatterns:nf,defaultMatchWidth:"any",parsePatterns:rf,defaultParseWidth:"any"})},$a={code:"en-US",formatDistance:Mu,formatLong:Iu,formatRelative:Fu,localize:Yu,match:of,options:{weekStartsOn:0,firstWeekContainsDate:1}};function af(e,t){const n=R(e,t?.in);return Le(n,Wa(n))+1}function Ha(e,t){const n=R(e,t?.in),r=+st(n)-+Nu(n);return Math.round(r/gr)+1}function Va(e,t){const n=R(e,t?.in),r=n.getFullYear(),o=zt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=ce(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=Ie(i,t),c=ce(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=Ie(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function sf(e,t){const n=zt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Va(e,t),a=ce(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Ie(a,t)}function Ya(e,t){const n=R(e,t?.in),r=+Ie(n,t)-+sf(n,t);return Math.round(r/gr)+1}function ee(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Qe={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ee(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ee(n+1,2)},d(e,t){return ee(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ee(e.getHours()%12||12,t.length)},H(e,t){return ee(e.getHours(),t.length)},m(e,t){return ee(e.getMinutes(),t.length)},s(e,t){return ee(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ee(o,t.length)}},xt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ja={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Qe.y(e,t)},Y:function(e,t,n,r){const o=Va(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return ee(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ee(a,t.length)},R:function(e,t){const n=Fa(e);return ee(n,t.length)},u:function(e,t){const n=e.getFullYear();return ee(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ee(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ee(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Qe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ee(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ya(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ee(o,t.length)},I:function(e,t,n){const r=Ha(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ee(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Qe.d(e,t)},D:function(e,t,n){const r=af(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ee(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ee(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ee(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ee(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=xt.noon:r===0?o=xt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=xt.evening:r>=12?o=xt.afternoon:r>=4?o=xt.morning:o=xt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Qe.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Qe.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ee(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ee(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qe.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Qe.s(e,t)},S:function(e,t){return Qe.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ua(r);case"XXXX":case"XX":return it(r);default:return it(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ua(r);case"xxxx":case"xx":return it(r);default:return it(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ga(r,":");default:return"GMT"+it(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ga(r,":");default:return"GMT"+it(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ee(r,t.length)},T:function(e,t,n){return ee(+e,t.length)}};function Ga(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+ee(a,2)}function Ua(e,t){return e%60===0?(e>0?"-":"+")+ee(Math.abs(e)/60,2):it(e,t)}function it(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ee(Math.trunc(r/60),2),a=ee(r%60,2);return n+o+t+a}const Ka=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Qa=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},lf={p:Qa,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ka(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ka(r,t)).replace("{{time}}",Qa(o,t))}},cf=/^D+$/,df=/^Y+$/,uf=["D","DD","YY","YYYY"];function ff(e){return cf.test(e)}function hf(e){return df.test(e)}function pf(e,t,n){const r=gf(e,t,n);if(console.warn(r),uf.includes(e))throw new RangeError(r)}function gf(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bf=/^'([^]*?)'?$/,yf=/''/g,wf=/[a-zA-Z]/;function Pe(e,t,n){const r=zt(),o=n?.locale??r.locale??$a,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=R(e,n?.in);if(!Pu(l))throw new RangeError("Invalid time value");let c=t.match(vf).map(u=>{const f=u[0];if(f==="p"||f==="P"){const g=lf[f];return g(u,o.formatLong)}return u}).join("").match(mf).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:xf(u)};if(ja[f])return{isToken:!0,value:u};if(f.match(wf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&hf(f)||!n?.useAdditionalDayOfYearTokens&&ff(f))&&pf(f,t,String(e));const g=ja[f[0]];return g(l,f,o.localize,d)}).join("")}function xf(e){const t=e.match(bf);return t?t[1].replace(yf,"'"):e}function Cf(e,t){const n=R(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=ce(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Nf(e){return Math.trunc(+R(e)/1e3)}function Sf(e,t){const n=R(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),R(n,t?.in)}function Af(e,t){const n=R(e,t?.in);return Eu(Sf(n,t),me(n,t),t)+1}function wr(e,t){return+R(e)>+R(t)}function qa(e,t){return+R(e)<+R(t)}function xr(e,t,n){const[r,o]=bt(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function kf(e,t,n){const[r,o]=bt(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Cr(e,t,n){return pe(e,-t,n)}function Nr(e,t,n){const r=R(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=ce(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const l=Cf(i);return r.setMonth(t,Math.min(a,l)),r}function Xa(e,t,n){const r=R(e,n?.in);return isNaN(+r)?ce(e,NaN):(r.setFullYear(t),r)}const Pf={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Ef=(e,t,n)=>{let r;const o=Pf[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},_f={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Mf={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Tf={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Df={date:wt({formats:_f,defaultWidth:"full"}),time:wt({formats:Mf,defaultWidth:"full"}),dateTime:wt({formats:Tf,defaultWidth:"full"})},Of={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},If=(e,t,n,r)=>Of[e],Lf={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Ff={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},Wf={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},Bf={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},zf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},$f={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Hf={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:Fe({values:Lf,defaultWidth:"wide"}),quarter:Fe({values:Ff,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fe({values:Wf,defaultWidth:"wide"}),day:Fe({values:Bf,defaultWidth:"wide"}),dayPeriod:Fe({values:zf,defaultWidth:"wide",formattingValues:$f,defaultFormattingWidth:"wide"})},Vf=/^(\d+)(일|번째)?/i,Yf=/\d+/i,jf={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Gf={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Uf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Kf={any:[/1/i,/2/i,/3/i,/4/i]},Qf={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},qf={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Xf={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Zf={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Jf={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Rf={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},eh={ordinalNumber:za({matchPattern:Vf,parsePattern:Yf,valueCallback:e=>parseInt(e,10)}),era:We({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Gf,defaultParseWidth:"any"}),quarter:We({matchPatterns:Uf,defaultMatchWidth:"wide",parsePatterns:Kf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:We({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:qf,defaultParseWidth:"any"}),day:We({matchPatterns:Xf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),dayPeriod:We({matchPatterns:Jf,defaultMatchWidth:"any",parsePatterns:Rf,defaultParseWidth:"any"})},th={code:"ko",formatDistance:Ef,formatLong:Df,formatRelative:If,localize:Hf,match:eh,options:{weekStartsOn:0,firstWeekContainsDate:1}};var H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function nh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Za(e,t,n){for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ht(e){return e.mode==="multiple"}function Vt(e){return e.mode==="range"}function yn(e){return e.mode==="single"}var rh={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function oh(e,t){return Pe(e,"LLLL y",t)}function ah(e,t){return Pe(e,"d",t)}function sh(e,t){return Pe(e,"LLLL",t)}function ih(e){return"".concat(e)}function lh(e,t){return Pe(e,"cccccc",t)}function ch(e,t){return Pe(e,"yyyy",t)}var dh=Object.freeze({__proto__:null,formatCaption:oh,formatDay:ah,formatMonthCaption:sh,formatWeekNumber:ih,formatWeekdayName:lh,formatYearCaption:ch}),uh=function(e,t,n){return Pe(e,"do MMMM (EEEE)",n)},fh=function(){return"Month: "},hh=function(){return"Go to next month"},ph=function(){return"Go to previous month"},gh=function(e,t){return Pe(e,"cccc",t)},mh=function(e){return"Week n. ".concat(e)},vh=function(){return"Year: "},bh=Object.freeze({__proto__:null,labelDay:uh,labelMonthDropdown:fh,labelNext:hh,labelPrevious:ph,labelWeekNumber:mh,labelWeekday:gh,labelYearDropdown:vh});function yh(){var e="buttons",t=rh,n=$a,r={},o={},a=1,i={},l=new Date;return{captionLayout:e,classNames:t,formatters:dh,labels:bh,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:i,today:l,mode:"default"}}function wh(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=me(r):t&&(a=new Date(t,0,1)),o?i=br(o):n&&(i=new Date(n,11,31)),{fromDate:a?yt(a):void 0,toDate:i?yt(i):void 0}}var Ja=P.createContext(void 0);function xh(e){var t,n=e.initialProps,r=yh(),o=wh(n),a=o.fromDate,i=o.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;l!=="buttons"&&(!a||!i)&&(l="buttons");var c;(yn(n)||Ht(n)||Vt(n))&&(c=n.onSelect);var d=H(H(H({},r),n),{captionLayout:l,classNames:H(H({},r.classNames),n.classNames),components:H({},n.components),formatters:H(H({},r.formatters),n.formatters),fromDate:a,labels:H(H({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:H(H({},r.modifiers),n.modifiers),modifiersClassNames:H(H({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:H(H({},r.styles),n.styles),toDate:i});return s.jsx(Ja.Provider,{value:d,children:e.children})}function oe(){var e=P.useContext(Ja);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ra(e){var t=oe(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return s.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Ch(e){return s.jsx("svg",H({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:s.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function es(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,l=e.className,c=e.style,d=oe(),u=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:Ch;return s.jsxs("div",{className:l,style:c,children:[s.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),s.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),s.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[i,s.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Nh(e){var t,n=oe(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,u=n.labels.labelMonthDropdown;if(!r)return s.jsx(s.Fragment,{});if(!o)return s.jsx(s.Fragment,{});var f=[];if(kf(r,o))for(var g=me(r),m=r.getMonth();m<=o.getMonth();m++)f.push(Nr(g,m));else for(var g=me(new Date),m=0;m<=11;m++)f.push(Nr(g,m));var b=function(v){var w=Number(v.target.value),y=Nr(me(e.displayMonth),w);e.onChange(y)},p=(t=d?.Dropdown)!==null&&t!==void 0?t:es;return s.jsx(p,{name:"months","aria-label":u(),className:c.dropdown_month,style:a.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:i}),children:f.map(function(v){return s.jsx("option",{value:v.getMonth(),children:l(v,{locale:i})},v.getMonth())})})}function Sh(e){var t,n=e.displayMonth,r=oe(),o=r.fromDate,a=r.toDate,i=r.locale,l=r.styles,c=r.classNames,d=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,g=[];if(!o)return s.jsx(s.Fragment,{});if(!a)return s.jsx(s.Fragment,{});for(var m=o.getFullYear(),b=a.getFullYear(),p=m;p<=b;p++)g.push(Xa(Wa(new Date),p));var v=function(y){var x=Xa(me(n),Number(y.target.value));e.onChange(x)},w=(t=d?.Dropdown)!==null&&t!==void 0?t:es;return s.jsx(w,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:v,value:n.getFullYear(),caption:u(n,{locale:i}),children:g.map(function(y){return s.jsx("option",{value:y.getFullYear(),children:u(y,{locale:i})},y.getFullYear())})})}function Ah(e,t){var n=P.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function kh(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(a&&$t(a,o)<0){var d=-1*(c-1);o=ke(a,d)}return i&&$t(o,i)<0&&(o=i),me(o)}function Ph(){var e=oe(),t=kh(e),n=Ah(t,e.month),r=n[0],o=n[1],a=function(i){var l;if(!e.disableNavigation){var c=me(i);o(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[r,a]}function Eh(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=me(e),a=me(ke(o,r)),i=$t(a,o),l=[],c=0;c<i;c++){var d=ke(o,c);l.push(d)}return n&&(l=l.reverse()),l}function _h(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,l=me(e);if(!n)return ke(l,i);var c=$t(n,e);if(!(c<a))return ke(l,i)}}function Mh(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,l=me(e);if(!n)return ke(l,-i);var c=$t(l,n);if(!(c<=0))return ke(l,-i)}}var ts=P.createContext(void 0);function Th(e){var t=oe(),n=Ph(),r=n[0],o=n[1],a=Eh(r,t),i=_h(r,t),l=Mh(r,t),c=function(f){return a.some(function(g){return xr(f,g)})},d=function(f,g){c(f)||(g&&qa(f,g)?o(ke(f,1+t.numberOfMonths*-1)):o(f))},u={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:d,previousMonth:l,nextMonth:i,isDateDisplayed:c};return s.jsx(ts.Provider,{value:u,children:e.children})}function Yt(){var e=P.useContext(ts);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function ns(e){var t,n=oe(),r=n.classNames,o=n.styles,a=n.components,i=Yt().goToMonth,l=function(u){i(ke(u,e.displayIndex?-e.displayIndex:0))},c=(t=a?.CaptionLabel)!==null&&t!==void 0?t:Ra,d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth});return s.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[s.jsx("div",{className:r.vhidden,children:d}),s.jsx(Nh,{onChange:l,displayMonth:e.displayMonth}),s.jsx(Sh,{onChange:l,displayMonth:e.displayMonth})]})}function Dh(e){return s.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:s.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Oh(e){return s.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:s.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var wn=P.forwardRef(function(e,t){var n=oe(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),l=H(H({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),s.jsx("button",H({},e,{ref:t,type:"button",className:i,style:l}))});function Ih(e){var t,n,r=oe(),o=r.dir,a=r.locale,i=r.classNames,l=r.styles,c=r.labels,d=c.labelPrevious,u=c.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return s.jsx(s.Fragment,{});var g=d(e.previousMonth,{locale:a}),m=[i.nav_button,i.nav_button_previous].join(" "),b=u(e.nextMonth,{locale:a}),p=[i.nav_button,i.nav_button_next].join(" "),v=(t=f?.IconRight)!==null&&t!==void 0?t:Oh,w=(n=f?.IconLeft)!==null&&n!==void 0?n:Dh;return s.jsxs("div",{className:i.nav,style:l.nav,children:[!e.hidePrevious&&s.jsx(wn,{name:"previous-month","aria-label":g,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?s.jsx(v,{className:i.nav_icon,style:l.nav_icon}):s.jsx(w,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&s.jsx(wn,{name:"next-month","aria-label":b,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?s.jsx(w,{className:i.nav_icon,style:l.nav_icon}):s.jsx(v,{className:i.nav_icon,style:l.nav_icon})})]})}function rs(e){var t=oe().numberOfMonths,n=Yt(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,l=i.findIndex(function(b){return xr(e.displayMonth,b)}),c=l===0,d=l===i.length-1,u=t>1&&(c||!d),f=t>1&&(d||!c),g=function(){r&&a(r)},m=function(){o&&a(o)};return s.jsx(Ih,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:g,onNextClick:m})}function Lh(e){var t,n=oe(),r=n.classNames,o=n.disableNavigation,a=n.styles,i=n.captionLayout,l=n.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:Ra,d;return o?d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?d=s.jsx(ns,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?d=s.jsxs(s.Fragment,{children:[s.jsx(ns,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),s.jsx(rs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=s.jsxs(s.Fragment,{children:[s.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),s.jsx(rs,{displayMonth:e.displayMonth,id:e.id})]}),s.jsx("div",{className:r.caption,style:a.caption,children:d})}function Fh(e){var t=oe(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?s.jsx("tfoot",{className:o,style:r.tfoot,children:s.jsx("tr",{children:s.jsx("td",{colSpan:8,children:n})})}):s.jsx(s.Fragment,{})}function Wh(e,t,n){for(var r=n?st(new Date):Ie(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=pe(r,a);o.push(i)}return o}function Bh(){var e=oe(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=Wh(o,a,i);return s.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&s.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(u,f){return s.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(u,{locale:o}),children:l(u,{locale:o})},f)})]})}function zh(){var e,t=oe(),n=t.classNames,r=t.styles,o=t.components,a=(e=o?.HeadRow)!==null&&e!==void 0?e:Bh;return s.jsx("thead",{style:r.head,className:n.head,children:s.jsx(a,{})})}function $h(e){var t=oe(),n=t.locale,r=t.formatters.formatDay;return s.jsx(s.Fragment,{children:r(e.date,{locale:n})})}var Sr=P.createContext(void 0);function Hh(e){if(!Ht(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return s.jsx(Sr.Provider,{value:t,children:e.children})}return s.jsx(Vh,{initialProps:e.initialProps,children:e.children})}function Vh(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i=function(d,u,f){var g,m;(g=t.onDayClick)===null||g===void 0||g.call(t,d,u,f);var b=!!(u.selected&&o&&r?.length===o);if(!b){var p=!!(!u.selected&&a&&r?.length===a);if(!p){var v=r?Za([],r):[];if(u.selected){var w=v.findIndex(function(y){return ge(d,y)});v.splice(w,1)}else v.push(d);(m=t.onSelect)===null||m===void 0||m.call(t,v,d,u,f)}}},l={disabled:[]};r&&l.disabled.push(function(d){var u=a&&r.length>a-1,f=r.some(function(g){return ge(g,d)});return!!(u&&!f)});var c={selected:r,onDayClick:i,modifiers:l};return s.jsx(Sr.Provider,{value:c,children:n})}function Ar(){var e=P.useContext(Sr);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Yh(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?ge(o,e)&&ge(r,e)?void 0:ge(o,e)?{from:o,to:void 0}:ge(r,e)?void 0:wr(r,e)?{from:e,to:o}:{from:r,to:e}:o?wr(e,o)?{from:o,to:e}:{from:e,to:o}:r?qa(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var kr=P.createContext(void 0);function jh(e){if(!Vt(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return s.jsx(kr.Provider,{value:t,children:e.children})}return s.jsx(Gh,{initialProps:e.initialProps,children:e.children})}function Gh(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,l=t.min,c=t.max,d=function(m,b,p){var v,w;(v=t.onDayClick)===null||v===void 0||v.call(t,m,b,p);var y=Yh(m,r);(w=t.onSelect)===null||w===void 0||w.call(t,y,m,b,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],i?(u.range_end=[i],ge(a,i)||(u.range_middle=[{after:a,before:i}])):u.range_end=[a]):i&&(u.range_start=[i],u.range_end=[i]),l&&(a&&!i&&u.disabled.push({after:Cr(a,l-1),before:pe(a,l-1)}),a&&i&&u.disabled.push({after:a,before:pe(a,l-1)}),!a&&i&&u.disabled.push({after:Cr(i,l-1),before:pe(i,l-1)})),c){if(a&&!i&&(u.disabled.push({before:pe(a,-c+1)}),u.disabled.push({after:pe(a,c-1)})),a&&i){var f=Le(i,a)+1,g=c-f;u.disabled.push({before:Cr(a,g)}),u.disabled.push({after:pe(i,g)})}!a&&i&&(u.disabled.push({before:pe(i,-c+1)}),u.disabled.push({after:pe(i,c-1)}))}return s.jsx(kr.Provider,{value:{selected:r,onDayClick:d,modifiers:u},children:n})}function Pr(){var e=P.useContext(kr);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function xn(e){return Array.isArray(e)?Za([],e):e!==void 0?[e]:[]}function Uh(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=xn(o)}),t}var Ee;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Ee||(Ee={}));var Kh=Ee.Selected,je=Ee.Disabled,Qh=Ee.Hidden,qh=Ee.Today,Er=Ee.RangeEnd,_r=Ee.RangeMiddle,Mr=Ee.RangeStart,Xh=Ee.Outside;function Zh(e,t,n){var r,o=(r={},r[Kh]=xn(e.selected),r[je]=xn(e.disabled),r[Qh]=xn(e.hidden),r[qh]=[e.today],r[Er]=[],r[_r]=[],r[Mr]=[],r[Xh]=[],r);return e.fromDate&&o[je].push({before:e.fromDate}),e.toDate&&o[je].push({after:e.toDate}),Ht(e)?o[je]=o[je].concat(t.modifiers[je]):Vt(e)&&(o[je]=o[je].concat(n.modifiers[je]),o[Mr]=n.modifiers[Mr],o[_r]=n.modifiers[_r],o[Er]=n.modifiers[Er]),o}var os=P.createContext(void 0);function Jh(e){var t=oe(),n=Ar(),r=Pr(),o=Zh(t,n,r),a=Uh(t.modifiers),i=H(H({},o),a);return s.jsx(os.Provider,{value:i,children:e.children})}function as(){var e=P.useContext(os);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Rh(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function ep(e){return!!(e&&typeof e=="object"&&"from"in e)}function tp(e){return!!(e&&typeof e=="object"&&"after"in e)}function np(e){return!!(e&&typeof e=="object"&&"before"in e)}function rp(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function op(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=Le(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var i=Le(e,r)>=0&&Le(o,e)>=0;return i}return o?ge(o,e):r?ge(r,e):!1}function ap(e){return vr(e)}function sp(e){return Array.isArray(e)&&e.every(vr)}function ip(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(ap(n))return ge(e,n);if(sp(n))return n.includes(e);if(ep(n))return op(e,n);if(rp(n))return n.dayOfWeek.includes(e.getDay());if(Rh(n)){var r=Le(n.before,e),o=Le(n.after,e),a=r>0,i=o<0,l=wr(n.before,n.after);return l?i&&a:a||i}return tp(n)?Le(e,n.after)>0:np(n)?Le(n.before,e)>0:typeof n=="function"?n(e):!1})}function Tr(e,t,n){var r=Object.keys(t).reduce(function(a,i){var l=t[i];return ip(e,l)&&a.push(i),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!xr(e,n)&&(o.outside=!0),o}function lp(e,t){for(var n=me(e[0]),r=br(e[e.length-1]),o,a,i=n;i<=r;){var l=Tr(i,t),c=!l.disabled&&!l.hidden;if(!c){i=pe(i,1);continue}if(l.selected)return i;l.today&&!a&&(a=i),o||(o=i),i=pe(i,1)}return a||o}var cp=365;function ss(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,l=i===void 0?{count:0,lastFocused:e}:i,c=o.weekStartsOn,d=o.fromDate,u=o.toDate,f=o.locale,g={day:pe,week:mr,month:ke,year:Su,startOfWeek:function(v){return o.ISOWeek?st(v):Ie(v,{locale:f,weekStartsOn:c})},endOfWeek:function(v){return o.ISOWeek?Ba(v):yr(v,{locale:f,weekStartsOn:c})}},m=g[n](e,r==="after"?1:-1);r==="before"&&d?m=Au([d,m]):r==="after"&&u&&(m=ku([u,m]));var b=!0;if(a){var p=Tr(m,a);b=!p.disabled&&!p.hidden}return b?m:l.count>cp?l.lastFocused:ss(m,{moveBy:n,direction:r,context:o,modifiers:a,retry:H(H({},l),{count:l.count+1})})}var is=P.createContext(void 0);function dp(e){var t=Yt(),n=as(),r=P.useState(),o=r[0],a=r[1],i=P.useState(),l=i[0],c=i[1],d=lp(t.displayMonths,n),u=o??(l&&t.isDateDisplayed(l))?l:d,f=function(){c(o),a(void 0)},g=function(v){a(v)},m=oe(),b=function(v,w){if(o){var y=ss(o,{moveBy:v,direction:w,context:m,modifiers:n});ge(o,y)||(t.goToDate(y,o),g(y))}},p={focusedDay:o,focusTarget:u,blur:f,focus:g,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return s.jsx(is.Provider,{value:p,children:e.children})}function Dr(){var e=P.useContext(is);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function up(e,t){var n=as(),r=Tr(e,n,t);return r}var Or=P.createContext(void 0);function fp(e){if(!yn(e.initialProps)){var t={selected:void 0};return s.jsx(Or.Provider,{value:t,children:e.children})}return s.jsx(hp,{initialProps:e.initialProps,children:e.children})}function hp(e){var t=e.initialProps,n=e.children,r=function(a,i,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,i,l),i.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,a,i,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,i,l)},o={selected:t.selected,onDayClick:r};return s.jsx(Or.Provider,{value:o,children:n})}function ls(){var e=P.useContext(Or);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function pp(e,t){var n=oe(),r=ls(),o=Ar(),a=Pr(),i=Dr(),l=i.focusDayAfter,c=i.focusDayBefore,d=i.focusWeekAfter,u=i.focusWeekBefore,f=i.blur,g=i.focus,m=i.focusMonthBefore,b=i.focusMonthAfter,p=i.focusYearBefore,v=i.focusYearAfter,w=i.focusStartOfWeek,y=i.focusEndOfWeek,x=function(_){var C,Z,se,de;yn(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,_):Ht(n)?(Z=o.onDayClick)===null||Z===void 0||Z.call(o,e,t,_):Vt(n)?(se=a.onDayClick)===null||se===void 0||se.call(a,e,t,_):(de=n.onDayClick)===null||de===void 0||de.call(n,e,t,_)},N=function(_){var C;g(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,_)},S=function(_){var C;f(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,_)},M=function(_){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,_)},A=function(_){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,_)},k=function(_){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,_)},$=function(_){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,_)},G=function(_){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,_)},T=function(_){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,_)},W=function(_){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,_)},Y=function(_){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,_)},j=function(_){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,_)},z=function(_){var C;switch(_.key){case"ArrowLeft":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":_.preventDefault(),_.stopPropagation(),d();break;case"ArrowUp":_.preventDefault(),_.stopPropagation(),u();break;case"PageUp":_.preventDefault(),_.stopPropagation(),_.shiftKey?p():m();break;case"PageDown":_.preventDefault(),_.stopPropagation(),_.shiftKey?v():b();break;case"Home":_.preventDefault(),_.stopPropagation(),w();break;case"End":_.preventDefault(),_.stopPropagation(),y();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,_)},B={onClick:x,onFocus:N,onBlur:S,onKeyDown:z,onKeyUp:j,onMouseEnter:M,onMouseLeave:A,onPointerEnter:k,onPointerLeave:$,onTouchCancel:G,onTouchEnd:T,onTouchMove:W,onTouchStart:Y};return B}function gp(){var e=oe(),t=ls(),n=Ar(),r=Pr(),o=yn(e)?t.selected:Ht(e)?n.selected:Vt(e)?r.selected:void 0;return o}function mp(e){return Object.values(Ee).includes(e)}function vp(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(mp(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function bp(e,t){var n=H({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=H(H({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function yp(e,t,n){var r,o,a,i=oe(),l=Dr(),c=up(e,t),d=pp(e,c),u=gp(),f=!!(i.onDayClick||i.mode!=="default");P.useEffect(function(){var M;c.outside||l.focusedDay&&f&&ge(l.focusedDay,e)&&((M=n.current)===null||M===void 0||M.focus())},[l.focusedDay,e,n,f,c.outside]);var g=vp(i,c).join(" "),m=bp(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),p=(a=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:$h,v=s.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),w={style:m,className:g,children:v,role:"gridcell"},y=l.focusTarget&&ge(l.focusTarget,e)&&!c.outside,x=l.focusedDay&&ge(l.focusedDay,e),N=H(H(H({},w),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=x||y?0:-1,r)),d),S={isButton:f,isHidden:b,activeModifiers:c,selectedDays:u,buttonProps:N,divProps:w};return S}function wp(e){var t=P.useRef(null),n=yp(e.date,e.displayMonth,t);return n.isHidden?s.jsx("div",{role:"gridcell"}):n.isButton?s.jsx(wn,H({name:"day",ref:t},n.buttonProps)):s.jsx("div",H({},n.divProps))}function xp(e){var t=e.number,n=e.dates,r=oe(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,l=r.locale,c=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!o)return s.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:u});var f=c(Number(t),{locale:l}),g=function(m){o(t,n,m)};return s.jsx(wn,{name:"week-number","aria-label":f,className:i.weeknumber,style:a.weeknumber,onClick:g,children:u})}function Cp(e){var t,n,r=oe(),o=r.styles,a=r.classNames,i=r.showWeekNumber,l=r.components,c=(t=l?.Day)!==null&&t!==void 0?t:wp,d=(n=l?.WeekNumber)!==null&&n!==void 0?n:xp,u;return i&&(u=s.jsx("td",{className:a.cell,style:o.cell,children:s.jsx(d,{number:e.weekNumber,dates:e.dates})})),s.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(f){return s.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:s.jsx(c,{displayMonth:e.displayMonth,date:f})},Nf(f))})]})}function cs(e,t,n){for(var r=n?.ISOWeek?Ba(t):yr(t,n),o=n?.ISOWeek?st(e):Ie(e,n),a=Le(r,o),i=[],l=0;l<=a;l++)i.push(pe(o,l));var c=i.reduce(function(d,u){var f=n?.ISOWeek?Ha(u):Ya(u,n),g=d.find(function(m){return m.weekNumber===f});return g?(g.dates.push(u),d):(d.push({weekNumber:f,dates:[u]}),d)},[]);return c}function Np(e,t){var n=cs(me(e),br(e),t);if(t?.useFixedWeeks){var r=Af(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=mr(a,6-r),l=cs(mr(a,1),i,t);n.push.apply(n,l)}}return n}function Sp(e){var t,n,r,o=oe(),a=o.locale,i=o.classNames,l=o.styles,c=o.hideHead,d=o.fixedWeeks,u=o.components,f=o.weekStartsOn,g=o.firstWeekContainsDate,m=o.ISOWeek,b=Np(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:a,weekStartsOn:f,firstWeekContainsDate:g}),p=(t=u?.Head)!==null&&t!==void 0?t:zh,v=(n=u?.Row)!==null&&n!==void 0?n:Cp,w=(r=u?.Footer)!==null&&r!==void 0?r:Fh;return s.jsxs("table",{id:e.id,className:i.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&s.jsx(p,{}),s.jsx("tbody",{className:i.tbody,style:l.tbody,children:b.map(function(y){return s.jsx(v,{displayMonth:e.displayMonth,dates:y.dates,weekNumber:y.weekNumber},y.weekNumber)})}),s.jsx(w,{displayMonth:e.displayMonth})]})}function Ap(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var kp=Ap()?P.useLayoutEffect:P.useEffect,Ir=!1,Pp=0;function ds(){return"react-day-picker-".concat(++Pp)}function Ep(e){var t,n=e??(Ir?ds():null),r=P.useState(n),o=r[0],a=r[1];return kp(function(){o===null&&a(ds())},[]),P.useEffect(function(){Ir===!1&&(Ir=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function _p(e){var t,n,r=oe(),o=r.dir,a=r.classNames,i=r.styles,l=r.components,c=Yt().displayMonths,d=Ep(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],g=i.month,m=e.displayIndex===0,b=e.displayIndex===c.length-1,p=!m&&!b;o==="rtl"&&(t=[m,b],b=t[0],m=t[1]),m&&(f.push(a.caption_start),g=H(H({},g),i.caption_start)),b&&(f.push(a.caption_end),g=H(H({},g),i.caption_end)),p&&(f.push(a.caption_between),g=H(H({},g),i.caption_between));var v=(n=l?.Caption)!==null&&n!==void 0?n:Lh;return s.jsxs("div",{className:f.join(" "),style:g,children:[s.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),s.jsx(Sp,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function Mp(e){var t=oe(),n=t.classNames,r=t.styles;return s.jsx("div",{className:n.months,style:r.months,children:e.children})}function Tp(e){var t,n,r=e.initialProps,o=oe(),a=Dr(),i=Yt(),l=P.useState(!1),c=l[0],d=l[1];P.useEffect(function(){o.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),d(!0)))},[o.initialFocus,c,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var f=H(H({},o.styles.root),o.style),g=Object.keys(r).filter(function(b){return b.startsWith("data-")}).reduce(function(b,p){var v;return H(H({},b),(v={},v[p]=r[p],v))},{}),m=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Mp;return s.jsx("div",H({className:u.join(" "),style:f,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},g,{children:s.jsx(m,{children:i.displayMonths.map(function(b,p){return s.jsx(_p,{displayIndex:p,displayMonth:b},p)})})}))}function Dp(e){var t=e.children,n=nh(e,["children"]);return s.jsx(xh,{initialProps:n,children:s.jsx(Th,{children:s.jsx(fp,{initialProps:n,children:s.jsx(Hh,{initialProps:n,children:s.jsx(jh,{initialProps:n,children:s.jsx(Jh,{children:s.jsx(dp,{children:t})})})})})})})}function Op(e){return s.jsx(Dp,H({},e,{children:s.jsx(Tp,{initialProps:e})}))}function Lr({className:e,classNames:t,showOutsideDays:n=!0,...r}){const o=r.mode==="range";return s.jsx(Op,{locale:th,showOutsideDays:n,className:E("w-fit p-1.5",e),classNames:{months:"flex flex-col gap-2",month:"flex flex-col gap-2",caption:"relative flex h-9 items-center justify-center",caption_label:"text-base font-bold text-gray-800",nav:"absolute inset-x-0 top-1/2 flex -translate-y-1/2 items-center justify-between px-1",nav_button:"inline-flex h-8 w-8 items-center justify-center rounded-2 border border-gray-300 bg-white p-0 text-gray-700 transition-colors hover:bg-gray-100 hover:text-gray-900 disabled:opacity-40",nav_button_previous:"",nav_button_next:"",table:"w-full border-collapse",head_row:"flex",head_cell:"h-8 w-9 text-center text-xs font-bold tracking-[0.02em] text-gray-500",row:"mt-1 flex w-full",cell:E("relative h-9 w-9 p-0 text-center text-sm","focus-within:relative focus-within:z-20",o?"[&:has(.day-range-middle)]:bg-main-200/70 [&:has(.day-range-start)]:bg-main-200/70 [&:has(.day-range-end)]:bg-main-200/70 [&:has(.day-range-start)]:rounded-l-2 [&:has(.day-range-end)]:rounded-r-2":"[&:has([aria-selected])]:rounded-2"),day:"inline-flex h-9 w-9 items-center justify-center rounded-2 border border-transparent p-0 text-sm font-medium text-gray-700 transition-colors aria-selected:opacity-100 hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-300/70",day_range_start:"day-range-start aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_range_end:"day-range-end aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_selected:"bg-main-800 text-white hover:bg-main-700 hover:text-white focus:bg-main-700 focus:text-white",day_today:"border-main-500 text-main-800",day_outside:"day-outside text-gray-400 aria-selected:text-gray-500",day_disabled:"text-gray-400 opacity-50",day_range_middle:"day-range-middle aria-selected:rounded-none aria-selected:bg-main-200 aria-selected:text-main-800",day_hidden:"invisible",...t},components:{IconLeft:({className:a,...i})=>s.jsx(fr,{className:E("size-4",a),...i}),IconRight:({className:a,...i})=>s.jsx(gn,{className:E("size-4",a),...i})},...r})}function Fr({className:e,logoSize:t="md"}){const n={sm:"w-4 h-6",md:"w-6 h-10",lg:"w-8 h-14"};return s.jsx("div",{className:E("flex items-center justify-center bg-main-200",e),children:s.jsx(Wt,{className:E("text-main-500",n[t])})})}const Ip=at("inline-flex items-center rounded-2 px-2.5 py-1 bg-main-800 text-white",{variants:{hasIcon:{true:"gap-1.5",false:""}},defaultVariants:{hasIcon:!1}});function Wr({icon:e,children:t,size:n="caption2",weight:r="bold",className:o}){return s.jsxs("span",{className:E(Ip({hasIcon:!!e}),o),children:[e&&s.jsx(F,{size:n,weight:"medium",children:e}),s.jsx(F,{size:n,weight:r,children:t})]})}function Lp({challengeTitle:e,challengeType:t,challengeCategory:n,imageUrl:r,currentUserCount:o,maxUserCount:a,startDate:i,endDate:l,isOngoing:c=!1,isEnded:d=!1,className:u,onClick:f}){const g=!!(r&&r.trim().length>0),m=d?"종료됨":c?"진행중":"모집중",b=d?"bg-gray-500":c?"bg-green-500":"bg-blue-500";return s.jsxs("div",{className:E("min-w-62.5 w-full overflow-hidden rounded-[12px] border border-gray-200 bg-white",f&&"cursor-pointer","transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default",u),onClick:f,children:[s.jsxs("div",{className:"relative h-52 w-full overflow-hidden bg-gray-100",children:[g?s.jsx("div",{className:"absolute inset-0",children:s.jsx(It,{src:r,alt:e,width:1200,height:800,className:"h-full w-full object-cover"})}):s.jsx(Fr,{className:"absolute inset-0",logoSize:"lg"}),g?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-16 bg-linear-to-b from-black/20 to-transparent"}):null,s.jsxs("div",{className:"absolute top-3 left-3 z-20 flex items-center gap-1.5",children:[s.jsx(Wr,{size:"caption2",weight:"bold",children:n??t}),s.jsx(Wr,{size:"caption2",weight:"bold",className:b,children:m})]})]}),s.jsxs("div",{className:"w-full bg-white px-5 py-5",children:[s.jsx(F,{size:"heading2",weight:"bold",className:"line-clamp-2 min-h-10 text-gray-900",children:e}),s.jsxs("div",{className:"mt-4 flex w-full items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Bt,{className:"h-3.5 w-3.5 text-gray-600"}),s.jsx(F,{size:"caption1",weight:"medium",className:"text-gray-600",children:t})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Da,{className:"h-3.5 w-3.5 text-gray-600"}),s.jsxs(F,{size:"caption1",weight:"medium",className:"text-gray-600",children:[o," / ",a]})]})]}),s.jsxs(F,{size:"caption1",weight:"regular",className:"mt-3 text-gray-500",children:[i," - ",l]})]})]})}function Fp({label:e,icon:t,children:n,checked:r,defaultChecked:o=!1,onCheckedChange:a,showCheckIndicator:i=!0,width:l=320,height:c=220,className:d,disabled:u,onClick:f,style:g,"aria-label":m,...b}){const p=typeof r=="boolean",[v,w]=P.useState(o),y=p?r:v,x=n!==void 0,N=m??(typeof e=="string"||typeof e=="number"?String(e):void 0),S=M=>{if(u)return;const A=!y;p||w(A),a?.(A),f?.(M)};return s.jsxs("button",{type:"button",role:"checkbox","aria-checked":y,"aria-label":N,disabled:u,onClick:S,className:E("relative overflow-hidden rounded-[28px] border-2 transition-colors duration-200","flex flex-col items-center justify-center",!x&&"gap-4",y?"border-main-800 bg-main-200 text-main-800":"border-gray-300 bg-white text-gray-500",!u&&(y?"hover:bg-main-300":"hover:bg-gray-100"),u&&"cursor-not-allowed opacity-60",d),style:{width:l,height:c,...g},...b,children:[i?s.jsx("span",{className:E("absolute top-4 right-4 flex w-[clamp(18px,8%,32px)] aspect-square shrink-0 items-center justify-center rounded-full border-2 transition-colors",y?"border-main-800 bg-main-800 text-white":"border-gray-300 bg-white text-transparent"),children:s.jsx(vt,{className:"h-[46%] w-[46%]",strokeWidth:4.4})}):null,x?n:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[t?s.jsx("span",{className:"text-inherit [&>svg]:h-14 [&>svg]:w-14",children:t}):null,typeof e=="string"||typeof e=="number"?s.jsx(F,{size:"heading1",weight:"bold",className:E("text-inherit",y?"text-main-800":"text-gray-600"),children:e}):e]})]})}function us(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function fs(e){const[t,n]=h.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Cn="Checkbox",[Wp]=Ne(Cn),[Bp,Br]=Wp(Cn);function zp(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:f}=e,[g,m]=be({prop:n,defaultProp:o??!1,onChange:c,caller:Cn}),[b,p]=h.useState(null),[v,w]=h.useState(null),y=h.useRef(!1),x=b?!!i||!!b.closest("form"):!0,N={checked:g,disabled:a,setChecked:m,control:b,setControl:p,name:l,form:i,value:u,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:qe(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:w};return s.jsx(Bp,{scope:t,...N,children:$p(f)?f(N):r})}var hs="CheckboxTrigger",ps=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:l,checked:c,required:d,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:g,isFormControl:m,bubbleInput:b}=Br(hs,e),p=J(o,u),v=h.useRef(c);return h.useEffect(()=>{const w=a?.form;if(w){const y=()=>f(v.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[a,f]),s.jsx(U.button,{type:"button",role:"checkbox","aria-checked":qe(c)?"mixed":c,"aria-required":d,"data-state":ys(c),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:p,onKeyDown:V(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:V(n,w=>{f(y=>qe(y)?!0:!y),b&&m&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});ps.displayName=hs;var zr=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return s.jsx(zp,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:i,onCheckedChange:d,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:g})=>s.jsxs(s.Fragment,{children:[s.jsx(ps,{...f,ref:t,__scopeCheckbox:n}),g&&s.jsx(bs,{__scopeCheckbox:n})]})})});zr.displayName=Cn;var gs="CheckboxIndicator",ms=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Br(gs,n);return s.jsx(Oe,{present:r||qe(a.checked)||a.checked===!0,children:s.jsx(U.span,{"data-state":ys(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ms.displayName=gs;var vs="CheckboxBubbleInput",bs=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:l,disabled:c,name:d,value:u,form:f,bubbleInput:g,setBubbleInput:m}=Br(vs,e),b=J(n,m),p=us(a),v=fs(r);h.useEffect(()=>{const y=g;if(!y)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,M=!o.current;if(p!==a&&S){const A=new Event("click",{bubbles:M});y.indeterminate=qe(a),S.call(y,qe(a)?!1:a),y.dispatchEvent(A)}},[g,p,a,o]);const w=h.useRef(qe(a)?!1:a);return s.jsx(U.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:l,disabled:c,name:d,value:u,form:f,...t,tabIndex:-1,ref:b,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});bs.displayName=vs;function $p(e){return typeof e=="function"}function qe(e){return e==="indeterminate"}function ys(e){return qe(e)?"indeterminate":e?"checked":"unchecked"}const $r=h.forwardRef(({className:e,label:t,id:n,readOnly:r,...o},a)=>{const i=h.useId(),l=n||i;return s.jsxs("div",{className:E("flex items-center gap-2.5",r&&"pointer-events-none"),children:[s.jsx(zr,{ref:a,id:l,className:E("peer h-5 w-5 shrink-0 rounded-1.5 border border-gray-300 bg-white transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-900 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-main-900 data-[state=checked]:border-main-900 data-[state=checked]:text-white","cursor-pointer",e),...o,children:s.jsx(ms,{className:E("flex items-center justify-center text-current"),children:s.jsx(vt,{className:"h-3 w-3",strokeWidth:13})})}),t&&s.jsx("label",{htmlFor:l,className:E("text-gray-900 select-none cursor-pointer","peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),children:s.jsx(F,{size:"body2",weight:"medium",children:t})})]})});$r.displayName=zr.displayName;function Hp({options:e,value:t,onValueChange:n,className:r,readOnly:o=!1,disabled:a=!1}){const i=P.useId(),l=(c,d)=>{if(d){n(t.includes(c)?t:[...t,c]);return}n(t.filter(u=>u!==c))};return s.jsx("div",{className:E("overflow-hidden rounded-4 border border-gray-200 bg-white",r),children:e.map((c,d)=>{const u=t.includes(c.id),f=a||c.disabled,g=!f&&o,m=f||g,b=`${i}-${c.id}`;return s.jsxs("div",{role:"group","aria-disabled":m,onClick:()=>{m||l(c.id,!u)},className:E("flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",d>0&&"border-t border-gray-200",!m&&"cursor-pointer hover:bg-gray-100/70",f&&"cursor-not-allowed",g&&"cursor-default hover:cursor-not-allowed"),children:[s.jsx($r,{id:b,checked:u,disabled:f,onClick:p=>{p.stopPropagation()},onCheckedChange:p=>{m||p==="indeterminate"||l(c.id,p===!0)},className:E("h-5 w-5 rounded-1.5","data-[state=checked]:border-main-800 data-[state=checked]:bg-main-800",g&&"cursor-default hover:cursor-not-allowed")}),typeof c.label=="string"||typeof c.label=="number"?s.jsx(F,{size:"body1",weight:"medium",className:E("transition-colors",u?"text-gray-900":"text-gray-500",f&&"text-gray-400"),children:c.label}):s.jsx("span",{className:E(!u&&"text-gray-500",f&&"opacity-60"),children:c.label})]},c.id)})})}const Vp=at("",{variants:{size:{sm:"w-11 h-11",lg:"w-30 h-30"}},defaultVariants:{size:"sm"}});function ws({value:e,size:t,showPercentage:n=!0,className:r}){const o=t==="lg"?"lg":"sm",a={sm:50,lg:120},i={sm:5,lg:10},l={sm:"caption3",lg:"display2"},c=a[o],d=i[o],u=(c-d)/2,f=2*Math.PI*u,g=Math.min(Math.max(e,0),100),[m,b]=P.useState(0);P.useEffect(()=>{const w=requestAnimationFrame(()=>{b(g)});return()=>cancelAnimationFrame(w)},[g]);const p=f-f*m/100,v=E(Vp({size:o}),"rounded-full",r);return s.jsxs("div",{className:"relative inline-block",children:[s.jsx(pu,{baseSize:c,radius:u,strokeWidth:d,circumference:f,dashOffset:p,className:v}),n&&s.jsx(F,{className:"absolute inset-0 flex items-center justify-center text-main-800",size:l[o],weight:"bold",children:`${g}%`})]})}function Xe(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function Yp(e,t=globalThis?.document){const n=Xe(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jp="DismissableLayer",Hr="dismissableLayer.update",Gp="dismissableLayer.pointerDownOutside",Up="dismissableLayer.focusOutside",xs,Cs=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,d=h.useContext(Cs),[u,f]=h.useState(null),g=u?.ownerDocument??globalThis?.document,[,m]=h.useState({}),b=J(t,A=>f(A)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),y=u?p.indexOf(u):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,S=qp(A=>{const k=A.target,$=[...d.branches].some(G=>G.contains(k));!N||$||(o?.(A),i?.(A),A.defaultPrevented||l?.())},g),M=Xp(A=>{const k=A.target;[...d.branches].some(G=>G.contains(k))||(a?.(A),i?.(A),A.defaultPrevented||l?.())},g);return Yp(A=>{y===d.layers.size-1&&(r?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},g),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(xs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Ns(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=xs)}},[u,g,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Ns())},[u,d]),h.useEffect(()=>{const A=()=>m({});return document.addEventListener(Hr,A),()=>document.removeEventListener(Hr,A)},[]),s.jsx(U.div,{...c,ref:b,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,M.onFocusCapture),onBlurCapture:V(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,S.onPointerDownCapture)})});jt.displayName=jp;var Kp="DismissableLayerBranch",Qp=h.forwardRef((e,t)=>{const n=h.useContext(Cs),r=h.useRef(null),o=J(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),s.jsx(U.div,{...e,ref:o})});Qp.displayName=Kp;function qp(e,t=globalThis?.document){const n=Xe(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){Ss(Gp,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xp(e,t=globalThis?.document){const n=Xe(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&Ss(Up,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ns(){const e=new CustomEvent(Hr);document.dispatchEvent(e)}function Ss(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cc(o,a):o.dispatchEvent(a)}var Vr=0;function Yr(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??As()),document.body.insertAdjacentElement("beforeend",e[1]??As()),Vr++,()=>{Vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vr--}},[])}function As(){const 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 jr="focusScope.autoFocusOnMount",Gr="focusScope.autoFocusOnUnmount",ks={bubbles:!1,cancelable:!0},Zp="FocusScope",Nn=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,c]=h.useState(null),d=Xe(o),u=Xe(a),f=h.useRef(null),g=J(t,p=>c(p)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let p=function(x){if(m.paused||!l)return;const N=x.target;l.contains(N)?f.current=N:Ze(f.current,{select:!0})},v=function(x){if(m.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||Ze(f.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ze(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const y=new MutationObserver(w);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),y.disconnect()}}},[r,l,m.paused]),h.useEffect(()=>{if(l){_s.add(m);const p=document.activeElement;if(!l.contains(p)){const w=new CustomEvent(jr,ks);l.addEventListener(jr,d),l.dispatchEvent(w),w.defaultPrevented||(Jp(rg(Ps(l)),{select:!0}),document.activeElement===p&&Ze(l))}return()=>{l.removeEventListener(jr,d),setTimeout(()=>{const w=new CustomEvent(Gr,ks);l.addEventListener(Gr,u),l.dispatchEvent(w),w.defaultPrevented||Ze(p??document.body,{select:!0}),l.removeEventListener(Gr,u),_s.remove(m)},0)}}},[l,d,u,m]);const b=h.useCallback(p=>{if(!n&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(v&&w){const y=p.currentTarget,[x,N]=Rp(y);x&&N?!p.shiftKey&&w===N?(p.preventDefault(),n&&Ze(x,{select:!0})):p.shiftKey&&w===x&&(p.preventDefault(),n&&Ze(N,{select:!0})):w===y&&p.preventDefault()}},[n,r,m.paused]);return s.jsx(U.div,{tabIndex:-1,...i,ref:g,onKeyDown:b})});Nn.displayName=Zp;function Jp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ze(r,{select:t}),document.activeElement!==n)return}function Rp(e){const t=Ps(e),n=Es(t,e),r=Es(t.reverse(),e);return[n,r]}function Ps(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Es(e,t){for(const n of e)if(!eg(n,{upTo:t}))return n}function eg(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 tg(e){return e instanceof HTMLInputElement&&"select"in e}function Ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tg(e)&&t&&e.select()}}var _s=ng();function ng(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ms(e,t),e.unshift(t)},remove(t){e=Ms(e,t),e[0]?.resume()}}}function Ms(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rg(e){return e.filter(t=>t.tagName!=="A")}const og=["top","right","bottom","left"],Je=Math.min,ye=Math.max,Sn=Math.round,An=Math.floor,Be=e=>({x:e,y:e}),ag={left:"right",right:"left",bottom:"top",top:"bottom"},sg={start:"end",end:"start"};function Ur(e,t,n){return ye(e,Je(t,n))}function Ge(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function Kr(e){return e==="x"?"y":"x"}function Qr(e){return e==="y"?"height":"width"}const ig=new Set(["top","bottom"]);function ze(e){return ig.has(Ue(e))?"y":"x"}function qr(e){return Kr(ze(e))}function lg(e,t,n){n===void 0&&(n=!1);const r=Ct(e),o=qr(e),a=Qr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=kn(i)),[i,kn(i)]}function cg(e){const t=kn(e);return[Xr(e),t,Xr(t)]}function Xr(e){return e.replace(/start|end/g,t=>sg[t])}const Ts=["left","right"],Ds=["right","left"],dg=["top","bottom"],ug=["bottom","top"];function fg(e,t,n){switch(e){case"top":case"bottom":return n?t?Ds:Ts:t?Ts:Ds;case"left":case"right":return t?dg:ug;default:return[]}}function hg(e,t,n,r){const o=Ct(e);let a=fg(Ue(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Xr)))),a}function kn(e){return e.replace(/left|right|bottom|top/g,t=>ag[t])}function pg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Os(e){return typeof e!="number"?pg(e):{top:e,right:e,bottom:e,left:e}}function Pn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Is(e,t,n){let{reference:r,floating:o}=e;const a=ze(t),i=qr(t),l=Qr(i),c=Ue(t),d=a==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let m;switch(c){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Ct(t)){case"start":m[i]-=g*(n&&d?-1:1);break;case"end":m[i]+=g*(n&&d?-1:1);break}return m}const gg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Is(d,r,c),g=r,m={},b=0;for(let p=0;p<l.length;p++){const{name:v,fn:w}=l[p],{x:y,y:x,data:N,reset:S}=await w({x:u,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:d,platform:i,elements:{reference:e,floating:t}});u=y??u,f=x??f,m={...m,[v]:{...m[v],...N}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=Is(d,g,c)),p=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:m}};async function Gt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=Ge(t,e),b=Os(m),v=l[g?f==="floating"?"reference":"floating":f],w=Pn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),N=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Pn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:c}):y);return{top:(w.top-S.top+b.top)/N.y,bottom:(S.bottom-w.bottom+b.bottom)/N.y,left:(w.left-S.left+b.left)/N.x,right:(S.right-w.right+b.right)/N.x}}const mg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=Ge(e,t)||{};if(d==null)return{};const f=Os(u),g={x:n,y:r},m=qr(o),b=Qr(m),p=await i.getDimensions(d),v=m==="y",w=v?"top":"left",y=v?"bottom":"right",x=v?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[m]-g[m]-a.floating[b],S=g[m]-a.reference[m],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let A=M?M[x]:0;(!A||!await(i.isElement==null?void 0:i.isElement(M)))&&(A=l.floating[x]||a.floating[b]);const k=N/2-S/2,$=A/2-p[b]/2-1,G=Je(f[w],$),T=Je(f[y],$),W=G,Y=A-p[b]-T,j=A/2-p[b]/2+k,z=Ur(W,j,Y),B=!c.arrow&&Ct(o)!=null&&j!==z&&a.reference[b]/2-(j<W?G:T)-p[b]/2<0,_=B?j<W?j-W:j-Y:0;return{[m]:g[m]+_,data:{[m]:z,centerOffset:j-z-_,...B&&{alignmentOffset:_}},reset:B}}}),vg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...v}=Ge(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Ue(o),y=ze(l),x=Ue(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=g||(x||!p?[kn(l)]:cg(l)),M=b!=="none";!g&&M&&S.push(...hg(l,p,b,N));const A=[l,...S],k=await Gt(t,v),$=[];let G=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&$.push(k[w]),f){const j=lg(o,i,N);$.push(k[j[0]],k[j[1]])}if(G=[...G,{placement:o,overflows:$}],!$.every(j=>j<=0)){var T,W;const j=(((T=a.flip)==null?void 0:T.index)||0)+1,z=A[j];if(z&&(!(f==="alignment"?y!==ze(z):!1)||G.every(C=>ze(C.placement)===y?C.overflows[0]>0:!0)))return{data:{index:j,overflows:G},reset:{placement:z}};let B=(W=G.filter(_=>_.overflows[0]<=0).sort((_,C)=>_.overflows[1]-C.overflows[1])[0])==null?void 0:W.placement;if(!B)switch(m){case"bestFit":{var Y;const _=(Y=G.filter(C=>{if(M){const Z=ze(C.placement);return Z===y||Z==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(Z=>Z>0).reduce((Z,se)=>Z+se,0)]).sort((C,Z)=>C[1]-Z[1])[0])==null?void 0:Y[0];_&&(B=_);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Ls(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fs(e){return og.some(t=>e[t]>=0)}const bg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ge(e,t);switch(r){case"referenceHidden":{const a=await Gt(t,{...o,elementContext:"reference"}),i=Ls(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Fs(i)}}}case"escaped":{const a=await Gt(t,{...o,altBoundary:!0}),i=Ls(a,n.floating);return{data:{escapedOffsets:i,escaped:Fs(i)}}}default:return{}}}}},Ws=new Set(["left","top"]);async function yg(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ue(n),l=Ct(n),c=ze(n)==="y",d=Ws.has(i)?-1:1,u=a&&c?-1:1,f=Ge(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),c?{x:m*u,y:g*d}:{x:g*d,y:m*u}}const wg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,c=await yg(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},xg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:w,y}=v;return{x:w,y}}},...c}=Ge(e,t),d={x:n,y:r},u=await Gt(t,c),f=ze(Ue(o)),g=Kr(f);let m=d[g],b=d[f];if(a){const v=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=m+u[v],x=m-u[w];m=Ur(y,m,x)}if(i){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=b+u[v],x=b-u[w];b=Ur(y,b,x)}const p=l.fn({...t,[g]:m,[f]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[g]:a,[f]:i}}}}}},Cg=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Ge(e,t),u={x:n,y:r},f=ze(o),g=Kr(f);let m=u[g],b=u[f];const p=Ge(l,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=g==="y"?"height":"width",N=a.reference[g]-a.floating[x]+v.mainAxis,S=a.reference[g]+a.reference[x]-v.mainAxis;m<N?m=N:m>S&&(m=S)}if(d){var w,y;const x=g==="y"?"width":"height",N=Ws.has(Ue(o)),S=a.reference[f]-a.floating[x]+(N&&((w=i.offset)==null?void 0:w[f])||0)+(N?0:v.crossAxis),M=a.reference[f]+a.reference[x]+(N?0:((y=i.offset)==null?void 0:y[f])||0)-(N?v.crossAxis:0);b<S?b=S:b>M&&(b=M)}return{[g]:m,[f]:b}}}},Ng=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...d}=Ge(e,t),u=await Gt(t,d),f=Ue(o),g=Ct(o),m=ze(o)==="y",{width:b,height:p}=a.floating;let v,w;f==="top"||f==="bottom"?(v=f,w=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,v=g==="end"?"top":"bottom");const y=p-u.top-u.bottom,x=b-u.left-u.right,N=Je(p-u[v],y),S=Je(b-u[w],x),M=!t.middlewareData.shift;let A=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!g){const G=ye(u.left,0),T=ye(u.right,0),W=ye(u.top,0),Y=ye(u.bottom,0);m?k=b-2*(G!==0||T!==0?G+T:ye(u.left,u.right)):A=p-2*(W!==0||Y!==0?W+Y:ye(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:A});const $=await i.getDimensions(l.floating);return b!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function Nt(e){return Bs(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $e(e){var t;return(t=(Bs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bs(e){return En()?e instanceof Node||e instanceof we(e).Node:!1}function _e(e){return En()?e instanceof Element||e instanceof we(e).Element:!1}function He(e){return En()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function zs(e){return!En()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const Sg=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sg.has(o)}const Ag=new Set(["table","td","th"]);function kg(e){return Ag.has(Nt(e))}const Pg=[":popover-open",":modal"];function _n(e){return Pg.some(t=>{try{return e.matches(t)}catch{return!1}})}const Eg=["transform","translate","scale","rotate","perspective"],_g=["transform","translate","scale","rotate","perspective","filter"],Mg=["paint","layout","strict","content"];function Zr(e){const t=Jr(),n=_e(e)?Me(e):e;return Eg.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_g.some(r=>(n.willChange||"").includes(r))||Mg.some(r=>(n.contain||"").includes(r))}function Tg(e){let t=Re(e);for(;He(t)&&!St(t);){if(Zr(t))return t;if(_n(t))return null;t=Re(t)}return null}function Jr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dg=new Set(["html","body","#document"]);function St(e){return Dg.has(Nt(e))}function Me(e){return we(e).getComputedStyle(e)}function Mn(e){return _e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(Nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zs(e)&&e.host||$e(e);return zs(t)?t.host:t}function $s(e){const t=Re(e);return St(t)?e.ownerDocument?e.ownerDocument.body:e.body:He(t)&&Ut(t)?t:$s(t)}function Kt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$s(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(a){const l=Rr(i);return t.concat(i,i.visualViewport||[],Ut(o)?o:[],l&&n?Kt(l):[])}return t.concat(o,Kt(o,[],n))}function Rr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hs(e){const t=Me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=He(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Sn(n)!==a||Sn(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function eo(e){return _e(e)?e:e.contextElement}function At(e){const t=eo(e);if(!He(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Hs(t);let i=(a?Sn(n.width):n.width)/r,l=(a?Sn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Og=Be(0);function Vs(e){const t=we(e);return!Jr()||!t.visualViewport?Og:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ig(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=eo(e);let i=Be(1);t&&(r?_e(r)&&(i=At(r)):i=At(e));const l=Ig(a,n,r)?Vs(a):Be(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(a){const g=we(a),m=r&&_e(r)?we(r):r;let b=g,p=Rr(b);for(;p&&r&&m!==b;){const v=At(p),w=p.getBoundingClientRect(),y=Me(p),x=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,N=w.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;c*=v.x,d*=v.y,u*=v.x,f*=v.y,c+=x,d+=N,b=we(p),p=Rr(b)}}return Pn({width:u,height:f,x:c,y:d})}function Tn(e,t){const n=Mn(e).scrollLeft;return t?t.left+n:lt($e(e)).left+n}function Ys(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Tn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Lg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=$e(r),l=t?_n(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Be(1);const u=Be(0),f=He(r);if((f||!f&&!a)&&((Nt(r)!=="body"||Ut(i))&&(c=Mn(r)),He(r))){const m=lt(r);d=At(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const g=i&&!f&&!a?Ys(i,c):Be(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+g.x,y:n.y*d.y-c.scrollTop*d.y+u.y+g.y}}function Fg(e){return Array.from(e.getClientRects())}function Wg(e){const t=$e(e),n=Mn(e),r=e.ownerDocument.body,o=ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Tn(e);const l=-n.scrollTop;return Me(r).direction==="rtl"&&(i+=ye(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}const js=25;function Bg(e,t){const n=we(e),r=$e(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;const u=Jr();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=Tn(r);if(d<=0){const u=r.ownerDocument,f=u.body,g=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-m);b<=js&&(a-=b)}else d<=js&&(a+=d);return{width:a,height:i,x:l,y:c}}const zg=new Set(["absolute","fixed"]);function $g(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=He(e)?At(e):Be(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:i,height:l,x:c,y:d}}function Gs(e,t,n){let r;if(t==="viewport")r=Bg(e,n);else if(t==="document")r=Wg($e(e));else if(_e(t))r=$g(t,n);else{const o=Vs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pn(r)}function Us(e,t){const n=Re(e);return n===t||!_e(n)||St(n)?!1:Me(n).position==="fixed"||Us(n,t)}function Hg(e,t){const n=t.get(e);if(n)return n;let r=Kt(e,[],!1).filter(l=>_e(l)&&Nt(l)!=="body"),o=null;const a=Me(e).position==="fixed";let i=a?Re(e):e;for(;_e(i)&&!St(i);){const l=Me(i),c=Zr(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&zg.has(o.position)||Ut(i)&&!c&&Us(e,i))?r=r.filter(u=>u!==i):o=l,i=Re(i)}return t.set(e,r),r}function Vg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?_n(t)?[]:Hg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,u)=>{const f=Gs(t,u,o);return d.top=ye(f.top,d.top),d.right=Je(f.right,d.right),d.bottom=Je(f.bottom,d.bottom),d.left=ye(f.left,d.left),d},Gs(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Yg(e){const{width:t,height:n}=Hs(e);return{width:t,height:n}}function jg(e,t,n){const r=He(t),o=$e(t),a=n==="fixed",i=lt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Be(0);function d(){c.x=Tn(o)}if(r||!r&&!a)if((Nt(t)!=="body"||Ut(o))&&(l=Mn(t)),r){const m=lt(t,!0,a,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&d();a&&!r&&o&&d();const u=o&&!r&&!a?Ys(o,l):Be(0),f=i.left+l.scrollLeft-c.x-u.x,g=i.top+l.scrollTop-c.y-u.y;return{x:f,y:g,width:i.width,height:i.height}}function to(e){return Me(e).position==="static"}function Ks(e,t){if(!He(e)||Me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $e(e)===n&&(n=n.ownerDocument.body),n}function Qs(e,t){const n=we(e);if(_n(e))return n;if(!He(e)){let o=Re(e);for(;o&&!St(o);){if(_e(o)&&!to(o))return o;o=Re(o)}return n}let r=Ks(e,t);for(;r&&kg(r)&&to(r);)r=Ks(r,t);return r&&St(r)&&to(r)&&!Zr(r)?n:r||Tg(e)||n}const Gg=async function(e){const t=this.getOffsetParent||Qs,n=this.getDimensions,r=await n(e.floating);return{reference:jg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ug(e){return Me(e).direction==="rtl"}const Kg={convertOffsetParentRelativeRectToViewportRelativeRect:Lg,getDocumentElement:$e,getClippingRect:Vg,getOffsetParent:Qs,getElementRects:Gg,getClientRects:Fg,getDimensions:Yg,getScale:At,isElement:_e,isRTL:Ug};function qs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qg(e,t){let n=null,r;const o=$e(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:u,top:f,width:g,height:m}=d;if(l||t(),!g||!m)return;const b=An(f),p=An(o.clientWidth-(u+g)),v=An(o.clientHeight-(f+m)),w=An(u),x={rootMargin:-b+"px "+-p+"px "+-v+"px "+-w+"px",threshold:ye(0,Je(1,c))||1};let N=!0;function S(M){const A=M[0].intersectionRatio;if(A!==c){if(!N)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!qs(d,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),a}function qg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=eo(e),u=o||a?[...d?Kt(d):[],...Kt(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const f=d&&l?Qg(d,n):null;let g=-1,m=null;i&&(m=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),d&&!c&&m.observe(d),m.observe(t));let b,p=c?lt(e):null;c&&v();function v(){const w=lt(e);p&&!qs(p,w)&&n(),p=w,b=requestAnimationFrame(v)}return n(),()=>{var w;u.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f?.(),(w=m)==null||w.disconnect(),m=null,c&&cancelAnimationFrame(b)}}const Xg=wg,Zg=xg,Jg=vg,Rg=Ng,em=bg,Xs=mg,tm=Cg,nm=(e,t,n)=>{const r=new Map,o={platform:Kg,...n},a={...o.platform,_c:r};return gg(e,t,{...o,platform:a})};var rm=typeof document<"u",om=function(){},Dn=rm?P.useLayoutEffect:om;function On(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,o;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(!On(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!On(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Zs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Js(e,t){const n=Zs(e);return Math.round(t*n)/n}function no(e){const t=h.useRef(e);return Dn(()=>{t.current=e}),t}function am(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=h.useState(r);On(g,r)||m(r);const[b,p]=h.useState(null),[v,w]=h.useState(null),y=h.useCallback(C=>{C!==M.current&&(M.current=C,p(C))},[]),x=h.useCallback(C=>{C!==A.current&&(A.current=C,w(C))},[]),N=a||b,S=i||v,M=h.useRef(null),A=h.useRef(null),k=h.useRef(u),$=c!=null,G=no(c),T=no(o),W=no(d),Y=h.useCallback(()=>{if(!M.current||!A.current)return;const C={placement:t,strategy:n,middleware:g};T.current&&(C.platform=T.current),nm(M.current,A.current,C).then(Z=>{const se={...Z,isPositioned:W.current!==!1};j.current&&!On(k.current,se)&&(k.current=se,tn.flushSync(()=>{f(se)}))})},[g,t,n,T,W]);Dn(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[d]);const j=h.useRef(!1);Dn(()=>(j.current=!0,()=>{j.current=!1}),[]),Dn(()=>{if(N&&(M.current=N),S&&(A.current=S),N&&S){if(G.current)return G.current(N,S,Y);Y()}},[N,S,Y,G,$]);const z=h.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:x}),[y,x]),B=h.useMemo(()=>({reference:N,floating:S}),[N,S]),_=h.useMemo(()=>{const C={position:n,left:0,top:0};if(!B.floating)return C;const Z=Js(B.floating,u.x),se=Js(B.floating,u.y);return l?{...C,transform:"translate("+Z+"px, "+se+"px)",...Zs(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:se}},[n,l,B.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:Y,refs:z,elements:B,floatingStyles:_}),[u,Y,z,B,_])}const sm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Xs({element:r.current,padding:o}).fn(n):{}:r?Xs({element:r,padding:o}).fn(n):{}}}},im=(e,t)=>({...Xg(e),options:[e,t]}),lm=(e,t)=>({...Zg(e),options:[e,t]}),cm=(e,t)=>({...tm(e),options:[e,t]}),dm=(e,t)=>({...Jg(e),options:[e,t]}),um=(e,t)=>({...Rg(e),options:[e,t]}),fm=(e,t)=>({...em(e),options:[e,t]}),hm=(e,t)=>({...sm(e),options:[e,t]});var pm="Arrow",Rs=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return s.jsx(U.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rs.displayName=pm;var gm=Rs,ro="Popper",[ei,kt]=Ne(ro),[mm,ti]=ei(ro),ni=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return s.jsx(mm,{scope:t,anchor:r,onAnchorChange:o,children:n})};ni.displayName=ro;var ri="PopperAnchor",oi=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ti(ri,n),i=h.useRef(null),l=J(t,i),c=h.useRef(null);return h.useEffect(()=>{const d=c.current;c.current=r?.current||i.current,d!==c.current&&a.onAnchorChange(c.current)}),r?null:s.jsx(U.div,{...o,ref:l})});oi.displayName=ri;var oo="PopperContent",[vm,bm]=ei(oo),ai=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:b,...p}=e,v=ti(oo,n),[w,y]=h.useState(null),x=J(t,O=>y(O)),[N,S]=h.useState(null),M=fs(N),A=M?.width??0,k=M?.height??0,$=r+(a!=="center"?"-"+a:""),G=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(d)?d:[d],W=T.length>0,Y={padding:G,boundary:T.filter(wm),altBoundary:W},{refs:j,floatingStyles:z,placement:B,isPositioned:_,middlewareData:C}=am({strategy:"fixed",placement:$,whileElementsMounted:(...O)=>qg(...O,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[im({mainAxis:o+k,alignmentAxis:i}),c&&lm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?cm():void 0,...Y}),c&&dm({...Y}),um({...Y,apply:({elements:O,rects:ne,availableWidth:K,availableHeight:Q})=>{const{width:X,height:re}=ne.reference,Ce=O.floating.style;Ce.setProperty("--radix-popper-available-width",`${K}px`),Ce.setProperty("--radix-popper-available-height",`${Q}px`),Ce.setProperty("--radix-popper-anchor-width",`${X}px`),Ce.setProperty("--radix-popper-anchor-height",`${re}px`)}}),N&&hm({element:N,padding:l}),xm({arrowWidth:A,arrowHeight:k}),g&&fm({strategy:"referenceHidden",...Y})]}),[Z,se]=li(B),de=Xe(b);ue(()=>{_&&de?.()},[_,de]);const ve=C.arrow?.x,te=C.arrow?.y,ae=C.arrow?.centerOffset!==0,[he,xe]=h.useState();return ue(()=>{w&&xe(window.getComputedStyle(w).zIndex)},[w]),s.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:_?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(vm,{scope:n,placedSide:Z,onArrowChange:S,arrowX:ve,arrowY:te,shouldHideArrow:ae,children:s.jsx(U.div,{"data-side":Z,"data-align":se,...p,ref:x,style:{...p.style,animation:_?void 0:"none"}})})})});ai.displayName=oo;var si="PopperArrow",ym={top:"bottom",right:"left",bottom:"top",left:"right"},ii=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=bm(si,r),i=ym[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(gm,{...o,ref:n,style:{...o.style,display:"block"}})})});ii.displayName=si;function wm(e){return e!==null}var xm=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,u]=li(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(o.arrow?.x??0)+l/2,m=(o.arrow?.y??0)+c/2;let b="",p="";return d==="bottom"?(b=i?f:`${g}px`,p=`${-c}px`):d==="top"?(b=i?f:`${g}px`,p=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,p=i?f:`${m}px`):d==="left"&&(b=`${r.floating.width+c}px`,p=i?f:`${m}px`),{data:{x:b,y:p}}}});function li(e){const[t,n="center"]=e.split("-");return[t,n]}var ao=ni,In=oi,so=ai,io=ii,Cm="Portal",Qt=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=h.useState(!1);ue(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Bo.createPortal(s.jsx(U.div,{...r,ref:t}),i):null});Qt.displayName=Cm;var Nm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pt=new WeakMap,Ln=new WeakMap,Fn={},lo=0,ci=function(e){return e&&(e.host||ci(e.parentNode))},Sm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ci(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Am=function(e,t,n,r){var o=Sm(t,Array.isArray(e)?e:[e]);Fn[n]||(Fn[n]=new WeakMap);var a=Fn[n],i=[],l=new Set,c=new Set(o),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};o.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(l.has(g))u(g);else try{var m=g.getAttribute(r),b=m!==null&&m!=="false",p=(Pt.get(g)||0)+1,v=(a.get(g)||0)+1;Pt.set(g,p),a.set(g,v),i.push(g),p===1&&b&&Ln.set(g,!0),v===1&&g.setAttribute(n,"true"),b||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return u(t),l.clear(),lo++,function(){i.forEach(function(f){var g=Pt.get(f)-1,m=a.get(f)-1;Pt.set(f,g),a.set(f,m),g||(Ln.has(f)||f.removeAttribute(r),Ln.delete(f)),m||f.removeAttribute(n)}),lo--,lo||(Pt=new WeakMap,Pt=new WeakMap,Ln=new WeakMap,Fn={})}},co=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Nm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Am(r,o,n,"aria-hidden")):function(){return null}},Ve=function(){return Ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ve.apply(this,arguments)};function di(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function km(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Wn="right-scroll-bar-position",Bn="width-before-scroll-bar",Pm="with-scroll-bars-hidden",Em="--removed-body-scroll-bar-size";function uo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _m(e,t){var n=P.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Mm=typeof window<"u"?h.useLayoutEffect:h.useEffect,ui=new WeakMap;function Tm(e,t){var n=_m(null,function(r){return e.forEach(function(o){return uo(o,r)})});return Mm(function(){var r=ui.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(l){a.has(l)||uo(l,null)}),a.forEach(function(l){o.has(l)||uo(l,i)})}ui.set(n,e)},[e]),n}function Dm(e){return e}function Om(e,t){t===void 0&&(t=Dm);var n=[],r=!1,o={read:function(){if(r)throw new 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(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(a),i=n}var c=function(){var u=i;i=[],u.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){i.push(u),d()},filter:function(u){return i=i.filter(u),n}}}};return o}function Im(e){e===void 0&&(e={});var t=Om(null);return t.options=Ve({async:!0,ssr:!1},e),t}var fi=function(e){var t=e.sideCar,n=di(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Ve({},n))};fi.isSideCarExport=!0;function Lm(e,t){return e.useMedium(t),fi}var hi=Im(),fo=function(){},zn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:fo,onWheelCapture:fo,onTouchMoveCapture:fo}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,f=e.shards,g=e.sideCar,m=e.noRelative,b=e.noIsolation,p=e.inert,v=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,N=di(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,M=Tm([n,t]),A=Ve(Ve({},N),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:hi,removeScrollBar:d,shards:f,noRelative:m,noIsolation:b,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:x}),i?h.cloneElement(h.Children.only(l),Ve(Ve({},A),{ref:M})):h.createElement(y,Ve({},A,{className:c,ref:M}),l))});zn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zn.classNames={fullWidth:Bn,zeroRight:Wn};var Fm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fm();return t&&e.setAttribute("nonce",t),e}function Bm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $m=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wm())&&(Bm(t,n),zm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hm=function(){var e=$m();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pi=function(){var e=Hm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Vm={left:0,top:0,right:0,gap:0},ho=function(e){return parseInt(e||"",10)||0},Ym=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ho(n),ho(r),ho(o)]},jm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vm;var t=Ym(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])}},Gm=pi(),Et="data-scroll-locked",Um=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(Pm,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(l,"px ").concat(r,`;
5
5
  }
6
- body[`).concat(_t,`] {
6
+ body[`).concat(Et,`] {
7
7
  overflow: hidden `).concat(r,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
10
  padding-left: `.concat(o,`px;
11
11
  padding-top: `).concat(a,`px;
12
- padding-right: `).concat(s,`px;
12
+ padding-right: `).concat(i,`px;
13
13
  margin-left:0;
14
14
  margin-top:0;
15
15
  margin-right: `).concat(l,"px ").concat(r,`;
16
16
  `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Fn,` {
19
+ .`).concat(Wn,` {
20
20
  right: `).concat(l,"px ").concat(r,`;
21
21
  }
22
22
 
23
- .`).concat(Wn,` {
23
+ .`).concat(Bn,` {
24
24
  margin-right: `).concat(l,"px ").concat(r,`;
25
25
  }
26
26
 
27
- .`).concat(Fn," .").concat(Fn,` {
27
+ .`).concat(Wn," .").concat(Wn,` {
28
28
  right: 0 `).concat(r,`;
29
29
  }
30
30
 
31
- .`).concat(Wn," .").concat(Wn,` {
31
+ .`).concat(Bn," .").concat(Bn,` {
32
32
  margin-right: 0 `).concat(r,`;
33
33
  }
34
34
 
35
- body[`).concat(_t,`] {
36
- `).concat(_m,": ").concat(l,`px;
35
+ body[`).concat(Et,`] {
36
+ `).concat(Em,": ").concat(l,`px;
37
37
  }
38
- `)},mi=function(){var e=parseInt(document.body.getAttribute(_t)||"0",10);return isFinite(e)?e:0},Qm=function(){h.useEffect(function(){return document.body.setAttribute(_t,(mi()+1).toString()),function(){var e=mi()-1;e<=0?document.body.removeAttribute(_t):document.body.setAttribute(_t,e.toString())}},[])},qm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Qm();var a=h.useMemo(function(){return Gm(o)},[o]);return h.createElement(Um,{styles:Km(a,!t,o,n?"":"!important")})},po=!1;if(typeof window<"u")try{var $n=Object.defineProperty({},"passive",{get:function(){return po=!0,!0}});window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{po=!1}var Tt=po?{passive:!1}:!1,Xm=function(e){return e.tagName==="TEXTAREA"},vi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xm(e)&&n[t]==="visible")},Zm=function(e){return vi(e,"overflowY")},Jm=function(e){return vi(e,"overflowX")},bi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=yi(e,r);if(o){var a=wi(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Rm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ev=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yi=function(e,t){return e==="v"?Zm(t):Jm(t)},wi=function(e,t){return e==="v"?Rm(t):ev(t)},tv=function(e,t){return e==="h"&&t==="rtl"?-1:1},nv=function(e,t,n,r,o){var a=tv(e,window.getComputedStyle(t).direction),s=a*r,l=n.target,c=t.contains(l),d=!1,u=s>0,f=0,g=0;do{if(!l)break;var m=wi(e,l),y=m[0],p=m[1],v=m[2],w=p-v-a*y;(y||w)&&yi(e,l)&&(f+=w,g+=y);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&Math.abs(f)<1||!u&&Math.abs(g)<1)&&(d=!0),d},zn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xi=function(e){return[e.deltaX,e.deltaY]},Ci=function(e){return e&&"current"in e?e.current:e},rv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ov=function(e){return`
38
+ `)},gi=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},Km=function(){h.useEffect(function(){return document.body.setAttribute(Et,(gi()+1).toString()),function(){var e=gi()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Qm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Km();var a=h.useMemo(function(){return jm(o)},[o]);return h.createElement(Gm,{styles:Um(a,!t,o,n?"":"!important")})},po=!1;if(typeof window<"u")try{var $n=Object.defineProperty({},"passive",{get:function(){return po=!0,!0}});window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{po=!1}var _t=po?{passive:!1}:!1,qm=function(e){return e.tagName==="TEXTAREA"},mi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qm(e)&&n[t]==="visible")},Xm=function(e){return mi(e,"overflowY")},Zm=function(e){return mi(e,"overflowX")},vi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=bi(e,r);if(o){var a=yi(e,r),i=a[1],l=a[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Rm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},bi=function(e,t){return e==="v"?Xm(t):Zm(t)},yi=function(e,t){return e==="v"?Jm(t):Rm(t)},ev=function(e,t){return e==="h"&&t==="rtl"?-1:1},tv=function(e,t,n,r,o){var a=ev(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,c=t.contains(l),d=!1,u=i>0,f=0,g=0;do{if(!l)break;var m=yi(e,l),b=m[0],p=m[1],v=m[2],w=p-v-a*b;(b||w)&&bi(e,l)&&(f+=w,g+=b);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&Math.abs(f)<1||!u&&Math.abs(g)<1)&&(d=!0),d},Hn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wi=function(e){return[e.deltaX,e.deltaY]},xi=function(e){return e&&"current"in e?e.current:e},nv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rv=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},av=0,Mt=[];function sv(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(av++)[0],a=h.useState(gi)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Pm([e.lockRef.current],(e.shards||[]).map(Ci),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var w=zn(p),b=n.current,x="deltaX"in p?p.deltaX:b[0]-w[0],N="deltaY"in p?p.deltaY:b[1]-w[1],S,T=p.target,k=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in p&&k==="h"&&T.type==="range")return!1;var A=window.getSelection(),z=A&&A.anchorNode,G=z?z===T||z.contains(T):!1;if(G)return!1;var M=bi(k,T);if(!M)return!0;if(M?S=k:(S=k==="v"?"h":"v",M=bi(k,T)),!M)return!1;if(!r.current&&"changedTouches"in p&&(x||N)&&(r.current=S),!S)return!0;var F=r.current||S;return nv(F,v,p,F==="h"?x:N)},[]),c=h.useCallback(function(p){var v=p;if(!(!Mt.length||Mt[Mt.length-1]!==a)){var w="deltaY"in v?xi(v):zn(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&rv(S.delta,w)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(s.current.shards||[]).map(Ci).filter(Boolean).filter(function(S){return S.contains(v.target)}),N=x.length>0?l(v,x[0]):!s.current.noIsolation;N&&v.cancelable&&v.preventDefault()}}},[]),d=h.useCallback(function(p,v,w,b){var x={name:p,delta:v,target:w,should:b,shadowParent:iv(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),u=h.useCallback(function(p){n.current=zn(p),r.current=void 0},[]),f=h.useCallback(function(p){d(p.type,xi(p),p.target,l(p,e.lockRef.current))},[]),g=h.useCallback(function(p){d(p.type,zn(p),p.target,l(p,e.lockRef.current))},[]);h.useEffect(function(){return Mt.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Tt),document.addEventListener("touchmove",c,Tt),document.addEventListener("touchstart",u,Tt),function(){Mt=Mt.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Tt),document.removeEventListener("touchmove",c,Tt),document.removeEventListener("touchstart",u,Tt)}},[]);var m=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(a,{styles:ov(o)}):null,m?h.createElement(qm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function iv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lv=Fm(pi,sv);var Hn=h.forwardRef(function(e,t){return h.createElement(Bn,Ve({},e,{ref:t,sideCar:lv}))});Hn.classNames=Bn.classNames;var Vn="Popover",[Ni]=Ce(Vn,[Pt]),qt=Pt(),[cv,et]=Ni(Vn),Si=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=qt(t),c=h.useRef(null),[d,u]=h.useState(!1),[f,g]=be({prop:r,defaultProp:o??!1,onChange:a,caller:Vn});return i.jsx(ao,{...l,children:i.jsx(cv,{scope:t,contentId:Ne(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:h.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:s,children:n})})};Si.displayName=Vn;var Ai="PopoverAnchor",dv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Ai,n),a=qt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return h.useEffect(()=>(s(),()=>l()),[s,l]),i.jsx(On,{...a,...r,ref:t})});dv.displayName=Ai;var ki="PopoverTrigger",Pi=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(ki,n),a=qt(n),s=X(t,o.triggerRef),l=i.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Di(o.open),...r,ref:s,onClick:Y(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:i.jsx(On,{asChild:!0,...a,children:l})});Pi.displayName=ki;var go="PopoverPortal",[uv,fv]=Ni(go,{forceMount:void 0}),Ei=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=et(go,t);return i.jsx(uv,{scope:t,forceMount:n,children:i.jsx(Oe,{present:n||a.open,children:i.jsx(Qt,{asChild:!0,container:o,children:r})})})};Ei.displayName=go;var Dt="PopoverContent",_i=h.forwardRef((e,t)=>{const n=fv(Dt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=et(Dt,e.__scopePopover);return i.jsx(Oe,{present:r||a.open,children:a.modal?i.jsx(pv,{...o,ref:t}):i.jsx(gv,{...o,ref:t})})});_i.displayName=Dt;var hv=pt("PopoverContent.RemoveScroll"),pv=h.forwardRef((e,t)=>{const n=et(Dt,e.__scopePopover),r=h.useRef(null),o=X(t,r),a=h.useRef(!1);return h.useEffect(()=>{const s=r.current;if(s)return co(s)},[]),i.jsx(Hn,{as:hv,allowPinchZoom:!0,children:i.jsx(Ti,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,s=>{s.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Y(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Y(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),gv=h.forwardRef((e,t)=>{const n=et(Dt,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return i.jsx(Ti,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ti=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...f}=e,g=et(Dt,n),m=qt(n);return Yr(),i.jsx(Cn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(jt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:i.jsx(so,{"data-state":Di(g.open),role:"dialog",id:g.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Mi="PopoverClose",mv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Mi,n);return i.jsx(K.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,()=>o.onOpenChange(!1))})});mv.displayName=Mi;var vv="PopoverArrow",bv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qt(n);return i.jsx(io,{...o,...r,ref:t})});bv.displayName=vv;function Di(e){return e?"open":"closed"}var Oi=Si,Ii=Pi,Li=Ei,Fi=_i;const mo=E.forwardRef(({label:e,placeholder:t,className:n,type:r="button",...o},a)=>i.jsxs("button",{ref:a,type:r,className:P("group flex h-10 w-full items-center justify-between gap-3 rounded-3 border border-gray-300 bg-white px-5","transition-colors duration-200","data-[state=open]:border-main-500 hover:border-gray-400 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60",n),...o,children:[i.jsx(B,{size:"body2",weight:"medium",className:P(e?"text-gray-900":"text-gray-500"),children:e??t}),i.jsx(Pa,{className:"h-6 w-6 text-gray-600",strokeWidth:2.2})]}));mo.displayName="PickerTrigger";function Wi(e){return e?{onMouseDownCapture:t=>t.stopPropagation()}:{}}function yv({value:e,onChange:t,className:n,placeholder:r="YYYY/MM/DD",disableClickPropagation:o=!1}){const[a,s]=E.useState(!1),l=e?ke(e,"yyyy/MM/dd"):void 0;return i.jsxs(Oi,{open:a,onOpenChange:s,children:[i.jsx(Ii,{asChild:!0,children:i.jsx(mo,{label:l,placeholder:r,className:n})}),i.jsx(Li,{children:i.jsx(Fi,{className:P("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] outline-none","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"),align:"start",sideOffset:8,...Wi(o),children:i.jsx(Lr,{mode:"single",selected:e,onSelect:c=>{t(c),c&&s(!1)},initialFocus:!0})})})]})}function wv({value:e,onChange:t,className:n,placeholder:r="기간을 선택해주세요",disableClickPropagation:o=!1}){const[a,s]=E.useState(!1),l=E.useRef(!1),c=e?.from&&e?.to?`${ke(e.from,"yyyy/MM/dd")} - ${ke(e.to,"yyyy/MM/dd")}`:e?.from?`${ke(e.from,"yyyy/MM/dd")} -`:void 0;return i.jsxs(Oi,{open:a,onOpenChange:d=>{if(s(d),d){l.current=!!(e?.from&&e?.to);return}l.current=!1},children:[i.jsx(Ii,{asChild:!0,children:i.jsx(mo,{label:c,placeholder:r,className:n})}),i.jsx(Li,{children:i.jsx(Fi,{className:P("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] outline-none","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"),align:"start",sideOffset:8,...Wi(o),children:i.jsx(Lr,{mode:"range",selected:e,onSelect:(d,u)=>{if(l.current&&u){t({from:u,to:void 0}),l.current=!1;return}t(d),d?.from&&d?.to&&(s(!1),l.current=!1)},initialFocus:!0})})})]})}var Yn="Dialog",[Bi]=Ce(Yn),[xv,Te]=Bi(Yn),$i=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=h.useRef(null),c=h.useRef(null),[d,u]=be({prop:r,defaultProp:o??!1,onChange:a,caller:Yn});return i.jsx(xv,{scope:t,triggerRef:l,contentRef:c,contentId:Ne(),titleId:Ne(),descriptionId:Ne(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};$i.displayName=Yn;var zi="DialogTrigger",Hi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(zi,n),a=X(t,o.triggerRef);return i.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yo(o.open),...r,ref:a,onClick:Y(e.onClick,o.onOpenToggle)})});Hi.displayName=zi;var vo="DialogPortal",[Cv,Vi]=Bi(vo,{forceMount:void 0}),Yi=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Te(vo,t);return i.jsx(Cv,{scope:t,forceMount:n,children:h.Children.map(r,s=>i.jsx(Oe,{present:n||a.open,children:i.jsx(Qt,{asChild:!0,container:o,children:s})}))})};Yi.displayName=vo;var jn="DialogOverlay",ji=h.forwardRef((e,t)=>{const n=Vi(jn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Te(jn,e.__scopeDialog);return a.modal?i.jsx(Oe,{present:r||a.open,children:i.jsx(Sv,{...o,ref:t})}):null});ji.displayName=jn;var Nv=pt("DialogOverlay.RemoveScroll"),Sv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(jn,n);return i.jsx(Hn,{as:Nv,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(K.div,{"data-state":yo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ct="DialogContent",Gi=h.forwardRef((e,t)=>{const n=Vi(ct,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Te(ct,e.__scopeDialog);return i.jsx(Oe,{present:r||a.open,children:a.modal?i.jsx(Av,{...o,ref:t}):i.jsx(kv,{...o,ref:t})})});Gi.displayName=ct;var Av=h.forwardRef((e,t)=>{const n=Te(ct,e.__scopeDialog),r=h.useRef(null),o=X(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return co(a)},[]),i.jsx(Ui,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Y(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault())})}),kv=h.forwardRef((e,t)=>{const n=Te(ct,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return i.jsx(Ui,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ui=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=Te(ct,n),c=h.useRef(null),d=X(t,c);return Yr(),i.jsxs(i.Fragment,{children:[i.jsx(Cn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(jt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":yo(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(Pv,{titleId:l.titleId}),i.jsx(_v,{contentRef:c,descriptionId:l.descriptionId})]})]})}),bo="DialogTitle",Ki=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(bo,n);return i.jsx(K.h2,{id:o.titleId,...r,ref:t})});Ki.displayName=bo;var Qi="DialogDescription",qi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Qi,n);return i.jsx(K.p,{id:o.descriptionId,...r,ref:t})});qi.displayName=Qi;var Xi="DialogClose",Zi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Xi,n);return i.jsx(K.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,()=>o.onOpenChange(!1))})});Zi.displayName=Xi;function yo(e){return e?"open":"closed"}var Ji="DialogTitleWarning",[ry,Ri]=hc(Ji,{contentName:ct,titleName:bo,docsSlug:"dialog"}),Pv=({titleId:e})=>{const t=Ri(Ji),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},ov=0,Mt=[];function av(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(ov++)[0],a=h.useState(pi)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=km([e.lockRef.current],(e.shards||[]).map(xi),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var w=Hn(p),y=n.current,x="deltaX"in p?p.deltaX:y[0]-w[0],N="deltaY"in p?p.deltaY:y[1]-w[1],S,M=p.target,A=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in p&&A==="h"&&M.type==="range")return!1;var k=window.getSelection(),$=k&&k.anchorNode,G=$?$===M||$.contains(M):!1;if(G)return!1;var T=vi(A,M);if(!T)return!0;if(T?S=A:(S=A==="v"?"h":"v",T=vi(A,M)),!T)return!1;if(!r.current&&"changedTouches"in p&&(x||N)&&(r.current=S),!S)return!0;var W=r.current||S;return tv(W,v,p,W==="h"?x:N)},[]),c=h.useCallback(function(p){var v=p;if(!(!Mt.length||Mt[Mt.length-1]!==a)){var w="deltaY"in v?wi(v):Hn(v),y=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&nv(S.delta,w)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(xi).filter(Boolean).filter(function(S){return S.contains(v.target)}),N=x.length>0?l(v,x[0]):!i.current.noIsolation;N&&v.cancelable&&v.preventDefault()}}},[]),d=h.useCallback(function(p,v,w,y){var x={name:p,delta:v,target:w,should:y,shadowParent:sv(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),u=h.useCallback(function(p){n.current=Hn(p),r.current=void 0},[]),f=h.useCallback(function(p){d(p.type,wi(p),p.target,l(p,e.lockRef.current))},[]),g=h.useCallback(function(p){d(p.type,Hn(p),p.target,l(p,e.lockRef.current))},[]);h.useEffect(function(){return Mt.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,_t),document.addEventListener("touchmove",c,_t),document.addEventListener("touchstart",u,_t),function(){Mt=Mt.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,_t),document.removeEventListener("touchmove",c,_t),document.removeEventListener("touchstart",u,_t)}},[]);var m=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(a,{styles:rv(o)}):null,m?h.createElement(Qm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iv=Lm(hi,av);var Vn=h.forwardRef(function(e,t){return h.createElement(zn,Ve({},e,{ref:t,sideCar:iv}))});Vn.classNames=zn.classNames;var Yn="Popover",[Ci]=Ne(Yn,[kt]),qt=kt(),[lv,et]=Ci(Yn),Ni=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=qt(t),c=h.useRef(null),[d,u]=h.useState(!1),[f,g]=be({prop:r,defaultProp:o??!1,onChange:a,caller:Yn});return s.jsx(ao,{...l,children:s.jsx(lv,{scope:t,contentId:Se(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:h.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:i,children:n})})};Ni.displayName=Yn;var Si="PopoverAnchor",cv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Si,n),a=qt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return h.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(In,{...a,...r,ref:t})});cv.displayName=Si;var Ai="PopoverTrigger",ki=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Ai,n),a=qt(n),i=J(t,o.triggerRef),l=s.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ti(o.open),...r,ref:i,onClick:V(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(In,{asChild:!0,...a,children:l})});ki.displayName=Ai;var go="PopoverPortal",[dv,uv]=Ci(go,{forceMount:void 0}),Pi=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=et(go,t);return s.jsx(dv,{scope:t,forceMount:n,children:s.jsx(Oe,{present:n||a.open,children:s.jsx(Qt,{asChild:!0,container:o,children:r})})})};Pi.displayName=go;var Tt="PopoverContent",Ei=h.forwardRef((e,t)=>{const n=uv(Tt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=et(Tt,e.__scopePopover);return s.jsx(Oe,{present:r||a.open,children:a.modal?s.jsx(hv,{...o,ref:t}):s.jsx(pv,{...o,ref:t})})});Ei.displayName=Tt;var fv=ht("PopoverContent.RemoveScroll"),hv=h.forwardRef((e,t)=>{const n=et(Tt,e.__scopePopover),r=h.useRef(null),o=J(t,r),a=h.useRef(!1);return h.useEffect(()=>{const i=r.current;if(i)return co(i)},[]),s.jsx(Vn,{as:fv,allowPinchZoom:!0,children:s.jsx(_i,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),pv=h.forwardRef((e,t)=>{const n=et(Tt,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(_i,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_i=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...f}=e,g=et(Tt,n),m=qt(n);return Yr(),s.jsx(Nn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(jt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:s.jsx(so,{"data-state":Ti(g.open),role:"dialog",id:g.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Mi="PopoverClose",gv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Mi,n);return s.jsx(U.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});gv.displayName=Mi;var mv="PopoverArrow",vv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qt(n);return s.jsx(io,{...o,...r,ref:t})});vv.displayName=mv;function Ti(e){return e?"open":"closed"}var Di=Ni,Oi=ki,Ii=Pi,Li=Ei;const mo=P.forwardRef(({label:e,placeholder:t,className:n,type:r="button",...o},a)=>s.jsxs("button",{ref:a,type:r,className:E("group flex h-10 w-full items-center justify-between gap-3 rounded-3 border border-gray-300 bg-white px-5","transition-colors duration-200","data-[state=open]:border-main-500 hover:border-gray-400 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60",n),...o,children:[s.jsx(F,{size:"body2",weight:"medium",className:E(e?"text-gray-900":"text-gray-500"),children:e??t}),s.jsx(Pa,{className:"h-6 w-6 text-gray-600",strokeWidth:2.2})]}));mo.displayName="PickerTrigger";function Fi(e){return e?{onMouseDownCapture:t=>t.stopPropagation()}:{}}function bv({value:e,onChange:t,className:n,placeholder:r="YYYY/MM/DD",disableClickPropagation:o=!1}){const[a,i]=P.useState(!1),l=e?Pe(e,"yyyy/MM/dd"):void 0;return s.jsxs(Di,{open:a,onOpenChange:i,children:[s.jsx(Oi,{asChild:!0,children:s.jsx(mo,{label:l,placeholder:r,className:n})}),s.jsx(Ii,{children:s.jsx(Li,{className:E("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] outline-none","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"),align:"start",sideOffset:8,...Fi(o),children:s.jsx(Lr,{mode:"single",selected:e,onSelect:c=>{t(c),c&&i(!1)},initialFocus:!0})})})]})}function yv({value:e,onChange:t,className:n,placeholder:r="기간을 선택해주세요",disableClickPropagation:o=!1}){const[a,i]=P.useState(!1),l=P.useRef(!1),c=e?.from&&e?.to?`${Pe(e.from,"yyyy/MM/dd")} - ${Pe(e.to,"yyyy/MM/dd")}`:e?.from?`${Pe(e.from,"yyyy/MM/dd")} -`:void 0;return s.jsxs(Di,{open:a,onOpenChange:d=>{if(i(d),d){l.current=!!(e?.from&&e?.to);return}l.current=!1},children:[s.jsx(Oi,{asChild:!0,children:s.jsx(mo,{label:c,placeholder:r,className:n})}),s.jsx(Ii,{children:s.jsx(Li,{className:E("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] outline-none","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"),align:"start",sideOffset:8,...Fi(o),children:s.jsx(Lr,{mode:"range",selected:e,onSelect:(d,u)=>{if(l.current&&u){t({from:u,to:void 0}),l.current=!1;return}t(d),d?.from&&d?.to&&(i(!1),l.current=!1)},initialFocus:!0})})})]})}var jn="Dialog",[Wi]=Ne(jn),[wv,Te]=Wi(jn),Bi=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=h.useRef(null),c=h.useRef(null),[d,u]=be({prop:r,defaultProp:o??!1,onChange:a,caller:jn});return s.jsx(wv,{scope:t,triggerRef:l,contentRef:c,contentId:Se(),titleId:Se(),descriptionId:Se(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:i,children:n})};Bi.displayName=jn;var zi="DialogTrigger",$i=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(zi,n),a=J(t,o.triggerRef);return s.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yo(o.open),...r,ref:a,onClick:V(e.onClick,o.onOpenToggle)})});$i.displayName=zi;var vo="DialogPortal",[xv,Hi]=Wi(vo,{forceMount:void 0}),Vi=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Te(vo,t);return s.jsx(xv,{scope:t,forceMount:n,children:h.Children.map(r,i=>s.jsx(Oe,{present:n||a.open,children:s.jsx(Qt,{asChild:!0,container:o,children:i})}))})};Vi.displayName=vo;var Gn="DialogOverlay",Yi=h.forwardRef((e,t)=>{const n=Hi(Gn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Te(Gn,e.__scopeDialog);return a.modal?s.jsx(Oe,{present:r||a.open,children:s.jsx(Nv,{...o,ref:t})}):null});Yi.displayName=Gn;var Cv=ht("DialogOverlay.RemoveScroll"),Nv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Gn,n);return s.jsx(Vn,{as:Cv,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(U.div,{"data-state":yo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ct="DialogContent",ji=h.forwardRef((e,t)=>{const n=Hi(ct,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Te(ct,e.__scopeDialog);return s.jsx(Oe,{present:r||a.open,children:a.modal?s.jsx(Sv,{...o,ref:t}):s.jsx(Av,{...o,ref:t})})});ji.displayName=ct;var Sv=h.forwardRef((e,t)=>{const n=Te(ct,e.__scopeDialog),r=h.useRef(null),o=J(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return co(a)},[]),s.jsx(Gi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:V(e.onFocusOutside,a=>a.preventDefault())})}),Av=h.forwardRef((e,t)=>{const n=Te(ct,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(Gi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Gi=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Te(ct,n),c=h.useRef(null),d=J(t,c);return Yr(),s.jsxs(s.Fragment,{children:[s.jsx(Nn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(jt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":yo(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(kv,{titleId:l.titleId}),s.jsx(Ev,{contentRef:c,descriptionId:l.descriptionId})]})]})}),bo="DialogTitle",Ui=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(bo,n);return s.jsx(U.h2,{id:o.titleId,...r,ref:t})});Ui.displayName=bo;var Ki="DialogDescription",Qi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Ki,n);return s.jsx(U.p,{id:o.descriptionId,...r,ref:t})});Qi.displayName=Ki;var qi="DialogClose",Xi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(qi,n);return s.jsx(U.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});Xi.displayName=qi;function yo(e){return e?"open":"closed"}var Zi="DialogTitleWarning",[ny,Ji]=uc(Zi,{contentName:ct,titleName:bo,docsSlug:"dialog"}),kv=({titleId:e})=>{const t=Ji(Zi),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ev="DialogDescriptionWarning",_v=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ri(Ev).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Tv=$i,Mv=Hi,Dv=Yi,Ov=ji,Iv=Gi,Lv=Ki,Fv=qi,el=Zi;const Wv=Tv,Bv=Mv,tl=Dv,$v=el;function nl({className:e,...t}){return i.jsx(Ov,{className:P("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function zv({className:e,children:t,...n}){return i.jsxs(tl,{children:[i.jsx(nl,{}),i.jsxs(Iv,{className:P("fixed top-[50%] left-[50%] z-50","w-full max-w-[calc(100%-2rem)] sm:max-w-md","translate-x-[-50%] translate-y-[-50%]","rounded-2 bg-white p-4 sm:p-6 shadow-default","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-slot=button].h-13]:!h-11","[&_[data-slot=button].h-13]:!px-3.5","[&_[data-slot=button].h-11]:!h-9","[&_[data-slot=button]_.text-lg]:!text-base","[&_[data-slot=button]_.text-base]:!text-sm","duration-200",e),...n,children:[t,i.jsxs(el,{className:"absolute top-3 right-3 sm:top-4 sm:right-4 rounded-full p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:outline-none cursor-pointer",children:[i.jsx(mn,{width:18,height:18,className:"text-gray-500 sm:w-5 sm:h-5"}),i.jsx("span",{className:"sr-only",children:"닫기"})]})]})]})}function Hv({className:e,...t}){return i.jsx("div",{className:P("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Vv({className:e,...t}){return i.jsx("div",{className:P("mt-4 sm:mt-6 flex flex-row justify-end gap-2",e),...t})}function Yv({className:e,children:t,...n}){return i.jsx(Lv,{asChild:!0,...n,children:i.jsx(B,{size:"heading2",weight:"bold",className:P("text-black",e),children:t})})}function jv({className:e,children:t,...n}){return i.jsx(Fv,{asChild:!0,...n,children:i.jsx(B,{size:"body2",weight:"regular",className:P("text-gray-600 mt-2",e),children:t})})}function Gv({imageUrl:e,alt:t,percent:n,emotion:r,isLiked:o,likeCount:a,onToggleLike:s}){const l={happy:"😎",soso:"🙂",sad:"🥲"},c=Math.min(Math.max(n,0),100),d=!!(e&&e.trim().length>0);return i.jsxs("div",{className:"relative aspect-4/5 w-full overflow-hidden bg-gray-100",children:[d?i.jsx(ht,{src:e,alt:t,fill:!0,className:"h-full w-full object-cover"}):i.jsx(Fr,{className:"h-full w-full",logoSize:"lg"}),d?i.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-linear-to-t from-black/15 to-transparent"}):null,i.jsx("div",{className:"absolute top-3 left-3 z-20",children:i.jsx("div",{className:"relative flex h-12 w-12 items-center justify-center rounded-full bg-white shadow-[0_6px_14px_rgba(34,34,34,0.2)]",children:i.jsx(xs,{value:c,size:"sm",showPercentage:!0})})}),i.jsx("div",{className:"absolute top-3 right-3 z-20 text-3xl leading-none",children:i.jsx("span",{role:"img","aria-label":r,children:l[r]})}),i.jsx("div",{className:"absolute bottom-3 left-3 z-20",children:i.jsxs("button",{type:"button",onClick:u=>{u.stopPropagation(),s()},className:"inline-flex items-center gap-1 rounded-full bg-main-800 px-3 py-1.5 text-white shadow-[0_4px_10px_rgba(34,34,34,0.25)] transition-colors hover:bg-main-900",children:[o?i.jsx(Ma,{width:14,height:14,className:"text-white"}):i.jsx(Ta,{width:14,height:14,className:"text-white"}),i.jsx(B,{size:"body2",weight:"bold",className:"text-white",children:a})]})})]})}function Uv({title:e,user:t,userImage:n,challengeLabel:r,challengeUrl:o,date:a}){return i.jsxs("div",{className:"flex w-full flex-col gap-3 p-4",children:[i.jsx(B,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 min-h-10 leading-tight text-gray-900",children:e}),i.jsx(fc,{href:o,className:"block w-full no-underline",children:i.jsx(B,{size:"body2",weight:"medium",className:"block w-full truncate text-blue-500",children:r})}),i.jsx("div",{className:"h-px w-full bg-gray-200"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Ft,{imageUrl:n,size:"sm"}),i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx(B,{size:"body2",weight:"bold",className:"text-gray-900",children:t}),i.jsx(B,{size:"caption2",weight:"regular",className:"text-gray-500",children:a})]})]})]})}function Kv({imageUrl:e,percent:t,likes:n,title:r,user:o,userImage:a,challengeLabel:s,challengeUrl:l,date:c,emotion:d="happy",onClick:u}){const[f,g]=E.useState(!1),[m,y]=E.useState(n),p=()=>{y(v=>f?v-1:v+1),g(v=>!v)};return i.jsx("div",{className:P("block w-full",u&&"cursor-pointer"),onClick:u,children:i.jsxs("div",{className:"overflow-hidden rounded-4 border border-gray-200 bg-white transition-transform duration-200 hover:-translate-y-1 hover:shadow-lg",children:[i.jsx(Gv,{imageUrl:e,alt:r,percent:t,emotion:d,isLiked:f,likeCount:m,onToggleLike:p}),i.jsx(Uv,{title:r,user:o,userImage:a,challengeLabel:s,challengeUrl:l,date:c})]})})}function rl(e,[t,n]){return Math.min(n,Math.max(t,e))}var ol=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"}),Qv="VisuallyHidden",al=h.forwardRef((e,t)=>i.jsx(K.span,{...e,ref:t,style:{...ol,...e.style}}));al.displayName=Qv;var qv=al,Xv=[" ","Enter","ArrowUp","ArrowDown"],Zv=[" ","Enter"],dt="Select",[Gn,Un,Jv]=Rn(dt),[Ot]=Ce(dt,[Jv,Pt]),Kn=Pt(),[Rv,tt]=Ot(dt),[e0,t0]=Ot(dt),sl=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:f,disabled:g,required:m,form:y}=e,p=Kn(t),[v,w]=h.useState(null),[b,x]=h.useState(null),[N,S]=h.useState(!1),T=on(d),[k,A]=be({prop:r,defaultProp:o??!1,onChange:a,caller:dt}),[z,G]=be({prop:s,defaultProp:l,onChange:c,caller:dt}),M=h.useRef(null),F=v?y||!!v.closest("form"):!0,[V,j]=h.useState(new Set),$=Array.from(V).map(W=>W.props.value).join(";");return i.jsx(ao,{...p,children:i.jsxs(Rv,{required:m,scope:t,trigger:v,onTriggerChange:w,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Ne(),value:z,onValueChange:G,open:k,onOpenChange:A,dir:T,triggerPointerDownPosRef:M,disabled:g,children:[i.jsx(Gn.Provider,{scope:t,children:i.jsx(e0,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(W=>{j(_=>new Set(_).add(W))},[]),onNativeOptionRemove:h.useCallback(W=>{j(_=>{const C=new Set(_);return C.delete(W),C})},[]),children:n})}),F?i.jsxs(Ml,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:z,onChange:W=>G(W.target.value),disabled:g,form:y,children:[z===void 0?i.jsx("option",{value:""}):null,Array.from(V)]},$):null]})})};sl.displayName=dt;var il="SelectTrigger",ll=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Kn(n),s=tt(il,n),l=s.disabled||r,c=X(t,s.onTriggerChange),d=Un(n),u=h.useRef("touch"),[f,g,m]=Ol(p=>{const v=d().filter(x=>!x.disabled),w=v.find(x=>x.value===s.value),b=Il(v,p,w);b!==void 0&&s.onValueChange(b.value)}),y=p=>{l||(s.onOpenChange(!0),m()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return i.jsx(On,{asChild:!0,...a,children:i.jsx(K.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Dl(s.value)?"":void 0,...o,ref:c,onClick:Y(o.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&y(p)}),onPointerDown:Y(o.onPointerDown,p=>{u.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(y(p),p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&Xv.includes(p.key)&&(y(),p.preventDefault())})})})});ll.displayName=il;var cl="SelectValue",dl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...l}=e,c=tt(cl,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=X(t,c.onValueNodeChange);return fe(()=>{d(u)},[d,u]),i.jsx(K.span,{...l,ref:f,style:{pointerEvents:"none"},children:Dl(c.value)?i.jsx(i.Fragment,{children:s}):a})});dl.displayName=cl;var n0="SelectIcon",ul=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ul.displayName=n0;var r0="SelectPortal",fl=e=>i.jsx(Qt,{asChild:!0,...e});fl.displayName=r0;var ut="SelectContent",hl=h.forwardRef((e,t)=>{const n=tt(ut,e.__scopeSelect),[r,o]=h.useState();if(fe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?tn.createPortal(i.jsx(pl,{scope:e.__scopeSelect,children:i.jsx(Gn.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),a):null}return i.jsx(gl,{...e,ref:t})});hl.displayName=ut;var Me=10,[pl,nt]=Ot(ut),o0="SelectContentImpl",a0=pt("SelectContent.RemoveScroll"),gl=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:y,hideWhenDetached:p,avoidCollisions:v,...w}=e,b=tt(ut,n),[x,N]=h.useState(null),[S,T]=h.useState(null),k=X(t,O=>N(O)),[A,z]=h.useState(null),[G,M]=h.useState(null),F=Un(n),[V,j]=h.useState(!1),$=h.useRef(!1);h.useEffect(()=>{if(x)return co(x)},[x]),Yr();const W=h.useCallback(O=>{const[re,...ie]=F().map(oe=>oe.ref.current),[Z]=ie.slice(-1),ee=document.activeElement;for(const oe of O)if(oe===ee||(oe?.scrollIntoView({block:"nearest"}),oe===re&&S&&(S.scrollTop=0),oe===Z&&S&&(S.scrollTop=S.scrollHeight),oe?.focus(),document.activeElement!==ee))return},[F,S]),_=h.useCallback(()=>W([A,x]),[W,A,x]);h.useEffect(()=>{V&&_()},[V,_]);const{onOpenChange:C,triggerPointerDownPosRef:q}=b;h.useEffect(()=>{if(x){let O={x:0,y:0};const re=Z=>{O={x:Math.abs(Math.round(Z.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(Z.pageY)-(q.current?.y??0))}},ie=Z=>{O.x<=10&&O.y<=10?Z.preventDefault():x.contains(Z.target)||C(!1),document.removeEventListener("pointermove",re),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",ie,{capture:!0})}}},[x,C,q]),h.useEffect(()=>{const O=()=>C(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[C]);const[ne,he]=Ol(O=>{const re=F().filter(ee=>!ee.disabled),ie=re.find(ee=>ee.ref.current===document.activeElement),Z=Il(re,O,ie);Z&&setTimeout(()=>Z.ref.current.focus())}),De=h.useCallback((O,re,ie)=>{const Z=!$.current&&!ie;(b.value!==void 0&&b.value===re||Z)&&(z(O),Z&&($.current=!0))},[b.value]),ae=h.useCallback(()=>x?.focus(),[x]),U=h.useCallback((O,re,ie)=>{const Z=!$.current&&!ie;(b.value!==void 0&&b.value===re||Z)&&M(O)},[b.value]),se=r==="popper"?wo:ml,ce=se===wo?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:y,hideWhenDetached:p,avoidCollisions:v}:{};return i.jsx(pl,{scope:n,content:x,viewport:S,onViewportChange:T,itemRefCallback:De,selectedItem:A,onItemLeave:ae,itemTextRefCallback:U,focusSelectedItem:_,selectedItemText:G,position:r,isPositioned:V,searchRef:ne,children:i.jsx(Hn,{as:a0,allowPinchZoom:!0,children:i.jsx(Cn,{asChild:!0,trapped:b.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:Y(o,O=>{b.trigger?.focus({preventScroll:!0}),O.preventDefault()}),children:i.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:i.jsx(se,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:O=>O.preventDefault(),...w,...ce,onPlaced:()=>j(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Y(w.onKeyDown,O=>{const re=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!re&&O.key.length===1&&he(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let Z=F().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(O.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const ee=O.target,oe=Z.indexOf(ee);Z=Z.slice(oe+1)}setTimeout(()=>W(Z)),O.preventDefault()}})})})})})})});gl.displayName=o0;var s0="SelectItemAlignedPosition",ml=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=tt(ut,n),s=nt(ut,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=X(t,k=>u(k)),g=Un(n),m=h.useRef(!1),y=h.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:w,focusSelectedItem:b}=s,x=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&p&&v&&w){const k=a.trigger.getBoundingClientRect(),A=d.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),G=w.getBoundingClientRect();if(a.dir!=="rtl"){const ee=G.left-A.left,oe=z.left-ee,xe=k.left-oe,ft=k.width+xe,Lo=Math.max(ft,A.width),Fo=window.innerWidth-Me,Wo=rl(oe,[Me,Math.max(Me,Fo-Lo)]);l.style.minWidth=ft+"px",l.style.left=Wo+"px"}else{const ee=A.right-G.right,oe=window.innerWidth-z.right-ee,xe=window.innerWidth-k.right-oe,ft=k.width+xe,Lo=Math.max(ft,A.width),Fo=window.innerWidth-Me,Wo=rl(oe,[Me,Math.max(Me,Fo-Lo)]);l.style.minWidth=ft+"px",l.style.right=Wo+"px"}const M=g(),F=window.innerHeight-Me*2,V=p.scrollHeight,j=window.getComputedStyle(d),$=parseInt(j.borderTopWidth,10),W=parseInt(j.paddingTop,10),_=parseInt(j.borderBottomWidth,10),C=parseInt(j.paddingBottom,10),q=$+W+V+C+_,ne=Math.min(v.offsetHeight*5,q),he=window.getComputedStyle(p),De=parseInt(he.paddingTop,10),ae=parseInt(he.paddingBottom,10),U=k.top+k.height/2-Me,se=F-U,ce=v.offsetHeight/2,O=v.offsetTop+ce,re=$+W+O,ie=q-re;if(re<=U){const ee=M.length>0&&v===M[M.length-1].ref.current;l.style.bottom="0px";const oe=d.clientHeight-p.offsetTop-p.offsetHeight,xe=Math.max(se,ce+(ee?ae:0)+oe+_),ft=re+xe;l.style.height=ft+"px"}else{const ee=M.length>0&&v===M[0].ref.current;l.style.top="0px";const xe=Math.max(U,$+p.offsetTop+(ee?De:0)+ce)+ie;l.style.height=xe+"px",p.scrollTop=re-U+p.offsetTop}l.style.margin=`${Me}px 0`,l.style.minHeight=ne+"px",l.style.maxHeight=F+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,l,d,p,v,w,a.dir,r]);fe(()=>x(),[x]);const[N,S]=h.useState();fe(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const T=h.useCallback(k=>{k&&y.current===!0&&(x(),b?.(),y.current=!1)},[x,b]);return i.jsx(l0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:i.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:i.jsx(K.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ml.displayName=s0;var i0="SelectPopperPosition",wo=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Me,...a}=e,s=Kn(n);return i.jsx(so,{...s,...a,ref:t,align:r,collisionPadding:o,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)"}})});wo.displayName=i0;var[l0,xo]=Ot(ut,{}),Co="SelectViewport",vl=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=nt(Co,n),s=xo(Co,n),l=X(t,a.onViewportChange),c=h.useRef(0);return i.jsxs(i.Fragment,{children:[i.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}),i.jsx(Gn.Slot,{scope:n,children:i.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Y(o.onScroll,d=>{const u=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g?.current&&f){const m=Math.abs(c.current-u.scrollTop);if(m>0){const y=window.innerHeight-Me*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),w=Math.max(p,v);if(w<y){const b=w+m,x=Math.min(y,b),N=b-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=N>0?N:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});vl.displayName=Co;var bl="SelectGroup",[c0,d0]=Ot(bl),yl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ne();return i.jsx(c0,{scope:n,id:o,children:i.jsx(K.div,{role:"group","aria-labelledby":o,...r,ref:t})})});yl.displayName=bl;var wl="SelectLabel",xl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=d0(wl,n);return i.jsx(K.div,{id:o.id,...r,ref:t})});xl.displayName=wl;var Qn="SelectItem",[u0,Cl]=Ot(Qn),Nl=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,l=tt(Qn,n),c=nt(Qn,n),d=l.value===r,[u,f]=h.useState(a??""),[g,m]=h.useState(!1),y=X(t,b=>c.itemRefCallback?.(b,r,o)),p=Ne(),v=h.useRef("touch"),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(u0,{scope:n,value:r,disabled:o,textId:p,isSelected:d,onItemTextChange:h.useCallback(b=>{f(x=>x||(b?.textContent??"").trim())},[]),children:i.jsx(Gn.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:i.jsx(K.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:y,onFocus:Y(s.onFocus,()=>m(!0)),onBlur:Y(s.onBlur,()=>m(!1)),onClick:Y(s.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:Y(s.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:Y(s.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:Y(s.onPointerMove,b=>{v.current=b.pointerType,o?c.onItemLeave?.():v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(s.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Y(s.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(Zv.includes(b.key)&&w(),b.key===" "&&b.preventDefault())})})})})});Nl.displayName=Qn;var Xt="SelectItemText",Sl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=tt(Xt,n),l=nt(Xt,n),c=Cl(Xt,n),d=t0(Xt,n),[u,f]=h.useState(null),g=X(t,w=>f(w),c.onItemTextChange,w=>l.itemTextRefCallback?.(w,c.value,c.disabled)),m=u?.textContent,y=h.useMemo(()=>i.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return fe(()=>(p(y),()=>v(y)),[p,v,y]),i.jsxs(i.Fragment,{children:[i.jsx(K.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?tn.createPortal(a.children,s.valueNode):null]})});Sl.displayName=Xt;var Al="SelectItemIndicator",kl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Cl(Al,n).isSelected?i.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});kl.displayName=Al;var No="SelectScrollUpButton",Pl=h.forwardRef((e,t)=>{const n=nt(No,e.__scopeSelect),r=xo(No,e.__scopeSelect),[o,a]=h.useState(!1),s=X(t,r.onScrollButtonChange);return fe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(_l,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Pl.displayName=No;var So="SelectScrollDownButton",El=h.forwardRef((e,t)=>{const n=nt(So,e.__scopeSelect),r=xo(So,e.__scopeSelect),[o,a]=h.useState(!1),s=X(t,r.onScrollButtonChange);return fe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(_l,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});El.displayName=So;var _l=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=nt("SelectScrollButton",n),s=h.useRef(null),l=Un(n),c=h.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),fe(()=>{l().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),i.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{a.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{c()})})}),f0="SelectSeparator",Tl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});Tl.displayName=f0;var Ao="SelectArrow",h0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kn(n),a=tt(Ao,n),s=nt(Ao,n);return a.open&&s.position==="popper"?i.jsx(io,{...o,...r,ref:t}):null});h0.displayName=Ao;var p0="SelectBubbleInput",Ml=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),a=X(r,o),s=fs(t);return h.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&u){const f=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(f)}},[s,t]),i.jsx(K.select,{...n,style:{...ol,...n.style},ref:a,defaultValue:t})});Ml.displayName=p0;function Dl(e){return e===""||e===void 0}function Ol(e){const t=Xe(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(s=>{const l=n.current+s;t(l),(function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),a=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Il(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=g0(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function g0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var m0=sl,v0=ll,b0=dl,y0=ul,w0=fl,x0=hl,C0=vl,N0=yl,S0=xl,A0=Nl,k0=Sl,P0=kl,E0=Pl,_0=El,T0=Tl;const M0=m0,D0=N0,O0=b0;function I0({className:e,size:t="default",children:n,...r}){const o=t==="sm";return i.jsxs(v0,{"data-slot":"select-trigger","data-size":t,className:P("group flex w-full items-center justify-between whitespace-nowrap border-2 bg-white outline-none transition-all duration-200","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-gray-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o?"h-10 min-w-[180px] rounded-3 border-gray-300 px-3.5":"h-10 min-w-[220px] rounded-3 border-gray-300 px-4 shadow-[0_4px_10px_rgba(34,34,34,0.06)]",e),...r,children:[i.jsx(B,{size:"body2",weight:"medium",className:"line-clamp-1 text-gray-900",children:n}),i.jsx(y0,{asChild:!0,children:i.jsx(fn,{"data-slot":"select-chevron",className:P("pointer-events-none shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]:rotate-180","h-4 w-4"),strokeWidth:2.8})})]})}function L0({className:e,children:t,...n}){return i.jsxs(A0,{"data-slot":"select-item",className:P("relative flex w-full cursor-pointer items-center gap-3 rounded-2 px-3.5 py-2.5 outline-hidden select-none","text-gray-900 transition-colors focus:bg-gray-100 focus:text-gray-900","data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center",children:i.jsx(P0,{children:i.jsx(bt,{className:"size-4 text-main-800"})})}),i.jsx(k0,{children:i.jsx(B,{size:"body2",weight:"medium",children:t})})]})}function F0({className:e,...t}){return i.jsx(T0,{"data-slot":"select-separator",className:P("pointer-events-none my-1 h-px bg-gray-200",e),...t})}function Ll({className:e,...t}){return i.jsx(E0,{"data-slot":"select-scroll-up-button",className:P("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:i.jsx(_a,{className:"size-4"})})}function Fl({className:e,...t}){return i.jsx(_0,{"data-slot":"select-scroll-down-button",className:P("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:i.jsx(fn,{className:"size-4"})})}function W0({className:e,children:t,position:n="popper",...r}){return i.jsx(w0,{children:i.jsxs(x0,{"data-slot":"select-content",className:P("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto","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",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","rounded-[24px] border-2 border-gray-300 bg-white shadow-[0_10px_20px_rgba(34,34,34,0.1)]",e),position:n,...r,children:[i.jsx(Ll,{}),i.jsx(C0,{className:P("p-2",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),i.jsx(Fl,{})]})})}function B0({className:e,...t}){return i.jsx(S0,{"data-slot":"select-label",className:P("px-4 py-2 text-xs font-bold text-gray-500",e),...t})}function $0({goals:e,defaultGoals:t=[],onGoalsChange:n,placeholder:r="목표를 입력하세요",disabled:o=!1,addOnBlur:a=!1,inputAriaLabel:s="목표 입력",className:l,...c}){const d=e!==void 0,[u,f]=E.useState(t),[g,m]=E.useState(""),y=d?e:u,p=b=>{d||f(b),n?.(b)},v=()=>{if(o)return;const b=g.trim();b&&(p([...y,b]),m(""))},w=b=>{o||p(y.filter((x,N)=>N!==b))};return i.jsxs("div",{className:P("flex w-full flex-col gap-4",l),...c,children:[y.map((b,x)=>i.jsxs("div",{className:"flex h-16 w-full items-center justify-between rounded-4 border border-gray-300 bg-white px-5",children:[i.jsx(B,{size:"body1",weight:"bold",className:"line-clamp-1 text-gray-900",children:b}),i.jsx("button",{type:"button","aria-label":`목표 삭제: ${b}`,disabled:o,onClick:()=>w(x),className:P("inline-flex h-8 w-8 items-center justify-center rounded-2 text-gray-600 transition-colors",!o&&"hover:bg-gray-100 hover:text-gray-700",o&&"cursor-not-allowed text-gray-400"),children:i.jsx(mn,{className:"h-5 w-5"})})]},`${b}-${x}`)),i.jsx("input",{type:"text",value:g,disabled:o,"aria-label":s,placeholder:r,onChange:b=>m(b.target.value),onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),v())},onBlur:()=>{a&&v()},className:P("h-16 w-full rounded-4 border border-gray-300 bg-white px-5","text-xl font-medium text-gray-900 placeholder:text-gray-500","outline-none transition-all duration-200","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o&&"cursor-not-allowed opacity-60")})]})}function z0({onChange:e,...t}){const n=E.useRef(null),[r,o]=E.useState(null),a=()=>{n.current?.click()},s=l=>{const c=l.target.files?.[0];if(c){const d=URL.createObjectURL(c);o(d)}};return i.jsxs("div",{className:"relative h-20 w-20 sm:h-25 sm:w-25 cursor-pointer",onClick:a,children:[i.jsx("input",{type:"file",accept:"image/*",ref:n,className:"hidden",onChange:l=>{e!==void 0&&e(l),s(l)},...t}),i.jsx("div",{className:P("bg-main-300 flex h-full w-full","items-center justify-center rounded-full overflow-hidden"),children:r?i.jsx(ht,{src:r,alt:"이미지 미리보기",fill:!0,className:"rounded-full object-cover"}):i.jsx(Wt,{width:24,height:40,className:"text-main-700 sm:w-[30px] sm:h-[50px]"})}),i.jsx("div",{className:"absolute right-0 bottom-0 flex h-7.5 w-7.5 items-center justify-center rounded-full bg-white inset-ring-1 inset-ring-gray-400",children:i.jsx(Oa,{width:24,height:24,className:"text-gray-500"})})]})}function H0({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:s,className:l}){return i.jsxs("div",{className:P("rounded-2 relative overflow-hidden p-4 sm:p-6 text-white","flex flex-col justify-between","h-36 w-full sm:h-47.5 sm:w-56","hover:shadow-default","hover:-translate-y-1","transition-all duration-300",s&&"cursor-pointer",l),style:{backgroundImage:`linear-gradient(to bottom right, ${o}, ${a})`},onClick:s,children:[i.jsxs("div",{className:"flex w-full flex-col gap-0.5 sm:gap-1",children:[i.jsx(B,{size:"caption3",weight:"medium",className:"opacity-80 sm:text-sm",children:e}),i.jsx(B,{size:"body1",weight:"bold",className:"mt-0.5 sm:mt-1 sm:text-2xl",children:t})]}),i.jsx("div",{className:"absolute bottom-4 left-4 sm:bottom-6 sm:left-6",children:i.jsx(ht,{src:n,alt:r,width:36,height:60,className:"object-contain sm:w-12 sm:h-19.5"})}),i.jsx(B,{size:"heading1",weight:"bold",className:"absolute right-4 bottom-4 sm:right-6 sm:bottom-6 sm:text-4xl",children:"→"})]})}function V0(){return i.jsxs("div",{className:"flex items-end gap-2",children:[i.jsx(Wt,{width:24,height:40,className:"text-gray-300"}),i.jsx(B,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}const Zt="...";function Y0({currentPage:e,totalPages:t,siblingCount:n=1}){return h.useMemo(()=>{if(n+5>=t)return Array.from({length:t},(f,g)=>g+1);const a=Math.max(e-n,1),s=Math.min(e+n,t),l=a>2,c=s<t-2,d=1,u=t;if(!l&&c){const f=3+2*n;return[...Array.from({length:f},(m,y)=>y+1),Zt,t]}if(l&&!c){const f=3+2*n,g=Array.from({length:f},(m,y)=>t-f+y+1);return[d,Zt,...g]}if(l&&c){const f=Array.from({length:s-a+1},(g,m)=>a+m);return[d,Zt,...f,Zt,u]}},[t,e,n])}function j0({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o}){const a=Y0({currentPage:e,totalPages:t,siblingCount:r});if(e===0||t<2)return null;const s=()=>{e<t&&n(e+1)},l=()=>{e>1&&n(e-1)};return i.jsxs("nav",{role:"navigation","aria-label":"Pagination",className:P("flex items-center justify-center gap-3",o),children:[i.jsx(ge,{onClick:l,disabled:e===1,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to previous page",children:i.jsx(ur,{className:"h-5 w-5"})}),a?.map((c,d)=>{if(c===Zt)return i.jsx("div",{className:"flex h-10 min-w-10 items-center justify-center px-1",children:i.jsx("span",{className:"text-lg font-medium text-gray-400",children:"..."})},`dots-${d}`);const u=c===e;return i.jsx(ge,{onClick:()=>n(c),variant:u?"default":"secondary",size:"icon",className:P("rounded-3",u?"bg-main-800 text-white shadow-[0_8px_16px_rgba(255,87,34,0.3)] hover:bg-main-800":"bg-gray-100 text-gray-700 hover:bg-gray-200"),"aria-current":u?"page":void 0,children:i.jsx("span",{className:P("text-2xl leading-none",u?"font-bold text-white":"font-medium text-gray-700"),children:c})},c)}),i.jsx(ge,{onClick:s,disabled:e===t,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to next page",children:i.jsx(gn,{className:"h-5 w-5"})})]})}function Wl({value:e,label:t,showLabel:n,showValueText:r=!0,valueText:o,infinite:a=!1,thickness:s=6,fillColor:l,trackColor:c,className:d,labelClassName:u,valueClassName:f,trackClassName:g,fillClassName:m,...y}){const p=Math.min(Math.max(e,0),100),v=a?"100%":`${p}%`,w=o??(a?"∞":`${p}%`),b=n??t!==void 0;return i.jsxs("div",{className:P("w-full",d),...y,children:[(b||r)&&i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[b?i.jsx(B,{size:"caption1",weight:"medium",className:P("line-clamp-1 text-gray-800",u),children:t}):i.jsx("span",{}),r?i.jsx(B,{size:"caption1",weight:"medium",className:P("shrink-0 text-gray-600",f),children:w}):null]}),i.jsx("div",{className:P("mt-2.5 overflow-hidden rounded-full bg-gray-200",g),style:{height:`${s}px`,...c?{backgroundColor:c}:{}},children:i.jsx("div",{className:P("h-full rounded-full bg-main-800 transition-all duration-200",m),style:{width:v,...l?{backgroundColor:l}:{}}})})]})}const G0=[{id:"1",title:"알고리즘 부시기",progress:56,tone:"blue"},{id:"2",title:"새벽 러닝",progress:84,tone:"green"}],U0={blue:"#3b82f6",green:"#22c55e",orange:"#ff5722"};function K0({isLoggedIn:e=!0,userName:t,userHandle:n,userImage:r,streakDays:o,fixed:a=!0,className:s,diaryButtonLabel:l="일지 작성하기",myPageButtonLabel:c="마이페이지",loginButtonLabel:d="로그인",loginPromptMessage:u="로그인하고 연속 기록을 시작해보세요",settingButtonLabel:f="설정",challengeTitle:g="참여중인 챌린지",challenges:m=G0,onCollapseClick:y,onOpenSettings:p,onWriteDiary:v,onGoMyPage:w,onLogin:b}){const[k,A]=E.useState(!1),[z,G]=E.useState("expanded"),[M,F]=E.useState(!0),[V,j]=E.useState(!1),[$,W]=E.useState(null),_=E.useRef(null),C=E.useRef([]),q=()=>{C.current.forEach(U=>clearTimeout(U)),C.current=[]},ne=(U,se)=>{const ce=setTimeout(()=>{U(),C.current=C.current.filter(O=>O!==ce)},se);C.current.push(ce)};E.useEffect(()=>()=>{q()},[]);const he=()=>{const U=_.current;return U?Math.max(Math.ceil(U.scrollHeight),0):null},De=()=>{const U=_.current;if(!U)return null;const se=U.style.height;U.style.height="auto";const ce=he();return U.style.height=se,ce},ae=()=>{if(V)return;const U=!k,se=_.current?.offsetHeight;se&&se>0&&W(se),j(!0),F(!1),y?.(),q(),ne(()=>{A(U),G(U?"collapsed":"expanded")},140),ne(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{const ce=De();ce&&ce>0&&W(ce)})})},440),ne(()=>{F(!0)},720),ne(()=>{W(null),j(!1)},940)};return i.jsxs("div",{className:P("z-40 transition-[width] duration-300 ease-in-out",a?"fixed top-4 right-3 max-h-[calc(100vh-2rem)]":"relative max-h-190",k?"w-22":"w-69",s),children:[i.jsx(ge,{type:"button",variant:"outlined",size:"icon","aria-label":"사이드바 접기",onClick:ae,disabled:V,className:"absolute top-6 -left-4 z-20 h-8 w-8 min-w-8 rounded-full p-0 text-gray-500 shadow-sm",children:i.jsx(gn,{className:P("h-4 w-4 transition-transform duration-200",k?"rotate-180":"rotate-0")})}),i.jsx("aside",{ref:_,className:P("relative flex w-full flex-col overflow-x-hidden overflow-y-auto rounded-4 border border-gray-200 bg-white p-3 shadow-[0_6px_16px_rgba(34,34,34,0.06)] transition-[height] duration-300 ease-in-out",a&&"max-h-[calc(100vh-2rem)]",!a&&"max-h-full"),style:{height:$?`${$}px`:void 0},children:i.jsx("div",{className:P("flex h-full w-full transition-opacity ease-out",M?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${M?220:140}ms`},"aria-hidden":!M,children:z==="expanded"?i.jsxs("div",{className:"flex w-full flex-col px-2 py-2",children:[i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Ft,{imageUrl:r,size:"md",className:"ring-2 ring-mint-900/40"}),i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx(B,{size:"body1",weight:"bold",className:"text-gray-900",children:e?t??"고라니":"게스트"}),i.jsx(B,{size:"caption1",weight:"regular",className:"text-gray-600",children:e?`@${n??"gorani"}`:"로그인 후 이용 가능"})]})]}),e?i.jsx(ge,{type:"button",variant:"ghost",size:"icon","aria-label":"설정",onClick:p,className:"text-gray-500 hover:text-gray-700",children:i.jsx(pr,{className:"h-5 w-5"})}):null]}),i.jsxs("div",{className:"mt-6 rounded-3 border border-main-400 bg-main-200 px-4 py-4 text-center",children:[i.jsx(B,{as:"p",size:"caption1",weight:"medium",className:"text-gray-700",children:"현재 연속 기록"}),e?i.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2.5",children:[i.jsx(Ea,{className:"h-7 w-7 text-main-800",strokeWidth:2.2}),i.jsx(B,{size:"heading1",weight:"bold",className:"text-main-800",children:o}),i.jsx(B,{size:"body1",weight:"bold",className:"text-gray-800",children:"Days"})]}):i.jsx(B,{as:"p",size:"caption1",weight:"medium",className:"mt-3 block leading-tight text-gray-700",children:u})]}),e?i.jsxs(i.Fragment,{children:[i.jsxs(ge,{className:"mt-5 w-full",size:"medium",onClick:v,children:[i.jsx(hr,{className:"h-4 w-4"}),i.jsx(B,{size:"body2",weight:"bold",className:"text-inherit",children:l})]}),i.jsxs(ge,{variant:"outlined",className:"mt-3 w-full",size:"medium",onClick:w,children:[i.jsx(Bt,{className:"h-4 w-4"}),i.jsx(B,{size:"body2",weight:"bold",className:"text-inherit",children:c})]}),i.jsxs("div",{className:"mt-5 pt-5",children:[i.jsx(B,{size:"caption1",weight:"medium",className:"text-gray-500",children:g}),i.jsx("div",{className:"mt-4 flex flex-col gap-5",children:m.map(U=>{const se=U.tone??"blue";return i.jsx(Wl,{label:U.title,value:U.progress,infinite:U.hasDeadline===!1,fillColor:U0[se]},U.id)})})]})]}):i.jsxs(ge,{className:"mt-5 w-full",size:"medium",onClick:b,children:[i.jsx(fr,{className:"h-4 w-4"}),i.jsx(B,{size:"body2",weight:"bold",className:"text-inherit",children:d})]})]}):i.jsxs("div",{className:"flex w-full flex-col items-center pt-2",children:[i.jsx(Ft,{imageUrl:r,size:"md",className:"ring-2 ring-mint-900/40"}),i.jsx("div",{className:"mt-5 flex flex-col items-center gap-3",children:e?i.jsxs(i.Fragment,{children:[i.jsx(ge,{type:"button",size:"icon","aria-label":l,onClick:v,children:i.jsx(hr,{className:"h-4 w-4"})}),i.jsx(ge,{type:"button",variant:"outlined",size:"icon","aria-label":c,onClick:w,children:i.jsx(Bt,{className:"h-4 w-4"})}),i.jsx(ge,{type:"button",variant:"outlined",size:"icon","aria-label":f,onClick:p,children:i.jsx(pr,{className:"h-4 w-4"})})]}):i.jsx(ge,{type:"button",size:"icon","aria-label":d,onClick:b,children:i.jsx(fr,{className:"h-4 w-4"})})})]})})})]})}const Q0=["SUN","MON","TUE","WED","THU","FRI","SAT"];function q0(e){return e===void 0?"100%":typeof e=="number"?`${e}%`:e}function X0(e="default"){return e==="strong"?"text-gray-900 font-bold":e==="accent"?"text-main-800 font-bold":e==="muted"?"text-gray-500 font-medium":"text-gray-600 font-medium"}function Z0(e="main"){return e==="soft"?"bg-main-600/50":"bg-main-800"}function J0({rows:e,weekLabels:t=[...Q0],cellMinHeight:n=140,className:r}){return i.jsx("div",{className:P("w-full overflow-hidden rounded-4 border border-gray-300 bg-white",r),children:i.jsxs("table",{className:"w-full table-fixed border-collapse",children:[i.jsx("thead",{children:i.jsx("tr",{children:t.map((o,a)=>i.jsx("th",{className:P("h-12 border-b border-r border-gray-300 bg-gray-100 px-2.5 text-center align-middle",a===t.length-1&&"border-r-0"),scope:"col",children:i.jsx(B,{size:"body2",weight:"bold",className:"text-gray-600",children:o})},`${o}-${a}`))})}),i.jsx("tbody",{children:e.map((o,a)=>i.jsx("tr",{children:o.map((s,l)=>{const c=s.colSpan??1,d=s.id??`r${a}-c${l}`,u=o.slice(0,l+1).reduce((f,g)=>f+(g.colSpan??1),0)>=7;return i.jsx("td",{colSpan:c,className:P("border-r border-b border-gray-300 align-top",u&&"border-r-0"),children:i.jsx("div",{className:P("flex h-full min-h-[110px] flex-col gap-2 p-2",s.muted&&"bg-gray-300",s.highlighted&&"bg-main-200 ring-1 ring-inset ring-main-400"),style:{minHeight:`${n}px`},children:s.content?s.content:i.jsxs(i.Fragment,{children:[s.day!==void 0?i.jsx(B,{size:"body2",weight:"medium",className:P("leading-tight",X0(s.dayTone)),children:s.day}):null,s.title!==void 0?i.jsx(B,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:s.title}):null,s.bars&&s.bars.length>0?i.jsx("div",{className:"mt-0.5 flex flex-col gap-1.5",children:s.bars.map((f,g)=>i.jsx("span",{className:P("block h-1.5 rounded-full transition-all duration-200",Z0(f.tone)),style:{width:q0(f.width)}},`${d}-bar-${g}`))}):null,s.subtitle!==void 0?i.jsx(B,{size:"caption2",weight:"medium",className:"text-gray-600",children:s.subtitle}):null]})})},d)})},`row-${a}`))})]})})}function R0({icon:e,iconName:t,title:n,value:r,unit:o,className:a,iconClassName:s,...l}){const c=e??(t?i.jsx(La,{name:t,size:32}):null);return i.jsxs("div",{className:P("rounded-[24px] border border-gray-200 bg-white p-7","shadow-[0_1px_4px_rgba(17,17,17,0.08)]","w-full",a),...l,children:[i.jsxs("div",{className:"flex items-center gap-3.5",children:[i.jsx("div",{className:P("text-main-800","[&_svg]:h-8 [&_svg]:w-8",s),children:c}),i.jsx(B,{size:"heading2",weight:"medium",className:"leading-tight text-gray-600",children:n})]}),i.jsxs("div",{className:"mt-6 flex items-end gap-1.5",children:[i.jsx(B,{size:"display1",weight:"bold",className:"text-gray-900",children:r}),i.jsx(B,{size:"heading2",weight:"medium",className:"pb-1 text-gray-600",children:o})]})]})}function eb({steps:e,currentStep:t,className:n}){if(e.length===0)return i.jsx("div",{className:P("w-full",n)});const r=Math.max(e.length-1,0),o=Math.min(Math.max(t-1,0),r),a=`${100/(e.length*2)}%`,s=r===0?100:o/r*100;return i.jsx("div",{className:P("w-full",n),children:i.jsxs("div",{className:"relative",children:[e.length>1?i.jsxs("div",{className:"absolute top-5",style:{left:a,right:a},children:[i.jsx("div",{className:"h-0.5 w-full bg-gray-200"}),i.jsx("div",{className:"absolute top-0 left-0 h-0.5 bg-main-800 transition-all duration-300 ease-in-out",style:{width:`${s}%`}})]}):null,i.jsx("ol",{className:"relative z-10 flex items-start",children:e.map((l,c)=>{const d=c<o,u=c===o,f=l.id??`step-${c}`;return i.jsxs("li",{className:"flex flex-1 flex-col items-center",children:[i.jsx("span",{className:P("flex h-10 w-10 items-center justify-center rounded-full border-2 bg-white transition-colors duration-200",d&&"border-main-800 bg-main-800 text-white",u&&"border-main-800 bg-main-800 text-white ring-4 ring-main-300",!d&&!u&&"border-gray-300 text-gray-600"),"aria-current":u?"step":void 0,children:d?i.jsx(bt,{className:"h-4 w-4",strokeWidth:2.5}):i.jsx(B,{size:"body1",weight:"bold",className:P(u?"text-white":"text-gray-600"),children:c+1})}),i.jsx(B,{size:"heading2",weight:u?"bold":"medium",className:P("mt-5 text-center leading-tight",d&&"text-main-800",u&&"text-gray-900",!d&&!u&&"text-gray-600"),children:l.label})]},f)})})]})})}var[qn]=Ce("Tooltip",[Pt]),Xn=Pt(),Bl="TooltipProvider",tb=700,ko="tooltip.open",[nb,Po]=qn(Bl),$l=e=>{const{__scopeTooltip:t,delayDuration:n=tb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=h.useRef(!0),l=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),i.jsx(nb,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:a})};$l.displayName=Bl;var Jt="Tooltip",[rb,Rt]=qn(Jt),zl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=Po(Jt,e.__scopeTooltip),d=Xn(t),[u,f]=h.useState(null),g=Ne(),m=h.useRef(0),y=s??c.disableHoverableContent,p=l??c.delayDuration,v=h.useRef(!1),[w,b]=be({prop:r,defaultProp:o??!1,onChange:k=>{k?(c.onOpen(),document.dispatchEvent(new CustomEvent(ko))):c.onClose(),a?.(k)},caller:Jt}),x=h.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),N=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,b(!0)},[b]),S=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),T=h.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,b(!0),m.current=0},p)},[p,b]);return h.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),i.jsx(ao,{...d,children:i.jsx(rb,{scope:t,contentId:g,open:w,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?T():N()},[c.isOpenDelayedRef,T,N]),onTriggerLeave:h.useCallback(()=>{y?S():(window.clearTimeout(m.current),m.current=0)},[S,y]),onOpen:N,onClose:S,disableHoverableContent:y,children:n})})};zl.displayName=Jt;var Eo="TooltipTrigger",Hl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Rt(Eo,n),a=Po(Eo,n),s=Xn(n),l=h.useRef(null),c=X(t,l,o.onTriggerChange),d=h.useRef(!1),u=h.useRef(!1),f=h.useCallback(()=>d.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),i.jsx(On,{asChild:!0,...s,children:i.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Y(e.onPointerMove,g=>{g.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Y(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})})});Hl.displayName=Eo;var _o="TooltipPortal",[ob,ab]=qn(_o,{forceMount:void 0}),Vl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Rt(_o,t);return i.jsx(ob,{scope:t,forceMount:n,children:i.jsx(Oe,{present:n||a.open,children:i.jsx(Qt,{asChild:!0,container:o,children:r})})})};Vl.displayName=_o;var It="TooltipContent",Yl=h.forwardRef((e,t)=>{const n=ab(It,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=Rt(It,e.__scopeTooltip);return i.jsx(Oe,{present:r||s.open,children:s.disableHoverableContent?i.jsx(jl,{side:o,...a,ref:t}):i.jsx(sb,{side:o,...a,ref:t})})}),sb=h.forwardRef((e,t)=>{const n=Rt(It,e.__scopeTooltip),r=Po(It,e.__scopeTooltip),o=h.useRef(null),a=X(t,o),[s,l]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,g=h.useCallback(()=>{l(null),f(!1)},[f]),m=h.useCallback((y,p)=>{const v=y.currentTarget,w={x:y.clientX,y:y.clientY},b=ub(w,v.getBoundingClientRect()),x=fb(w,b),N=hb(p.getBoundingClientRect()),S=gb([...x,...N]);l(S),f(!0)},[f]);return h.useEffect(()=>()=>g(),[g]),h.useEffect(()=>{if(c&&u){const y=v=>m(v,u),p=v=>m(v,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,m,g]),h.useEffect(()=>{if(s){const y=p=>{const v=p.target,w={x:p.clientX,y:p.clientY},b=c?.contains(v)||u?.contains(v),x=!pb(w,s);b?g():x&&(g(),d())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,s,d,g]),i.jsx(jl,{...e,ref:a})}),[ib,lb]=qn(Jt,{isInside:!1}),cb=mc("TooltipContent"),jl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=Rt(It,n),d=Xn(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(ko,u),()=>document.removeEventListener(ko,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=g=>{g.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),i.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:i.jsxs(so,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(cb,{children:r}),i.jsx(ib,{scope:n,isInside:!0,children:i.jsx(qv,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Yl.displayName=It;var Gl="TooltipArrow",db=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xn(n);return lb(Gl,n).isInside?null:i.jsx(io,{...o,...r,ref:t})});db.displayName=Gl;function ub(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fb(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hb(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function pb(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],c=t[s],d=l.x,u=l.y,f=c.x,g=c.y;u>r!=g>r&&n<(f-d)*(r-u)/(g-u)+d&&(o=!o)}return o}function gb(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),mb(t)}function mb(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var vb=$l,bb=zl,yb=Hl,wb=Vl,xb=Yl;function Ul({delayDuration:e=200,...t}){return i.jsx(vb,{delayDuration:e,...t})}const Kl=bb,Ql=yb;function ql({className:e,sideOffset:t=4,...n}){return i.jsx(wb,{children:i.jsx(xb,{sideOffset:t,className:P("z-50 overflow-hidden rounded-1.5 bg-gray-900 px-3 py-1.5 text-caption2 text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n})})}function Cb({data:e=[],size:t=26,gap:n=8,className:r}){const o=a=>a<=0?"bg-gray-100":a===1?"bg-main-300":a===2?"bg-main-500":a===3?"bg-main-700":"bg-main-800";return i.jsx("div",{className:P("w-full overflow-x-auto pb-2",r),children:i.jsx(Ul,{children:i.jsx("div",{className:"grid w-max grid-flow-col grid-rows-7",style:{gridTemplateRows:`repeat(7, ${t}px)`,gridAutoColumns:`${t}px`,gap:`${n}px`},children:e.map((a,s)=>i.jsxs(Kl,{children:[i.jsx(Ql,{asChild:!0,children:i.jsx("div",{className:P("transition-colors duration-200",o(a.count)),style:{width:t,height:t,borderRadius:`${Math.max(4,Math.round(t*.23))}px`}})}),i.jsx(ql,{side:"top",children:i.jsxs("p",{className:"text-xs",children:[a.count," contributions on ",a.date]})})]},s))})})})}const Xl=at(["w-full transition-all duration-200 outline-none","disabled:cursor-not-allowed disabled:opacity-50","placeholder:text-gray-500","focus-visible:outline-none"],{variants:{variant:{default:["rounded-3 border border-gray-300 bg-white px-5 text-gray-900 shadow-none","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"],search:["rounded-3 !h-10 border border-gray-300 bg-white pl-11 pr-4 text-gray-700 placeholder:text-gray-500","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"]},multiline:{false:"h-10 py-0",true:"min-h-[320px] resize-none py-8 align-top leading-relaxed"}},defaultVariants:{variant:"default",multiline:!1}});function Nb(e,t){return"body2"}function Sb({label:e,labelHint:t,required:n,htmlFor:r}){return e?i.jsxs("label",{htmlFor:r,className:"mb-2 inline-flex items-center gap-2",children:[i.jsx(B,{size:"body1",weight:"bold",className:"text-gray-900",children:e}),n?i.jsx(B,{size:"body1",weight:"bold",className:"text-main-800",children:"*"}):null,t?i.jsx(B,{size:"body1",weight:"regular",className:"text-gray-500",children:t}):null]}):null}const To=h.forwardRef(({className:e,variant:t="default",label:n,labelHint:r,error:o,type:a,multiline:s=!1,rows:l=8,cols:c,required:d,id:u,...f},g)=>{const m=t==="search",y=Nb(t,s);return i.jsxs("div",{className:"flex w-full flex-col",children:[i.jsx(Sb,{label:n,labelHint:r,required:d,htmlFor:u}),i.jsxs("div",{className:"relative w-full",children:[s?i.jsx("textarea",{id:u,rows:l,cols:c,required:d,className:P(pn({size:y,weight:"regular"}),Xl({variant:t,multiline:!0}),e),ref:g,...f}):i.jsx("input",{id:u,type:a,required:d,className:P(pn({size:y,weight:m?"light":"regular"}),Xl({variant:t,multiline:!1}),e),ref:g,...f}),m&&!s?i.jsx(Ia,{width:20,height:20,className:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-gray-500"}):null]}),o?i.jsx(B,{size:"caption1",weight:"regular",className:"mt-2 text-warning",children:o}):null]})});To.displayName="TextField";const Zl=h.forwardRef((e,t)=>i.jsx(To,{...e,ref:t,multiline:!0}));Zl.displayName="TextArea";var Jl="Toggle",Mo=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,l]=be({prop:n,onChange:o,defaultProp:r??!1,caller:Jl});return i.jsx(K.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Y(e.onClick,()=>{e.disabled||l(!s)})})});Mo.displayName=Jl;var Ab=Mo;const kb=at(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function Pb({icon:e,shape:t="rounded",children:n,className:r,...o}){return i.jsxs(Ab,{className:P(kb({shape:t}),r),...o,children:[e?i.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,i.jsx(B,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var Do="rovingFocusGroup.onEntryFocus",Eb={bubbles:!1,cancelable:!0},en="RovingFocusGroup",[Oo,Rl,_b]=Rn(en),[Tb,ec]=Ce(en,[_b]),[Mb,Db]=Tb(en),tc=h.forwardRef((e,t)=>i.jsx(Oo.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Oo.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Ob,{...e,ref:t})})}));tc.displayName=en;var Ob=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,g=h.useRef(null),m=X(t,g),y=on(a),[p,v]=be({prop:s,defaultProp:l??null,onChange:c,caller:en}),[w,b]=h.useState(!1),x=Xe(d),N=Rl(n),S=h.useRef(!1),[T,k]=h.useState(0);return h.useEffect(()=>{const A=g.current;if(A)return A.addEventListener(Do,x),()=>A.removeEventListener(Do,x)},[x]),i.jsx(Mb,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:p,onItemFocus:h.useCallback(A=>v(A),[v]),onItemShiftTab:h.useCallback(()=>b(!0),[]),onFocusableItemAdd:h.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:h.useCallback(()=>k(A=>A-1),[]),children:i.jsx(K.div,{tabIndex:w||T===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,()=>{S.current=!0}),onFocus:Y(e.onFocus,A=>{const z=!S.current;if(A.target===A.currentTarget&&z&&!w){const G=new CustomEvent(Do,Eb);if(A.currentTarget.dispatchEvent(G),!G.defaultPrevented){const M=N().filter(W=>W.focusable),F=M.find(W=>W.active),V=M.find(W=>W.id===p),$=[F,V,...M].filter(Boolean).map(W=>W.ref.current);oc($,u)}}S.current=!1}),onBlur:Y(e.onBlur,()=>b(!1))})})}),nc="RovingFocusGroupItem",rc=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...l}=e,c=Ne(),d=a||c,u=Db(nc,n),f=u.currentTabStopId===d,g=Rl(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:p}=u;return h.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),i.jsx(Oo.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:i.jsx(K.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:Y(e.onMouseDown,v=>{r?u.onItemFocus(d):v.preventDefault()}),onFocus:Y(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Y(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=Fb(v,u.orientation,u.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=g().filter(N=>N.focusable).map(N=>N.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const N=x.indexOf(v.currentTarget);x=u.loop?Wb(x,N+1):x.slice(N+1)}setTimeout(()=>oc(x))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:p!=null}):s})})});rc.displayName=nc;var Ib={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Lb(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Fb(e,t,n){const r=Lb(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ib[r]}function oc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Wb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Bb=tc,$b=rc,rt="ToggleGroup",[ac]=Ce(rt,[ec]),sc=ec(),Io=E.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return i.jsx(zb,{...o,ref:t})}if(n==="multiple"){const o=r;return i.jsx(Hb,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${rt}\``)});Io.displayName=rt;var[ic,lc]=ac(rt),zb=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=be({prop:n,defaultProp:r??"",onChange:o,caller:rt});return i.jsx(ic,{scope:e.__scopeToggleGroup,type:"single",value:E.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:E.useCallback(()=>l(""),[l]),children:i.jsx(cc,{...a,ref:t})})}),Hb=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=be({prop:n,defaultProp:r??[],onChange:o,caller:rt}),c=E.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=E.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return i.jsx(ic,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:d,children:i.jsx(cc,{...a,ref:t})})});Io.displayName=rt;var[Vb,Yb]=ac(rt),cc=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:l=!0,...c}=e,d=sc(n),u=on(s),f={role:"group",dir:u,...c};return i.jsx(Vb,{scope:n,rovingFocus:o,disabled:r,children:o?i.jsx(Bb,{asChild:!0,...d,orientation:a,dir:u,loop:l,children:i.jsx(K.div,{...f,ref:t})}):i.jsx(K.div,{...f,ref:t})})}),Zn="ToggleGroupItem",dc=E.forwardRef((e,t)=>{const n=lc(Zn,e.__scopeToggleGroup),r=Yb(Zn,e.__scopeToggleGroup),o=sc(e.__scopeToggleGroup),a=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:a,disabled:s},c=E.useRef(null);return r.rovingFocus?i.jsx($b,{asChild:!0,...o,focusable:!s,active:a,ref:c,children:i.jsx(uc,{...l,ref:t})}):i.jsx(uc,{...l,ref:t})});dc.displayName=Zn;var uc=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=lc(Zn,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?s:void 0;return i.jsx(Mo,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),jb=Io,Gb=dc;const Ub=at(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function Kb({children:e,className:t,...n}){return i.jsx(jb,{"data-slot":"toggle-group",className:P("flex flex-wrap gap-4 rounded-none",t),...n,children:e})}function Qb({icon:e,shape:t="rounded",children:n,className:r,...o}){return i.jsxs(Gb,{"data-slot":"toggle-group-item",className:P(Ub({shape:t}),r),...o,children:[e?i.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,i.jsx(B,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}function qb({className:e,userName:t,userImageSrc:n,timeLabel:r,isAuthor:o=!1,onAccept:a,onReject:s}){return i.jsxs("div",{className:P("flex h-[50px] items-center justify-between gap-3 rounded-3 border border-gray-200 bg-white px-3",e),children:[i.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[i.jsx("div",{className:"relative flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-200",children:n?i.jsx(ht,{src:n,alt:`${t} profile`,fill:!0,className:"object-cover"}):i.jsx(Bt,{className:"h-4.5 w-4.5 text-gray-500"})}),i.jsxs("div",{className:"flex min-w-0 flex-col",children:[i.jsx(B,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:t}),r?i.jsx(B,{size:"caption2",weight:"regular",className:"text-gray-600",children:r}):null]})]}),o?i.jsx("div",{className:"flex shrink-0 items-center gap-2",children:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button","aria-label":"수락",onClick:a,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-main-200 text-main-800 transition-colors hover:bg-main-300",children:i.jsx(bt,{className:"h-4.5 w-4.5",strokeWidth:2.6})}),i.jsx("button",{type:"button","aria-label":"거절",onClick:s,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-gray-100 text-gray-600 transition-colors hover:bg-gray-200",children:i.jsx(mn,{className:"h-4.5 w-4.5",strokeWidth:2.4})})]})}):null]})}D.Accordion=Bd,D.AccordionContent=Hd,D.AccordionItem=$d,D.AccordionTrigger=zd,D.AppHeader=vu,D.BannerCarousel=xu,D.Button=ge,D.Calendar=Lr,D.ChallengeCard=Fp,D.CheckContainer=Wp,D.CheckList=Vp,D.Checkbox=zr,D.CircleAvatar=Ft,D.CircularProgress=xs,D.DatePicker=yv,D.Dialog=Wv,D.DialogClose=$v,D.DialogContent=zv,D.DialogDescription=jv,D.DialogFooter=Vv,D.DialogHeader=Hv,D.DialogOverlay=nl,D.DialogPortal=tl,D.DialogTitle=Yv,D.DialogTrigger=Bv,D.DiaryCard=Kv,D.GoalAddList=$0,D.Icon=La,D.ImagePicker=z0,D.ImagePlaceholder=Fr,D.InfoButton=H0,D.PageWatermark=V0,D.Pagination=j0,D.ProgressBar=Wl,D.RangeDatePicker=wv,D.RightSidebar=K0,D.ScheduleCalendar=J0,D.Select=M0,D.SelectContent=W0,D.SelectGroup=D0,D.SelectItem=L0,D.SelectLabel=B0,D.SelectScrollDownButton=Fl,D.SelectScrollUpButton=Ll,D.SelectSeparator=F0,D.SelectTrigger=I0,D.SelectValue=O0,D.StatContainer=R0,D.StepIndicator=eb,D.Streak=Cb,D.Tag=Wr,D.Text=B,D.TextArea=Zl,D.TextField=To,D.Toggle=Pb,D.ToggleGroup=Kb,D.ToggleGroupItem=Qb,D.Tooltip=Kl,D.TooltipContent=ql,D.TooltipProvider=Ul,D.TooltipTrigger=Ql,D.UserListItem=qb,D.cn=P,D.textVariants=pn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Pv="DialogDescriptionWarning",Ev=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ji(Pv).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},_v=Bi,Mv=$i,Tv=Vi,Dv=Yi,Ov=ji,Iv=Ui,Lv=Qi,Ri=Xi;const Fv=_v,Wv=Mv,el=Tv,Bv=Ri;function tl({className:e,...t}){return s.jsx(Dv,{className:E("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function zv({className:e,children:t,...n}){return s.jsxs(el,{children:[s.jsx(tl,{}),s.jsxs(Ov,{className:E("fixed top-[50%] left-[50%] z-50","w-full max-w-[calc(100%-2rem)] sm:max-w-md","translate-x-[-50%] translate-y-[-50%]","rounded-2 bg-white p-4 sm:p-6 shadow-default","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-slot=button].h-13]:!h-11","[&_[data-slot=button].h-13]:!px-3.5","[&_[data-slot=button].h-11]:!h-9","[&_[data-slot=button]_.text-lg]:!text-base","[&_[data-slot=button]_.text-base]:!text-sm","duration-200",e),...n,children:[t,s.jsxs(Ri,{className:"absolute top-3 right-3 sm:top-4 sm:right-4 rounded-full p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:outline-none cursor-pointer",children:[s.jsx(mn,{width:18,height:18,className:"text-gray-500 sm:w-5 sm:h-5"}),s.jsx("span",{className:"sr-only",children:"닫기"})]})]})]})}function $v({className:e,...t}){return s.jsx("div",{className:E("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Hv({className:e,...t}){return s.jsx("div",{className:E("mt-4 sm:mt-6 flex flex-row justify-end gap-2",e),...t})}function Vv({className:e,children:t,...n}){return s.jsx(Iv,{asChild:!0,...n,children:s.jsx(F,{size:"heading2",weight:"bold",className:E("text-black",e),children:t})})}function Yv({className:e,children:t,...n}){return s.jsx(Lv,{asChild:!0,...n,children:s.jsx(F,{size:"body2",weight:"regular",className:E("text-gray-600 mt-2",e),children:t})})}function jv({imageUrl:e,alt:t,percent:n,emotion:r,isLiked:o,likeCount:a,onToggleLike:i}){const l={happy:"😎",soso:"🙂",sad:"🥲"},c=Math.min(Math.max(n,0),100),d=!!(e&&e.trim().length>0);return s.jsxs("div",{className:"relative aspect-4/5 w-full overflow-hidden bg-gray-100",children:[d?s.jsx(It,{src:e,alt:t,fill:!0,className:"h-full w-full object-cover"}):s.jsx(Fr,{className:"h-full w-full",logoSize:"lg"}),d?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-linear-to-t from-black/15 to-transparent"}):null,s.jsx("div",{className:"absolute top-3 left-3 z-20",children:s.jsx("div",{className:"relative flex h-12 w-12 items-center justify-center rounded-full bg-white shadow-[0_6px_14px_rgba(34,34,34,0.2)]",children:s.jsx(ws,{value:c,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-3 right-3 z-20 text-3xl leading-none",children:s.jsx("span",{role:"img","aria-label":r,children:l[r]})}),s.jsx("div",{className:"absolute bottom-3 left-3 z-20",children:s.jsxs("button",{type:"button",onClick:u=>{u.stopPropagation(),i()},className:"inline-flex items-center gap-1 rounded-full bg-main-800 px-3 py-1.5 text-white shadow-[0_4px_10px_rgba(34,34,34,0.25)] transition-colors hover:bg-main-900",children:[o?s.jsx(Ta,{width:14,height:14,className:"text-white"}):s.jsx(Ma,{width:14,height:14,className:"text-white"}),s.jsx(F,{size:"body2",weight:"bold",className:"text-white",children:a})]})})]})}function Gv({title:e,user:t,userImage:n,challengeLabel:r,onChallengeClick:o,date:a}){return s.jsxs("div",{className:"flex w-full flex-col gap-3 p-4",children:[s.jsx(F,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 min-h-10 leading-tight text-gray-900",children:e}),s.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),o?.()},className:E("block w-full rounded-1 px-1 py-0.5 text-left transition-colors","hover:bg-gray-100"),children:s.jsx(F,{size:"body2",weight:"medium",className:"block w-full truncate text-blue-500",children:r})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Ft,{imageUrl:n,size:"sm"}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(F,{size:"body2",weight:"bold",className:"text-gray-900",children:t}),s.jsx(F,{size:"caption2",weight:"regular",className:"text-gray-500",children:a})]})]})]})}function Uv({imageUrl:e,percent:t,likes:n,isLiked:r,defaultLiked:o=!1,onLikeToggle:a,title:i,user:l,userImage:c,challengeLabel:d,onChallengeClick:u,date:f,emotion:g="happy",onClick:m}){const b=typeof r=="boolean",[p,v]=P.useState(o),[w,y]=P.useState(n),x=b?r:p,N=b?n:w;P.useEffect(()=>{b||y(n)},[b,n]);const S=()=>{const M=!x,A=Math.max(0,N+(M?1:-1));b||(v(M),y(A)),a?.(M)};return s.jsx("div",{className:E("block w-full",m&&"cursor-pointer"),onClick:m,children:s.jsxs("div",{className:"overflow-hidden rounded-4 border border-gray-200 bg-white transition-transform duration-200 hover:-translate-y-1 hover:shadow-lg",children:[s.jsx(jv,{imageUrl:e,alt:i,percent:t,emotion:g,isLiked:x,likeCount:N,onToggleLike:S}),s.jsx(Gv,{title:i,user:l,userImage:c,challengeLabel:d,onChallengeClick:u,date:f})]})})}function nl(e,[t,n]){return Math.min(n,Math.max(t,e))}var rl=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"}),Kv="VisuallyHidden",ol=h.forwardRef((e,t)=>s.jsx(U.span,{...e,ref:t,style:{...rl,...e.style}}));ol.displayName=Kv;var Qv=ol,qv=[" ","Enter","ArrowUp","ArrowDown"],Xv=[" ","Enter"],dt="Select",[Un,Kn,Zv]=er(dt),[Dt]=Ne(dt,[Zv,kt]),Qn=kt(),[Jv,tt]=Dt(dt),[Rv,e0]=Dt(dt),al=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:f,disabled:g,required:m,form:b}=e,p=Qn(t),[v,w]=h.useState(null),[y,x]=h.useState(null),[N,S]=h.useState(!1),M=on(d),[A,k]=be({prop:r,defaultProp:o??!1,onChange:a,caller:dt}),[$,G]=be({prop:i,defaultProp:l,onChange:c,caller:dt}),T=h.useRef(null),W=v?b||!!v.closest("form"):!0,[Y,j]=h.useState(new Set),z=Array.from(Y).map(B=>B.props.value).join(";");return s.jsx(ao,{...p,children:s.jsxs(Jv,{required:m,scope:t,trigger:v,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Se(),value:$,onValueChange:G,open:A,onOpenChange:k,dir:M,triggerPointerDownPosRef:T,disabled:g,children:[s.jsx(Un.Provider,{scope:t,children:s.jsx(Rv,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(B=>{j(_=>new Set(_).add(B))},[]),onNativeOptionRemove:h.useCallback(B=>{j(_=>{const C=new Set(_);return C.delete(B),C})},[]),children:n})}),W?s.jsxs(Ml,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:$,onChange:B=>G(B.target.value),disabled:g,form:b,children:[$===void 0?s.jsx("option",{value:""}):null,Array.from(Y)]},z):null]})})};al.displayName=dt;var sl="SelectTrigger",il=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Qn(n),i=tt(sl,n),l=i.disabled||r,c=J(t,i.onTriggerChange),d=Kn(n),u=h.useRef("touch"),[f,g,m]=Dl(p=>{const v=d().filter(x=>!x.disabled),w=v.find(x=>x.value===i.value),y=Ol(v,p,w);y!==void 0&&i.onValueChange(y.value)}),b=p=>{l||(i.onOpenChange(!0),m()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return s.jsx(In,{asChild:!0,...a,children:s.jsx(U.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Tl(i.value)?"":void 0,...o,ref:c,onClick:V(o.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&b(p)}),onPointerDown:V(o.onPointerDown,p=>{u.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:V(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&qv.includes(p.key)&&(b(),p.preventDefault())})})})});il.displayName=sl;var ll="SelectValue",cl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,c=tt(ll,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=J(t,c.onValueNodeChange);return ue(()=>{d(u)},[d,u]),s.jsx(U.span,{...l,ref:f,style:{pointerEvents:"none"},children:Tl(c.value)?s.jsx(s.Fragment,{children:i}):a})});cl.displayName=ll;var t0="SelectIcon",dl=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});dl.displayName=t0;var n0="SelectPortal",ul=e=>s.jsx(Qt,{asChild:!0,...e});ul.displayName=n0;var ut="SelectContent",fl=h.forwardRef((e,t)=>{const n=tt(ut,e.__scopeSelect),[r,o]=h.useState();if(ue(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?tn.createPortal(s.jsx(hl,{scope:e.__scopeSelect,children:s.jsx(Un.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(pl,{...e,ref:t})});fl.displayName=ut;var De=10,[hl,nt]=Dt(ut),r0="SelectContentImpl",o0=ht("SelectContent.RemoveScroll"),pl=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:p,avoidCollisions:v,...w}=e,y=tt(ut,n),[x,N]=h.useState(null),[S,M]=h.useState(null),A=J(t,O=>N(O)),[k,$]=h.useState(null),[G,T]=h.useState(null),W=Kn(n),[Y,j]=h.useState(!1),z=h.useRef(!1);h.useEffect(()=>{if(x)return co(x)},[x]),Yr();const B=h.useCallback(O=>{const[ne,...K]=W().map(re=>re.ref.current),[Q]=K.slice(-1),X=document.activeElement;for(const re of O)if(re===X||(re?.scrollIntoView({block:"nearest"}),re===ne&&S&&(S.scrollTop=0),re===Q&&S&&(S.scrollTop=S.scrollHeight),re?.focus(),document.activeElement!==X))return},[W,S]),_=h.useCallback(()=>B([k,x]),[B,k,x]);h.useEffect(()=>{Y&&_()},[Y,_]);const{onOpenChange:C,triggerPointerDownPosRef:Z}=y;h.useEffect(()=>{if(x){let O={x:0,y:0};const ne=Q=>{O={x:Math.abs(Math.round(Q.pageX)-(Z.current?.x??0)),y:Math.abs(Math.round(Q.pageY)-(Z.current?.y??0))}},K=Q=>{O.x<=10&&O.y<=10?Q.preventDefault():x.contains(Q.target)||C(!1),document.removeEventListener("pointermove",ne),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",K,{capture:!0})}}},[x,C,Z]),h.useEffect(()=>{const O=()=>C(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[C]);const[se,de]=Dl(O=>{const ne=W().filter(X=>!X.disabled),K=ne.find(X=>X.ref.current===document.activeElement),Q=Ol(ne,O,K);Q&&setTimeout(()=>Q.ref.current.focus())}),ve=h.useCallback((O,ne,K)=>{const Q=!z.current&&!K;(y.value!==void 0&&y.value===ne||Q)&&($(O),Q&&(z.current=!0))},[y.value]),te=h.useCallback(()=>x?.focus(),[x]),ae=h.useCallback((O,ne,K)=>{const Q=!z.current&&!K;(y.value!==void 0&&y.value===ne||Q)&&T(O)},[y.value]),he=r==="popper"?wo:gl,xe=he===wo?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:p,avoidCollisions:v}:{};return s.jsx(hl,{scope:n,content:x,viewport:S,onViewportChange:M,itemRefCallback:ve,selectedItem:k,onItemLeave:te,itemTextRefCallback:ae,focusSelectedItem:_,selectedItemText:G,position:r,isPositioned:Y,searchRef:se,children:s.jsx(Vn,{as:o0,allowPinchZoom:!0,children:s.jsx(Nn,{asChild:!0,trapped:y.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:V(o,O=>{y.trigger?.focus({preventScroll:!0}),O.preventDefault()}),children:s.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:s.jsx(he,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:O=>O.preventDefault(),...w,...xe,onPlaced:()=>j(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:V(w.onKeyDown,O=>{const ne=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!ne&&O.key.length===1&&de(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let Q=W().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(O.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const X=O.target,re=Q.indexOf(X);Q=Q.slice(re+1)}setTimeout(()=>B(Q)),O.preventDefault()}})})})})})})});pl.displayName=r0;var a0="SelectItemAlignedPosition",gl=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=tt(ut,n),i=nt(ut,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=J(t,A=>u(A)),g=Kn(n),m=h.useRef(!1),b=h.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:w,focusSelectedItem:y}=i,x=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&p&&v&&w){const A=a.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),$=a.valueNode.getBoundingClientRect(),G=w.getBoundingClientRect();if(a.dir!=="rtl"){const X=G.left-k.left,re=$.left-X,Ce=A.left-re,ft=A.width+Ce,Lo=Math.max(ft,k.width),Fo=window.innerWidth-De,Wo=nl(re,[De,Math.max(De,Fo-Lo)]);l.style.minWidth=ft+"px",l.style.left=Wo+"px"}else{const X=k.right-G.right,re=window.innerWidth-$.right-X,Ce=window.innerWidth-A.right-re,ft=A.width+Ce,Lo=Math.max(ft,k.width),Fo=window.innerWidth-De,Wo=nl(re,[De,Math.max(De,Fo-Lo)]);l.style.minWidth=ft+"px",l.style.right=Wo+"px"}const T=g(),W=window.innerHeight-De*2,Y=p.scrollHeight,j=window.getComputedStyle(d),z=parseInt(j.borderTopWidth,10),B=parseInt(j.paddingTop,10),_=parseInt(j.borderBottomWidth,10),C=parseInt(j.paddingBottom,10),Z=z+B+Y+C+_,se=Math.min(v.offsetHeight*5,Z),de=window.getComputedStyle(p),ve=parseInt(de.paddingTop,10),te=parseInt(de.paddingBottom,10),ae=A.top+A.height/2-De,he=W-ae,xe=v.offsetHeight/2,O=v.offsetTop+xe,ne=z+B+O,K=Z-ne;if(ne<=ae){const X=T.length>0&&v===T[T.length-1].ref.current;l.style.bottom="0px";const re=d.clientHeight-p.offsetTop-p.offsetHeight,Ce=Math.max(he,xe+(X?te:0)+re+_),ft=ne+Ce;l.style.height=ft+"px"}else{const X=T.length>0&&v===T[0].ref.current;l.style.top="0px";const Ce=Math.max(ae,z+p.offsetTop+(X?ve:0)+xe)+K;l.style.height=Ce+"px",p.scrollTop=ne-ae+p.offsetTop}l.style.margin=`${De}px 0`,l.style.minHeight=se+"px",l.style.maxHeight=W+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,l,d,p,v,w,a.dir,r]);ue(()=>x(),[x]);const[N,S]=h.useState();ue(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const M=h.useCallback(A=>{A&&b.current===!0&&(x(),y?.(),b.current=!1)},[x,y]);return s.jsx(i0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:M,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:s.jsx(U.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});gl.displayName=a0;var s0="SelectPopperPosition",wo=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=De,...a}=e,i=Qn(n);return s.jsx(so,{...i,...a,ref:t,align:r,collisionPadding:o,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)"}})});wo.displayName=s0;var[i0,xo]=Dt(ut,{}),Co="SelectViewport",ml=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=nt(Co,n),i=xo(Co,n),l=J(t,a.onViewportChange),c=h.useRef(0);return s.jsxs(s.Fragment,{children:[s.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}),s.jsx(Un.Slot,{scope:n,children:s.jsx(U.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:V(o.onScroll,d=>{const u=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g?.current&&f){const m=Math.abs(c.current-u.scrollTop);if(m>0){const b=window.innerHeight-De*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),w=Math.max(p,v);if(w<b){const y=w+m,x=Math.min(b,y),N=y-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=N>0?N:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});ml.displayName=Co;var vl="SelectGroup",[l0,c0]=Dt(vl),bl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Se();return s.jsx(l0,{scope:n,id:o,children:s.jsx(U.div,{role:"group","aria-labelledby":o,...r,ref:t})})});bl.displayName=vl;var yl="SelectLabel",wl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=c0(yl,n);return s.jsx(U.div,{id:o.id,...r,ref:t})});wl.displayName=yl;var qn="SelectItem",[d0,xl]=Dt(qn),Cl=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=tt(qn,n),c=nt(qn,n),d=l.value===r,[u,f]=h.useState(a??""),[g,m]=h.useState(!1),b=J(t,y=>c.itemRefCallback?.(y,r,o)),p=Se(),v=h.useRef("touch"),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(d0,{scope:n,value:r,disabled:o,textId:p,isSelected:d,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:s.jsx(Un.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:s.jsx(U.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:V(i.onFocus,()=>m(!0)),onBlur:V(i.onBlur,()=>m(!1)),onClick:V(i.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:V(i.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:V(i.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:V(i.onPointerMove,y=>{v.current=y.pointerType,o?c.onItemLeave?.():v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(i.onKeyDown,y=>{c.searchRef?.current!==""&&y.key===" "||(Xv.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Cl.displayName=qn;var Xt="SelectItemText",Nl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=tt(Xt,n),l=nt(Xt,n),c=xl(Xt,n),d=e0(Xt,n),[u,f]=h.useState(null),g=J(t,w=>f(w),c.onItemTextChange,w=>l.itemTextRefCallback?.(w,c.value,c.disabled)),m=u?.textContent,b=h.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return ue(()=>(p(b),()=>v(b)),[p,v,b]),s.jsxs(s.Fragment,{children:[s.jsx(U.span,{id:c.textId,...a,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?tn.createPortal(a.children,i.valueNode):null]})});Nl.displayName=Xt;var Sl="SelectItemIndicator",Al=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return xl(Sl,n).isSelected?s.jsx(U.span,{"aria-hidden":!0,...r,ref:t}):null});Al.displayName=Sl;var No="SelectScrollUpButton",kl=h.forwardRef((e,t)=>{const n=nt(No,e.__scopeSelect),r=xo(No,e.__scopeSelect),[o,a]=h.useState(!1),i=J(t,r.onScrollButtonChange);return ue(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?s.jsx(El,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});kl.displayName=No;var So="SelectScrollDownButton",Pl=h.forwardRef((e,t)=>{const n=nt(So,e.__scopeSelect),r=xo(So,e.__scopeSelect),[o,a]=h.useState(!1),i=J(t,r.onScrollButtonChange);return ue(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?s.jsx(El,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});Pl.displayName=So;var El=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=nt("SelectScrollButton",n),i=h.useRef(null),l=Kn(n),c=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),ue(()=>{l().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),s.jsx(U.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:V(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:V(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:V(o.onPointerLeave,()=>{c()})})}),u0="SelectSeparator",_l=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(U.div,{"aria-hidden":!0,...r,ref:t})});_l.displayName=u0;var Ao="SelectArrow",f0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qn(n),a=tt(Ao,n),i=nt(Ao,n);return a.open&&i.position==="popper"?s.jsx(io,{...o,...r,ref:t}):null});f0.displayName=Ao;var h0="SelectBubbleInput",Ml=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),a=J(r,o),i=us(t);return h.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const f=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(f)}},[i,t]),s.jsx(U.select,{...n,style:{...rl,...n.style},ref:a,defaultValue:t})});Ml.displayName=h0;function Tl(e){return e===""||e===void 0}function Dl(e){const t=Xe(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(i=>{const l=n.current+i;t(l),(function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),a=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ol(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=p0(e,Math.max(a,0));o.length===1&&(i=i.filter(d=>d!==n));const c=i.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function p0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var g0=al,m0=il,v0=cl,b0=dl,y0=ul,w0=fl,x0=ml,C0=bl,N0=wl,S0=Cl,A0=Nl,k0=Al,P0=kl,E0=Pl,_0=_l;const M0=g0,T0=C0,D0=v0;function O0({className:e,size:t="default",children:n,...r}){const o=t==="sm";return s.jsxs(m0,{"data-slot":"select-trigger","data-size":t,className:E("group flex w-full items-center justify-between whitespace-nowrap border-2 bg-white outline-none transition-all duration-200","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-gray-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o?"h-10 min-w-[150px] rounded-3 border-gray-300 px-3.5":"h-10 min-w-[150px] rounded-3 border-gray-300 px-4 shadow-[0_4px_10px_rgba(34,34,34,0.06)]",e),...r,children:[s.jsx(F,{size:"body2",weight:"medium",className:"line-clamp-1 text-gray-900",children:n}),s.jsx(b0,{asChild:!0,children:s.jsx(fn,{"data-slot":"select-chevron",className:E("pointer-events-none shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]:rotate-180","h-4 w-4"),strokeWidth:2.8})})]})}function I0({className:e,children:t,...n}){return s.jsxs(S0,{"data-slot":"select-item",className:E("relative flex w-full cursor-pointer items-center gap-3 rounded-2 px-3.5 py-2.5 outline-hidden select-none","text-gray-900 transition-colors focus:bg-gray-100 focus:text-gray-900","data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center",children:s.jsx(k0,{children:s.jsx(vt,{className:"size-4 text-main-800"})})}),s.jsx(A0,{children:s.jsx(F,{size:"body2",weight:"medium",children:t})})]})}function L0({className:e,...t}){return s.jsx(_0,{"data-slot":"select-separator",className:E("pointer-events-none my-1 h-px bg-gray-200",e),...t})}function Il({className:e,...t}){return s.jsx(P0,{"data-slot":"select-scroll-up-button",className:E("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(_a,{className:"size-4"})})}function Ll({className:e,...t}){return s.jsx(E0,{"data-slot":"select-scroll-down-button",className:E("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(fn,{className:"size-4"})})}function F0({className:e,children:t,position:n="popper",...r}){return s.jsx(y0,{children:s.jsxs(w0,{"data-slot":"select-content",className:E("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto","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",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","rounded-[24px] border-2 border-gray-300 bg-white shadow-[0_10px_20px_rgba(34,34,34,0.1)]",e),position:n,...r,children:[s.jsx(Il,{}),s.jsx(x0,{className:E("p-2",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),s.jsx(Ll,{})]})})}function W0({className:e,...t}){return s.jsx(N0,{"data-slot":"select-label",className:E("px-4 py-2 text-xs font-bold text-gray-500",e),...t})}function B0({goals:e,defaultGoals:t=[],onGoalsChange:n,placeholder:r="목표를 입력하세요",disabled:o=!1,addOnBlur:a=!1,inputAriaLabel:i="목표 입력",className:l,...c}){const d=e!==void 0,[u,f]=P.useState(t),[g,m]=P.useState(""),b=P.useRef(!1),p=d?e:u,v=x=>{d||f(x),n?.(x)},w=()=>{if(o)return;const x=g.trim();x&&(v([...p,x]),m(""))},y=x=>{o||v(p.filter((N,S)=>S!==x))};return s.jsxs("div",{className:E("flex w-full flex-col gap-4",l),...c,children:[p.map((x,N)=>s.jsxs("div",{className:"flex h-16 w-full items-center justify-between rounded-4 border border-gray-300 bg-white px-5",children:[s.jsx(F,{size:"body1",weight:"bold",className:"line-clamp-1 text-gray-900",children:x}),s.jsx("button",{type:"button","aria-label":`목표 삭제: ${x}`,disabled:o,onClick:()=>y(N),className:E("inline-flex h-8 w-8 items-center justify-center rounded-2 text-gray-600 transition-colors",!o&&"hover:bg-gray-100 hover:text-gray-700",o&&"cursor-not-allowed text-gray-400"),children:s.jsx(mn,{className:"h-5 w-5"})})]},`${x}-${N}`)),s.jsx("input",{type:"text",value:g,disabled:o,"aria-label":i,placeholder:r,onChange:x=>m(x.target.value),onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onKeyDown:x=>{x.key==="Enter"&&(x.nativeEvent.isComposing||b.current||x.nativeEvent.keyCode===229||(x.preventDefault(),w()))},onBlur:()=>{a&&w()},className:E("h-16 w-full rounded-4 border border-gray-300 bg-white px-5","text-xl font-medium text-gray-900 placeholder:text-gray-500","outline-none transition-all duration-200","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o&&"cursor-not-allowed opacity-60")})]})}function z0({onChange:e,size:t=300,defaultImageUrl:n,changeLabel:r="Change",...o}){const a=Math.max(t,120),i=Math.max(Math.round(a*.3),28),l=Math.max(Math.round(i*.6),18),c=P.useRef(null),d=P.useRef(null),[u,f]=P.useState(n??null),g=()=>{c.current?.click()};P.useEffect(()=>{f(n??null)},[n]),P.useEffect(()=>()=>{d.current&&URL.revokeObjectURL(d.current)},[]);const m=b=>{const p=b.target.files?.[0];if(p){d.current&&URL.revokeObjectURL(d.current);const v=URL.createObjectURL(p);d.current=v,f(v)}};return s.jsxs("div",{className:"relative inline-flex",style:{width:a,height:a},children:[s.jsx("input",{type:"file",accept:"image/*",ref:c,className:"hidden",onChange:b=>{e!==void 0&&e(b),m(b)},...o}),s.jsx("button",{type:"button",onClick:g,"aria-label":"이미지 선택",className:E("relative h-full w-full overflow-hidden rounded-full","cursor-pointer",u?"bg-main-300":"border-2 border-dashed border-gray-400 bg-white"),children:u?s.jsx("img",{src:u,alt:"이미지 미리보기",className:"h-full w-full object-cover",loading:"lazy"}):s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(Wt,{width:l,height:i,className:"text-gray-300"})})}),s.jsxs("button",{type:"button",onClick:g,className:E("absolute bottom-0 left-1/2 z-10 inline-flex h-9 -translate-x-1/2 translate-y-1/2 items-center gap-1.5 rounded-full border border-gray-200 bg-white px-5","cursor-pointer shadow-[0_6px_16px_rgba(34,34,34,0.16)]"),children:[s.jsx(vn,{className:"h-3.5 w-3.5 text-gray-700"}),s.jsx(F,{size:"caption1",weight:"medium",className:"text-gray-700",children:r})]})]})}function $0({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:l}){return s.jsxs("div",{className:E("rounded-2 relative overflow-hidden p-4 sm:p-6 text-white","flex flex-col justify-between","h-36 w-full sm:h-47.5 sm:w-56","hover:shadow-default","hover:-translate-y-1","transition-all duration-300",i&&"cursor-pointer",l),style:{backgroundImage:`linear-gradient(to bottom right, ${o}, ${a})`},onClick:i,children:[s.jsxs("div",{className:"flex w-full flex-col gap-0.5 sm:gap-1",children:[s.jsx(F,{size:"caption3",weight:"medium",className:"opacity-80 sm:text-sm",children:e}),s.jsx(F,{size:"body1",weight:"bold",className:"mt-0.5 sm:mt-1 sm:text-2xl",children:t})]}),s.jsx("div",{className:"absolute bottom-4 left-4 sm:bottom-6 sm:left-6",children:s.jsx(It,{src:n,alt:r,width:36,height:60,className:"object-contain sm:w-12 sm:h-19.5"})}),s.jsx(F,{size:"heading1",weight:"bold",className:"absolute right-4 bottom-4 sm:right-6 sm:bottom-6 sm:text-4xl",children:"→"})]})}function H0(){return s.jsxs("div",{className:"flex items-end gap-2",children:[s.jsx(Wt,{width:24,height:40,className:"text-gray-300"}),s.jsx(F,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}const Zt="...";function V0({currentPage:e,totalPages:t,siblingCount:n=1}){return h.useMemo(()=>{if(n+5>=t)return Array.from({length:t},(f,g)=>g+1);const a=Math.max(e-n,1),i=Math.min(e+n,t),l=a>2,c=i<t-2,d=1,u=t;if(!l&&c){const f=3+2*n;return[...Array.from({length:f},(m,b)=>b+1),Zt,t]}if(l&&!c){const f=3+2*n,g=Array.from({length:f},(m,b)=>t-f+b+1);return[d,Zt,...g]}if(l&&c){const f=Array.from({length:i-a+1},(g,m)=>a+m);return[d,Zt,...f,Zt,u]}},[t,e,n])}function Y0({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o}){const a=V0({currentPage:e,totalPages:t,siblingCount:r});if(e===0||t<2)return null;const i=()=>{e<t&&n(e+1)},l=()=>{e>1&&n(e-1)};return s.jsxs("nav",{role:"navigation","aria-label":"Pagination",className:E("flex items-center justify-center gap-3",o),children:[s.jsx(fe,{onClick:l,disabled:e===1,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to previous page",children:s.jsx(fr,{className:"h-5 w-5"})}),a?.map((c,d)=>{if(c===Zt)return s.jsx("div",{className:"flex h-10 min-w-10 items-center justify-center px-1",children:s.jsx("span",{className:"text-lg font-medium text-gray-400",children:"..."})},`dots-${d}`);const u=c===e;return s.jsx(fe,{onClick:()=>n(c),variant:u?"default":"secondary",size:"icon",className:E("rounded-3",u?"bg-main-800 text-white shadow-[0_8px_16px_rgba(255,87,34,0.3)] hover:bg-main-800":"bg-gray-100 text-gray-700 hover:bg-gray-200"),"aria-current":u?"page":void 0,children:s.jsx("span",{className:E("text-2xl leading-none",u?"font-bold text-white":"font-medium text-gray-700"),children:c})},c)}),s.jsx(fe,{onClick:i,disabled:e===t,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to next page",children:s.jsx(gn,{className:"h-5 w-5"})})]})}function Fl({value:e,label:t,showLabel:n,showValueText:r=!0,valueText:o,infinite:a=!1,thickness:i=6,fillColor:l,trackColor:c,className:d,labelClassName:u,valueClassName:f,trackClassName:g,fillClassName:m,...b}){const p=Math.min(Math.max(e,0),100),v=a?"100%":`${p}%`,w=o??(a?"∞":`${p}%`),y=n??t!==void 0;return s.jsxs("div",{className:E("w-full",d),...b,children:[(y||r)&&s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y?s.jsx(F,{size:"caption1",weight:"medium",className:E("line-clamp-1 text-gray-800",u),children:t}):s.jsx("span",{}),r?s.jsx(F,{size:"caption1",weight:"medium",className:E("shrink-0 text-gray-600",f),children:w}):null]}),s.jsx("div",{className:E("mt-2.5 overflow-hidden rounded-full bg-gray-200",g),style:{height:`${i}px`,...c?{backgroundColor:c}:{}},children:s.jsx("div",{className:E("h-full rounded-full bg-main-800 transition-all duration-200",m),style:{width:v,...l?{backgroundColor:l}:{}}})})]})}const j0=[{id:"1",title:"알고리즘 부시기",progress:56,tone:"blue"},{id:"2",title:"새벽 러닝",progress:84,tone:"green"}],G0={blue:"#3b82f6",green:"#22c55e",orange:"#ff5722"};function U0({isLoggedIn:e=!0,userName:t,userHandle:n,userImage:r,streakDays:o,fixed:a=!0,className:i,diaryButtonLabel:l="일지 작성하기",myPageButtonLabel:c="마이페이지",loginButtonLabel:d="로그인",loginPromptMessage:u="로그인하고 연속 기록을 시작해보세요",settingButtonLabel:f="설정",challengeTitle:g="참여중인 챌린지",challenges:m=j0,emptyChallengeMessage:b="챌린지가 없어요.",joinChallengeButtonLabel:p="챌린지 참여하기",createChallengeButtonLabel:v="챌린지 생성하기",onCollapseClick:w,onOpenSettings:y,onWriteDiary:x,onGoMyPage:N,onLogin:S,onJoinChallenge:M,onCreateChallenge:A}){const[W,Y]=P.useState(!1),[j,z]=P.useState("expanded"),[B,_]=P.useState(!0),[C,Z]=P.useState(!1),[se,de]=P.useState(null),ve=P.useRef(null),te=P.useRef([]),ae=()=>{te.current.forEach(K=>clearTimeout(K)),te.current=[]},he=(K,Q)=>{const X=setTimeout(()=>{K(),te.current=te.current.filter(re=>re!==X)},Q);te.current.push(X)};P.useEffect(()=>()=>{ae()},[]);const xe=()=>{const K=ve.current;return K?Math.max(Math.ceil(K.scrollHeight),0):null},O=()=>{const K=ve.current;if(!K)return null;const Q=K.style.height;K.style.height="auto";const X=xe();return K.style.height=Q,X},ne=()=>{if(C)return;const K=!W,Q=ve.current?.offsetHeight;Q&&Q>0&&de(Q),Z(!0),_(!1),w?.(),ae(),he(()=>{Y(K),z(K?"collapsed":"expanded")},140),he(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{const X=O();X&&X>0&&de(X)})})},440),he(()=>{_(!0)},720),he(()=>{de(null),Z(!1)},940)};return s.jsxs("div",{className:E("z-40 transition-[width] duration-300 ease-in-out",a?"fixed top-4 right-3 max-h-[calc(100vh-2rem)]":"relative max-h-190",W?"w-22":"w-69",i),children:[s.jsx(fe,{type:"button",variant:"outlined",size:"icon","aria-label":"사이드바 접기",onClick:ne,disabled:C,className:"absolute top-6 -left-4 z-20 h-8 w-8 min-w-8 rounded-full p-0 text-gray-500 shadow-sm",children:s.jsx(gn,{className:E("h-4 w-4 transition-transform duration-200",W?"rotate-180":"rotate-0")})}),s.jsx("aside",{ref:ve,className:E("relative flex w-full flex-col overflow-x-hidden overflow-y-auto rounded-4 border border-gray-200 bg-white p-3 shadow-[0_6px_16px_rgba(34,34,34,0.06)] transition-[height] duration-300 ease-in-out",a&&"max-h-[calc(100vh-2rem)]",!a&&"max-h-full"),style:{height:se?`${se}px`:void 0},children:s.jsx("div",{className:E("flex h-full w-full transition-opacity ease-out",B?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${B?220:140}ms`},"aria-hidden":!B,children:j==="expanded"?s.jsxs("div",{className:"flex w-full flex-col px-2 py-2",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Ft,{imageUrl:r,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(F,{size:"body1",weight:"bold",className:"text-gray-900",children:e?t??"고라니":"게스트"}),s.jsx(F,{size:"caption1",weight:"regular",className:"text-gray-600",children:e?`@${n??"gorani"}`:"로그인 후 이용 가능"})]})]}),e?s.jsx(fe,{type:"button",variant:"ghost",size:"icon","aria-label":"설정",onClick:y,className:"text-gray-500 hover:text-gray-700",children:s.jsx(pr,{className:"h-5 w-5"})}):null]}),s.jsxs("div",{className:"mt-6 rounded-3 border border-main-400 bg-main-200 px-4 py-4 text-center",children:[s.jsx(F,{as:"p",size:"caption1",weight:"medium",className:"text-gray-700",children:"현재 연속 기록"}),e?s.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2.5",children:[s.jsx(Ea,{className:"h-7 w-7 text-main-800",strokeWidth:2.2}),s.jsx(F,{size:"heading1",weight:"bold",className:"text-main-800",children:o}),s.jsx(F,{size:"body1",weight:"bold",className:"text-gray-800",children:"Days"})]}):s.jsx(F,{as:"p",size:"caption1",weight:"medium",className:"mt-3 block leading-tight text-gray-700",children:u})]}),e?s.jsxs(s.Fragment,{children:[s.jsxs(fe,{className:"mt-5 w-full",size:"medium",onClick:x,children:[s.jsx(vn,{className:"h-4 w-4"}),s.jsx(F,{size:"body2",weight:"bold",className:"text-inherit",children:l})]}),s.jsxs(fe,{variant:"outlined",className:"mt-3 w-full",size:"medium",onClick:N,children:[s.jsx(Bt,{className:"h-4 w-4"}),s.jsx(F,{size:"body2",weight:"bold",className:"text-inherit",children:c})]}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(F,{size:"caption1",weight:"medium",className:"text-gray-500",children:g}),m.length>0?s.jsx("div",{className:"mt-4 flex flex-col gap-5",children:m.map(K=>{const Q=K.tone??"blue";return s.jsx(Fl,{label:K.title,value:K.progress,infinite:K.hasDeadline===!1,fillColor:G0[Q]},K.id)})}):s.jsxs("div",{className:"mt-4",children:[s.jsx(F,{as:"p",size:"caption1",weight:"medium",className:"text-gray-600",children:b}),s.jsxs("div",{className:"mt-3 flex flex-col gap-2.5",children:[s.jsx(fe,{type:"button",className:"w-full",size:"medium",onClick:M,children:p}),s.jsx(fe,{type:"button",variant:"outlined",className:"w-full",size:"medium",onClick:A,children:v})]})]})]})]}):s.jsxs(fe,{className:"mt-5 w-full",size:"medium",onClick:S,children:[s.jsx(hr,{className:"h-4 w-4"}),s.jsx(F,{size:"body2",weight:"bold",className:"text-inherit",children:d})]})]}):s.jsxs("div",{className:"flex w-full flex-col items-center pt-2",children:[s.jsx(Ft,{imageUrl:r,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsx("div",{className:"mt-5 flex flex-col items-center gap-3",children:e?s.jsxs(s.Fragment,{children:[s.jsx(fe,{type:"button",size:"icon","aria-label":l,onClick:x,children:s.jsx(vn,{className:"h-4 w-4"})}),s.jsx(fe,{type:"button",variant:"outlined",size:"icon","aria-label":c,onClick:N,children:s.jsx(Bt,{className:"h-4 w-4"})}),s.jsx(fe,{type:"button",variant:"outlined",size:"icon","aria-label":f,onClick:y,children:s.jsx(pr,{className:"h-4 w-4"})})]}):s.jsx(fe,{type:"button",size:"icon","aria-label":d,onClick:S,children:s.jsx(hr,{className:"h-4 w-4"})})})]})})})]})}const K0=["SUN","MON","TUE","WED","THU","FRI","SAT"];function Q0(e){return e===void 0?"100%":typeof e=="number"?`${e}%`:e}function q0(e="default"){return e==="strong"?"text-gray-900 font-bold":e==="accent"?"text-main-800 font-bold":e==="muted"?"text-gray-500 font-medium":"text-gray-600 font-medium"}function X0(e="main"){return e==="soft"?"bg-main-600/50":"bg-main-800"}function Z0({rows:e,weekLabels:t=[...K0],cellMinHeight:n=140,className:r}){return s.jsx("div",{className:E("w-full overflow-hidden rounded-4 border border-gray-300 bg-white",r),children:s.jsxs("table",{className:"w-full table-fixed border-collapse",children:[s.jsx("thead",{children:s.jsx("tr",{children:t.map((o,a)=>s.jsx("th",{className:E("h-12 border-b border-r border-gray-300 bg-gray-100 px-2.5 text-center align-middle",a===t.length-1&&"border-r-0"),scope:"col",children:s.jsx(F,{size:"body2",weight:"bold",className:"text-gray-600",children:o})},`${o}-${a}`))})}),s.jsx("tbody",{children:e.map((o,a)=>s.jsx("tr",{children:o.map((i,l)=>{const c=i.colSpan??1,d=i.id??`r${a}-c${l}`,u=o.slice(0,l+1).reduce((f,g)=>f+(g.colSpan??1),0)>=7;return s.jsx("td",{colSpan:c,className:E("border-r border-b border-gray-300 align-top",u&&"border-r-0"),children:s.jsx("div",{className:E("flex h-full min-h-[110px] flex-col gap-2 p-2",i.muted&&"bg-gray-300",i.highlighted&&"bg-main-200 ring-1 ring-inset ring-main-400"),style:{minHeight:`${n}px`},children:i.content?i.content:s.jsxs(s.Fragment,{children:[i.day!==void 0?s.jsx(F,{size:"body2",weight:"medium",className:E("leading-tight",q0(i.dayTone)),children:i.day}):null,i.title!==void 0?s.jsx(F,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:i.title}):null,i.bars&&i.bars.length>0?s.jsx("div",{className:"mt-0.5 flex flex-col gap-1.5",children:i.bars.map((f,g)=>s.jsx("span",{className:E("block h-1.5 rounded-full transition-all duration-200",X0(f.tone)),style:{width:Q0(f.width)}},`${d}-bar-${g}`))}):null,i.subtitle!==void 0?s.jsx(F,{size:"caption2",weight:"medium",className:"text-gray-600",children:i.subtitle}):null]})})},d)})},`row-${a}`))})]})})}function J0({icon:e,iconName:t,title:n,value:r,unit:o,className:a,iconClassName:i,...l}){const c=e??(t?s.jsx(Ia,{name:t,size:32}):null);return s.jsxs("div",{className:E("rounded-[24px] border border-gray-200 bg-white p-7","shadow-[0_1px_4px_rgba(17,17,17,0.08)]","w-full",a),...l,children:[s.jsxs("div",{className:"flex items-center gap-3.5",children:[s.jsx("div",{className:E("text-main-800","[&_svg]:h-8 [&_svg]:w-8",i),children:c}),s.jsx(F,{size:"heading2",weight:"medium",className:"leading-tight text-gray-600",children:n})]}),s.jsxs("div",{className:"mt-6 flex items-end gap-1.5",children:[s.jsx(F,{size:"display1",weight:"bold",className:"text-gray-900",children:r}),s.jsx(F,{size:"heading2",weight:"medium",className:"pb-1 text-gray-600",children:o})]})]})}function R0({steps:e,currentStep:t,className:n}){if(e.length===0)return s.jsx("div",{className:E("w-full",n)});const r=Math.max(e.length-1,0),o=Math.min(Math.max(t-1,0),r),a=`${100/(e.length*2)}%`,i=r===0?100:o/r*100;return s.jsx("div",{className:E("w-full",n),children:s.jsxs("div",{className:"relative",children:[e.length>1?s.jsxs("div",{className:"absolute top-5",style:{left:a,right:a},children:[s.jsx("div",{className:"h-0.5 w-full bg-gray-200"}),s.jsx("div",{className:"absolute top-0 left-0 h-0.5 bg-main-800 transition-all duration-300 ease-in-out",style:{width:`${i}%`}})]}):null,s.jsx("ol",{className:"relative z-10 flex items-start",children:e.map((l,c)=>{const d=c<o,u=c===o,f=l.id??`step-${c}`;return s.jsxs("li",{className:"flex flex-1 flex-col items-center",children:[s.jsx("span",{className:E("flex h-10 w-10 items-center justify-center rounded-full border-2 bg-white transition-colors duration-200",d&&"border-main-800 bg-main-800 text-white",u&&"border-main-800 bg-main-800 text-white ring-4 ring-main-300",!d&&!u&&"border-gray-300 text-gray-600"),"aria-current":u?"step":void 0,children:d?s.jsx(vt,{className:"h-4 w-4",strokeWidth:2.5}):s.jsx(F,{size:"body1",weight:"bold",className:E(u?"text-white":"text-gray-600"),children:c+1})}),s.jsx(F,{size:"heading2",weight:u?"bold":"medium",className:E("mt-5 text-center leading-tight",d&&"text-main-800",u&&"text-gray-900",!d&&!u&&"text-gray-600"),children:l.label})]},f)})})]})})}var[Xn]=Ne("Tooltip",[kt]),Zn=kt(),Wl="TooltipProvider",eb=700,ko="tooltip.open",[tb,Po]=Xn(Wl),Bl=e=>{const{__scopeTooltip:t,delayDuration:n=eb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=h.useRef(!0),l=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),s.jsx(tb,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:a})};Bl.displayName=Wl;var Jt="Tooltip",[nb,Rt]=Xn(Jt),zl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=Po(Jt,e.__scopeTooltip),d=Zn(t),[u,f]=h.useState(null),g=Se(),m=h.useRef(0),b=i??c.disableHoverableContent,p=l??c.delayDuration,v=h.useRef(!1),[w,y]=be({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ko))):c.onClose(),a?.(A)},caller:Jt}),x=h.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),N=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,y(!0)},[y]),S=h.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),M=h.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,y(!0),m.current=0},p)},[p,y]);return h.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),s.jsx(ao,{...d,children:s.jsx(nb,{scope:t,contentId:g,open:w,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?M():N()},[c.isOpenDelayedRef,M,N]),onTriggerLeave:h.useCallback(()=>{b?S():(window.clearTimeout(m.current),m.current=0)},[S,b]),onOpen:N,onClose:S,disableHoverableContent:b,children:n})})};zl.displayName=Jt;var Eo="TooltipTrigger",$l=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Rt(Eo,n),a=Po(Eo,n),i=Zn(n),l=h.useRef(null),c=J(t,l,o.onTriggerChange),d=h.useRef(!1),u=h.useRef(!1),f=h.useCallback(()=>d.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(In,{asChild:!0,...i,children:s.jsx(U.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,g=>{g.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:V(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:V(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:V(e.onBlur,o.onClose),onClick:V(e.onClick,o.onClose)})})});$l.displayName=Eo;var _o="TooltipPortal",[rb,ob]=Xn(_o,{forceMount:void 0}),Hl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Rt(_o,t);return s.jsx(rb,{scope:t,forceMount:n,children:s.jsx(Oe,{present:n||a.open,children:s.jsx(Qt,{asChild:!0,container:o,children:r})})})};Hl.displayName=_o;var Ot="TooltipContent",Vl=h.forwardRef((e,t)=>{const n=ob(Ot,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Rt(Ot,e.__scopeTooltip);return s.jsx(Oe,{present:r||i.open,children:i.disableHoverableContent?s.jsx(Yl,{side:o,...a,ref:t}):s.jsx(ab,{side:o,...a,ref:t})})}),ab=h.forwardRef((e,t)=>{const n=Rt(Ot,e.__scopeTooltip),r=Po(Ot,e.__scopeTooltip),o=h.useRef(null),a=J(t,o),[i,l]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,g=h.useCallback(()=>{l(null),f(!1)},[f]),m=h.useCallback((b,p)=>{const v=b.currentTarget,w={x:b.clientX,y:b.clientY},y=db(w,v.getBoundingClientRect()),x=ub(w,y),N=fb(p.getBoundingClientRect()),S=pb([...x,...N]);l(S),f(!0)},[f]);return h.useEffect(()=>()=>g(),[g]),h.useEffect(()=>{if(c&&u){const b=v=>m(v,u),p=v=>m(v,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",p)}}},[c,u,m,g]),h.useEffect(()=>{if(i){const b=p=>{const v=p.target,w={x:p.clientX,y:p.clientY},y=c?.contains(v)||u?.contains(v),x=!hb(w,i);y?g():x&&(g(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,d,g]),s.jsx(Yl,{...e,ref:a})}),[sb,ib]=Xn(Jt,{isInside:!1}),lb=pc("TooltipContent"),Yl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=Rt(Ot,n),d=Zn(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(ko,u),()=>document.removeEventListener(ko,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=g=>{g.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),s.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.jsxs(so,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(lb,{children:r}),s.jsx(sb,{scope:n,isInside:!0,children:s.jsx(Qv,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Vl.displayName=Ot;var jl="TooltipArrow",cb=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zn(n);return ib(jl,n).isInside?null:s.jsx(io,{...o,...r,ref:t})});cb.displayName=jl;function db(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ub(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function fb(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hb(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],c=t[i],d=l.x,u=l.y,f=c.x,g=c.y;u>r!=g>r&&n<(f-d)*(r-u)/(g-u)+d&&(o=!o)}return o}function pb(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),gb(t)}function gb(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var mb=Bl,vb=zl,bb=$l,yb=Hl,wb=Vl;function Gl({delayDuration:e=200,...t}){return s.jsx(mb,{delayDuration:e,...t})}const Ul=vb,Kl=bb;function Ql({className:e,sideOffset:t=4,...n}){return s.jsx(yb,{children:s.jsx(wb,{sideOffset:t,className:E("z-50 overflow-hidden rounded-1.5 bg-gray-900 px-3 py-1.5 text-caption2 text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n})})}function xb({data:e=[],size:t=26,gap:n=8,className:r}){const o=a=>a<=0?"bg-gray-100":a===1?"bg-main-300":a===2?"bg-main-500":a===3?"bg-main-700":"bg-main-800";return s.jsx("div",{className:E("w-full overflow-x-auto pb-2",r),children:s.jsx(Gl,{children:s.jsx("div",{className:"grid w-max grid-flow-col grid-rows-7",style:{gridTemplateRows:`repeat(7, ${t}px)`,gridAutoColumns:`${t}px`,gap:`${n}px`},children:e.map((a,i)=>s.jsxs(Ul,{children:[s.jsx(Kl,{asChild:!0,children:s.jsx("div",{className:E("transition-colors duration-200",o(a.count)),style:{width:t,height:t,borderRadius:`${Math.max(4,Math.round(t*.23))}px`}})}),s.jsx(Ql,{side:"top",children:s.jsxs("p",{className:"text-xs",children:[a.count," contributions on ",a.date]})})]},i))})})})}const ql=at(["w-full transition-all duration-200 outline-none","disabled:cursor-not-allowed disabled:opacity-50","placeholder:text-gray-500","focus-visible:outline-none"],{variants:{variant:{default:["rounded-3 border border-gray-300 bg-white px-5 text-gray-900 shadow-none","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"],search:["rounded-3 !h-10 border border-gray-300 bg-white pl-11 pr-4 text-gray-700 placeholder:text-gray-500","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"]},multiline:{false:"h-10 py-0",true:"min-h-[320px] resize-none py-8 align-top leading-relaxed"}},defaultVariants:{variant:"default",multiline:!1}});function Cb(e,t){return"body2"}function Nb({label:e,labelHint:t,required:n,htmlFor:r}){return e?s.jsxs("label",{htmlFor:r,className:"mb-2 inline-flex items-center gap-2",children:[s.jsx(F,{size:"body1",weight:"bold",className:"text-gray-900",children:e}),n?s.jsx(F,{size:"body1",weight:"bold",className:"text-main-800",children:"*"}):null,t?s.jsx(F,{size:"body1",weight:"regular",className:"text-gray-500",children:t}):null]}):null}const Mo=h.forwardRef(({className:e,variant:t="default",label:n,labelHint:r,error:o,type:a,multiline:i=!1,rows:l=8,cols:c,required:d,id:u,...f},g)=>{const m=t==="search",b=Cb(t,i);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsx(Nb,{label:n,labelHint:r,required:d,htmlFor:u}),s.jsxs("div",{className:"relative w-full",children:[i?s.jsx("textarea",{id:u,rows:l,cols:c,required:d,className:E(pn({size:b,weight:"regular"}),ql({variant:t,multiline:!0}),e),ref:g,...f}):s.jsx("input",{id:u,type:a,required:d,className:E(pn({size:b,weight:m?"light":"regular"}),ql({variant:t,multiline:!1}),e),ref:g,...f}),m&&!i?s.jsx(Oa,{width:20,height:20,className:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-gray-500"}):null]}),o?s.jsx(F,{size:"caption1",weight:"regular",className:"mt-2 text-warning",children:o}):null]})});Mo.displayName="TextField";const Xl=h.forwardRef((e,t)=>s.jsx(Mo,{...e,ref:t,multiline:!0}));Xl.displayName="TextArea";var Zl="Toggle",To=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,l]=be({prop:n,onChange:o,defaultProp:r??!1,caller:Zl});return s.jsx(U.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:V(e.onClick,()=>{e.disabled||l(!i)})})});To.displayName=Zl;var Sb=To;const Ab=at(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function kb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Sb,{className:E(Ab({shape:t}),r),...o,children:[e?s.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,s.jsx(F,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var Do="rovingFocusGroup.onEntryFocus",Pb={bubbles:!1,cancelable:!0},en="RovingFocusGroup",[Oo,Jl,Eb]=er(en),[_b,Rl]=Ne(en,[Eb]),[Mb,Tb]=_b(en),ec=h.forwardRef((e,t)=>s.jsx(Oo.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Oo.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Db,{...e,ref:t})})}));ec.displayName=en;var Db=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,g=h.useRef(null),m=J(t,g),b=on(a),[p,v]=be({prop:i,defaultProp:l??null,onChange:c,caller:en}),[w,y]=h.useState(!1),x=Xe(d),N=Jl(n),S=h.useRef(!1),[M,A]=h.useState(0);return h.useEffect(()=>{const k=g.current;if(k)return k.addEventListener(Do,x),()=>k.removeEventListener(Do,x)},[x]),s.jsx(Mb,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:p,onItemFocus:h.useCallback(k=>v(k),[v]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>A(k=>k+1),[]),onFocusableItemRemove:h.useCallback(()=>A(k=>k-1),[]),children:s.jsx(U.div,{tabIndex:w||M===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,k=>{const $=!S.current;if(k.target===k.currentTarget&&$&&!w){const G=new CustomEvent(Do,Pb);if(k.currentTarget.dispatchEvent(G),!G.defaultPrevented){const T=N().filter(B=>B.focusable),W=T.find(B=>B.active),Y=T.find(B=>B.id===p),z=[W,Y,...T].filter(Boolean).map(B=>B.ref.current);rc(z,u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})}),tc="RovingFocusGroupItem",nc=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...l}=e,c=Se(),d=a||c,u=Tb(tc,n),f=u.currentTabStopId===d,g=Jl(n),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:p}=u;return h.useEffect(()=>{if(r)return m(),()=>b()},[r,m,b]),s.jsx(Oo.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:s.jsx(U.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:V(e.onMouseDown,v=>{r?u.onItemFocus(d):v.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:V(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=Lb(v,u.orientation,u.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=g().filter(N=>N.focusable).map(N=>N.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const N=x.indexOf(v.currentTarget);x=u.loop?Fb(x,N+1):x.slice(N+1)}setTimeout(()=>rc(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:p!=null}):i})})});nc.displayName=tc;var Ob={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ib(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Lb(e,t,n){const r=Ib(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ob[r]}function rc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Fb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wb=ec,Bb=nc,rt="ToggleGroup",[oc]=Ne(rt,[Rl]),ac=Rl(),Io=P.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return s.jsx(zb,{...o,ref:t})}if(n==="multiple"){const o=r;return s.jsx($b,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${rt}\``)});Io.displayName=rt;var[sc,ic]=oc(rt),zb=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=be({prop:n,defaultProp:r??"",onChange:o,caller:rt});return s.jsx(sc,{scope:e.__scopeToggleGroup,type:"single",value:P.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:P.useCallback(()=>l(""),[l]),children:s.jsx(lc,{...a,ref:t})})}),$b=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=be({prop:n,defaultProp:r??[],onChange:o,caller:rt}),c=P.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=P.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return s.jsx(sc,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:s.jsx(lc,{...a,ref:t})})});Io.displayName=rt;var[Hb,Vb]=oc(rt),lc=P.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...c}=e,d=ac(n),u=on(i),f={role:"group",dir:u,...c};return s.jsx(Hb,{scope:n,rovingFocus:o,disabled:r,children:o?s.jsx(Wb,{asChild:!0,...d,orientation:a,dir:u,loop:l,children:s.jsx(U.div,{...f,ref:t})}):s.jsx(U.div,{...f,ref:t})})}),Jn="ToggleGroupItem",cc=P.forwardRef((e,t)=>{const n=ic(Jn,e.__scopeToggleGroup),r=Vb(Jn,e.__scopeToggleGroup),o=ac(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},c=P.useRef(null);return r.rovingFocus?s.jsx(Bb,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:s.jsx(dc,{...l,ref:t})}):s.jsx(dc,{...l,ref:t})});cc.displayName=Jn;var dc=P.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=ic(Jn,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(To,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Yb=Io,jb=cc;const Gb=at(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function Ub({children:e,className:t,...n}){return s.jsx(Yb,{"data-slot":"toggle-group",className:E("flex flex-wrap gap-4 rounded-none",t),...n,children:e})}function Kb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(jb,{"data-slot":"toggle-group-item",className:E(Gb({shape:t}),r),...o,children:[e?s.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,s.jsx(F,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}function Qb({className:e,userName:t,userImageSrc:n,timeLabel:r,isAuthor:o=!1,onAccept:a,onReject:i}){return s.jsxs("div",{className:E("flex h-[50px] items-center justify-between gap-3 rounded-3 border border-gray-200 bg-white px-3",e),children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx("div",{className:"relative flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-200",children:n?s.jsx(It,{src:n,alt:`${t} profile`,fill:!0,className:"object-cover"}):s.jsx(Bt,{className:"h-4.5 w-4.5 text-gray-500"})}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(F,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:t}),r?s.jsx(F,{size:"caption2",weight:"regular",className:"text-gray-600",children:r}):null]})]}),o?s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button","aria-label":"수락",onClick:a,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-main-200 text-main-800 transition-colors hover:bg-main-300",children:s.jsx(vt,{className:"h-4.5 w-4.5",strokeWidth:2.6})}),s.jsx("button",{type:"button","aria-label":"거절",onClick:i,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-gray-100 text-gray-600 transition-colors hover:bg-gray-200",children:s.jsx(mn,{className:"h-4.5 w-4.5",strokeWidth:2.4})})]})}):null]})}D.Accordion=Fd,D.AccordionContent=zd,D.AccordionItem=Wd,D.AccordionTrigger=Bd,D.AppHeader=mu,D.BannerCarousel=wu,D.Button=fe,D.Calendar=Lr,D.ChallengeCard=Lp,D.CheckContainer=Fp,D.CheckList=Hp,D.Checkbox=$r,D.CircleAvatar=Ft,D.CircularProgress=ws,D.DatePicker=bv,D.Dialog=Fv,D.DialogClose=Bv,D.DialogContent=zv,D.DialogDescription=Yv,D.DialogFooter=Hv,D.DialogHeader=$v,D.DialogOverlay=tl,D.DialogPortal=el,D.DialogTitle=Vv,D.DialogTrigger=Wv,D.DiaryCard=Uv,D.GoalAddList=B0,D.Icon=Ia,D.ImagePicker=z0,D.ImagePlaceholder=Fr,D.InfoButton=$0,D.PageWatermark=H0,D.Pagination=Y0,D.ProgressBar=Fl,D.RangeDatePicker=yv,D.RightSidebar=U0,D.ScheduleCalendar=Z0,D.Select=M0,D.SelectContent=F0,D.SelectGroup=T0,D.SelectItem=I0,D.SelectLabel=W0,D.SelectScrollDownButton=Ll,D.SelectScrollUpButton=Il,D.SelectSeparator=L0,D.SelectTrigger=O0,D.SelectValue=D0,D.StatContainer=J0,D.StepIndicator=R0,D.Streak=xb,D.Tag=Wr,D.Text=F,D.TextArea=Xl,D.TextField=Mo,D.Toggle=kb,D.ToggleGroup=Ub,D.ToggleGroupItem=Kb,D.Tooltip=Ul,D.TooltipContent=Ql,D.TooltipProvider=Gl,D.TooltipTrigger=Kl,D.UserListItem=Qb,D.cn=E,D.textVariants=pn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));