@1d1s/design-system 0.2.12 → 0.2.14

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,9 +1,9 @@
1
- (function(T,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):(T=typeof globalThis<"u"?globalThis:T||self,s(T.OdosDesignSystem={},T.jsxRuntime,T.React,T.ReactDOM,T.nextImage,T.LucideReact))})(this,(function(T,s,E,Vo,at,ce){"use strict";function Yo(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=Yo(E),on=Yo(Vo);function fc(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 Se(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:v,...b}=f,p=g?.[e]?.[c]||l,m=h.useMemo(()=>b,Object.values(b));return s.jsx(p.Provider,{value:m,children:v})};d.displayName=a+"Provider";function u(f,g){const v=g?.[e]?.[c]||l,b=h.useContext(v);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,hc(o,...t)]}function hc(...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 jo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nr(...e){return t=>{let n=!1;const r=e.map(o=>{const a=jo(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():jo(e[o],null)}}}}function Z(...e){return h.useCallback(nr(...e),e)}function pt(e){const t=pc(e),n=h.forwardRef((r,o)=>{const{children:a,...i}=r,l=h.Children.toArray(a),c=l.find(mc);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 pc(e){const t=h.forwardRef((n,r)=>{const{children:o,...a}=n;if(h.isValidElement(o)){const i=bc(o),l=vc(a,o.props);return o.type!==h.Fragment&&(l.ref=r?nr(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 Go=Symbol("radix.slottable");function gc(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Go,t}function mc(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Go}function vc(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 bc(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 rr(e){const t=e+"CollectionProvider",[n,r]=Se(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:m,children:w}=p,y=E.useRef(null),x=E.useRef(new Map).current;return s.jsx(o,{scope:m,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const l=e+"CollectionSlot",c=pt(l),d=E.forwardRef((p,m)=>{const{scope:w,children:y}=p,x=a(l,w),N=Z(m,x.collectionRef);return s.jsx(c,{ref:N,children:y})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",g=pt(u),v=E.forwardRef((p,m)=>{const{scope:w,children:y,...x}=p,N=E.useRef(null),S=Z(m,N),M=a(u,w);return E.useEffect(()=>(M.itemMap.set(N,{ref:N,...x}),()=>{M.itemMap.delete(N)})),s.jsx(g,{[f]:"",ref:S,children:y})});v.displayName=u;function b(p){const m=a(e+"CollectionConsumer",p);return E.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((M,_)=>x.indexOf(M.ref.current)-x.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:d,ItemSlot:v},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:()=>{},yc=h[" useInsertionEffect ".trim().toString()]||ue;function ye({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=wc({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=xc(u)?u(e):u;f!==e&&i.current?.(f)}else a(u)},[l,e,a,i]);return[c,d]}function wc({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return yc(()=>{a.current=t},[t]),h.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function xc(e){return typeof e=="function"}var Cc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Cc.reduce((e,t)=>{const n=pt(`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 Nc(e,t){e&&on.flushSync(()=>e.dispatchEvent(t))}function Sc(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Ie=e=>{const{present:t,children:n}=e,r=kc(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=Z(r.ref,Ac(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};Ie.displayName="Presence";function kc(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Sc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=an(r.current);a.current=l==="mounted"?d:"none"},[l]),ue(()=>{const d=r.current,u=o.current;if(u!==e){const g=a.current,v=an(d);e?c("MOUNT"):v==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ue(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=v=>{const p=an(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&p&&(c("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},g=v=>{v.target===t&&(a.current=an(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 an(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 Pc=h[" useId ".trim().toString()]||(()=>{}),Ec=0;function ke(e){const[t,n]=h.useState(Pc());return ue(()=>{n(r=>r??String(Ec++))},[e]),e||(t?`radix-${t}`:"")}var sn="Collapsible",[_c,Uo]=Se(sn),[Mc,or]=_c(sn),Ko=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[c,d]=ye({prop:r,defaultProp:o??!1,onChange:i,caller:sn});return s.jsx(Mc,{scope:n,disabled:a,contentId:ke(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:s.jsx(K.div,{"data-state":sr(c),"data-disabled":a?"":void 0,...l,ref:t})})});Ko.displayName=sn;var Qo="CollapsibleTrigger",qo=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=or(Qo,n);return s.jsx(K.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":sr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:V(e.onClick,o.onOpenToggle)})});qo.displayName=Qo;var ar="CollapsibleContent",Xo=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=or(ar,e.__scopeCollapsible);return s.jsx(Ie,{present:n||o.open,children:({present:a})=>s.jsx(Tc,{...r,ref:t,present:a})})});Xo.displayName=ar;var Tc=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=or(ar,n),[l,c]=h.useState(r),d=h.useRef(null),u=Z(t,d),f=h.useRef(0),g=f.current,v=h.useRef(0),b=v.current,p=i.open||l,m=h.useRef(p),w=h.useRef(void 0);return h.useEffect(()=>{const y=requestAnimationFrame(()=>m.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,v.current=x.width,m.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),c(r)}},[i.open,r]),s.jsx(K.div,{"data-state":sr(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 sr(e){return e?"open":"closed"}var Dc=Ko,Oc=qo,Ic=Xo,Lc=h.createContext(void 0);function ln(e){const t=h.useContext(Lc);return e||t||"ltr"}var Ae="Accordion",Fc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ir,Wc,zc]=rr(Ae),[cn]=Se(Ae,[zc,Uo]),lr=Uo(),Zo=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return s.jsx(ir.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(Vc,{...a,ref:t}):s.jsx(Hc,{...o,ref:t})})});Zo.displayName=Ae;var[Jo,Bc]=cn(Ae),[Ro,$c]=cn(Ae,{collapsible:!1}),Hc=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,c]=ye({prop:n,defaultProp:r??"",onChange:o,caller:Ae});return s.jsx(Jo,{scope:e.__scopeAccordion,value:E.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:E.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(Ro,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(ea,{...i,ref:t})})})}),Vc=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:n,defaultProp:r??[],onChange:o,caller:Ae}),c=E.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=E.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return s.jsx(Jo,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(Ro,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(ea,{...a,ref:t})})})}),[Yc,dn]=cn(Ae),ea=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=E.useRef(null),c=Z(l,t),d=Wc(n),f=ln(o)==="ltr",g=V(e.onKeyDown,v=>{if(!Fc.includes(v.key))return;const b=v.target,p=d().filter(k=>!k.ref.current?.disabled),m=p.findIndex(k=>k.ref.current===b),w=p.length;if(m===-1)return;v.preventDefault();let y=m;const x=0,N=w-1,S=()=>{y=m+1,y>N&&(y=x)},M=()=>{y=m-1,y<x&&(y=N)};switch(v.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 _=y%w;p[_].ref.current?.focus()});return s.jsx(Yc,{scope:n,disabled:r,direction:o,orientation:a,children:s.jsx(ir.Slot,{scope:n,children:s.jsx(K.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:g})})})}),un="AccordionItem",[jc,cr]=cn(un),ta=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=dn(un,n),i=Bc(un,n),l=lr(n),c=ke(),d=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return s.jsx(jc,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(Dc,{"data-orientation":a.orientation,"data-state":ia(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});ta.displayName=un;var na="AccordionHeader",ra=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=dn(Ae,n),a=cr(na,n);return s.jsx(K.h3,{"data-orientation":o.orientation,"data-state":ia(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});ra.displayName=na;var dr="AccordionTrigger",oa=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=dn(Ae,n),a=cr(dr,n),i=$c(dr,n),l=lr(n);return s.jsx(ir.ItemSlot,{scope:n,children:s.jsx(Oc,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});oa.displayName=dr;var aa="AccordionContent",sa=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=dn(Ae,n),a=cr(aa,n),i=lr(n);return s.jsx(Ic,{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}})});sa.displayName=aa;function ia(e){return e?"open":"closed"}var Gc=Zo,Uc=ta,Kc=ra,Qc=oa,qc=sa;function la(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=la(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ca(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=la(e))&&(r&&(r+=" "),r+=t);return r}const Xc=(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},Zc=(e,t)=>({classGroupId:e,validator:t}),da=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),fn="-",ua=[],Jc="arbitrary..",Rc=e=>{const t=td(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ed(i);const l=i.split(fn),c=l[0]===""&&l.length>1?1:0;return fa(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],d=n[i];return c?d?Xc(d,c):c:d||ua}return n[i]||ua}}},fa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=fa(e,t+1,a);if(d)return d}const i=n.validators;if(i===null)return;const l=t===0?e.join(fn):e.slice(t).join(fn),c=i.length;for(let d=0;d<c;d++){const u=i[d];if(u.validator(l))return u.classGroupId}},ed=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?Jc+r:void 0})(),td=e=>{const{theme:t,classGroups:n}=e;return nd(n,t)},nd=(e,t)=>{const n=da();for(const r in e){const o=e[r];ur(o,n,r,t)}return n},ur=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];rd(i,t,n,r)}},rd=(e,t,n,r)=>{if(typeof e=="string"){od(e,t,n);return}if(typeof e=="function"){ad(e,t,n,r);return}sd(e,t,n,r)},od=(e,t,n)=>{const r=e===""?t:ha(t,e);r.classGroupId=n},ad=(e,t,n,r)=>{if(id(e)){ur(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Zc(n,e))},sd=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[l,c]=o[i];ur(c,ha(t,l),n,r)}},ha=(e,t)=>{let n=e;const r=t.split(fn),o=r.length;for(let a=0;a<o;a++){const i=r[a];let l=n.nextPart.get(i);l||(l=da(),n.nextPart.set(i,l)),n=l}return n},id=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ld=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)}}},fr="!",pa=":",cd=[],ga=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),dd=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 m=o[p];if(i===0&&l===0){if(m===pa){a.push(o.slice(c,p)),c=p+1;continue}if(m==="/"){d=p;continue}}m==="["?i++:m==="]"?i--:m==="("?l++:m===")"&&l--}const f=a.length===0?o:o.slice(c);let g=f,v=!1;f.endsWith(fr)?(g=f.slice(0,-1),v=!0):f.startsWith(fr)&&(g=f.slice(1),v=!0);const b=d&&d>c?d-c:void 0;return ga(a,v,g,b)};if(t){const o=t+pa,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):ga(cd,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ud=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}},fd=e=>({cache:ld(e.cacheSize),parseClassName:dd(e),sortModifiers:ud(e),...Rc(e)}),hd=/\s+/,pd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(hd);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:g,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:p}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let m=!!p,w=r(m?b.substring(0,p):b);if(!w){if(!m){c=u+(c.length>0?" "+c:c);continue}if(w=r(b),!w){c=u+(c.length>0?" "+c:c);continue}m=!1}const y=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=v?y+fr:y,N=x+w;if(i.indexOf(N)>-1)continue;i.push(N);const S=o(w,m);for(let M=0;M<S.length;++M){const _=S[M];i.push(x+_)}c=u+(c.length>0?" "+c:c)}return c},gd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ma(n))&&(o&&(o+=" "),o+=r);return o},ma=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ma(e[r]))&&(n&&(n+=" "),n+=t);return n},md=(e,...t)=>{let n,r,o,a;const i=c=>{const d=t.reduce((u,f)=>f(u),e());return n=fd(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=pd(c,n);return o(c,u),u};return a=i,(...c)=>a(gd(...c))},vd=[],le=e=>{const t=n=>n[e]||vd;return t.isThemeGetter=!0,t},va=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ba=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bd=/^\d+\/\d+$/,yd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wd=/\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$/,xd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>bd.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),Qe=e=>!!e&&Number.isInteger(Number(e)),hr=e=>e.endsWith("%")&&Q(e.slice(0,-1)),je=e=>yd.test(e),Sd=()=>!0,kd=e=>wd.test(e)&&!xd.test(e),ya=()=>!1,Ad=e=>Cd.test(e),Pd=e=>Nd.test(e),Ed=e=>!F(e)&&!W(e),_d=e=>mt(e,Sa,ya),F=e=>va.test(e),st=e=>mt(e,ka,kd),pr=e=>mt(e,Id,Q),wa=e=>mt(e,Ca,ya),Md=e=>mt(e,Na,Pd),hn=e=>mt(e,Aa,Ad),W=e=>ba.test(e),Wt=e=>vt(e,ka),Td=e=>vt(e,Ld),xa=e=>vt(e,Ca),Dd=e=>vt(e,Sa),Od=e=>vt(e,Na),pn=e=>vt(e,Aa,!0),mt=(e,t,n)=>{const r=va.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},vt=(e,t,n=!1)=>{const r=ba.exec(e);return r?r[1]?t(r[1]):n:!1},Ca=e=>e==="position"||e==="percentage",Na=e=>e==="image"||e==="url",Sa=e=>e==="length"||e==="size"||e==="bg-size",ka=e=>e==="length",Id=e=>e==="number",Ld=e=>e==="family-name",Aa=e=>e==="shadow",Fd=md(()=>{const e=le("color"),t=le("font"),n=le("text"),r=le("font-weight"),o=le("tracking"),a=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),u=le("shadow"),f=le("inset-shadow"),g=le("text-shadow"),v=le("drop-shadow"),b=le("blur"),p=le("perspective"),m=le("aspect"),w=le("ease"),y=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(),W,F],M=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],k=()=>[W,F,c],B=()=>[gt,"full","auto",...k()],Y=()=>[Qe,"none","subgrid",W,F],$=()=>["auto",{span:["full",Qe,W,F]},Qe,W,F],U=()=>[Qe,"auto",W,F],D=()=>["auto","min","max","fr",W,F],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],P=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],C=()=>[e,W,F],q=()=>[...N(),xa,wa,{position:[W,F]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Dd,_d,{size:[W,F]}],Ce=()=>[hr,Wt,st],oe=()=>["","none","full",d,W,F],ne=()=>["",Q,Wt,st],pe=()=>["solid","dashed","dotted","double"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[Q,hr,xa,wa],J=()=>["","none",b,W,F],se=()=>["none",Q,W,F],X=()=>["none",Q,W,F],R=()=>[Q,W,F],G=()=>[gt,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[je],breakpoint:[je],color:[Sd],container:[je],"drop-shadow":[je],ease:["in","out","in-out"],font:[Ed],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[je],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[je],shadow:[je],spacing:["px",Q],text:[je],"text-shadow":[je],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,F,W,m]}],container:["container"],columns:[{columns:[Q,F,W,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:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Qe,"auto",W,F]}],basis:[{basis:[gt,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,gt,"auto","initial","none",F]}],grow:[{grow:["",Q,W,F]}],shrink:[{shrink:["",Q,W,F]}],order:[{order:[Qe,"first","last","none",W,F]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[l,"screen",...P()]}],"min-w":[{"min-w":[l,"screen","none",...P()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",n,Wt,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,W,pr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hr,F]}],"font-family":[{font:[Td,F,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,W,F]}],"line-clamp":[{"line-clamp":[Q,"none",W,pr]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",W,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,F]}],"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:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",W,st]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Q,"auto",W,F]}],"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",W,F]}],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",W,F]}],"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:ae()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qe,W,F],radial:["",W,F],conic:[Qe,W,F]},Od,Md]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"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:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,W,F]}],"outline-w":[{outline:["",Q,Wt,st]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,pn,hn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,pn,hn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Q,st]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,pn,hn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Q,W,F]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ne()}],"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":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[W,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"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":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"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:ae()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,F]}],filter:[{filter:["","none",W,F]}],blur:[{blur:J()}],brightness:[{brightness:[Q,W,F]}],contrast:[{contrast:[Q,W,F]}],"drop-shadow":[{"drop-shadow":["","none",v,pn,hn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Q,W,F]}],"hue-rotate":[{"hue-rotate":[Q,W,F]}],invert:[{invert:["",Q,W,F]}],saturate:[{saturate:[Q,W,F]}],sepia:[{sepia:["",Q,W,F]}],"backdrop-filter":[{"backdrop-filter":["","none",W,F]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Q,W,F]}],"backdrop-contrast":[{"backdrop-contrast":[Q,W,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,W,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,W,F]}],"backdrop-invert":[{"backdrop-invert":["",Q,W,F]}],"backdrop-opacity":[{"backdrop-opacity":[Q,W,F]}],"backdrop-saturate":[{"backdrop-saturate":[Q,W,F]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,W,F]}],"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",W,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",W,F]}],ease:[{ease:["linear","initial",w,W,F]}],delay:[{delay:[Q,W,F]}],animate:[{animate:["none",y,W,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,W,F]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[W,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"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",W,F]}],"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",W,F]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Q,Wt,st,pr]}],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 A(...e){return Fd(ca(e))}const 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:"M20 8L12 16L4 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Wd=Gc;function zd({className:e,...t}){return s.jsx(Uc,{className:A("border-b border-gray-200 last:border-b-0",e),...t})}function Bd({className:e,children:t,...n}){return s.jsx(Kc,{className:"flex",children:s.jsxs(Qc,{className:A("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(gn,{className:A("h-4 w-4 sm:h-5 sm:w-5 shrink-0 text-gray-500 transition-transform duration-200")})]})})}function $d({className:e,children:t,...n}){return s.jsx(qc,{className:A("overflow-hidden text-gray-700","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"),...n,children:s.jsx("div",{className:A("pb-3 sm:pb-4 pt-0 text-sm sm:text-base",e),children:t})})}var Hd=Symbol.for("react.lazy"),mn=h[" use ".trim().toString()];function Vd(e){return typeof e=="object"&&e!==null&&"then"in e}function Pa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hd&&"_payload"in e&&Vd(e._payload)}function Yd(e){const t=Gd(e),n=h.forwardRef((r,o)=>{let{children:a,...i}=r;Pa(a)&&typeof mn=="function"&&(a=mn(a._payload));const l=h.Children.toArray(a),c=l.find(Kd);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 jd=Yd("Slot");function Gd(e){const t=h.forwardRef((n,r)=>{let{children:o,...a}=n;if(Pa(o)&&typeof mn=="function"&&(o=mn(o._payload)),h.isValidElement(o)){const i=qd(o),l=Qd(a,o.props);return o.type!==h.Fragment&&(l.ref=r?nr(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 Ud=Symbol("radix.slottable");function Kd(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ud}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 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 Ea=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_a=ca,it=(e,t)=>n=>{var r;if(t?.variants==null)return _a(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=Ea(u)||Ea(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,...v}=u;return Object.entries(v).every(b=>{let[p,m]=b;return Array.isArray(m)?m.includes({...a,...l}[p]):{...a,...l}[p]===m})?[...d,f,g]:d},[]);return _a(e,i,c,n?.class,n?.className)},vn=it("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 O({className:e,size:t,weight:n,as:r="span",...o}){return s.jsx(r,{className:A(vn({size:t,weight:n,className:e})),...o})}const Xd=it("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?jd:"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:A(Xd({variant:l,size:c,className:e})),disabled:o,...a,children:u?s.jsx(O,{size:d[c].size,weight:d[c].weight,children:a.children}):a.children})}function bt({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]=E.useState(!0);E.useEffect(()=>{i(!0)},[e]);const l=typeof e=="string"&&/^(\/|https?:\/\/)/.test(e);return s.jsx("div",{className:A("relative overflow-hidden rounded-full",r[t],n),children:s.jsx(at,{src:!e||!l||!a?o:e,alt:"avatar",fill:!0,className:"object-cover",onError:()=>i(!1)})})}const Zd=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="})]})]}),Ma=e=>s.jsx(ce.Bell,{...e}),Jd=e=>s.jsx(ce.BookOpen,{...e}),Ta=e=>s.jsx(ce.CalendarDays,{...e}),Rd=e=>s.jsx(ce.Dumbbell,{...e}),eu=e=>s.jsx(ce.Flag,{...e}),Da=e=>s.jsx(ce.Flame,{...e}),tu=e=>s.jsx(ce.Code2,{...e}),yt=({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"})}),nu=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"})}),gr=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"})}),bn=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"})}),Oa=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"})}),yn=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"})}),ru=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"})}),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",{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"})]}),au=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"})]}),Ia=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"})}),mr=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"})}),vr=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(ce.Laptop,{...e}),br=e=>s.jsx(ce.LogIn,{...e}),zt=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(ce.Palette,{...e}),yr=e=>s.jsx(ce.Users,{...e}),wn=e=>s.jsx(ce.PencilLine,{...e}),wt=e=>s.jsx(ce.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(ce.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(ce.Salad,{...e}),La=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"})]}),wr=e=>s.jsx(ce.Settings,{...e}),hu={AddCircle:Zd,Bell:Ma,BookOpen:Jd,Calendar:Ta,Check:yt,Code2:tu,Chevron:nu,ChevronDown:gn,ChevronLeft:gr,ChevronRight:bn,ChevronUp:Oa,Close:yn,Dumbbell:Rd,Endless:ru,Eye:ou,EyeOff:au,Flag:eu,Flame:Da,HamburgerMenu:Ia,Heart:mr,HeartFilled:vr,Laptop:su,LogIn:br,Logo:zt,Minus:iu,Palette:lu,People:yr,PencilLine:wn,Person:wt,Pin:cu,Plane:du,Plus:uu,Salad:fu,Search:La,Settings:wr,Target:e=>s.jsx(ce.Target,{...e}),Trophy:e=>s.jsx(ce.Trophy,{...e})};function Fa({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:A("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,g]=E.useState(!1),v=t??s.jsx(zt,{className:"h-5 w-3.5 text-white","aria-hidden":!0}),b=s.jsx(s.Fragment,{children:n.map(p=>{const m=p.key===r;return s.jsx("li",{children:s.jsx("button",{type:"button",disabled:p.disabled,"aria-current":m?"page":void 0,onClick:()=>{c?.(p.key),g(!1)},className:A("cursor-pointer transition-colors",p.disabled&&"cursor-not-allowed opacity-50",!p.disabled&&"hover:text-main-700"),children:s.jsx(O,{size:"body2",weight:m?"bold":"medium",className:A(m?"text-main-800":"text-gray-600"),children:p.label})})},p.key)})});return s.jsxs("div",{className:"relative",children:[s.jsx("header",{className:A("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:v}),s.jsx(O,{size:"heading2",weight:"bold",className:"text-gray-900",children:e})]}),s.jsx("nav",{className:"hidden min-w-0 overflow-x-auto lg:block","aria-label":"주요 메뉴",children:s.jsx("ul",{className:"flex items-center gap-6 whitespace-nowrap",children:b})})]}),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(Ma,{className:"h-4 w-4"})}),s.jsx(fe,{type:"button",variant:"ghost",size:"icon","aria-label":"메뉴",onClick:()=>g(p=>!p),className:"cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(Ia,{className:"h-4 w-4"})}),o?s.jsx("button",{type:"button",onClick:u,"aria-label":"프로필 열기",className:"cursor-pointer rounded-full",children:s.jsx(bt,{imageUrl:a,size:"sm",className:"ring-2 ring-mint-900/30"})}):null]})]})}),s.jsx("div",{className:A("fixed inset-0 z-40 transition-opacity duration-200 lg:hidden",f?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onClick:()=>g(!1),"aria-hidden":!0}),s.jsx("nav",{className:A("absolute left-0 right-0 top-full z-50 mt-1 rounded-4 border border-gray-200 bg-white px-6 py-4 shadow-lg transition-opacity duration-200 lg:hidden",f?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),"aria-label":"모바일 메뉴",children:s.jsx("ul",{className:"flex flex-col gap-1",children:b})})]})}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]",minHeightPx:i=180,componentId:l,enableDataLayerTracking:c=!1,impressionMode:d="once",onBannerClick:u,onBannerImpression:f,onBannerChange:g,onItemClick:v,className:b,...p}){const m=e.length,w=i>0?`${i}px`:void 0,y=E.useMemo(()=>m===0||n<0?0:n>m-1?m-1:n,[n,m]),x=r&&m>1,N=E.useMemo(()=>{if(m===0)return[];if(!x)return e;const[D]=e,[L]=e.slice(-1);return[L,...e,D]},[x,m,e]),[S,M]=E.useState(x?y+1:y),[_,k]=E.useState(!0);E.useEffect(()=>{M(x?y+1:y)},[x,y,m]),E.useEffect(()=>{if(m<=1||t<=0)return;const D=window.setInterval(()=>{M(L=>L+1)},t);return()=>window.clearInterval(D)},[t,m]),E.useEffect(()=>{if(_)return;const D=window.setTimeout(()=>{k(!0)},30);return()=>window.clearTimeout(D)},[_]);const B=m===0?0:((S-(x?1:0)+m)%m+m)%m,Y=E.useRef(new Set),$=E.useCallback((D,L,j)=>{const z=L.id===void 0?`${j}`:String(L.id),P={event:D,componentId:l,bannerId:z,bannerIndex:j,bannerType:L.type,bannerTitle:L.title,bannerSubtitle:L.subtitle,timestamp:Date.now()};if(D==="click"&&u?.(P),D==="impression"&&f?.(P),D==="change"&&g?.(P),c&&typeof window<"u"){const C=window;Array.isArray(C.dataLayer)&&C.dataLayer.push({event:`${vu}_${D}`,component_id:l??"banner-carousel",banner_id:P.bannerId,banner_index:P.bannerIndex,banner_type:P.bannerType,banner_title:P.bannerTitle,banner_subtitle:P.bannerSubtitle,timestamp:P.timestamp})}},[l,c,g,u,f]);E.useEffect(()=>{if(m===0)return;const D=e[B];if(!D)return;$("change",D,B);const L=`${D.id===void 0?`${B}`:String(D.id)}-${B}`,j=Y.current.has(L);d==="once"&&j||(Y.current.add(L),$("impression",D,B))},[B,$,d,m,e]);const U=()=>{if(x){if(S===m+1){k(!1),M(1);return}S===0&&(k(!1),M(m))}};return m===0?null:s.jsx("div",{className:A("w-full",b),...p,children:s.jsxs("div",{className:"relative overflow-hidden rounded-4",children:[s.jsx("div",{className:A("flex",_&&"transition-transform duration-500 ease-out"),style:{transform:`translateX(-${S*100}%)`},onTransitionEnd:U,children:N.map((D,L)=>{const j=D.backgroundImageUrl??D.backgroundImage,z=!!(j&&j.trim().length>0),P=m===0?0:(L-(x?1:0)+m)%m,C=D.id===void 0?`${P}-${L}`:String(D.id);return s.jsxs("button",{type:"button",onClick:()=>{$("click",D,P),v?.(D,P)},"data-banner-id":D.id===void 0?`${P}`:String(D.id),"data-banner-index":P,"data-banner-type":D.type,"data-banner-title":D.title,"data-banner-image-url":j??"",className:A("relative w-full shrink-0 overflow-hidden p-4 text-left text-white transition hover:brightness-105 sm:p-8","cursor-pointer",a),style:{backgroundImage:`linear-gradient(to right, ${bu}, ${yu})`,minHeight:w},children:[z?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(${j})`}}),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(O,{size:"caption3",weight:"medium",className:"text-white/85",children:D.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(O,{size:"heading2",weight:"bold",className:"line-clamp-1 text-white sm:text-3xl",children:D.title}),s.jsx(O,{size:"caption1",weight:"medium",className:"line-clamp-1 text-white/90 sm:text-lg",children:D.subtitle})]}),s.jsx(O,{size:"heading2",weight:"bold",className:"text-white sm:text-3xl",children:"→"})]})]})]},`${C}-${L}`)})}),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((D,L)=>s.jsx("button",{type:"button",onClick:()=>{k(!0),M(x?L+1:L)},className:A("h-2 cursor-pointer rounded-full transition-all",B===L?"w-5 bg-white":"w-2 bg-white/50 hover:bg-white/80"),"aria-label":`${L+1}번째 배너로 이동`},D.id===void 0?`${L}`:String(D.id)))})}):null]})})}const xr=6048e5,xu=864e5,Wa=Symbol.for("constructDateFrom");function de(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Wa in e?e[Wa](t):e instanceof Date?new e.constructor(t):new Date(t)}function ee(e,t){return de(t||e,e)}function me(e,t,n){const r=ee(e,n?.in);return isNaN(t)?de(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Pe(e,t,n){const r=ee(e,n?.in);if(isNaN(t))return de(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=de(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 Bt(){return Cu}function Le(e,t){const n=Bt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ee(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 lt(e,t){return Le(e,{...t,weekStartsOn:1})}function za(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=de(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=lt(o),i=de(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const l=lt(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function xn(e){const t=ee(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 xt(e,...t){const n=de.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Ct(e,t){const n=ee(e,t?.in);return n.setHours(0,0,0,0),n}function Fe(e,t,n){const[r,o]=xt(n?.in,e,t),a=Ct(r),i=Ct(o),l=+a-xn(a),c=+i-xn(i);return Math.round((l-c)/xu)}function Nu(e,t){const n=za(e,t),r=de(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),lt(r)}function Cr(e,t,n){return me(e,t*7,n)}function Su(e,t,n){return Pe(e,t*12,n)}function ku(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=de.bind(null,o));const a=ee(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),de(r,n||NaN)}function Au(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=de.bind(null,o));const a=ee(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),de(r,n||NaN)}function ve(e,t,n){const[r,o]=xt(n?.in,e,t);return+Ct(r)==+Ct(o)}function Nr(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Pu(e){return!(!Nr(e)&&typeof e!="number"||isNaN(+ee(e)))}function $t(e,t,n){const[r,o]=xt(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]=xt(n?.in,e,t),a=Le(r,n),i=Le(o,n),l=+a-xn(a),c=+i-xn(i);return Math.round((l-c)/xr)}function Sr(e,t){const n=ee(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function be(e,t){const n=ee(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Ba(e,t){const n=ee(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function kr(e,t){const n=Bt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ee(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 $a(e,t){return kr(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 Nt(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:Nt({formats:Tu,defaultWidth:"full"}),time:Nt({formats:Du,defaultWidth:"full"}),dateTime:Nt({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 We(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"]},zu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bu={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:We({values:Wu,defaultWidth:"wide"}),quarter:We({values:zu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:We({values:Bu,defaultWidth:"wide"}),day:We({values:$u,defaultWidth:"wide"}),dayPeriod:We({values:Hu,defaultWidth:"wide",formattingValues:Vu,defaultFormattingWidth:"wide"})};function ze(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 Ha(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:Ha({matchPattern:Uu,parsePattern:Ku,valueCallback:e=>parseInt(e,10)}),era:ze({matchPatterns:Qu,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),quarter:ze({matchPatterns:Xu,defaultMatchWidth:"wide",parsePatterns:Zu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:Ju,defaultMatchWidth:"wide",parsePatterns:Ru,defaultParseWidth:"any"}),day:ze({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:tf,defaultParseWidth:"any"}),dayPeriod:ze({matchPatterns:nf,defaultMatchWidth:"any",parsePatterns:rf,defaultParseWidth:"any"})},Va={code:"en-US",formatDistance:Mu,formatLong:Iu,formatRelative:Fu,localize:Yu,match:of,options:{weekStartsOn:0,firstWeekContainsDate:1}};function af(e,t){const n=ee(e,t?.in);return Fe(n,Ba(n))+1}function Ya(e,t){const n=ee(e,t?.in),r=+lt(n)-+Nu(n);return Math.round(r/xr)+1}function ja(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=Bt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=de(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=Le(i,t),c=de(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=Le(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function sf(e,t){const n=Bt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ja(e,t),a=de(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Le(a,t)}function Ga(e,t){const n=ee(e,t?.in),r=+Le(n,t)-+sf(n,t);return Math.round(r/xr)+1}function te(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 te(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):te(n+1,2)},d(e,t){return te(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 te(e.getHours()%12||12,t.length)},H(e,t){return te(e.getHours(),t.length)},m(e,t){return te(e.getMinutes(),t.length)},s(e,t){return te(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return te(o,t.length)}},St={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ua={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=ja(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return te(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):te(a,t.length)},R:function(e,t){const n=za(e);return te(n,t.length)},u:function(e,t){const n=e.getFullYear();return te(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 te(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 te(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 te(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=Ga(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):te(o,t.length)},I:function(e,t,n){const r=Ya(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):te(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"}):te(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 te(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 te(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 te(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=St.noon:r===0?o=St.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=St.evening:r>=12?o=St.afternoon:r>=4?o=St.morning:o=St.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"}):te(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):te(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 Qa(r);case"XXXX":case"XX":return ct(r);default:return ct(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Qa(r);case"xxxx":case"xx":return ct(r);default:return ct(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ka(r,":");default:return"GMT"+ct(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ka(r,":");default:return"GMT"+ct(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return te(r,t.length)},T:function(e,t,n){return te(+e,t.length)}};function Ka(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+te(a,2)}function Qa(e,t){return e%60===0?(e>0?"-":"+")+te(Math.abs(e)/60,2):ct(e,t)}function ct(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=te(Math.trunc(r/60),2),a=te(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"})}},Xa=(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:Xa,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}}",Xa(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 Ee(e,t,n){const r=Bt(),o=n?.locale??r.locale??Va,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=ee(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(Ua[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=Ua[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=ee(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=de(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Nf(e){return Math.trunc(+ee(e)/1e3)}function Sf(e,t){const n=ee(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),ee(n,t?.in)}function kf(e,t){const n=ee(e,t?.in);return Eu(Sf(n,t),be(n,t),t)+1}function Ar(e,t){return+ee(e)>+ee(t)}function Za(e,t){return+ee(e)<+ee(t)}function Pr(e,t,n){const[r,o]=xt(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Af(e,t,n){const[r,o]=xt(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Er(e,t,n){return me(e,-t,n)}function _r(e,t,n){const r=ee(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=de(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 Ja(e,t,n){const r=ee(e,n?.in);return isNaN(+r)?de(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:Nt({formats:_f,defaultWidth:"full"}),time:Nt({formats:Mf,defaultWidth:"full"}),dateTime:Nt({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월"]},zf={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Bf={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:We({values:Lf,defaultWidth:"wide"}),quarter:We({values:Ff,defaultWidth:"wide",argumentCallback:e=>e-1}),month:We({values:Wf,defaultWidth:"wide"}),day:We({values:zf,defaultWidth:"wide"}),dayPeriod:We({values:Bf,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:Ha({matchPattern:Vf,parsePattern:Yf,valueCallback:e=>parseInt(e,10)}),era:ze({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Gf,defaultParseWidth:"any"}),quarter:ze({matchPatterns:Uf,defaultMatchWidth:"wide",parsePatterns:Kf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:qf,defaultParseWidth:"any"}),day:ze({matchPatterns:Xf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),dayPeriod:ze({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 Ra(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 Cn(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 Ee(e,"LLLL y",t)}function ah(e,t){return Ee(e,"d",t)}function sh(e,t){return Ee(e,"LLLL",t)}function ih(e){return"".concat(e)}function lh(e,t){return Ee(e,"cccccc",t)}function ch(e,t){return Ee(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 Ee(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 Ee(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=Va,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=be(r):t&&(a=new Date(t,0,1)),o?i=Sr(o):n&&(i=new Date(n,11,31)),{fromDate:a?Ct(a):void 0,toDate:i?Ct(i):void 0}}var es=E.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;(Cn(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(es.Provider,{value:d,children:e.children})}function re(){var e=E.useContext(es);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function ts(e){var t=re(),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 ns(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,l=e.className,c=e.style,d=re(),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=re(),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(Af(r,o))for(var g=be(r),v=r.getMonth();v<=o.getMonth();v++)f.push(_r(g,v));else for(var g=be(new Date),v=0;v<=11;v++)f.push(_r(g,v));var b=function(m){var w=Number(m.target.value),y=_r(be(e.displayMonth),w);e.onChange(y)},p=(t=d?.Dropdown)!==null&&t!==void 0?t:ns;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(m){return s.jsx("option",{value:m.getMonth(),children:l(m,{locale:i})},m.getMonth())})})}function Sh(e){var t,n=e.displayMonth,r=re(),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 v=o.getFullYear(),b=a.getFullYear(),p=v;p<=b;p++)g.push(Ja(Ba(new Date),p));var m=function(y){var x=Ja(be(n),Number(y.target.value));e.onChange(x)},w=(t=d?.Dropdown)!==null&&t!==void 0?t:ns;return s.jsx(w,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:m,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 kh(e,t){var n=E.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function Ah(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=Pe(a,d)}return i&&$t(o,i)<0&&(o=i),be(o)}function Ph(){var e=re(),t=Ah(e),n=kh(t,e.month),r=n[0],o=n[1],a=function(i){var l;if(!e.disableNavigation){var c=be(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=be(e),a=be(Pe(o,r)),i=$t(a,o),l=[],c=0;c<i;c++){var d=Pe(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=be(e);if(!n)return Pe(l,i);var c=$t(n,e);if(!(c<a))return Pe(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=be(e);if(!n)return Pe(l,-i);var c=$t(l,n);if(!(c<=0))return Pe(l,-i)}}var rs=E.createContext(void 0);function Th(e){var t=re(),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 Pr(f,g)})},d=function(f,g){c(f)||(g&&Za(f,g)?o(Pe(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(rs.Provider,{value:u,children:e.children})}function Yt(){var e=E.useContext(rs);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function os(e){var t,n=re(),r=n.classNames,o=n.styles,a=n.components,i=Yt().goToMonth,l=function(u){i(Pe(u,e.displayIndex?-e.displayIndex:0))},c=(t=a?.CaptionLabel)!==null&&t!==void 0?t:ts,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 Nn=E.forwardRef(function(e,t){var n=re(),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=re(),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}),v=[i.nav_button,i.nav_button_previous].join(" "),b=u(e.nextMonth,{locale:a}),p=[i.nav_button,i.nav_button_next].join(" "),m=(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(Nn,{name:"previous-month","aria-label":g,className:v,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?s.jsx(m,{className:i.nav_icon,style:l.nav_icon}):s.jsx(w,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&s.jsx(Nn,{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(m,{className:i.nav_icon,style:l.nav_icon})})]})}function as(e){var t=re().numberOfMonths,n=Yt(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,l=i.findIndex(function(b){return Pr(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)},v=function(){o&&a(o)};return s.jsx(Ih,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:g,onNextClick:v})}function Lh(e){var t,n=re(),r=n.classNames,o=n.disableNavigation,a=n.styles,i=n.captionLayout,l=n.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:ts,d;return o?d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?d=s.jsx(os,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?d=s.jsxs(s.Fragment,{children:[s.jsx(os,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),s.jsx(as,{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(as,{displayMonth:e.displayMonth,id:e.id})]}),s.jsx("div",{className:r.caption,style:a.caption,children:d})}function Fh(e){var t=re(),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?lt(new Date):Le(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=me(r,a);o.push(i)}return o}function zh(){var e=re(),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 Bh(){var e,t=re(),n=t.classNames,r=t.styles,o=t.components,a=(e=o?.HeadRow)!==null&&e!==void 0?e:zh;return s.jsx("thead",{style:r.head,className:n.head,children:s.jsx(a,{})})}function $h(e){var t=re(),n=t.locale,r=t.formatters.formatDay;return s.jsx(s.Fragment,{children:r(e.date,{locale:n})})}var Mr=E.createContext(void 0);function Hh(e){if(!Ht(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return s.jsx(Mr.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,v;(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 m=r?Ra([],r):[];if(u.selected){var w=m.findIndex(function(y){return ve(d,y)});m.splice(w,1)}else m.push(d);(v=t.onSelect)===null||v===void 0||v.call(t,m,d,u,f)}}},l={disabled:[]};r&&l.disabled.push(function(d){var u=a&&r.length>a-1,f=r.some(function(g){return ve(g,d)});return!!(u&&!f)});var c={selected:r,onDayClick:i,modifiers:l};return s.jsx(Mr.Provider,{value:c,children:n})}function Tr(){var e=E.useContext(Mr);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?ve(o,e)&&ve(r,e)?void 0:ve(o,e)?{from:o,to:void 0}:ve(r,e)?void 0:Ar(r,e)?{from:e,to:o}:{from:r,to:e}:o?Ar(e,o)?{from:o,to:e}:{from:e,to:o}:r?Za(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Dr=E.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(Dr.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(v,b,p){var m,w;(m=t.onDayClick)===null||m===void 0||m.call(t,v,b,p);var y=Yh(v,r);(w=t.onSelect)===null||w===void 0||w.call(t,y,v,b,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],i?(u.range_end=[i],ve(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:Er(a,l-1),before:me(a,l-1)}),a&&i&&u.disabled.push({after:a,before:me(a,l-1)}),!a&&i&&u.disabled.push({after:Er(i,l-1),before:me(i,l-1)})),c){if(a&&!i&&(u.disabled.push({before:me(a,-c+1)}),u.disabled.push({after:me(a,c-1)})),a&&i){var f=Fe(i,a)+1,g=c-f;u.disabled.push({before:Er(a,g)}),u.disabled.push({after:me(i,g)})}!a&&i&&(u.disabled.push({before:me(i,-c+1)}),u.disabled.push({after:me(i,c-1)}))}return s.jsx(Dr.Provider,{value:{selected:r,onDayClick:d,modifiers:u},children:n})}function Or(){var e=E.useContext(Dr);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Sn(e){return Array.isArray(e)?Ra([],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]=Sn(o)}),t}var _e;(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"})(_e||(_e={}));var Kh=_e.Selected,Ge=_e.Disabled,Qh=_e.Hidden,qh=_e.Today,Ir=_e.RangeEnd,Lr=_e.RangeMiddle,Fr=_e.RangeStart,Xh=_e.Outside;function Zh(e,t,n){var r,o=(r={},r[Kh]=Sn(e.selected),r[Ge]=Sn(e.disabled),r[Qh]=Sn(e.hidden),r[qh]=[e.today],r[Ir]=[],r[Lr]=[],r[Fr]=[],r[Xh]=[],r);return e.fromDate&&o[Ge].push({before:e.fromDate}),e.toDate&&o[Ge].push({after:e.toDate}),Ht(e)?o[Ge]=o[Ge].concat(t.modifiers[Ge]):Vt(e)&&(o[Ge]=o[Ge].concat(n.modifiers[Ge]),o[Fr]=n.modifiers[Fr],o[Lr]=n.modifiers[Lr],o[Ir]=n.modifiers[Ir]),o}var ss=E.createContext(void 0);function Jh(e){var t=re(),n=Tr(),r=Or(),o=Zh(t,n,r),a=Uh(t.modifiers),i=H(H({},o),a);return s.jsx(ss.Provider,{value:i,children:e.children})}function is(){var e=E.useContext(ss);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=Fe(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var i=Fe(e,r)>=0&&Fe(o,e)>=0;return i}return o?ve(o,e):r?ve(r,e):!1}function ap(e){return Nr(e)}function sp(e){return Array.isArray(e)&&e.every(Nr)}function ip(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(ap(n))return ve(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=Fe(n.before,e),o=Fe(n.after,e),a=r>0,i=o<0,l=Ar(n.before,n.after);return l?i&&a:a||i}return tp(n)?Fe(e,n.after)>0:np(n)?Fe(n.before,e)>0:typeof n=="function"?n(e):!1})}function Wr(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&&!Pr(e,n)&&(o.outside=!0),o}function lp(e,t){for(var n=be(e[0]),r=Sr(e[e.length-1]),o,a,i=n;i<=r;){var l=Wr(i,t),c=!l.disabled&&!l.hidden;if(!c){i=me(i,1);continue}if(l.selected)return i;l.today&&!a&&(a=i),o||(o=i),i=me(i,1)}return a||o}var cp=365;function ls(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:me,week:Cr,month:Pe,year:Su,startOfWeek:function(m){return o.ISOWeek?lt(m):Le(m,{locale:f,weekStartsOn:c})},endOfWeek:function(m){return o.ISOWeek?$a(m):kr(m,{locale:f,weekStartsOn:c})}},v=g[n](e,r==="after"?1:-1);r==="before"&&d?v=ku([d,v]):r==="after"&&u&&(v=Au([u,v]));var b=!0;if(a){var p=Wr(v,a);b=!p.disabled&&!p.hidden}return b?v:l.count>cp?l.lastFocused:ls(v,{moveBy:n,direction:r,context:o,modifiers:a,retry:H(H({},l),{count:l.count+1})})}var cs=E.createContext(void 0);function dp(e){var t=Yt(),n=is(),r=E.useState(),o=r[0],a=r[1],i=E.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(m){a(m)},v=re(),b=function(m,w){if(o){var y=ls(o,{moveBy:m,direction:w,context:v,modifiers:n});ve(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(cs.Provider,{value:p,children:e.children})}function zr(){var e=E.useContext(cs);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function up(e,t){var n=is(),r=Wr(e,n,t);return r}var Br=E.createContext(void 0);function fp(e){if(!Cn(e.initialProps)){var t={selected:void 0};return s.jsx(Br.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(Br.Provider,{value:o,children:n})}function ds(){var e=E.useContext(Br);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function pp(e,t){var n=re(),r=ds(),o=Tr(),a=Or(),i=zr(),l=i.focusDayAfter,c=i.focusDayBefore,d=i.focusWeekAfter,u=i.focusWeekBefore,f=i.blur,g=i.focus,v=i.focusMonthBefore,b=i.focusMonthAfter,p=i.focusYearBefore,m=i.focusYearAfter,w=i.focusStartOfWeek,y=i.focusEndOfWeek,x=function(P){var C,q,ae,he;Cn(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,P):Ht(n)?(q=o.onDayClick)===null||q===void 0||q.call(o,e,t,P):Vt(n)?(ae=a.onDayClick)===null||ae===void 0||ae.call(a,e,t,P):(he=n.onDayClick)===null||he===void 0||he.call(n,e,t,P)},N=function(P){var C;g(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,P)},S=function(P){var C;f(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,P)},M=function(P){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,P)},_=function(P){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,P)},k=function(P){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,P)},B=function(P){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,P)},Y=function(P){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,P)},$=function(P){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,P)},U=function(P){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,P)},D=function(P){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,P)},L=function(P){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,P)},j=function(P){var C;switch(P.key){case"ArrowLeft":P.preventDefault(),P.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":P.preventDefault(),P.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":P.preventDefault(),P.stopPropagation(),d();break;case"ArrowUp":P.preventDefault(),P.stopPropagation(),u();break;case"PageUp":P.preventDefault(),P.stopPropagation(),P.shiftKey?p():v();break;case"PageDown":P.preventDefault(),P.stopPropagation(),P.shiftKey?m():b();break;case"Home":P.preventDefault(),P.stopPropagation(),w();break;case"End":P.preventDefault(),P.stopPropagation(),y();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,P)},z={onClick:x,onFocus:N,onBlur:S,onKeyDown:j,onKeyUp:L,onMouseEnter:M,onMouseLeave:_,onPointerEnter:k,onPointerLeave:B,onTouchCancel:Y,onTouchEnd:$,onTouchMove:U,onTouchStart:D};return z}function gp(){var e=re(),t=ds(),n=Tr(),r=Or(),o=Cn(e)?t.selected:Ht(e)?n.selected:Vt(e)?r.selected:void 0;return o}function mp(e){return Object.values(_e).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=re(),l=zr(),c=up(e,t),d=pp(e,c),u=gp(),f=!!(i.onDayClick||i.mode!=="default");E.useEffect(function(){var M;c.outside||l.focusedDay&&f&&ve(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(" "),v=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,m=s.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),w={style:v,className:g,children:m,role:"gridcell"},y=l.focusTarget&&ve(l.focusTarget,e)&&!c.outside,x=l.focusedDay&&ve(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=E.useRef(null),n=yp(e.date,e.displayMonth,t);return n.isHidden?s.jsx("div",{role:"gridcell"}):n.isButton?s.jsx(Nn,H({name:"day",ref:t},n.buttonProps)):s.jsx("div",H({},n.divProps))}function xp(e){var t=e.number,n=e.dates,r=re(),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(v){o(t,n,v)};return s.jsx(Nn,{name:"week-number","aria-label":f,className:i.weeknumber,style:a.weeknumber,onClick:g,children:u})}function Cp(e){var t,n,r=re(),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 us(e,t,n){for(var r=n?.ISOWeek?$a(t):kr(t,n),o=n?.ISOWeek?lt(e):Le(e,n),a=Fe(r,o),i=[],l=0;l<=a;l++)i.push(me(o,l));var c=i.reduce(function(d,u){var f=n?.ISOWeek?Ya(u):Ga(u,n),g=d.find(function(v){return v.weekNumber===f});return g?(g.dates.push(u),d):(d.push({weekNumber:f,dates:[u]}),d)},[]);return c}function Np(e,t){var n=us(be(e),Sr(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],i=Cr(a,6-r),l=us(Cr(a,1),i,t);n.push.apply(n,l)}}return n}function Sp(e){var t,n,r,o=re(),a=o.locale,i=o.classNames,l=o.styles,c=o.hideHead,d=o.fixedWeeks,u=o.components,f=o.weekStartsOn,g=o.firstWeekContainsDate,v=o.ISOWeek,b=Np(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:v,locale:a,weekStartsOn:f,firstWeekContainsDate:g}),p=(t=u?.Head)!==null&&t!==void 0?t:Bh,m=(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(m,{displayMonth:e.displayMonth,dates:y.dates,weekNumber:y.weekNumber},y.weekNumber)})}),s.jsx(w,{displayMonth:e.displayMonth})]})}function kp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Ap=kp()?E.useLayoutEffect:E.useEffect,$r=!1,Pp=0;function fs(){return"react-day-picker-".concat(++Pp)}function Ep(e){var t,n=e??($r?fs():null),r=E.useState(n),o=r[0],a=r[1];return Ap(function(){o===null&&a(fs())},[]),E.useEffect(function(){$r===!1&&($r=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function _p(e){var t,n,r=re(),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,v=e.displayIndex===0,b=e.displayIndex===c.length-1,p=!v&&!b;o==="rtl"&&(t=[v,b],b=t[0],v=t[1]),v&&(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 m=(n=l?.Caption)!==null&&n!==void 0?n:Lh;return s.jsxs("div",{className:f.join(" "),style:g,children:[s.jsx(m,{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=re(),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=re(),a=zr(),i=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(b){return b.startsWith("data-")}).reduce(function(b,p){var m;return H(H({},b),(m={},m[p]=r[p],m))},{}),v=(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(v,{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 Hr({className:e,classNames:t,showOutsideDays:n=!0,...r}){const o=r.mode==="range";return s.jsx(Op,{locale:th,showOutsideDays:n,className:A("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:A("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(gr,{className:A("size-4",a),...i}),IconRight:({className:a,...i})=>s.jsx(bn,{className:A("size-4",a),...i})},...r})}function jt({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:A("flex items-center justify-center bg-main-200",e),children:s.jsx(zt,{className:A("text-main-500",n[t])})})}const Ip=it("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 Gt({icon:e,children:t,size:n="caption2",weight:r="bold",className:o}){return s.jsxs("span",{className:A(Ip({hasIcon:!!e}),o),children:[e&&s.jsx(O,{size:n,weight:"medium",children:e}),s.jsx(O,{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),v=a<=1?"개인":`${o} / ${a}`,b=d?"종료됨":c?"진행중":"모집중",p=d?"bg-gray-500":c?"bg-green-500":"bg-blue-500";return s.jsxs("div",{className:A("min-w-60 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-40 w-full overflow-hidden bg-gray-100 sm:h-52",children:[g?s.jsx("div",{className:"absolute inset-0",children:s.jsx(at,{src:r,alt:e,width:1200,height:800,className:"h-full w-full object-cover"})}):s.jsx(jt,{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(Gt,{size:"caption2",weight:"bold",children:n??t}),s.jsx(Gt,{size:"caption2",weight:"bold",className:p,children:b})]})]}),s.jsxs("div",{className:"w-full bg-white px-4 py-4 sm:px-5 sm:py-5",children:[s.jsx(O,{size:"body1",weight:"bold",className:"line-clamp-2 min-h-12 text-gray-900 sm:text-2xl sm:min-h-[4.5rem]",children:e}),s.jsxs("div",{className:"mt-3 flex w-full items-center justify-between sm:mt-4",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(wt,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(O,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:t})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(yr,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(O,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:v})]})]}),s.jsxs(O,{size:"caption2",weight:"regular",className:"mt-2 text-gray-500 sm:mt-3 sm:text-base",children:[i," - ",l]})]})]})}function Fp({challengeTitle:e,challengeType:t,challengeCategory:n,challengeIcon:r,imageUrl:o,currentUserCount:a,maxUserCount:i,startDate:l,endDate:c,isOngoing:d,isEnded:u=!1,className:f,onClick:g}){const v=!!(o&&o.trim().length>0),b=i<=1,p=u?"종료됨":d?"진행중":"모집중",m=u?"bg-gray-500":d?"bg-green-500":"bg-blue-500";return s.jsxs("div",{className:A("flex gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:gap-4 sm:p-4",g&&"cursor-pointer",f),onClick:g,children:[s.jsx("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[120px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:-mb-4 sm:-ml-4 sm:-mt-4 sm:w-[140px]",children:v?s.jsx(at,{src:o,alt:e,width:96,height:96,className:"h-full w-full object-cover"}):s.jsx(jt,{className:"h-full w-full",logoSize:"sm"})}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-1.5 sm:gap-2",children:[s.jsx(O,{as:"p",size:"caption1",weight:"bold",className:"truncate text-gray-900 sm:text-lg",children:e}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[n?s.jsx(Gt,{size:"caption3",weight:"medium",children:n}):null,s.jsx(Gt,{size:"caption3",weight:"bold",className:m,children:p})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[b?s.jsx(wt,{className:"h-3.5 w-3.5 text-gray-400"}):s.jsx(yr,{className:"h-3.5 w-3.5 text-gray-400"}),s.jsx(O,{size:"caption3",weight:"medium",className:"text-gray-500",children:b?"개인 목표":`고정 목표 · ${a} / ${i}`})]}),s.jsxs(O,{size:"caption3",weight:"regular",className:"hidden text-gray-400 sm:block",children:[l," – ",c]})]})]})}function Wp({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":v,...b}){const p=typeof r=="boolean",[m,w]=E.useState(o),y=p?r:m,x=n!==void 0,N=v??(typeof e=="string"||typeof e=="number"?String(e):void 0),S=M=>{if(u)return;const _=!y;p||w(_),a?.(_),f?.(M)};return s.jsxs("button",{type:"button",role:"checkbox","aria-checked":y,"aria-label":N,disabled:u,onClick:S,className:A("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:A("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(yt,{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(O,{size:"heading1",weight:"bold",className:A("text-inherit",y?"text-main-800":"text-gray-600"),children:e}):e]})]})}function hs(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 ps(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 kn="Checkbox",[zp]=Se(kn),[Bp,Vr]=zp(kn);function $p(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,v]=ye({prop:n,defaultProp:o??!1,onChange:c,caller:kn}),[b,p]=h.useState(null),[m,w]=h.useState(null),y=h.useRef(!1),x=b?!!i||!!b.closest("form"):!0,N={checked:g,disabled:a,setChecked:v,control:b,setControl:p,name:l,form:i,value:u,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:Xe(o)?!1:o,isFormControl:x,bubbleInput:m,setBubbleInput:w};return s.jsx(Bp,{scope:t,...N,children:Hp(f)?f(N):r})}var gs="CheckboxTrigger",ms=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:v,bubbleInput:b}=Vr(gs,e),p=Z(o,u),m=h.useRef(c);return h.useEffect(()=>{const w=a?.form;if(w){const y=()=>f(m.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[a,f]),s.jsx(K.button,{type:"button",role:"checkbox","aria-checked":Xe(c)?"mixed":c,"aria-required":d,"data-state":xs(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=>Xe(y)?!0:!y),b&&v&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});ms.displayName=gs;var Yr=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($p,{__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(ms,{...f,ref:t,__scopeCheckbox:n}),g&&s.jsx(ws,{__scopeCheckbox:n})]})})});Yr.displayName=kn;var vs="CheckboxIndicator",bs=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Vr(vs,n);return s.jsx(Ie,{present:r||Xe(a.checked)||a.checked===!0,children:s.jsx(K.span,{"data-state":xs(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});bs.displayName=vs;var ys="CheckboxBubbleInput",ws=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:v}=Vr(ys,e),b=Z(n,v),p=hs(a),m=ps(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 _=new Event("click",{bubbles:M});y.indeterminate=Xe(a),S.call(y,Xe(a)?!1:a),y.dispatchEvent(_)}},[g,p,a,o]);const w=h.useRef(Xe(a)?!1:a);return s.jsx(K.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,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ws.displayName=ys;function Hp(e){return typeof e=="function"}function Xe(e){return e==="indeterminate"}function xs(e){return Xe(e)?"indeterminate":e?"checked":"unchecked"}const jr=h.forwardRef(({className:e,label:t,id:n,readOnly:r,...o},a)=>{const i=h.useId(),l=n||i;return s.jsxs("div",{className:A("flex items-center gap-2.5",r&&"pointer-events-none"),children:[s.jsx(Yr,{ref:a,id:l,className:A("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(bs,{className:A("flex items-center justify-center text-current"),children:s.jsx(yt,{className:"h-3 w-3",strokeWidth:13})})}),t&&s.jsx("label",{htmlFor:l,className:A("text-gray-900 select-none cursor-pointer","peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),children:s.jsx(O,{size:"body2",weight:"medium",children:t})})]})});jr.displayName=Yr.displayName;function Vp({options:e,value:t,onValueChange:n,className:r,readOnly:o=!1,disabled:a=!1}){const i=E.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:A("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,v=f||g,b=`${i}-${c.id}`;return s.jsxs("label",{htmlFor:b,"aria-disabled":v,onClick:p=>{v&&p.preventDefault()},className:A("flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",d>0&&"border-t border-gray-200",!v&&"cursor-pointer hover:bg-gray-100/70",f&&"cursor-not-allowed",g&&"cursor-default hover:cursor-not-allowed"),children:[s.jsx(jr,{id:b,checked:u,disabled:f,onCheckedChange:p=>{v||p==="indeterminate"||l(c.id,p===!0)},className:A("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(O,{size:"body1",weight:"medium",className:A("flex-1 transition-colors",u?"text-gray-900":"text-gray-600",f&&"text-gray-400"),children:c.label}):s.jsx("span",{className:A("flex-1",!u&&"text-gray-600",f&&"opacity-60"),children:c.label})]},c.id)})})}const Yp=it("",{variants:{size:{sm:"w-11 h-11",lg:"w-30 h-30"}},defaultVariants:{size:"sm"}});function Gr({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),[v,b]=E.useState(0);E.useEffect(()=>{const w=requestAnimationFrame(()=>{b(g)});return()=>cancelAnimationFrame(w)},[g]);const p=f-f*v/100,m=A(Yp({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:m}),n&&s.jsx(O,{className:"absolute inset-0 flex items-center justify-center text-main-800",size:l[o],weight:"bold",children:`${g}%`})]})}function Ze(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=Ze(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",Ur="dismissableLayer.update",Up="dismissableLayer.pointerDownOutside",Kp="dismissableLayer.focusOutside",Cs,Ns=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ut=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,d=h.useContext(Ns),[u,f]=h.useState(null),g=u?.ownerDocument??globalThis?.document,[,v]=h.useState({}),b=Z(t,_=>f(_)),p=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(m),y=u?p.indexOf(u):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,S=Xp(_=>{const k=_.target,B=[...d.branches].some(Y=>Y.contains(k));!N||B||(o?.(_),i?.(_),_.defaultPrevented||l?.())},g),M=Zp(_=>{const k=_.target;[...d.branches].some(Y=>Y.contains(k))||(a?.(_),i?.(_),_.defaultPrevented||l?.())},g);return jp(_=>{y===d.layers.size-1&&(r?.(_),!_.defaultPrevented&&l&&(_.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 _=()=>v({});return document.addEventListener(Ur,_),()=>document.removeEventListener(Ur,_)},[]),s.jsx(K.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)})});Ut.displayName=Gp;var Qp="DismissableLayerBranch",qp=h.forwardRef((e,t)=>{const n=h.useContext(Ns),r=h.useRef(null),o=Z(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),s.jsx(K.div,{...e,ref:o})});qp.displayName=Qp;function Xp(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){ks(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},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 Zp(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&ks(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(Ur);document.dispatchEvent(e)}function ks(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?Nc(o,a):o.dispatchEvent(a)}var Kr=0;function Qr(){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()),Kr++,()=>{Kr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kr--}},[])}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 qr="focusScope.autoFocusOnMount",Xr="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},Jp="FocusScope",An=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,c]=h.useState(null),d=Ze(o),u=Ze(a),f=h.useRef(null),g=Z(t,p=>c(p)),v=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let p=function(x){if(v.paused||!l)return;const N=x.target;l.contains(N)?f.current=N:Je(f.current,{select:!0})},m=function(x){if(v.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||Je(f.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Je(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const y=new MutationObserver(w);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),y.disconnect()}}},[r,l,v.paused]),h.useEffect(()=>{if(l){Ms.add(v);const p=document.activeElement;if(!l.contains(p)){const w=new CustomEvent(qr,Ps);l.addEventListener(qr,d),l.dispatchEvent(w),w.defaultPrevented||(Rp(og(Es(l)),{select:!0}),document.activeElement===p&&Je(l))}return()=>{l.removeEventListener(qr,d),setTimeout(()=>{const w=new CustomEvent(Xr,Ps);l.addEventListener(Xr,u),l.dispatchEvent(w),w.defaultPrevented||Je(p??document.body,{select:!0}),l.removeEventListener(Xr,u),Ms.remove(v)},0)}}},[l,d,u,v]);const b=h.useCallback(p=>{if(!n&&!r||v.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(m&&w){const y=p.currentTarget,[x,N]=eg(y);x&&N?!p.shiftKey&&w===N?(p.preventDefault(),n&&Je(x,{select:!0})):p.shiftKey&&w===x&&(p.preventDefault(),n&&Je(N,{select:!0})):w===y&&p.preventDefault()}},[n,r,v.paused]);return s.jsx(K.div,{tabIndex:-1,...i,ref:g,onKeyDown:b})});An.displayName=Jp;function Rp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(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 Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ng(e)&&t&&e.select()}}var Ms=rg();function rg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ts(e,t),e.unshift(t)},remove(t){e=Ts(e,t),e[0]?.resume()}}}function Ts(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"],Re=Math.min,we=Math.max,Pn=Math.round,En=Math.floor,Be=e=>({x:e,y:e}),sg={left:"right",right:"left",bottom:"top",top:"bottom"},ig={start:"end",end:"start"};function Zr(e,t,n){return we(e,Re(t,n))}function Ue(e,t){return typeof e=="function"?e(t):e}function Ke(e){return e.split("-")[0]}function kt(e){return e.split("-")[1]}function Jr(e){return e==="x"?"y":"x"}function Rr(e){return e==="y"?"height":"width"}const lg=new Set(["top","bottom"]);function $e(e){return lg.has(Ke(e))?"y":"x"}function eo(e){return Jr($e(e))}function cg(e,t,n){n===void 0&&(n=!1);const r=kt(e),o=eo(e),a=Rr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=_n(i)),[i,_n(i)]}function dg(e){const t=_n(e);return[to(e),t,to(t)]}function to(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=kt(e);let a=hg(Ke(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(to)))),a}function _n(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 Mn(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),i=eo(t),l=Rr(i),c=Ke(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 v;switch(c){case"top":v={x:u,y:r.y-o.height};break;case"bottom":v={x:u,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(kt(t)){case"start":v[i]-=g*(n&&d?-1:1);break;case"end":v[i]+=g*(n&&d?-1:1);break}return v}const mg=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}=Ls(d,r,c),g=r,v={},b=0;for(let p=0;p<l.length;p++){const{name:m,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:v,rects:d,platform:i,elements:{reference:e,floating:t}});u=y??u,f=x??f,v={...v,[m]:{...v[m],...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}=Ls(d,g,c)),p=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:v}};async function Kt(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:v=0}=Ue(t,e),b=Is(v),m=l[g?f==="floating"?"reference":"floating":f],w=Mn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.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=Mn(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 vg=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}=Ue(e,t)||{};if(d==null)return{};const f=Is(u),g={x:n,y:r},v=eo(o),b=Rr(v),p=await i.getDimensions(d),m=v==="y",w=m?"top":"left",y=m?"bottom":"right",x=m?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[v]-g[v]-a.floating[b],S=g[v]-a.reference[v],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let _=M?M[x]:0;(!_||!await(i.isElement==null?void 0:i.isElement(M)))&&(_=l.floating[x]||a.floating[b]);const k=N/2-S/2,B=_/2-p[b]/2-1,Y=Re(f[w],B),$=Re(f[y],B),U=Y,D=_-p[b]-$,L=_/2-p[b]/2+k,j=Zr(U,L,D),z=!c.arrow&&kt(o)!=null&&L!==j&&a.reference[b]/2-(L<U?Y:$)-p[b]/2<0,P=z?L<U?L-U:L-D:0;return{[v]:g[v]+P,data:{[v]:j,centerOffset:L-j-P,...z&&{alignmentOffset:P}},reset:z}}}),bg=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:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...m}=Ue(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Ke(o),y=$e(l),x=Ke(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=g||(x||!p?[_n(l)]:dg(l)),M=b!=="none";!g&&M&&S.push(...pg(l,p,b,N));const _=[l,...S],k=await Kt(t,m),B=[];let Y=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&B.push(k[w]),f){const L=cg(o,i,N);B.push(k[L[0]],k[L[1]])}if(Y=[...Y,{placement:o,overflows:B}],!B.every(L=>L<=0)){var $,U;const L=((($=a.flip)==null?void 0:$.index)||0)+1,j=_[L];if(j&&(!(f==="alignment"?y!==$e(j):!1)||Y.every(C=>$e(C.placement)===y?C.overflows[0]>0:!0)))return{data:{index:L,overflows:Y},reset:{placement:j}};let z=(U=Y.filter(P=>P.overflows[0]<=0).sort((P,C)=>P.overflows[1]-C.overflows[1])[0])==null?void 0:U.placement;if(!z)switch(v){case"bestFit":{var D;const P=(D=Y.filter(C=>{if(M){const q=$e(C.placement);return q===y||q==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(q=>q>0).reduce((q,ae)=>q+ae,0)]).sort((C,q)=>C[1]-q[1])[0])==null?void 0:D[0];P&&(z=P);break}case"initialPlacement":z=l;break}if(o!==z)return{reset:{placement:z}}}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}=Ue(e,t);switch(r){case"referenceHidden":{const a=await Kt(t,{...o,elementContext:"reference"}),i=Fs(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ws(i)}}}case"escaped":{const a=await Kt(t,{...o,altBoundary:!0}),i=Fs(a,n.floating);return{data:{escapedOffsets:i,escaped:Ws(i)}}}default:return{}}}}},zs=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)),i=Ke(n),l=kt(n),c=$e(n)==="y",d=zs.has(i)?-1:1,u=a&&c?-1:1,f=Ue(t,e);let{mainAxis:g,crossAxis:v,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"&&(v=l==="end"?b*-1:b),c?{x:v*u,y:g*d}:{x:g*d,y:v*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:i,middlewareData:l}=t,c=await wg(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}}}}},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:i=!1,limiter:l={fn:m=>{let{x:w,y}=m;return{x:w,y}}},...c}=Ue(e,t),d={x:n,y:r},u=await Kt(t,c),f=$e(Ke(o)),g=Jr(f);let v=d[g],b=d[f];if(a){const m=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=v+u[m],x=v-u[w];v=Zr(y,v,x)}if(i){const m=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=b+u[m],x=b-u[w];b=Zr(y,b,x)}const p=l.fn({...t,[g]:v,[f]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[g]:a,[f]:i}}}}}},Ng=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}=Ue(e,t),u={x:n,y:r},f=$e(o),g=Jr(f);let v=u[g],b=u[f];const p=Ue(l,t),m=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]+m.mainAxis,S=a.reference[g]+a.reference[x]-m.mainAxis;v<N?v=N:v>S&&(v=S)}if(d){var w,y;const x=g==="y"?"width":"height",N=zs.has(Ke(o)),S=a.reference[f]-a.floating[x]+(N&&((w=i.offset)==null?void 0:w[f])||0)+(N?0:m.crossAxis),M=a.reference[f]+a.reference[x]+(N?0:((y=i.offset)==null?void 0:y[f])||0)-(N?m.crossAxis:0);b<S?b=S:b>M&&(b=M)}return{[g]:v,[f]:b}}}},Sg=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}=Ue(e,t),u=await Kt(t,d),f=Ke(o),g=kt(o),v=$e(o)==="y",{width:b,height:p}=a.floating;let m,w;f==="top"||f==="bottom"?(m=f,w=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,m=g==="end"?"top":"bottom");const y=p-u.top-u.bottom,x=b-u.left-u.right,N=Re(p-u[m],y),S=Re(b-u[w],x),M=!t.middlewareData.shift;let _=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),M&&!g){const Y=we(u.left,0),$=we(u.right,0),U=we(u.top,0),D=we(u.bottom,0);v?k=b-2*(Y!==0||$!==0?Y+$:we(u.left,u.right)):_=p-2*(U!==0||D!==0?U+D:we(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:_});const B=await i.getDimensions(l.floating);return b!==B.width||p!==B.height?{reset:{rects:!0}}:{}}}};function Tn(){return typeof window<"u"}function At(e){return Bs(e)?(e.nodeName||"").toLowerCase():"#document"}function xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){var t;return(t=(Bs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bs(e){return Tn()?e instanceof Node||e instanceof xe(e).Node:!1}function Me(e){return Tn()?e instanceof Element||e instanceof xe(e).Element:!1}function Ve(e){return Tn()?e instanceof HTMLElement||e instanceof xe(e).HTMLElement:!1}function $s(e){return!Tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xe(e).ShadowRoot}const kg=new Set(["inline","contents"]);function Qt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!kg.has(o)}const Ag=new Set(["table","td","th"]);function Pg(e){return Ag.has(At(e))}const Eg=[":popover-open",":modal"];function Dn(e){return Eg.some(t=>{try{return e.matches(t)}catch{return!1}})}const _g=["transform","translate","scale","rotate","perspective"],Mg=["transform","translate","scale","rotate","perspective","filter"],Tg=["paint","layout","strict","content"];function no(e){const t=ro(),n=Me(e)?Te(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)||Mg.some(r=>(n.willChange||"").includes(r))||Tg.some(r=>(n.contain||"").includes(r))}function Dg(e){let t=et(e);for(;Ve(t)&&!Pt(t);){if(no(t))return t;if(Dn(t))return null;t=et(t)}return null}function ro(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Og=new Set(["html","body","#document"]);function Pt(e){return Og.has(At(e))}function Te(e){return xe(e).getComputedStyle(e)}function On(e){return Me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(At(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$s(e)&&e.host||He(e);return $s(t)?t.host:t}function Hs(e){const t=et(e);return Pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Qt(t)?t:Hs(t)}function qt(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),i=xe(o);if(a){const l=oo(i);return t.concat(i,i.visualViewport||[],Qt(o)?o:[],l&&n?qt(l):[])}return t.concat(o,qt(o,[],n))}function oo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vs(e){const t=Te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ve(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Pn(n)!==a||Pn(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function ao(e){return Me(e)?e:e.contextElement}function Et(e){const t=ao(e);if(!Ve(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Vs(t);let i=(a?Pn(n.width):n.width)/r,l=(a?Pn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ig=Be(0);function Ys(e){const t=xe(e);return!ro()||!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!==xe(e)?!1:t}function dt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=ao(e);let i=Be(1);t&&(r?Me(r)&&(i=Et(r)):i=Et(e));const l=Lg(a,n,r)?Ys(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=xe(a),v=r&&Me(r)?xe(r):r;let b=g,p=oo(b);for(;p&&r&&v!==b;){const m=Et(p),w=p.getBoundingClientRect(),y=Te(p),x=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,N=w.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;c*=m.x,d*=m.y,u*=m.x,f*=m.y,c+=x,d+=N,b=xe(p),p=oo(b)}}return Mn({width:u,height:f,x:c,y:d})}function In(e,t){const n=On(e).scrollLeft;return t?t.left+n:dt(He(e)).left+n}function js(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-In(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",i=He(r),l=t?Dn(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Be(1);const u=Be(0),f=Ve(r);if((f||!f&&!a)&&((At(r)!=="body"||Qt(i))&&(c=On(r)),Ve(r))){const v=dt(r);d=Et(r),u.x=v.x+r.clientLeft,u.y=v.y+r.clientTop}const g=i&&!f&&!a?js(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 Wg(e){return Array.from(e.getClientRects())}function zg(e){const t=He(e),n=On(e),r=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=we(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+In(e);const l=-n.scrollTop;return Te(r).direction==="rtl"&&(i+=we(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Gs=25;function Bg(e,t){const n=xe(e),r=He(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=ro();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=In(r);if(d<=0){const u=r.ownerDocument,f=u.body,g=getComputedStyle(f),v=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-v);b<=Gs&&(a-=b)}else d<=Gs&&(a+=d);return{width:a,height:i,x:l,y:c}}const $g=new Set(["absolute","fixed"]);function Hg(e,t){const n=dt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ve(e)?Et(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 Us(e,t,n){let r;if(t==="viewport")r=Bg(e,n);else if(t==="document")r=zg(He(e));else if(Me(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 Mn(r)}function Ks(e,t){const n=et(e);return n===t||!Me(n)||Pt(n)?!1:Te(n).position==="fixed"||Ks(n,t)}function Vg(e,t){const n=t.get(e);if(n)return n;let r=qt(e,[],!1).filter(l=>Me(l)&&At(l)!=="body"),o=null;const a=Te(e).position==="fixed";let i=a?et(e):e;for(;Me(i)&&!Pt(i);){const l=Te(i),c=no(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&$g.has(o.position)||Qt(i)&&!c&&Ks(e,i))?r=r.filter(u=>u!==i):o=l,i=et(i)}return t.set(e,r),r}function Yg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Dn(t)?[]:Vg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,u)=>{const f=Us(t,u,o);return d.top=we(f.top,d.top),d.right=Re(f.right,d.right),d.bottom=Re(f.bottom,d.bottom),d.left=we(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=Ve(t),o=He(t),a=n==="fixed",i=dt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Be(0);function d(){c.x=In(o)}if(r||!r&&!a)if((At(t)!=="body"||Qt(o))&&(l=On(t)),r){const v=dt(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&d();a&&!r&&o&&d();const u=o&&!r&&!a?js(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 so(e){return Te(e).position==="static"}function Qs(e,t){if(!Ve(e)||Te(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return He(e)===n&&(n=n.ownerDocument.body),n}function qs(e,t){const n=xe(e);if(Dn(e))return n;if(!Ve(e)){let o=et(e);for(;o&&!Pt(o);){if(Me(o)&&!so(o))return o;o=et(o)}return n}let r=Qs(e,t);for(;r&&Pg(r)&&so(r);)r=Qs(r,t);return r&&Pt(r)&&so(r)&&!no(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 Te(e).direction==="rtl"}const Qg={convertOffsetParentRelativeRectToViewportRelativeRect:Fg,getDocumentElement:He,getClippingRect:Yg,getOffsetParent:qs,getElementRects:Ug,getClientRects:Wg,getDimensions:jg,getScale:Et,isElement:Me,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=He(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:v}=d;if(l||t(),!g||!v)return;const b=En(f),p=En(o.clientWidth-(u+g)),m=En(o.clientHeight-(f+v)),w=En(u),x={rootMargin:-b+"px "+-p+"px "+-m+"px "+-w+"px",threshold:we(0,Re(1,c))||1};let N=!0;function S(M){const _=M[0].intersectionRatio;if(_!==c){if(!N)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!Xs(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 Xg(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=ao(e),u=o||a?[...d?qt(d):[],...qt(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,v=null;i&&(v=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),d&&!c&&v.observe(d),v.observe(t));let b,p=c?dt(e):null;c&&m();function m(){const w=dt(e);p&&!Xs(p,w)&&n(),p=w,b=requestAnimationFrame(m)}return n(),()=>{var w;u.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f?.(),(w=v)==null||w.disconnect(),v=null,c&&cancelAnimationFrame(b)}}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(){},Ln=om?E.useLayoutEffect:am;function Fn(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(!Fn(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)&&!Fn(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 io(e){const t=h.useRef(e);return Ln(()=>{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: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,v]=h.useState(r);Fn(g,r)||v(r);const[b,p]=h.useState(null),[m,w]=h.useState(null),y=h.useCallback(C=>{C!==M.current&&(M.current=C,p(C))},[]),x=h.useCallback(C=>{C!==_.current&&(_.current=C,w(C))},[]),N=a||b,S=i||m,M=h.useRef(null),_=h.useRef(null),k=h.useRef(u),B=c!=null,Y=io(c),$=io(o),U=io(d),D=h.useCallback(()=>{if(!M.current||!_.current)return;const C={placement:t,strategy:n,middleware:g};$.current&&(C.platform=$.current),rm(M.current,_.current,C).then(q=>{const ae={...q,isPositioned:U.current!==!1};L.current&&!Fn(k.current,ae)&&(k.current=ae,on.flushSync(()=>{f(ae)}))})},[g,t,n,$,U]);Ln(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[d]);const L=h.useRef(!1);Ln(()=>(L.current=!0,()=>{L.current=!1}),[]),Ln(()=>{if(N&&(M.current=N),S&&(_.current=S),N&&S){if(Y.current)return Y.current(N,S,D);D()}},[N,S,D,Y,B]);const j=h.useMemo(()=>({reference:M,floating:_,setReference:y,setFloating:x}),[y,x]),z=h.useMemo(()=>({reference:N,floating:S}),[N,S]),P=h.useMemo(()=>{const C={position:n,left:0,top:0};if(!z.floating)return C;const q=Rs(z.floating,u.x),ae=Rs(z.floating,u.y);return l?{...C,transform:"translate("+q+"px, "+ae+"px)",...Js(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:ae}},[n,l,z.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:D,refs:j,elements:z,floatingStyles:P}),[u,D,j,z,P])}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 s.jsx(K.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"})})});ei.displayName=gm;var mm=ei,lo="Popper",[ti,_t]=Se(lo),[vm,ni]=ti(lo),ri=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return s.jsx(vm,{scope:t,anchor:r,onAnchorChange:o,children:n})};ri.displayName=lo;var oi="PopperAnchor",ai=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ni(oi,n),i=h.useRef(null),l=Z(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(K.div,{...o,ref:l})});ai.displayName=oi;var co="PopperContent",[bm,ym]=ti(co),si=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:v="optimized",onPlaced:b,...p}=e,m=ni(co,n),[w,y]=h.useState(null),x=Z(t,I=>y(I)),[N,S]=h.useState(null),M=ps(N),_=M?.width??0,k=M?.height??0,B=r+(a!=="center"?"-"+a:""),Y=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},$=Array.isArray(d)?d:[d],U=$.length>0,D={padding:Y,boundary:$.filter(xm),altBoundary:U},{refs:L,floatingStyles:j,placement:z,isPositioned:P,middlewareData:C}=sm({strategy:"fixed",placement:B,whileElementsMounted:(...I)=>Xg(...I,{animationFrame:v==="always"}),elements:{reference:m.anchor},middleware:[lm({mainAxis:o+k,alignmentAxis:i}),c&&cm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?dm():void 0,...D}),c&&um({...D}),fm({...D,apply:({elements:I,rects:J,availableWidth:se,availableHeight:X})=>{const{width:R,height:G}=J.reference,ie=I.floating.style;ie.setProperty("--radix-popper-available-width",`${se}px`),ie.setProperty("--radix-popper-available-height",`${X}px`),ie.setProperty("--radix-popper-anchor-width",`${R}px`),ie.setProperty("--radix-popper-anchor-height",`${G}px`)}}),N&&pm({element:N,padding:l}),Cm({arrowWidth:_,arrowHeight:k}),g&&hm({strategy:"referenceHidden",...D})]}),[q,ae]=ci(z),he=Ze(b);ue(()=>{P&&he?.()},[P,he]);const Ce=C.arrow?.x,oe=C.arrow?.y,ne=C.arrow?.centerOffset!==0,[pe,Ne]=h.useState();return ue(()=>{w&&Ne(window.getComputedStyle(w).zIndex)},[w]),s.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:P?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(bm,{scope:n,placedSide:q,onArrowChange:S,arrowX:Ce,arrowY:oe,shouldHideArrow:ne,children:s.jsx(K.div,{"data-side":q,"data-align":ae,...p,ref:x,style:{...p.style,animation:P?void 0:"none"}})})})});si.displayName=co;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),i=wm[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(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,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,u]=ci(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(o.arrow?.x??0)+l/2,v=(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:`${v}px`):d==="left"&&(b=`${r.floating.width+c}px`,p=i?f:`${v}px`),{data:{x:b,y:p}}}});function ci(e){const[t,n="center"]=e.split("-");return[t,n]}var uo=ri,Wn=ai,fo=si,ho=li,Nm="Portal",Xt=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?Vo.createPortal(s.jsx(K.div,{...r,ref:t}),i):null});Xt.displayName=Nm;var Sm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mt=new WeakMap,zn=new WeakMap,Bn={},po=0,di=function(e){return e&&(e.host||di(e.parentNode))},km=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})},Am=function(e,t,n,r){var o=km(t,Array.isArray(e)?e:[e]);Bn[n]||(Bn[n]=new WeakMap);var a=Bn[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 v=g.getAttribute(r),b=v!==null&&v!=="false",p=(Mt.get(g)||0)+1,m=(a.get(g)||0)+1;Mt.set(g,p),a.set(g,m),i.push(g),p===1&&b&&zn.set(g,!0),m===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(),po++,function(){i.forEach(function(f){var g=Mt.get(f)-1,v=a.get(f)-1;Mt.set(f,g),a.set(f,v),g||(zn.has(f)||f.removeAttribute(r),zn.delete(f)),v||f.removeAttribute(n)}),po--,po||(Mt=new WeakMap,Mt=new WeakMap,zn=new WeakMap,Bn={})}},go=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"))),Am(r,o,n,"aria-hidden")):function(){return null}},Ye=function(){return Ye=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},Ye.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 $n="right-scroll-bar-position",Hn="width-before-scroll-bar",Em="with-scroll-bars-hidden",_m="--removed-body-scroll-bar-size";function mo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mm(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 Tm=typeof window<"u"?h.useLayoutEffect:h.useEffect,fi=new WeakMap;function Dm(e,t){var n=Mm(null,function(r){return e.forEach(function(o){return mo(o,r)})});return Tm(function(){var r=fi.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(l){a.has(l)||mo(l,null)}),a.forEach(function(l){o.has(l)||mo(l,i)})}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 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 Lm(e){e===void 0&&(e={});var t=Im(null);return t.options=Ye({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,Ye({},n))};hi.isSideCarExport=!0;function Fm(e,t){return e.useMedium(t),hi}var pi=Lm(),vo=function(){},Vn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:vo,onWheelCapture:vo,onTouchMoveCapture:vo}),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,v=e.noRelative,b=e.noIsolation,p=e.inert,m=e.allowPinchZoom,w=e.as,y=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,M=Dm([n,t]),_=Ye(Ye({},N),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:pi,removeScrollBar:d,shards:f,noRelative:v,noIsolation:b,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?h.cloneElement(h.Children.only(l),Ye(Ye({},_),{ref:M})):h.createElement(y,Ye({},_,{className:c,ref:M}),l))});Vn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vn.classNames={fullWidth:Hn,zeroRight:$n};var Wm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wm();return t&&e.setAttribute("nonce",t),e}function Bm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $m(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=zm())&&(Bm(t,n),$m(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},bo=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[bo(n),bo(r),bo(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(),Tt="data-scroll-locked",Km=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
1
+ (function(T,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):(T=typeof globalThis<"u"?globalThis:T||self,s(T.OdosDesignSystem={},T.jsxRuntime,T.React,T.ReactDOM,T.nextImage,T.LucideReact))})(this,(function(T,s,k,Vo,st,ce){"use strict";function Yo(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=Yo(k),an=Yo(Vo);function fc(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 Ae(e,t=[]){let n=[];function r(a,i){const l=h.createContext(i),c=n.length;n=[...n,i];const d=f=>{const{scope:p,children:v,...b}=f,g=p?.[e]?.[c]||l,m=h.useMemo(()=>b,Object.values(b));return s.jsx(g.Provider,{value:m,children:v})};d.displayName=a+"Provider";function u(f,p){const v=p?.[e]?.[c]||l,b=h.useContext(v);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,hc(o,...t)]}function hc(...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 jo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function or(...e){return t=>{let n=!1;const r=e.map(o=>{const a=jo(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():jo(e[o],null)}}}}function Z(...e){return h.useCallback(or(...e),e)}function gt(e){const t=pc(e),n=h.forwardRef((r,o)=>{const{children:a,...i}=r,l=h.Children.toArray(a),c=l.find(mc);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 pc(e){const t=h.forwardRef((n,r)=>{const{children:o,...a}=n;if(h.isValidElement(o)){const i=bc(o),l=vc(a,o.props);return o.type!==h.Fragment&&(l.ref=r?or(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 Go=Symbol("radix.slottable");function gc(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Go,t}function mc(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Go}function vc(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 bc(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 ar(e){const t=e+"CollectionProvider",[n,r]=Ae(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:m,children:w}=g,y=k.useRef(null),x=k.useRef(new Map).current;return s.jsx(o,{scope:m,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const l=e+"CollectionSlot",c=gt(l),d=k.forwardRef((g,m)=>{const{scope:w,children:y}=g,x=a(l,w),N=Z(m,x.collectionRef);return s.jsx(c,{ref:N,children:y})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=gt(u),v=k.forwardRef((g,m)=>{const{scope:w,children:y,...x}=g,N=k.useRef(null),S=Z(m,N),M=a(u,w);return k.useEffect(()=>(M.itemMap.set(N,{ref:N,...x}),()=>{M.itemMap.delete(N)})),s.jsx(p,{[f]:"",ref:S,children:y})});v.displayName=u;function b(g){const m=a(e+"CollectionConsumer",g);return k.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((M,_)=>x.indexOf(M.ref.current)-x.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:d,ItemSlot:v},b,r]}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var fe=globalThis?.document?h.useLayoutEffect:()=>{},yc=h[" useInsertionEffect ".trim().toString()]||fe;function xe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=wc({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=xc(u)?u(e):u;f!==e&&i.current?.(f)}else a(u)},[l,e,a,i]);return[c,d]}function wc({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return yc(()=>{a.current=t},[t]),h.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function xc(e){return typeof e=="function"}var Cc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=Cc.reduce((e,t)=>{const n=gt(`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 Nc(e,t){e&&an.flushSync(()=>e.dispatchEvent(t))}function Sc(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=Ac(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=Z(r.ref,kc(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function Ac(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Sc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=sn(r.current);a.current=l==="mounted"?d:"none"},[l]),fe(()=>{const d=r.current,u=o.current;if(u!==e){const p=a.current,v=sn(d);e?c("MOUNT"):v==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),fe(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=v=>{const g=sn(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(c("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},p=v=>{v.target===t&&(a.current=sn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",p),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 sn(e){return e?.animationName||"none"}function kc(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 Pc=h[" useId ".trim().toString()]||(()=>{}),Ec=0;function ke(e){const[t,n]=h.useState(Pc());return fe(()=>{n(r=>r??String(Ec++))},[e]),e||(t?`radix-${t}`:"")}var ln="Collapsible",[_c,Uo]=Ae(ln),[Mc,sr]=_c(ln),Ko=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[c,d]=xe({prop:r,defaultProp:o??!1,onChange:i,caller:ln});return s.jsx(Mc,{scope:n,disabled:a,contentId:ke(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:s.jsx(U.div,{"data-state":lr(c),"data-disabled":a?"":void 0,...l,ref:t})})});Ko.displayName=ln;var Qo="CollapsibleTrigger",qo=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=sr(Qo,n);return s.jsx(U.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":lr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});qo.displayName=Qo;var ir="CollapsibleContent",Xo=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=sr(ir,e.__scopeCollapsible);return s.jsx(Le,{present:n||o.open,children:({present:a})=>s.jsx(Tc,{...r,ref:t,present:a})})});Xo.displayName=ir;var Tc=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=sr(ir,n),[l,c]=h.useState(r),d=h.useRef(null),u=Z(t,d),f=h.useRef(0),p=f.current,v=h.useRef(0),b=v.current,g=i.open||l,m=h.useRef(g),w=h.useRef(void 0);return h.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),fe(()=>{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,v.current=x.width,m.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),c(r)}},[i.open,r]),s.jsx(U.div,{"data-state":lr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:g&&o})});function lr(e){return e?"open":"closed"}var Dc=Ko,Oc=qo,Ic=Xo,Lc=h.createContext(void 0);function cn(e){const t=h.useContext(Lc);return e||t||"ltr"}var Pe="Accordion",Fc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[cr,Wc,zc]=ar(Pe),[dn]=Ae(Pe,[zc,Uo]),dr=Uo(),Zo=k.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return s.jsx(cr.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(Vc,{...a,ref:t}):s.jsx(Hc,{...o,ref:t})})});Zo.displayName=Pe;var[Jo,Bc]=dn(Pe),[Ro,$c]=dn(Pe,{collapsible:!1}),Hc=k.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,c]=xe({prop:n,defaultProp:r??"",onChange:o,caller:Pe});return s.jsx(Jo,{scope:e.__scopeAccordion,value:k.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:k.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(Ro,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(ea,{...i,ref:t})})})}),Vc=k.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=xe({prop:n,defaultProp:r??[],onChange:o,caller:Pe}),c=k.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=k.useCallback(u=>l((f=[])=>f.filter(p=>p!==u)),[l]);return s.jsx(Jo,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(Ro,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(ea,{...a,ref:t})})})}),[Yc,un]=dn(Pe),ea=k.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=k.useRef(null),c=Z(l,t),d=Wc(n),f=cn(o)==="ltr",p=j(e.onKeyDown,v=>{if(!Fc.includes(v.key))return;const b=v.target,g=d().filter(A=>!A.ref.current?.disabled),m=g.findIndex(A=>A.ref.current===b),w=g.length;if(m===-1)return;v.preventDefault();let y=m;const x=0,N=w-1,S=()=>{y=m+1,y>N&&(y=x)},M=()=>{y=m-1,y<x&&(y=N)};switch(v.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 _=y%w;g[_].ref.current?.focus()});return s.jsx(Yc,{scope:n,disabled:r,direction:o,orientation:a,children:s.jsx(cr.Slot,{scope:n,children:s.jsx(U.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:p})})})}),fn="AccordionItem",[jc,ur]=dn(fn),ta=k.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=un(fn,n),i=Bc(fn,n),l=dr(n),c=ke(),d=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return s.jsx(jc,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(Dc,{"data-orientation":a.orientation,"data-state":ia(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});ta.displayName=fn;var na="AccordionHeader",ra=k.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=un(Pe,n),a=ur(na,n);return s.jsx(U.h3,{"data-orientation":o.orientation,"data-state":ia(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});ra.displayName=na;var fr="AccordionTrigger",oa=k.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=un(Pe,n),a=ur(fr,n),i=$c(fr,n),l=dr(n);return s.jsx(cr.ItemSlot,{scope:n,children:s.jsx(Oc,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});oa.displayName=fr;var aa="AccordionContent",sa=k.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=un(Pe,n),a=ur(aa,n),i=dr(n);return s.jsx(Ic,{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}})});sa.displayName=aa;function ia(e){return e?"open":"closed"}var Gc=Zo,Uc=ta,Kc=ra,Qc=oa,qc=sa;function la(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=la(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ca(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=la(e))&&(r&&(r+=" "),r+=t);return r}const Xc=(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},Zc=(e,t)=>({classGroupId:e,validator:t}),da=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),hn="-",ua=[],Jc="arbitrary..",Rc=e=>{const t=td(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ed(i);const l=i.split(hn),c=l[0]===""&&l.length>1?1:0;return fa(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],d=n[i];return c?d?Xc(d,c):c:d||ua}return n[i]||ua}}},fa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=fa(e,t+1,a);if(d)return d}const i=n.validators;if(i===null)return;const l=t===0?e.join(hn):e.slice(t).join(hn),c=i.length;for(let d=0;d<c;d++){const u=i[d];if(u.validator(l))return u.classGroupId}},ed=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?Jc+r:void 0})(),td=e=>{const{theme:t,classGroups:n}=e;return nd(n,t)},nd=(e,t)=>{const n=da();for(const r in e){const o=e[r];hr(o,n,r,t)}return n},hr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];rd(i,t,n,r)}},rd=(e,t,n,r)=>{if(typeof e=="string"){od(e,t,n);return}if(typeof e=="function"){ad(e,t,n,r);return}sd(e,t,n,r)},od=(e,t,n)=>{const r=e===""?t:ha(t,e);r.classGroupId=n},ad=(e,t,n,r)=>{if(id(e)){hr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Zc(n,e))},sd=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[l,c]=o[i];hr(c,ha(t,l),n,r)}},ha=(e,t)=>{let n=e;const r=t.split(hn),o=r.length;for(let a=0;a<o;a++){const i=r[a];let l=n.nextPart.get(i);l||(l=da(),n.nextPart.set(i,l)),n=l}return n},id=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ld=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)}}},pr="!",pa=":",cd=[],ga=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),dd=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 g=0;g<u;g++){const m=o[g];if(i===0&&l===0){if(m===pa){a.push(o.slice(c,g)),c=g+1;continue}if(m==="/"){d=g;continue}}m==="["?i++:m==="]"?i--:m==="("?l++:m===")"&&l--}const f=a.length===0?o:o.slice(c);let p=f,v=!1;f.endsWith(pr)?(p=f.slice(0,-1),v=!0):f.startsWith(pr)&&(p=f.slice(1),v=!0);const b=d&&d>c?d-c:void 0;return ga(a,v,p,b)};if(t){const o=t+pa,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):ga(cd,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ud=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}},fd=e=>({cache:ld(e.cacheSize),parseClassName:dd(e),sortModifiers:ud(e),...Rc(e)}),hd=/\s+/,pd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(hd);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:p,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:g}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let m=!!g,w=r(m?b.substring(0,g):b);if(!w){if(!m){c=u+(c.length>0?" "+c:c);continue}if(w=r(b),!w){c=u+(c.length>0?" "+c:c);continue}m=!1}const y=p.length===0?"":p.length===1?p[0]:a(p).join(":"),x=v?y+pr:y,N=x+w;if(i.indexOf(N)>-1)continue;i.push(N);const S=o(w,m);for(let M=0;M<S.length;++M){const _=S[M];i.push(x+_)}c=u+(c.length>0?" "+c:c)}return c},gd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ma(n))&&(o&&(o+=" "),o+=r);return o},ma=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ma(e[r]))&&(n&&(n+=" "),n+=t);return n},md=(e,...t)=>{let n,r,o,a;const i=c=>{const d=t.reduce((u,f)=>f(u),e());return n=fd(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=pd(c,n);return o(c,u),u};return a=i,(...c)=>a(gd(...c))},vd=[],le=e=>{const t=n=>n[e]||vd;return t.isThemeGetter=!0,t},va=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ba=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bd=/^\d+\/\d+$/,yd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wd=/\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$/,xd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mt=e=>bd.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),gr=e=>e.endsWith("%")&&K(e.slice(0,-1)),Ge=e=>yd.test(e),Sd=()=>!0,Ad=e=>wd.test(e)&&!xd.test(e),ya=()=>!1,kd=e=>Cd.test(e),Pd=e=>Nd.test(e),Ed=e=>!L(e)&&!F(e),_d=e=>vt(e,Sa,ya),L=e=>va.test(e),it=e=>vt(e,Aa,Ad),mr=e=>vt(e,Id,K),wa=e=>vt(e,Ca,ya),Md=e=>vt(e,Na,Pd),pn=e=>vt(e,ka,kd),F=e=>ba.test(e),zt=e=>bt(e,Aa),Td=e=>bt(e,Ld),xa=e=>bt(e,Ca),Dd=e=>bt(e,Sa),Od=e=>bt(e,Na),gn=e=>bt(e,ka,!0),vt=(e,t,n)=>{const r=va.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},bt=(e,t,n=!1)=>{const r=ba.exec(e);return r?r[1]?t(r[1]):n:!1},Ca=e=>e==="position"||e==="percentage",Na=e=>e==="image"||e==="url",Sa=e=>e==="length"||e==="size"||e==="bg-size",Aa=e=>e==="length",Id=e=>e==="number",Ld=e=>e==="family-name",ka=e=>e==="shadow",Fd=md(()=>{const e=le("color"),t=le("font"),n=le("text"),r=le("font-weight"),o=le("tracking"),a=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),u=le("shadow"),f=le("inset-shadow"),p=le("text-shadow"),v=le("drop-shadow"),b=le("blur"),g=le("perspective"),m=le("aspect"),w=le("ease"),y=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(),F,L],M=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],A=()=>[F,L,c],B=()=>[mt,"full","auto",...A()],$=()=>[qe,"none","subgrid",F,L],H=()=>["auto",{span:["full",qe,F,L]},qe,F,L],G=()=>[qe,"auto",F,L],D=()=>["auto","min","max","fr",F,L],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...A()],E=()=>[mt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],C=()=>[e,F,L],Q=()=>[...N(),xa,wa,{position:[F,L]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Dd,_d,{size:[F,L]}],Se=()=>[gr,zt,it],ie=()=>["","none","full",d,F,L],oe=()=>["",K,zt,it],ge=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[K,gr,xa,wa],te=()=>["","none",b,F,L],ae=()=>["none",K,F,L],X=()=>["none",K,F,L],J=()=>[K,F,L],ne=()=>[mt,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[Sd],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[Ed],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",K],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mt,L,F,m]}],container:["container"],columns:[{columns:[K,L,F,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:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[qe,"auto",F,L]}],basis:[{basis:[mt,"full","auto",l,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,mt,"auto","initial","none",L]}],grow:[{grow:["",K,F,L]}],shrink:[{shrink:["",K,F,L]}],order:[{order:[qe,"first","last","none",F,L]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[l,"screen",...E()]}],"min-w":[{"min-w":[l,"screen","none",...E()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,zt,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,L]}],"font-family":[{font:[Td,L,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,F,L]}],"line-clamp":[{"line-clamp":[K,"none",F,mr]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",F,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,L]}],"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:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",F,it]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[K,"auto",F,L]}],"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",F,L]}],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",F,L]}],"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:se()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,F,L],radial:["",F,L],conic:[qe,F,L]},Od,Md]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"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:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,F,L]}],"outline-w":[{outline:["",K,zt,it]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,gn,pn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,gn,pn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[K,it]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",p,gn,pn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[K,F,L]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[F,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"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":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"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:se()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,L]}],filter:[{filter:["","none",F,L]}],blur:[{blur:te()}],brightness:[{brightness:[K,F,L]}],contrast:[{contrast:[K,F,L]}],"drop-shadow":[{"drop-shadow":["","none",v,gn,pn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",K,F,L]}],"hue-rotate":[{"hue-rotate":[K,F,L]}],invert:[{invert:["",K,F,L]}],saturate:[{saturate:[K,F,L]}],sepia:[{sepia:["",K,F,L]}],"backdrop-filter":[{"backdrop-filter":["","none",F,L]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[K,F,L]}],"backdrop-contrast":[{"backdrop-contrast":[K,F,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,F,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,F,L]}],"backdrop-invert":[{"backdrop-invert":["",K,F,L]}],"backdrop-opacity":[{"backdrop-opacity":[K,F,L]}],"backdrop-saturate":[{"backdrop-saturate":[K,F,L]}],"backdrop-sepia":[{"backdrop-sepia":["",K,F,L]}],"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",F,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",F,L]}],ease:[{ease:["linear","initial",w,F,L]}],delay:[{delay:[K,F,L]}],animate:[{animate:["none",y,F,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,F,L]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[F,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"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",F,L]}],"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",F,L]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[K,zt,it,mr]}],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 Fd(ca(e))}const 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:"M20 8L12 16L4 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Wd=Gc;function zd({className:e,...t}){return s.jsx(Uc,{className:P("border-b border-gray-200 last:border-b-0",e),...t})}function Bd({className:e,children:t,...n}){return s.jsx(Kc,{className:"flex",children:s.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,s.jsx(mn,{className:P("h-4 w-4 sm:h-5 sm:w-5 shrink-0 text-gray-500 transition-transform duration-200")})]})})}function $d({className:e,children:t,...n}){return s.jsx(qc,{className:P("overflow-hidden text-gray-700","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"),...n,children:s.jsx("div",{className:P("pb-3 sm:pb-4 pt-0 text-sm sm:text-base",e),children:t})})}var Hd=Symbol.for("react.lazy"),vn=h[" use ".trim().toString()];function Vd(e){return typeof e=="object"&&e!==null&&"then"in e}function Pa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hd&&"_payload"in e&&Vd(e._payload)}function Yd(e){const t=Gd(e),n=h.forwardRef((r,o)=>{let{children:a,...i}=r;Pa(a)&&typeof vn=="function"&&(a=vn(a._payload));const l=h.Children.toArray(a),c=l.find(Kd);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 jd=Yd("Slot");function Gd(e){const t=h.forwardRef((n,r)=>{let{children:o,...a}=n;if(Pa(o)&&typeof vn=="function"&&(o=vn(o._payload)),h.isValidElement(o)){const i=qd(o),l=Qd(a,o.props);return o.type!==h.Fragment&&(l.ref=r?or(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 Ud=Symbol("radix.slottable");function Kd(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ud}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 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 Ea=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_a=ca,lt=(e,t)=>n=>{var r;if(t?.variants==null)return _a(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 p=Ea(u)||Ea(f);return o[d][p]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,p]=u;return p===void 0||(d[f]=p),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:p,...v}=u;return Object.entries(v).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...a,...l}[g]):{...a,...l}[g]===m})?[...d,f,p]:d},[]);return _a(e,i,c,n?.class,n?.className)},bn=lt("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 O({className:e,size:t,weight:n,as:r="span",...o}){return s.jsx(r,{className:P(bn({size:t,weight:n,className:e})),...o})}const Xd=lt("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 de({className:e,variant:t="default",size:n="large",asChild:r=!1,disabled:o=!1,...a}){const i=r?jd:"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:P(Xd({variant:l,size:c,className:e})),disabled:o,...a,children:u?s.jsx(O,{size:d[c].size,weight:d[c].weight,children:a.children}):a.children})}function yt({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]=k.useState(!0);k.useEffect(()=>{i(!0)},[e]);const l=typeof e=="string"&&/^(\/|https?:\/\/)/.test(e);return s.jsx("div",{className:P("relative overflow-hidden rounded-full",r[t],n),children:s.jsx(st,{src:!e||!l||!a?o:e,alt:"avatar",fill:!0,className:"object-cover",onError:()=>i(!1)})})}const Zd=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="})]})]}),Ma=e=>s.jsx(ce.Bell,{...e}),Jd=e=>s.jsx(ce.BookOpen,{...e}),Ta=e=>s.jsx(ce.CalendarDays,{...e}),Rd=e=>s.jsx(ce.Dumbbell,{...e}),eu=e=>s.jsx(ce.Flag,{...e}),Da=e=>s.jsx(ce.Flame,{...e}),tu=e=>s.jsx(ce.Code2,{...e}),wt=({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"})}),nu=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"})}),yn=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"})}),wn=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"})}),Oa=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"})}),xn=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"})}),ru=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"})}),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",{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"})]}),au=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"})]}),Ia=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"})}),vr=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"})}),br=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(ce.Laptop,{...e}),yr=e=>s.jsx(ce.LogIn,{...e}),Bt=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(ce.Palette,{...e}),wr=e=>s.jsx(ce.Users,{...e}),Cn=e=>s.jsx(ce.PencilLine,{...e}),xt=e=>s.jsx(ce.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(ce.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(ce.Salad,{...e}),La=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"})]}),xr=e=>s.jsx(ce.Settings,{...e}),hu={AddCircle:Zd,Bell:Ma,BookOpen:Jd,Calendar:Ta,Check:wt,Code2:tu,Chevron:nu,ChevronDown:mn,ChevronLeft:yn,ChevronRight:wn,ChevronUp:Oa,Close:xn,Dumbbell:Rd,Endless:ru,Eye:ou,EyeOff:au,Flag:eu,Flame:Da,HamburgerMenu:Ia,Heart:vr,HeartFilled:br,Laptop:su,LogIn:yr,Logo:Bt,Minus:iu,Palette:lu,People:wr,PencilLine:Cn,Person:xt,Pin:cu,Plane:du,Plus:uu,Salad:fu,Search:La,Settings:xr,Target:e=>s.jsx(ce.Target,{...e}),Trophy:e=>s.jsx(ce.Trophy,{...e})};function Fa({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:P("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,showBackButton:i=!1,onBackClick:l,className:c,onLogoClick:d,onNavChange:u,onNotificationClick:f,onProfileClick:p}){const[v,b]=k.useState(!1),g=t??s.jsx(Bt,{className:"h-5 w-3.5 text-white","aria-hidden":!0}),m=s.jsx(s.Fragment,{children:n.map(w=>{const y=w.key===r;return s.jsx("li",{children:s.jsx("button",{type:"button",disabled:w.disabled,"aria-current":y?"page":void 0,onClick:()=>{u?.(w.key),b(!1)},className:P("cursor-pointer transition-colors",w.disabled&&"cursor-not-allowed opacity-50",!w.disabled&&"hover:text-main-700"),children:s.jsx(O,{size:"body2",weight:y?"bold":"medium",className:P(y?"text-main-800":"text-gray-600"),children:w.label})})},w.key)})});return s.jsxs("div",{className:"relative",children:[s.jsx("header",{className:P("w-full rounded-4 border border-gray-200 bg-white px-6 py-4",c),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:[i&&s.jsx(de,{type:"button",variant:"ghost",size:"icon",onClick:l,"aria-label":"뒤로가기",className:"shrink-0 cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(yn,{className:"h-4 w-4"})}),s.jsxs("button",{type:"button",onClick:d,className:P("inline-flex shrink-0 cursor-pointer items-center gap-2",i&&"hidden lg:inline-flex"),"aria-label":"홈으로 이동",children:[s.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-3 bg-main-800",children:g}),s.jsx(O,{size:"heading2",weight:"bold",className:"text-gray-900",children:e})]}),s.jsx("nav",{className:"hidden min-w-0 overflow-x-auto lg:block","aria-label":"주요 메뉴",children:s.jsx("ul",{className:"flex items-center gap-6 whitespace-nowrap",children:m})})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[s.jsx(de,{type:"button",variant:"ghost",size:"icon",onClick:f,"aria-label":"알림",className:"cursor-pointer text-gray-700 hover:text-gray-900",children:s.jsx(Ma,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"ghost",size:"icon","aria-label":"메뉴",onClick:()=>b(w=>!w),className:"cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(Ia,{className:"h-4 w-4"})}),o?s.jsx("button",{type:"button",onClick:p,"aria-label":"프로필 열기",className:"cursor-pointer rounded-full",children:s.jsx(yt,{imageUrl:a,size:"sm",className:"ring-2 ring-mint-900/30"})}):null]})]})}),s.jsx("div",{className:P("fixed inset-0 z-40 transition-opacity duration-200 lg:hidden",v?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onClick:()=>b(!1),"aria-hidden":!0}),s.jsx("nav",{className:P("absolute left-0 right-0 top-full z-50 mt-1 rounded-4 border border-gray-200 bg-white px-6 py-4 shadow-lg transition-opacity duration-200 lg:hidden",v?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),"aria-label":"모바일 메뉴",children:s.jsx("ul",{className:"flex flex-col gap-1",children:m})})]})}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]",minHeightPx:i=180,componentId:l,enableDataLayerTracking:c=!1,impressionMode:d="once",onBannerClick:u,onBannerImpression:f,onBannerChange:p,onItemClick:v,className:b,...g}){const m=e.length,w=i>0?`${i}px`:void 0,y=k.useMemo(()=>m===0||n<0?0:n>m-1?m-1:n,[n,m]),x=r&&m>1,N=k.useMemo(()=>{if(m===0)return[];if(!x)return e;const[D]=e,[W]=e.slice(-1);return[W,...e,D]},[x,m,e]),[S,M]=k.useState(x?y+1:y),[_,A]=k.useState(!0);k.useEffect(()=>{M(x?y+1:y)},[x,y,m]),k.useEffect(()=>{if(m<=1||t<=0)return;const D=window.setInterval(()=>{M(W=>W+1)},t);return()=>window.clearInterval(D)},[t,m]),k.useEffect(()=>{if(_)return;const D=window.setTimeout(()=>{A(!0)},30);return()=>window.clearTimeout(D)},[_]);const B=m===0?0:((S-(x?1:0)+m)%m+m)%m,$=k.useRef(new Set),H=k.useCallback((D,W,Y)=>{const z=W.id===void 0?`${Y}`:String(W.id),E={event:D,componentId:l,bannerId:z,bannerIndex:Y,bannerType:W.type,bannerTitle:W.title,bannerSubtitle:W.subtitle,timestamp:Date.now()};if(D==="click"&&u?.(E),D==="impression"&&f?.(E),D==="change"&&p?.(E),c&&typeof window<"u"){const C=window;Array.isArray(C.dataLayer)&&C.dataLayer.push({event:`${vu}_${D}`,component_id:l??"banner-carousel",banner_id:E.bannerId,banner_index:E.bannerIndex,banner_type:E.bannerType,banner_title:E.bannerTitle,banner_subtitle:E.bannerSubtitle,timestamp:E.timestamp})}},[l,c,p,u,f]);k.useEffect(()=>{if(m===0)return;const D=e[B];if(!D)return;H("change",D,B);const W=`${D.id===void 0?`${B}`:String(D.id)}-${B}`,Y=$.current.has(W);d==="once"&&Y||($.current.add(W),H("impression",D,B))},[B,H,d,m,e]);const G=()=>{if(x){if(S===m+1){A(!1),M(1);return}S===0&&(A(!1),M(m))}};return m===0?null:s.jsx("div",{className:P("w-full",b),...g,children:s.jsxs("div",{className:"relative overflow-hidden rounded-4",children:[s.jsx("div",{className:P("flex",_&&"transition-transform duration-500 ease-out"),style:{transform:`translateX(-${S*100}%)`},onTransitionEnd:G,children:N.map((D,W)=>{const Y=D.backgroundImageUrl??D.backgroundImage,z=!!(Y&&Y.trim().length>0),E=m===0?0:(W-(x?1:0)+m)%m,C=D.id===void 0?`${E}-${W}`:String(D.id);return s.jsxs("button",{type:"button",onClick:()=>{H("click",D,E),v?.(D,E)},"data-banner-id":D.id===void 0?`${E}`:String(D.id),"data-banner-index":E,"data-banner-type":D.type,"data-banner-title":D.title,"data-banner-image-url":Y??"",className:P("relative w-full shrink-0 overflow-hidden p-4 text-left text-white transition hover:brightness-105 sm:p-8","cursor-pointer",a),style:{backgroundImage:`linear-gradient(to right, ${bu}, ${yu})`,minHeight:w},children:[z?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(O,{size:"caption3",weight:"medium",className:"text-white/85",children:D.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(O,{size:"heading2",weight:"bold",className:"line-clamp-1 text-white sm:text-3xl",children:D.title}),s.jsx(O,{size:"caption1",weight:"medium",className:"line-clamp-1 text-white/90 sm:text-lg",children:D.subtitle})]}),s.jsx(O,{size:"heading2",weight:"bold",className:"text-white sm:text-3xl",children:"→"})]})]})]},`${C}-${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((D,W)=>s.jsx("button",{type:"button",onClick:()=>{A(!0),M(x?W+1:W)},className:P("h-2 cursor-pointer rounded-full transition-all",B===W?"w-5 bg-white":"w-2 bg-white/50 hover:bg-white/80"),"aria-label":`${W+1}번째 배너로 이동`},D.id===void 0?`${W}`:String(D.id)))})}):null]})})}const Cr=6048e5,xu=864e5,Wa=Symbol.for("constructDateFrom");function ue(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Wa in e?e[Wa](t):e instanceof Date?new e.constructor(t):new Date(t)}function R(e,t){return ue(t||e,e)}function ve(e,t,n){const r=R(e,n?.in);return isNaN(t)?ue(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Ee(e,t,n){const r=R(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 i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Cu={};function $t(){return Cu}function Fe(e,t){const n=$t(),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 ct(e,t){return Fe(e,{...t,weekStartsOn:1})}function za(e,t){const n=R(e,t?.in),r=n.getFullYear(),o=ue(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=ct(o),i=ue(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const l=ct(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Nn(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 Ct(e,...t){const n=ue.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Nt(e,t){const n=R(e,t?.in);return n.setHours(0,0,0,0),n}function We(e,t,n){const[r,o]=Ct(n?.in,e,t),a=Nt(r),i=Nt(o),l=+a-Nn(a),c=+i-Nn(i);return Math.round((l-c)/xu)}function Nu(e,t){const n=za(e,t),r=ue(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ct(r)}function Nr(e,t,n){return ve(e,t*7,n)}function Su(e,t,n){return Ee(e,t*12,n)}function Au(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=R(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function ku(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=R(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function ye(e,t,n){const[r,o]=Ct(n?.in,e,t);return+Nt(r)==+Nt(o)}function Sr(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Pu(e){return!(!Sr(e)&&typeof e!="number"||isNaN(+R(e)))}function Ht(e,t,n){const[r,o]=Ct(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]=Ct(n?.in,e,t),a=Fe(r,n),i=Fe(o,n),l=+a-Nn(a),c=+i-Nn(i);return Math.round((l-c)/Cr)}function Ar(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 we(e,t){const n=R(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Ba(e,t){const n=R(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function kr(e,t){const n=$t(),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 $a(e,t){return kr(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 St(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:St({formats:Tu,defaultWidth:"full"}),time:St({formats:Du,defaultWidth:"full"}),dateTime:St({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 ze(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"]},zu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bu={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:ze({values:Wu,defaultWidth:"wide"}),quarter:ze({values:zu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ze({values:Bu,defaultWidth:"wide"}),day:ze({values:$u,defaultWidth:"wide"}),dayPeriod:ze({values:Hu,defaultWidth:"wide",formattingValues:Vu,defaultFormattingWidth:"wide"})};function Be(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 Ha(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:Ha({matchPattern:Uu,parsePattern:Ku,valueCallback:e=>parseInt(e,10)}),era:Be({matchPatterns:Qu,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),quarter:Be({matchPatterns:Xu,defaultMatchWidth:"wide",parsePatterns:Zu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Be({matchPatterns:Ju,defaultMatchWidth:"wide",parsePatterns:Ru,defaultParseWidth:"any"}),day:Be({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:tf,defaultParseWidth:"any"}),dayPeriod:Be({matchPatterns:nf,defaultMatchWidth:"any",parsePatterns:rf,defaultParseWidth:"any"})},Va={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 We(n,Ba(n))+1}function Ya(e,t){const n=R(e,t?.in),r=+ct(n)-+Nu(n);return Math.round(r/Cr)+1}function ja(e,t){const n=R(e,t?.in),r=n.getFullYear(),o=$t(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=ue(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=Fe(i,t),c=ue(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=Fe(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function sf(e,t){const n=$t(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ja(e,t),a=ue(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Fe(a,t)}function Ga(e,t){const n=R(e,t?.in),r=+Fe(n,t)-+sf(n,t);return Math.round(r/Cr)+1}function ee(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Xe={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)}},At={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ua={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 Xe.y(e,t)},Y:function(e,t,n,r){const o=ja(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=za(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 Xe.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=Ga(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ee(o,t.length)},I:function(e,t,n){const r=Ya(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"}):Xe.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=At.noon:r===0?o=At.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=At.evening:r>=12?o=At.afternoon:r>=4?o=At.morning:o=At.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 Xe.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Xe.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"}):Xe.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Xe.s(e,t)},S:function(e,t){return Xe.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qa(r);case"XXXX":case"XX":return dt(r);default:return dt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Qa(r);case"xxxx":case"xx":return dt(r);default:return dt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ka(r,":");default:return"GMT"+dt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ka(r,":");default:return"GMT"+dt(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 Ka(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 Qa(e,t){return e%60===0?(e>0?"-":"+")+ee(Math.abs(e)/60,2):dt(e,t)}function dt(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 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"})}},Xa=(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:Xa,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}}",Xa(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 _e(e,t,n){const r=$t(),o=n?.locale??r.locale??Va,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 p=lf[f];return p(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(Ua[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 p=Ua[f[0]];return p(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=ue(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),we(n,t),t)+1}function Pr(e,t){return+R(e)>+R(t)}function Za(e,t){return+R(e)<+R(t)}function Er(e,t,n){const[r,o]=Ct(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function kf(e,t,n){const[r,o]=Ct(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function _r(e,t,n){return ve(e,-t,n)}function Mr(e,t,n){const r=R(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=ue(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 Ja(e,t,n){const r=R(e,n?.in);return isNaN(+r)?ue(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:St({formats:_f,defaultWidth:"full"}),time:St({formats:Mf,defaultWidth:"full"}),dateTime:St({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월"]},zf={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Bf={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:ze({values:Lf,defaultWidth:"wide"}),quarter:ze({values:Ff,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ze({values:Wf,defaultWidth:"wide"}),day:ze({values:zf,defaultWidth:"wide"}),dayPeriod:ze({values:Bf,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:Ha({matchPattern:Vf,parsePattern:Yf,valueCallback:e=>parseInt(e,10)}),era:Be({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Gf,defaultParseWidth:"any"}),quarter:Be({matchPatterns:Uf,defaultMatchWidth:"wide",parsePatterns:Kf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Be({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:qf,defaultParseWidth:"any"}),day:Be({matchPatterns:Xf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),dayPeriod:Be({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 V=function(){return V=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},V.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 Ra(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 Vt(e){return e.mode==="multiple"}function Yt(e){return e.mode==="range"}function Sn(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 _e(e,"LLLL y",t)}function ah(e,t){return _e(e,"d",t)}function sh(e,t){return _e(e,"LLLL",t)}function ih(e){return"".concat(e)}function lh(e,t){return _e(e,"cccccc",t)}function ch(e,t){return _e(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 _e(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 _e(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=Va,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=we(r):t&&(a=new Date(t,0,1)),o?i=Ar(o):n&&(i=new Date(n,11,31)),{fromDate:a?Nt(a):void 0,toDate:i?Nt(i):void 0}}var es=k.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;(Sn(n)||Vt(n)||Yt(n))&&(c=n.onSelect);var d=V(V(V({},r),n),{captionLayout:l,classNames:V(V({},r.classNames),n.classNames),components:V({},n.components),formatters:V(V({},r.formatters),n.formatters),fromDate:a,labels:V(V({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:V(V({},r.modifiers),n.modifiers),modifiersClassNames:V(V({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:V(V({},r.styles),n.styles),toDate:i});return s.jsx(es.Provider,{value:d,children:e.children})}function re(){var e=k.useContext(es);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function ts(e){var t=re(),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",V({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 ns(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,l=e.className,c=e.style,d=re(),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=re(),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 p=we(r),v=r.getMonth();v<=o.getMonth();v++)f.push(Mr(p,v));else for(var p=we(new Date),v=0;v<=11;v++)f.push(Mr(p,v));var b=function(m){var w=Number(m.target.value),y=Mr(we(e.displayMonth),w);e.onChange(y)},g=(t=d?.Dropdown)!==null&&t!==void 0?t:ns;return s.jsx(g,{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(m){return s.jsx("option",{value:m.getMonth(),children:l(m,{locale:i})},m.getMonth())})})}function Sh(e){var t,n=e.displayMonth,r=re(),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,p=[];if(!o)return s.jsx(s.Fragment,{});if(!a)return s.jsx(s.Fragment,{});for(var v=o.getFullYear(),b=a.getFullYear(),g=v;g<=b;g++)p.push(Ja(Ba(new Date),g));var m=function(y){var x=Ja(we(n),Number(y.target.value));e.onChange(x)},w=(t=d?.Dropdown)!==null&&t!==void 0?t:ns;return s.jsx(w,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:m,value:n.getFullYear(),caption:u(n,{locale:i}),children:p.map(function(y){return s.jsx("option",{value:y.getFullYear(),children:u(y,{locale:i})},y.getFullYear())})})}function Ah(e,t){var n=k.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&&Ht(a,o)<0){var d=-1*(c-1);o=Ee(a,d)}return i&&Ht(o,i)<0&&(o=i),we(o)}function Ph(){var e=re(),t=kh(e),n=Ah(t,e.month),r=n[0],o=n[1],a=function(i){var l;if(!e.disableNavigation){var c=we(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=we(e),a=we(Ee(o,r)),i=Ht(a,o),l=[],c=0;c<i;c++){var d=Ee(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=we(e);if(!n)return Ee(l,i);var c=Ht(n,e);if(!(c<a))return Ee(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=we(e);if(!n)return Ee(l,-i);var c=Ht(l,n);if(!(c<=0))return Ee(l,-i)}}var rs=k.createContext(void 0);function Th(e){var t=re(),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(p){return Er(f,p)})},d=function(f,p){c(f)||(p&&Za(f,p)?o(Ee(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(rs.Provider,{value:u,children:e.children})}function jt(){var e=k.useContext(rs);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function os(e){var t,n=re(),r=n.classNames,o=n.styles,a=n.components,i=jt().goToMonth,l=function(u){i(Ee(u,e.displayIndex?-e.displayIndex:0))},c=(t=a?.CaptionLabel)!==null&&t!==void 0?t:ts,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",V({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",V({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 An=k.forwardRef(function(e,t){var n=re(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),l=V(V({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),s.jsx("button",V({},e,{ref:t,type:"button",className:i,style:l}))});function Ih(e){var t,n,r=re(),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 p=d(e.previousMonth,{locale:a}),v=[i.nav_button,i.nav_button_previous].join(" "),b=u(e.nextMonth,{locale:a}),g=[i.nav_button,i.nav_button_next].join(" "),m=(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(An,{name:"previous-month","aria-label":p,className:v,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?s.jsx(m,{className:i.nav_icon,style:l.nav_icon}):s.jsx(w,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&s.jsx(An,{name:"next-month","aria-label":b,className:g,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(m,{className:i.nav_icon,style:l.nav_icon})})]})}function as(e){var t=re().numberOfMonths,n=jt(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,l=i.findIndex(function(b){return Er(e.displayMonth,b)}),c=l===0,d=l===i.length-1,u=t>1&&(c||!d),f=t>1&&(d||!c),p=function(){r&&a(r)},v=function(){o&&a(o)};return s.jsx(Ih,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:p,onNextClick:v})}function Lh(e){var t,n=re(),r=n.classNames,o=n.disableNavigation,a=n.styles,i=n.captionLayout,l=n.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:ts,d;return o?d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?d=s.jsx(os,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?d=s.jsxs(s.Fragment,{children:[s.jsx(os,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),s.jsx(as,{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(as,{displayMonth:e.displayMonth,id:e.id})]}),s.jsx("div",{className:r.caption,style:a.caption,children:d})}function Fh(e){var t=re(),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?ct(new Date):Fe(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=ve(r,a);o.push(i)}return o}function zh(){var e=re(),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 Bh(){var e,t=re(),n=t.classNames,r=t.styles,o=t.components,a=(e=o?.HeadRow)!==null&&e!==void 0?e:zh;return s.jsx("thead",{style:r.head,className:n.head,children:s.jsx(a,{})})}function $h(e){var t=re(),n=t.locale,r=t.formatters.formatDay;return s.jsx(s.Fragment,{children:r(e.date,{locale:n})})}var Tr=k.createContext(void 0);function Hh(e){if(!Vt(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return s.jsx(Tr.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 p,v;(p=t.onDayClick)===null||p===void 0||p.call(t,d,u,f);var b=!!(u.selected&&o&&r?.length===o);if(!b){var g=!!(!u.selected&&a&&r?.length===a);if(!g){var m=r?Ra([],r):[];if(u.selected){var w=m.findIndex(function(y){return ye(d,y)});m.splice(w,1)}else m.push(d);(v=t.onSelect)===null||v===void 0||v.call(t,m,d,u,f)}}},l={disabled:[]};r&&l.disabled.push(function(d){var u=a&&r.length>a-1,f=r.some(function(p){return ye(p,d)});return!!(u&&!f)});var c={selected:r,onDayClick:i,modifiers:l};return s.jsx(Tr.Provider,{value:c,children:n})}function Dr(){var e=k.useContext(Tr);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?ye(o,e)&&ye(r,e)?void 0:ye(o,e)?{from:o,to:void 0}:ye(r,e)?void 0:Pr(r,e)?{from:e,to:o}:{from:r,to:e}:o?Pr(e,o)?{from:o,to:e}:{from:e,to:o}:r?Za(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Or=k.createContext(void 0);function jh(e){if(!Yt(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return s.jsx(Or.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(v,b,g){var m,w;(m=t.onDayClick)===null||m===void 0||m.call(t,v,b,g);var y=Yh(v,r);(w=t.onSelect)===null||w===void 0||w.call(t,y,v,b,g)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],i?(u.range_end=[i],ye(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:_r(a,l-1),before:ve(a,l-1)}),a&&i&&u.disabled.push({after:a,before:ve(a,l-1)}),!a&&i&&u.disabled.push({after:_r(i,l-1),before:ve(i,l-1)})),c){if(a&&!i&&(u.disabled.push({before:ve(a,-c+1)}),u.disabled.push({after:ve(a,c-1)})),a&&i){var f=We(i,a)+1,p=c-f;u.disabled.push({before:_r(a,p)}),u.disabled.push({after:ve(i,p)})}!a&&i&&(u.disabled.push({before:ve(i,-c+1)}),u.disabled.push({after:ve(i,c-1)}))}return s.jsx(Or.Provider,{value:{selected:r,onDayClick:d,modifiers:u},children:n})}function Ir(){var e=k.useContext(Or);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function kn(e){return Array.isArray(e)?Ra([],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]=kn(o)}),t}var Me;(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"})(Me||(Me={}));var Kh=Me.Selected,Ue=Me.Disabled,Qh=Me.Hidden,qh=Me.Today,Lr=Me.RangeEnd,Fr=Me.RangeMiddle,Wr=Me.RangeStart,Xh=Me.Outside;function Zh(e,t,n){var r,o=(r={},r[Kh]=kn(e.selected),r[Ue]=kn(e.disabled),r[Qh]=kn(e.hidden),r[qh]=[e.today],r[Lr]=[],r[Fr]=[],r[Wr]=[],r[Xh]=[],r);return e.fromDate&&o[Ue].push({before:e.fromDate}),e.toDate&&o[Ue].push({after:e.toDate}),Vt(e)?o[Ue]=o[Ue].concat(t.modifiers[Ue]):Yt(e)&&(o[Ue]=o[Ue].concat(n.modifiers[Ue]),o[Wr]=n.modifiers[Wr],o[Fr]=n.modifiers[Fr],o[Lr]=n.modifiers[Lr]),o}var ss=k.createContext(void 0);function Jh(e){var t=re(),n=Dr(),r=Ir(),o=Zh(t,n,r),a=Uh(t.modifiers),i=V(V({},o),a);return s.jsx(ss.Provider,{value:i,children:e.children})}function is(){var e=k.useContext(ss);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=We(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var i=We(e,r)>=0&&We(o,e)>=0;return i}return o?ye(o,e):r?ye(r,e):!1}function ap(e){return Sr(e)}function sp(e){return Array.isArray(e)&&e.every(Sr)}function ip(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(ap(n))return ye(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=We(n.before,e),o=We(n.after,e),a=r>0,i=o<0,l=Pr(n.before,n.after);return l?i&&a:a||i}return tp(n)?We(e,n.after)>0:np(n)?We(n.before,e)>0:typeof n=="function"?n(e):!1})}function zr(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&&!Er(e,n)&&(o.outside=!0),o}function lp(e,t){for(var n=we(e[0]),r=Ar(e[e.length-1]),o,a,i=n;i<=r;){var l=zr(i,t),c=!l.disabled&&!l.hidden;if(!c){i=ve(i,1);continue}if(l.selected)return i;l.today&&!a&&(a=i),o||(o=i),i=ve(i,1)}return a||o}var cp=365;function ls(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,p={day:ve,week:Nr,month:Ee,year:Su,startOfWeek:function(m){return o.ISOWeek?ct(m):Fe(m,{locale:f,weekStartsOn:c})},endOfWeek:function(m){return o.ISOWeek?$a(m):kr(m,{locale:f,weekStartsOn:c})}},v=p[n](e,r==="after"?1:-1);r==="before"&&d?v=Au([d,v]):r==="after"&&u&&(v=ku([u,v]));var b=!0;if(a){var g=zr(v,a);b=!g.disabled&&!g.hidden}return b?v:l.count>cp?l.lastFocused:ls(v,{moveBy:n,direction:r,context:o,modifiers:a,retry:V(V({},l),{count:l.count+1})})}var cs=k.createContext(void 0);function dp(e){var t=jt(),n=is(),r=k.useState(),o=r[0],a=r[1],i=k.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)},p=function(m){a(m)},v=re(),b=function(m,w){if(o){var y=ls(o,{moveBy:m,direction:w,context:v,modifiers:n});ye(o,y)||(t.goToDate(y,o),p(y))}},g={focusedDay:o,focusTarget:u,blur:f,focus:p,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(cs.Provider,{value:g,children:e.children})}function Br(){var e=k.useContext(cs);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function up(e,t){var n=is(),r=zr(e,n,t);return r}var $r=k.createContext(void 0);function fp(e){if(!Sn(e.initialProps)){var t={selected:void 0};return s.jsx($r.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($r.Provider,{value:o,children:n})}function ds(){var e=k.useContext($r);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function pp(e,t){var n=re(),r=ds(),o=Dr(),a=Ir(),i=Br(),l=i.focusDayAfter,c=i.focusDayBefore,d=i.focusWeekAfter,u=i.focusWeekBefore,f=i.blur,p=i.focus,v=i.focusMonthBefore,b=i.focusMonthAfter,g=i.focusYearBefore,m=i.focusYearAfter,w=i.focusStartOfWeek,y=i.focusEndOfWeek,x=function(E){var C,Q,se,he;Sn(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,E):Vt(n)?(Q=o.onDayClick)===null||Q===void 0||Q.call(o,e,t,E):Yt(n)?(se=a.onDayClick)===null||se===void 0||se.call(a,e,t,E):(he=n.onDayClick)===null||he===void 0||he.call(n,e,t,E)},N=function(E){var C;p(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,E)},S=function(E){var C;f(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,E)},M=function(E){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,E)},_=function(E){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,E)},A=function(E){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,E)},B=function(E){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,E)},$=function(E){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,E)},H=function(E){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,E)},G=function(E){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,E)},D=function(E){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,E)},W=function(E){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,E)},Y=function(E){var C;switch(E.key){case"ArrowLeft":E.preventDefault(),E.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":E.preventDefault(),E.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":E.preventDefault(),E.stopPropagation(),d();break;case"ArrowUp":E.preventDefault(),E.stopPropagation(),u();break;case"PageUp":E.preventDefault(),E.stopPropagation(),E.shiftKey?g():v();break;case"PageDown":E.preventDefault(),E.stopPropagation(),E.shiftKey?m():b();break;case"Home":E.preventDefault(),E.stopPropagation(),w();break;case"End":E.preventDefault(),E.stopPropagation(),y();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,E)},z={onClick:x,onFocus:N,onBlur:S,onKeyDown:Y,onKeyUp:W,onMouseEnter:M,onMouseLeave:_,onPointerEnter:A,onPointerLeave:B,onTouchCancel:$,onTouchEnd:H,onTouchMove:G,onTouchStart:D};return z}function gp(){var e=re(),t=ds(),n=Dr(),r=Ir(),o=Sn(e)?t.selected:Vt(e)?n.selected:Yt(e)?r.selected:void 0;return o}function mp(e){return Object.values(Me).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=V({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=V(V({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function yp(e,t,n){var r,o,a,i=re(),l=Br(),c=up(e,t),d=pp(e,c),u=gp(),f=!!(i.onDayClick||i.mode!=="default");k.useEffect(function(){var M;c.outside||l.focusedDay&&f&&ye(l.focusedDay,e)&&((M=n.current)===null||M===void 0||M.focus())},[l.focusedDay,e,n,f,c.outside]);var p=vp(i,c).join(" "),v=bp(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),g=(a=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:$h,m=s.jsx(g,{date:e,displayMonth:t,activeModifiers:c}),w={style:v,className:p,children:m,role:"gridcell"},y=l.focusTarget&&ye(l.focusTarget,e)&&!c.outside,x=l.focusedDay&&ye(l.focusedDay,e),N=V(V(V({},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=k.useRef(null),n=yp(e.date,e.displayMonth,t);return n.isHidden?s.jsx("div",{role:"gridcell"}):n.isButton?s.jsx(An,V({name:"day",ref:t},n.buttonProps)):s.jsx("div",V({},n.divProps))}function xp(e){var t=e.number,n=e.dates,r=re(),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}),p=function(v){o(t,n,v)};return s.jsx(An,{name:"week-number","aria-label":f,className:i.weeknumber,style:a.weeknumber,onClick:p,children:u})}function Cp(e){var t,n,r=re(),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 us(e,t,n){for(var r=n?.ISOWeek?$a(t):kr(t,n),o=n?.ISOWeek?ct(e):Fe(e,n),a=We(r,o),i=[],l=0;l<=a;l++)i.push(ve(o,l));var c=i.reduce(function(d,u){var f=n?.ISOWeek?Ya(u):Ga(u,n),p=d.find(function(v){return v.weekNumber===f});return p?(p.dates.push(u),d):(d.push({weekNumber:f,dates:[u]}),d)},[]);return c}function Np(e,t){var n=us(we(e),Ar(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=Nr(a,6-r),l=us(Nr(a,1),i,t);n.push.apply(n,l)}}return n}function Sp(e){var t,n,r,o=re(),a=o.locale,i=o.classNames,l=o.styles,c=o.hideHead,d=o.fixedWeeks,u=o.components,f=o.weekStartsOn,p=o.firstWeekContainsDate,v=o.ISOWeek,b=Np(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:v,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),g=(t=u?.Head)!==null&&t!==void 0?t:Bh,m=(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(g,{}),s.jsx("tbody",{className:i.tbody,style:l.tbody,children:b.map(function(y){return s.jsx(m,{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()?k.useLayoutEffect:k.useEffect,Hr=!1,Pp=0;function fs(){return"react-day-picker-".concat(++Pp)}function Ep(e){var t,n=e??(Hr?fs():null),r=k.useState(n),o=r[0],a=r[1];return kp(function(){o===null&&a(fs())},[]),k.useEffect(function(){Hr===!1&&(Hr=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function _p(e){var t,n,r=re(),o=r.dir,a=r.classNames,i=r.styles,l=r.components,c=jt().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],p=i.month,v=e.displayIndex===0,b=e.displayIndex===c.length-1,g=!v&&!b;o==="rtl"&&(t=[v,b],b=t[0],v=t[1]),v&&(f.push(a.caption_start),p=V(V({},p),i.caption_start)),b&&(f.push(a.caption_end),p=V(V({},p),i.caption_end)),g&&(f.push(a.caption_between),p=V(V({},p),i.caption_between));var m=(n=l?.Caption)!==null&&n!==void 0?n:Lh;return s.jsxs("div",{className:f.join(" "),style:p,children:[s.jsx(m,{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=re(),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=re(),a=Br(),i=jt(),l=k.useState(!1),c=l[0],d=l[1];k.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=V(V({},o.styles.root),o.style),p=Object.keys(r).filter(function(b){return b.startsWith("data-")}).reduce(function(b,g){var m;return V(V({},b),(m={},m[g]=r[g],m))},{}),v=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Mp;return s.jsx("div",V({className:u.join(" "),style:f,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:s.jsx(v,{children:i.displayMonths.map(function(b,g){return s.jsx(_p,{displayIndex:g,displayMonth:b},g)})})}))}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,V({},e,{children:s.jsx(Tp,{initialProps:e})}))}function Vr({className:e,classNames:t,showOutsideDays:n=!0,...r}){const o=r.mode==="range";return s.jsx(Op,{locale:th,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:"cursor-not-allowed text-gray-300 opacity-40 hover:bg-transparent hover:text-gray-300",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(yn,{className:P("size-4",a),...i}),IconRight:({className:a,...i})=>s.jsx(wn,{className:P("size-4",a),...i})},...r})}function Gt({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:P("flex items-center justify-center bg-main-200",e),children:s.jsx(Bt,{className:P("text-main-500",n[t])})})}const Ip=lt("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 Ut({icon:e,children:t,size:n="caption2",weight:r="bold",className:o}){return s.jsxs("span",{className:P(Ip({hasIcon:!!e}),o),children:[e&&s.jsx(O,{size:n,weight:"medium",children:e}),s.jsx(O,{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 p=!!(r&&r.trim().length>0),v=a<=1?"개인":`${o} / ${a}`,b=d?"종료됨":c?"진행중":"모집중",g=d?"bg-gray-500":c?"bg-green-500":"bg-blue-500";return s.jsxs("div",{className:P("min-w-60 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-40 w-full overflow-hidden bg-gray-100 sm:h-52",children:[p?s.jsx("div",{className:"absolute inset-0",children:s.jsx(st,{src:r,alt:e,width:1200,height:800,className:"h-full w-full object-cover"})}):s.jsx(Gt,{className:"absolute inset-0",logoSize:"lg"}),p?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(Ut,{size:"caption2",weight:"bold",children:n??t}),s.jsx(Ut,{size:"caption2",weight:"bold",className:g,children:b})]})]}),s.jsxs("div",{className:"w-full bg-white px-4 py-4 sm:px-5 sm:py-5",children:[s.jsx(O,{size:"body1",weight:"bold",className:"line-clamp-2 min-h-12 text-gray-900 sm:text-2xl sm:min-h-[4.5rem]",children:e}),s.jsxs("div",{className:"mt-3 flex w-full items-center justify-between sm:mt-4",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(xt,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(O,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:t})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(wr,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(O,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:v})]})]}),s.jsxs(O,{size:"caption2",weight:"regular",className:"mt-2 text-gray-500 sm:mt-3 sm:text-base",children:[i," - ",l]})]})]})}function Fp({challengeTitle:e,challengeType:t,challengeCategory:n,challengeIcon:r,imageUrl:o,currentUserCount:a,maxUserCount:i,startDate:l,endDate:c,isOngoing:d,isEnded:u=!1,className:f,onClick:p}){const v=!!(o&&o.trim().length>0),b=i<=1,g=u?"종료됨":d?"진행중":"모집중",m=u?"bg-gray-500":d?"bg-green-500":"bg-blue-500";return s.jsxs("div",{className:P("flex gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:gap-4 sm:p-4",p&&"cursor-pointer",f),onClick:p,children:[s.jsx("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[120px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:-mb-4 sm:-ml-4 sm:-mt-4 sm:w-[140px]",children:v?s.jsx(st,{src:o,alt:e,width:96,height:96,className:"h-full w-full object-cover"}):s.jsx(Gt,{className:"h-full w-full",logoSize:"sm"})}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-1.5 sm:gap-2",children:[s.jsx(O,{as:"p",size:"caption1",weight:"bold",className:"truncate text-gray-900 sm:text-lg",children:e}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[n?s.jsx(Ut,{size:"caption3",weight:"medium",children:n}):null,s.jsx(Ut,{size:"caption3",weight:"bold",className:m,children:g})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[b?s.jsx(xt,{className:"h-3.5 w-3.5 text-gray-400"}):s.jsx(wr,{className:"h-3.5 w-3.5 text-gray-400"}),s.jsx(O,{size:"caption3",weight:"medium",className:"text-gray-500",children:b?"개인 목표":`고정 목표 · ${a} / ${i}`})]}),s.jsxs(O,{size:"caption3",weight:"regular",className:"hidden text-gray-400 sm:block",children:[l," – ",c]})]})]})}function Wp({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:p,"aria-label":v,...b}){const g=typeof r=="boolean",[m,w]=k.useState(o),y=g?r:m,x=n!==void 0,N=v??(typeof e=="string"||typeof e=="number"?String(e):void 0),S=M=>{if(u)return;const _=!y;g||w(_),a?.(_),f?.(M)};return s.jsxs("button",{type:"button",role:"checkbox","aria-checked":y,"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",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,...p},...b,children:[i?s.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",y?"border-main-800 bg-main-800 text-white":"border-gray-300 bg-white text-transparent"),children:s.jsx(wt,{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(O,{size:"heading1",weight:"bold",className:P("text-inherit",y?"text-main-800":"text-gray-600"),children:e}):e]})]})}function hs(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 ps(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 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 Pn="Checkbox",[zp]=Ae(Pn),[Bp,Yr]=zp(Pn);function $p(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,[p,v]=xe({prop:n,defaultProp:o??!1,onChange:c,caller:Pn}),[b,g]=h.useState(null),[m,w]=h.useState(null),y=h.useRef(!1),x=b?!!i||!!b.closest("form"):!0,N={checked:p,disabled:a,setChecked:v,control:b,setControl:g,name:l,form:i,value:u,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:Ze(o)?!1:o,isFormControl:x,bubbleInput:m,setBubbleInput:w};return s.jsx(Bp,{scope:t,...N,children:Hp(f)?f(N):r})}var gs="CheckboxTrigger",ms=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:p,isFormControl:v,bubbleInput:b}=Yr(gs,e),g=Z(o,u),m=h.useRef(c);return h.useEffect(()=>{const w=a?.form;if(w){const y=()=>f(m.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[a,f]),s.jsx(U.button,{type:"button",role:"checkbox","aria-checked":Ze(c)?"mixed":c,"aria-required":d,"data-state":xs(c),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:g,onKeyDown:j(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:j(n,w=>{f(y=>Ze(y)?!0:!y),b&&v&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})})});ms.displayName=gs;var jr=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($p,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:i,onCheckedChange:d,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:p})=>s.jsxs(s.Fragment,{children:[s.jsx(ms,{...f,ref:t,__scopeCheckbox:n}),p&&s.jsx(ws,{__scopeCheckbox:n})]})})});jr.displayName=Pn;var vs="CheckboxIndicator",bs=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Yr(vs,n);return s.jsx(Le,{present:r||Ze(a.checked)||a.checked===!0,children:s.jsx(U.span,{"data-state":xs(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});bs.displayName=vs;var ys="CheckboxBubbleInput",ws=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:p,setBubbleInput:v}=Yr(ys,e),b=Z(n,v),g=hs(a),m=ps(r);h.useEffect(()=>{const y=p;if(!y)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,M=!o.current;if(g!==a&&S){const _=new Event("click",{bubbles:M});y.indeterminate=Ze(a),S.call(y,Ze(a)?!1:a),y.dispatchEvent(_)}},[p,g,a,o]);const w=h.useRef(Ze(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,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ws.displayName=ys;function Hp(e){return typeof e=="function"}function Ze(e){return e==="indeterminate"}function xs(e){return Ze(e)?"indeterminate":e?"checked":"unchecked"}const Gr=h.forwardRef(({className:e,label:t,id:n,readOnly:r,...o},a)=>{const i=h.useId(),l=n||i;return s.jsxs("div",{className:P("flex items-center gap-2.5",r&&"pointer-events-none"),children:[s.jsx(jr,{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:s.jsx(bs,{className:P("flex items-center justify-center text-current"),children:s.jsx(wt,{className:"h-3 w-3",strokeWidth:13})})}),t&&s.jsx("label",{htmlFor:l,className:P("text-gray-900 select-none cursor-pointer","peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),children:s.jsx(O,{size:"body2",weight:"medium",children:t})})]})});Gr.displayName=jr.displayName;function Vp({options:e,value:t,onValueChange:n,className:r,readOnly:o=!1,disabled:a=!1}){const i=k.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:P("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,p=!f&&o,v=f||p,b=`${i}-${c.id}`;return s.jsxs("label",{htmlFor:b,"aria-disabled":v,onClick:g=>{v&&g.preventDefault()},className:P("flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",d>0&&"border-t border-gray-200",!v&&"cursor-pointer hover:bg-gray-100/70",f&&"cursor-not-allowed",p&&"cursor-default hover:cursor-not-allowed"),children:[s.jsx(Gr,{id:b,checked:u,disabled:f,onCheckedChange:g=>{v||g==="indeterminate"||l(c.id,g===!0)},className:P("h-5 w-5 rounded-1.5","data-[state=checked]:border-main-800 data-[state=checked]:bg-main-800",p&&"cursor-default hover:cursor-not-allowed")}),typeof c.label=="string"||typeof c.label=="number"?s.jsx(O,{size:"body1",weight:"medium",className:P("flex-1 transition-colors",u?"text-gray-900":"text-gray-600",f&&"text-gray-400"),children:c.label}):s.jsx("span",{className:P("flex-1",!u&&"text-gray-600",f&&"opacity-60"),children:c.label})]},c.id)})})}const Yp=lt("",{variants:{size:{sm:"w-11 h-11",lg:"w-30 h-30"}},defaultVariants:{size:"sm"}});function Ur({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,p=Math.min(Math.max(e,0),100),[v,b]=k.useState(0);k.useEffect(()=>{const w=requestAnimationFrame(()=>{b(p)});return()=>cancelAnimationFrame(w)},[p]);const g=f-f*v/100,m=P(Yp({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:g,className:m}),n&&s.jsx(O,{className:"absolute inset-0 flex items-center justify-center text-main-800",size:l[o],weight:"bold",children:`${p}%`})]})}function Je(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=Je(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",Kr="dismissableLayer.update",Up="dismissableLayer.pointerDownOutside",Kp="dismissableLayer.focusOutside",Cs,Ns=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kt=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,d=h.useContext(Ns),[u,f]=h.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=h.useState({}),b=Z(t,_=>f(_)),g=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(m),y=u?g.indexOf(u):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,S=Xp(_=>{const A=_.target,B=[...d.branches].some($=>$.contains(A));!N||B||(o?.(_),i?.(_),_.defaultPrevented||l?.())},p),M=Zp(_=>{const A=_.target;[...d.branches].some($=>$.contains(A))||(a?.(_),i?.(_),_.defaultPrevented||l?.())},p);return jp(_=>{y===d.layers.size-1&&(r?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},p),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Cs=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Ss(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Cs)}},[u,p,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Ss())},[u,d]),h.useEffect(()=>{const _=()=>v({});return document.addEventListener(Kr,_),()=>document.removeEventListener(Kr,_)},[]),s.jsx(U.div,{...c,ref:b,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,S.onPointerDownCapture)})});Kt.displayName=Gp;var Qp="DismissableLayerBranch",qp=h.forwardRef((e,t)=>{const n=h.useContext(Ns),r=h.useRef(null),o=Z(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=Qp;function Xp(e,t=globalThis?.document){const n=Je(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},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 Zp(e,t=globalThis?.document){const n=Je(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(Kr);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?Nc(o,a):o.dispatchEvent(a)}var Qr=0;function qr(){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()),Qr++,()=>{Qr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qr--}},[])}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 Xr="focusScope.autoFocusOnMount",Zr="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},Jp="FocusScope",En=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,c]=h.useState(null),d=Je(o),u=Je(a),f=h.useRef(null),p=Z(t,g=>c(g)),v=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(x){if(v.paused||!l)return;const N=x.target;l.contains(N)?f.current=N:Re(f.current,{select:!0})},m=function(x){if(v.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||Re(f.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Re(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",m);const y=new MutationObserver(w);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",m),y.disconnect()}}},[r,l,v.paused]),h.useEffect(()=>{if(l){Ms.add(v);const g=document.activeElement;if(!l.contains(g)){const w=new CustomEvent(Xr,Ps);l.addEventListener(Xr,d),l.dispatchEvent(w),w.defaultPrevented||(Rp(og(Es(l)),{select:!0}),document.activeElement===g&&Re(l))}return()=>{l.removeEventListener(Xr,d),setTimeout(()=>{const w=new CustomEvent(Zr,Ps);l.addEventListener(Zr,u),l.dispatchEvent(w),w.defaultPrevented||Re(g??document.body,{select:!0}),l.removeEventListener(Zr,u),Ms.remove(v)},0)}}},[l,d,u,v]);const b=h.useCallback(g=>{if(!n&&!r||v.paused)return;const m=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(m&&w){const y=g.currentTarget,[x,N]=eg(y);x&&N?!g.shiftKey&&w===N?(g.preventDefault(),n&&Re(x,{select:!0})):g.shiftKey&&w===x&&(g.preventDefault(),n&&Re(N,{select:!0})):w===y&&g.preventDefault()}},[n,r,v.paused]);return s.jsx(U.div,{tabIndex:-1,...i,ref:p,onKeyDown:b})});En.displayName=Jp;function Rp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Re(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 Re(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ng(e)&&t&&e.select()}}var Ms=rg();function rg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ts(e,t),e.unshift(t)},remove(t){e=Ts(e,t),e[0]?.resume()}}}function Ts(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"],et=Math.min,Ce=Math.max,_n=Math.round,Mn=Math.floor,$e=e=>({x:e,y:e}),sg={left:"right",right:"left",bottom:"top",top:"bottom"},ig={start:"end",end:"start"};function Jr(e,t,n){return Ce(e,et(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Qe(e){return e.split("-")[0]}function kt(e){return e.split("-")[1]}function Rr(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}const lg=new Set(["top","bottom"]);function He(e){return lg.has(Qe(e))?"y":"x"}function to(e){return Rr(He(e))}function cg(e,t,n){n===void 0&&(n=!1);const r=kt(e),o=to(e),a=eo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Tn(i)),[i,Tn(i)]}function dg(e){const t=Tn(e);return[no(e),t,no(t)]}function no(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=kt(e);let a=hg(Qe(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(no)))),a}function Tn(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 Dn(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=He(t),i=to(t),l=eo(i),c=Qe(t),d=a==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:u,y:r.y-o.height};break;case"bottom":v={x:u,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(kt(t)){case"start":v[i]-=p*(n&&d?-1:1);break;case"end":v[i]+=p*(n&&d?-1:1);break}return v}const mg=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}=Ls(d,r,c),p=r,v={},b=0;for(let g=0;g<l.length;g++){const{name:m,fn:w}=l[g],{x:y,y:x,data:N,reset:S}=await w({x:u,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:d,platform:i,elements:{reference:e,floating:t}});u=y??u,f=x??f,v={...v,[m]:{...v[m],...N}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=Ls(d,p,c)),g=-1)}return{x:u,y:f,placement:p,strategy:o,middlewareData:v}};async function Qt(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:p=!1,padding:v=0}=Ke(t,e),b=Is(v),m=l[p?f==="floating"?"reference":"floating":f],w=Dn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.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=Dn(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 vg=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}=Ke(e,t)||{};if(d==null)return{};const f=Is(u),p={x:n,y:r},v=to(o),b=eo(v),g=await i.getDimensions(d),m=v==="y",w=m?"top":"left",y=m?"bottom":"right",x=m?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[v]-p[v]-a.floating[b],S=p[v]-a.reference[v],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let _=M?M[x]:0;(!_||!await(i.isElement==null?void 0:i.isElement(M)))&&(_=l.floating[x]||a.floating[b]);const A=N/2-S/2,B=_/2-g[b]/2-1,$=et(f[w],B),H=et(f[y],B),G=$,D=_-g[b]-H,W=_/2-g[b]/2+A,Y=Jr(G,W,D),z=!c.arrow&&kt(o)!=null&&W!==Y&&a.reference[b]/2-(W<G?$:H)-g[b]/2<0,E=z?W<G?W-G:W-D:0;return{[v]:p[v]+E,data:{[v]:Y,centerOffset:W-Y-E,...z&&{alignmentOffset:E}},reset:z}}}),bg=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:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=Ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Qe(o),y=He(l),x=Qe(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=p||(x||!g?[Tn(l)]:dg(l)),M=b!=="none";!p&&M&&S.push(...pg(l,g,b,N));const _=[l,...S],A=await Qt(t,m),B=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&B.push(A[w]),f){const W=cg(o,i,N);B.push(A[W[0]],A[W[1]])}if($=[...$,{placement:o,overflows:B}],!B.every(W=>W<=0)){var H,G;const W=(((H=a.flip)==null?void 0:H.index)||0)+1,Y=_[W];if(Y&&(!(f==="alignment"?y!==He(Y):!1)||$.every(C=>He(C.placement)===y?C.overflows[0]>0:!0)))return{data:{index:W,overflows:$},reset:{placement:Y}};let z=(G=$.filter(E=>E.overflows[0]<=0).sort((E,C)=>E.overflows[1]-C.overflows[1])[0])==null?void 0:G.placement;if(!z)switch(v){case"bestFit":{var D;const E=(D=$.filter(C=>{if(M){const Q=He(C.placement);return Q===y||Q==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(Q=>Q>0).reduce((Q,se)=>Q+se,0)]).sort((C,Q)=>C[1]-Q[1])[0])==null?void 0:D[0];E&&(z=E);break}case"initialPlacement":z=l;break}if(o!==z)return{reset:{placement:z}}}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}=Ke(e,t);switch(r){case"referenceHidden":{const a=await Qt(t,{...o,elementContext:"reference"}),i=Fs(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ws(i)}}}case"escaped":{const a=await Qt(t,{...o,altBoundary:!0}),i=Fs(a,n.floating);return{data:{escapedOffsets:i,escaped:Ws(i)}}}default:return{}}}}},zs=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)),i=Qe(n),l=kt(n),c=He(n)==="y",d=zs.has(i)?-1:1,u=a&&c?-1:1,f=Ke(t,e);let{mainAxis:p,crossAxis:v,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"&&(v=l==="end"?b*-1:b),c?{x:v*u,y:p*d}:{x:p*d,y:v*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:i,middlewareData:l}=t,c=await wg(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}}}}},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:i=!1,limiter:l={fn:m=>{let{x:w,y}=m;return{x:w,y}}},...c}=Ke(e,t),d={x:n,y:r},u=await Qt(t,c),f=He(Qe(o)),p=Rr(f);let v=d[p],b=d[f];if(a){const m=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=v+u[m],x=v-u[w];v=Jr(y,v,x)}if(i){const m=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=b+u[m],x=b-u[w];b=Jr(y,b,x)}const g=l.fn({...t,[p]:v,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[f]:i}}}}}},Ng=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}=Ke(e,t),u={x:n,y:r},f=He(o),p=Rr(f);let v=u[p],b=u[f];const g=Ke(l,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const x=p==="y"?"height":"width",N=a.reference[p]-a.floating[x]+m.mainAxis,S=a.reference[p]+a.reference[x]-m.mainAxis;v<N?v=N:v>S&&(v=S)}if(d){var w,y;const x=p==="y"?"width":"height",N=zs.has(Qe(o)),S=a.reference[f]-a.floating[x]+(N&&((w=i.offset)==null?void 0:w[f])||0)+(N?0:m.crossAxis),M=a.reference[f]+a.reference[x]+(N?0:((y=i.offset)==null?void 0:y[f])||0)-(N?m.crossAxis:0);b<S?b=S:b>M&&(b=M)}return{[p]:v,[f]:b}}}},Sg=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}=Ke(e,t),u=await Qt(t,d),f=Qe(o),p=kt(o),v=He(o)==="y",{width:b,height:g}=a.floating;let m,w;f==="top"||f==="bottom"?(m=f,w=p===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,m=p==="end"?"top":"bottom");const y=g-u.top-u.bottom,x=b-u.left-u.right,N=et(g-u[m],y),S=et(b-u[w],x),M=!t.middlewareData.shift;let _=N,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),M&&!p){const $=Ce(u.left,0),H=Ce(u.right,0),G=Ce(u.top,0),D=Ce(u.bottom,0);v?A=b-2*($!==0||H!==0?$+H:Ce(u.left,u.right)):_=g-2*(G!==0||D!==0?G+D:Ce(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:_});const B=await i.getDimensions(l.floating);return b!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function On(){return typeof window<"u"}function Pt(e){return Bs(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ve(e){var t;return(t=(Bs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bs(e){return On()?e instanceof Node||e instanceof Ne(e).Node:!1}function Te(e){return On()?e instanceof Element||e instanceof Ne(e).Element:!1}function Ye(e){return On()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function $s(e){return!On()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}const Ag=new Set(["inline","contents"]);function qt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(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(Pt(e))}const Eg=[":popover-open",":modal"];function In(e){return Eg.some(t=>{try{return e.matches(t)}catch{return!1}})}const _g=["transform","translate","scale","rotate","perspective"],Mg=["transform","translate","scale","rotate","perspective","filter"],Tg=["paint","layout","strict","content"];function ro(e){const t=oo(),n=Te(e)?De(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)||Mg.some(r=>(n.willChange||"").includes(r))||Tg.some(r=>(n.contain||"").includes(r))}function Dg(e){let t=tt(e);for(;Ye(t)&&!Et(t);){if(ro(t))return t;if(In(t))return null;t=tt(t)}return null}function oo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Og=new Set(["html","body","#document"]);function Et(e){return Og.has(Pt(e))}function De(e){return Ne(e).getComputedStyle(e)}function Ln(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tt(e){if(Pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$s(e)&&e.host||Ve(e);return $s(t)?t.host:t}function Hs(e){const t=tt(e);return Et(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&qt(t)?t:Hs(t)}function Xt(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),i=Ne(o);if(a){const l=ao(i);return t.concat(i,i.visualViewport||[],qt(o)?o:[],l&&n?Xt(l):[])}return t.concat(o,Xt(o,[],n))}function ao(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vs(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ye(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=_n(n)!==a||_n(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function so(e){return Te(e)?e:e.contextElement}function _t(e){const t=so(e);if(!Ye(t))return $e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Vs(t);let i=(a?_n(n.width):n.width)/r,l=(a?_n(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ig=$e(0);function Ys(e){const t=Ne(e);return!oo()||!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!==Ne(e)?!1:t}function ut(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=so(e);let i=$e(1);t&&(r?Te(r)&&(i=_t(r)):i=_t(e));const l=Lg(a,n,r)?Ys(a):$e(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 p=Ne(a),v=r&&Te(r)?Ne(r):r;let b=p,g=ao(b);for(;g&&r&&v!==b;){const m=_t(g),w=g.getBoundingClientRect(),y=De(g),x=w.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,N=w.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;c*=m.x,d*=m.y,u*=m.x,f*=m.y,c+=x,d+=N,b=Ne(g),g=ao(b)}}return Dn({width:u,height:f,x:c,y:d})}function Fn(e,t){const n=Ln(e).scrollLeft;return t?t.left+n:ut(Ve(e)).left+n}function js(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fn(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",i=Ve(r),l=t?In(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=$e(1);const u=$e(0),f=Ye(r);if((f||!f&&!a)&&((Pt(r)!=="body"||qt(i))&&(c=Ln(r)),Ye(r))){const v=ut(r);d=_t(r),u.x=v.x+r.clientLeft,u.y=v.y+r.clientTop}const p=i&&!f&&!a?js(i,c):$e(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+p.x,y:n.y*d.y-c.scrollTop*d.y+u.y+p.y}}function Wg(e){return Array.from(e.getClientRects())}function zg(e){const t=Ve(e),n=Ln(e),r=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Fn(e);const l=-n.scrollTop;return De(r).direction==="rtl"&&(i+=Ce(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Gs=25;function Bg(e,t){const n=Ne(e),r=Ve(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=oo();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=Fn(r);if(d<=0){const u=r.ownerDocument,f=u.body,p=getComputedStyle(f),v=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-v);b<=Gs&&(a-=b)}else d<=Gs&&(a+=d);return{width:a,height:i,x:l,y:c}}const $g=new Set(["absolute","fixed"]);function Hg(e,t){const n=ut(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ye(e)?_t(e):$e(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 Us(e,t,n){let r;if(t==="viewport")r=Bg(e,n);else if(t==="document")r=zg(Ve(e));else if(Te(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 Dn(r)}function Ks(e,t){const n=tt(e);return n===t||!Te(n)||Et(n)?!1:De(n).position==="fixed"||Ks(n,t)}function Vg(e,t){const n=t.get(e);if(n)return n;let r=Xt(e,[],!1).filter(l=>Te(l)&&Pt(l)!=="body"),o=null;const a=De(e).position==="fixed";let i=a?tt(e):e;for(;Te(i)&&!Et(i);){const l=De(i),c=ro(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&$g.has(o.position)||qt(i)&&!c&&Ks(e,i))?r=r.filter(u=>u!==i):o=l,i=tt(i)}return t.set(e,r),r}function Yg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?In(t)?[]:Vg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,u)=>{const f=Us(t,u,o);return d.top=Ce(f.top,d.top),d.right=et(f.right,d.right),d.bottom=et(f.bottom,d.bottom),d.left=Ce(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=Ye(t),o=Ve(t),a=n==="fixed",i=ut(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=$e(0);function d(){c.x=Fn(o)}if(r||!r&&!a)if((Pt(t)!=="body"||qt(o))&&(l=Ln(t)),r){const v=ut(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&d();a&&!r&&o&&d();const u=o&&!r&&!a?js(o,l):$e(0),f=i.left+l.scrollLeft-c.x-u.x,p=i.top+l.scrollTop-c.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function io(e){return De(e).position==="static"}function Qs(e,t){if(!Ye(e)||De(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ve(e)===n&&(n=n.ownerDocument.body),n}function qs(e,t){const n=Ne(e);if(In(e))return n;if(!Ye(e)){let o=tt(e);for(;o&&!Et(o);){if(Te(o)&&!io(o))return o;o=tt(o)}return n}let r=Qs(e,t);for(;r&&Pg(r)&&io(r);)r=Qs(r,t);return r&&Et(r)&&io(r)&&!ro(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 De(e).direction==="rtl"}const Qg={convertOffsetParentRelativeRectToViewportRelativeRect:Fg,getDocumentElement:Ve,getClippingRect:Yg,getOffsetParent:qs,getElementRects:Ug,getClientRects:Wg,getDimensions:jg,getScale:_t,isElement:Te,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=Ve(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:p,height:v}=d;if(l||t(),!p||!v)return;const b=Mn(f),g=Mn(o.clientWidth-(u+p)),m=Mn(o.clientHeight-(f+v)),w=Mn(u),x={rootMargin:-b+"px "+-g+"px "+-m+"px "+-w+"px",threshold:Ce(0,et(1,c))||1};let N=!0;function S(M){const _=M[0].intersectionRatio;if(_!==c){if(!N)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!Xs(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 Xg(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=so(e),u=o||a?[...d?Xt(d):[],...Xt(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 p=-1,v=null;i&&(v=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),d&&!c&&v.observe(d),v.observe(t));let b,g=c?ut(e):null;c&&m();function m(){const w=ut(e);g&&!Xs(g,w)&&n(),g=w,b=requestAnimationFrame(m)}return n(),()=>{var w;u.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f?.(),(w=v)==null||w.disconnect(),v=null,c&&cancelAnimationFrame(b)}}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(){},Wn=om?k.useLayoutEffect:am;function zn(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(!zn(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)&&!zn(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 lo(e){const t=h.useRef(e);return Wn(()=>{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:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=h.useState(r);zn(p,r)||v(r);const[b,g]=h.useState(null),[m,w]=h.useState(null),y=h.useCallback(C=>{C!==M.current&&(M.current=C,g(C))},[]),x=h.useCallback(C=>{C!==_.current&&(_.current=C,w(C))},[]),N=a||b,S=i||m,M=h.useRef(null),_=h.useRef(null),A=h.useRef(u),B=c!=null,$=lo(c),H=lo(o),G=lo(d),D=h.useCallback(()=>{if(!M.current||!_.current)return;const C={placement:t,strategy:n,middleware:p};H.current&&(C.platform=H.current),rm(M.current,_.current,C).then(Q=>{const se={...Q,isPositioned:G.current!==!1};W.current&&!zn(A.current,se)&&(A.current=se,an.flushSync(()=>{f(se)}))})},[p,t,n,H,G]);Wn(()=>{d===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[d]);const W=h.useRef(!1);Wn(()=>(W.current=!0,()=>{W.current=!1}),[]),Wn(()=>{if(N&&(M.current=N),S&&(_.current=S),N&&S){if($.current)return $.current(N,S,D);D()}},[N,S,D,$,B]);const Y=h.useMemo(()=>({reference:M,floating:_,setReference:y,setFloating:x}),[y,x]),z=h.useMemo(()=>({reference:N,floating:S}),[N,S]),E=h.useMemo(()=>{const C={position:n,left:0,top:0};if(!z.floating)return C;const Q=Rs(z.floating,u.x),se=Rs(z.floating,u.y);return l?{...C,transform:"translate("+Q+"px, "+se+"px)",...Js(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:se}},[n,l,z.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:D,refs:Y,elements:z,floatingStyles:E}),[u,D,Y,z,E])}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 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"})})});ei.displayName=gm;var mm=ei,co="Popper",[ti,Mt]=Ae(co),[vm,ni]=ti(co),ri=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return s.jsx(vm,{scope:t,anchor:r,onAnchorChange:o,children:n})};ri.displayName=co;var oi="PopperAnchor",ai=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ni(oi,n),i=h.useRef(null),l=Z(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})});ai.displayName=oi;var uo="PopperContent",[bm,ym]=ti(uo),si=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:p=!1,updatePositionStrategy:v="optimized",onPlaced:b,...g}=e,m=ni(uo,n),[w,y]=h.useState(null),x=Z(t,I=>y(I)),[N,S]=h.useState(null),M=ps(N),_=M?.width??0,A=M?.height??0,B=r+(a!=="center"?"-"+a:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},H=Array.isArray(d)?d:[d],G=H.length>0,D={padding:$,boundary:H.filter(xm),altBoundary:G},{refs:W,floatingStyles:Y,placement:z,isPositioned:E,middlewareData:C}=sm({strategy:"fixed",placement:B,whileElementsMounted:(...I)=>Xg(...I,{animationFrame:v==="always"}),elements:{reference:m.anchor},middleware:[lm({mainAxis:o+A,alignmentAxis:i}),c&&cm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?dm():void 0,...D}),c&&um({...D}),fm({...D,apply:({elements:I,rects:te,availableWidth:ae,availableHeight:X})=>{const{width:J,height:ne}=te.reference,q=I.floating.style;q.setProperty("--radix-popper-available-width",`${ae}px`),q.setProperty("--radix-popper-available-height",`${X}px`),q.setProperty("--radix-popper-anchor-width",`${J}px`),q.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),N&&pm({element:N,padding:l}),Cm({arrowWidth:_,arrowHeight:A}),p&&hm({strategy:"referenceHidden",...D})]}),[Q,se]=ci(z),he=Je(b);fe(()=>{E&&he?.()},[E,he]);const Se=C.arrow?.x,ie=C.arrow?.y,oe=C.arrow?.centerOffset!==0,[ge,me]=h.useState();return fe(()=>{w&&me(window.getComputedStyle(w).zIndex)},[w]),s.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:E?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(bm,{scope:n,placedSide:Q,onArrowChange:S,arrowX:Se,arrowY:ie,shouldHideArrow:oe,children:s.jsx(U.div,{"data-side":Q,"data-align":se,...g,ref:x,style:{...g.style,animation:E?void 0:"none"}})})})});si.displayName=uo;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),i=wm[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(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,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,u]=ci(n),f={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+l/2,v=(o.arrow?.y??0)+c/2;let b="",g="";return d==="bottom"?(b=i?f:`${p}px`,g=`${-c}px`):d==="top"?(b=i?f:`${p}px`,g=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,g=i?f:`${v}px`):d==="left"&&(b=`${r.floating.width+c}px`,g=i?f:`${v}px`),{data:{x:b,y:g}}}});function ci(e){const[t,n="center"]=e.split("-");return[t,n]}var fo=ri,Bn=ai,ho=si,po=li,Nm="Portal",Zt=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=h.useState(!1);fe(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Vo.createPortal(s.jsx(U.div,{...r,ref:t}),i):null});Zt.displayName=Nm;var Sm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tt=new WeakMap,$n=new WeakMap,Hn={},go=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]);Hn[n]||(Hn[n]=new WeakMap);var a=Hn[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(p){if(l.has(p))u(p);else try{var v=p.getAttribute(r),b=v!==null&&v!=="false",g=(Tt.get(p)||0)+1,m=(a.get(p)||0)+1;Tt.set(p,g),a.set(p,m),i.push(p),g===1&&b&&$n.set(p,!0),m===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",p,w)}})};return u(t),l.clear(),go++,function(){i.forEach(function(f){var p=Tt.get(f)-1,v=a.get(f)-1;Tt.set(f,p),a.set(f,v),p||($n.has(f)||f.removeAttribute(r),$n.delete(f)),v||f.removeAttribute(n)}),go--,go||(Tt=new WeakMap,Tt=new WeakMap,$n=new WeakMap,Hn={})}},mo=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}},je=function(){return je=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},je.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 Vn="right-scroll-bar-position",Yn="width-before-scroll-bar",Em="with-scroll-bars-hidden",_m="--removed-body-scroll-bar-size";function vo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mm(e,t){var n=k.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 Tm=typeof window<"u"?h.useLayoutEffect:h.useEffect,fi=new WeakMap;function Dm(e,t){var n=Mm(null,function(r){return e.forEach(function(o){return vo(o,r)})});return Tm(function(){var r=fi.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(l){a.has(l)||vo(l,null)}),a.forEach(function(l){o.has(l)||vo(l,i)})}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 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 Lm(e){e===void 0&&(e={});var t=Im(null);return t.options=je({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,je({},n))};hi.isSideCarExport=!0;function Fm(e,t){return e.useMedium(t),hi}var pi=Lm(),bo=function(){},jn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:bo,onWheelCapture:bo,onTouchMoveCapture:bo}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,b=e.noIsolation,g=e.inert,m=e.allowPinchZoom,w=e.as,y=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=p,M=Dm([n,t]),_=je(je({},N),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:pi,removeScrollBar:d,shards:f,noRelative:v,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?h.cloneElement(h.Children.only(l),je(je({},_),{ref:M})):h.createElement(y,je({},_,{className:c,ref:M}),l))});jn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jn.classNames={fullWidth:Yn,zeroRight:Vn};var Wm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wm();return t&&e.setAttribute("nonce",t),e}function Bm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $m(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=zm())&&(Bm(t,n),$m(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},yo=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[yo(n),yo(r),yo(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(),Dt="data-scroll-locked",Km=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
2
  .`.concat(Em,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(l,"px ").concat(r,`;
5
5
  }
6
- body[`).concat(Tt,`] {
6
+ body[`).concat(Dt,`] {
7
7
  overflow: hidden `).concat(r,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -16,30 +16,30 @@
16
16
  `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat($n,` {
19
+ .`).concat(Vn,` {
20
20
  right: `).concat(l,"px ").concat(r,`;
21
21
  }
22
22
 
23
- .`).concat(Hn,` {
23
+ .`).concat(Yn,` {
24
24
  margin-right: `).concat(l,"px ").concat(r,`;
25
25
  }
26
26
 
27
- .`).concat($n," .").concat($n,` {
27
+ .`).concat(Vn," .").concat(Vn,` {
28
28
  right: 0 `).concat(r,`;
29
29
  }
30
30
 
31
- .`).concat(Hn," .").concat(Hn,` {
31
+ .`).concat(Yn," .").concat(Yn,` {
32
32
  margin-right: 0 `).concat(r,`;
33
33
  }
34
34
 
35
- body[`).concat(Tt,`] {
35
+ body[`).concat(Dt,`] {
36
36
  `).concat(_m,": ").concat(l,`px;
37
37
  }
38
- `)},mi=function(){var e=parseInt(document.body.getAttribute(Tt)||"0",10);return isFinite(e)?e:0},Qm=function(){h.useEffect(function(){return document.body.setAttribute(Tt,(mi()+1).toString()),function(){var e=mi()-1;e<=0?document.body.removeAttribute(Tt):document.body.setAttribute(Tt,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")})},yo=!1;if(typeof window<"u")try{var Yn=Object.defineProperty({},"passive",{get:function(){return yo=!0,!0}});window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch{yo=!1}var Dt=yo?{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),i=a[1],l=a[2];if(i>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),i=a*r,l=n.target,c=t.contains(l),d=!1,u=i>0,f=0,g=0;do{if(!l)break;var v=wi(e,l),b=v[0],p=v[1],m=v[2],w=p-m-a*b;(b||w)&&yi(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},jn=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
+ `)},mi=function(){var e=parseInt(document.body.getAttribute(Dt)||"0",10);return isFinite(e)?e:0},Qm=function(){h.useEffect(function(){return document.body.setAttribute(Dt,(mi()+1).toString()),function(){var e=mi()-1;e<=0?document.body.removeAttribute(Dt):document.body.setAttribute(Dt,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")})},wo=!1;if(typeof window<"u")try{var Gn=Object.defineProperty({},"passive",{get:function(){return wo=!0,!0}});window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{wo=!1}var Ot=wo?{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),i=a[1],l=a[2];if(i>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),i=a*r,l=n.target,c=t.contains(l),d=!1,u=i>0,f=0,p=0;do{if(!l)break;var v=wi(e,l),b=v[0],g=v[1],m=v[2],w=g-m-a*b;(b||w)&&yi(e,l)&&(f+=w,p+=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(p)<1)&&(d=!0),d},Un=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`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},av=0,Ot=[];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],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=Pm([e.lockRef.current],(e.shards||[]).map(Ci),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var w=jn(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,_=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in p&&_==="h"&&M.type==="range")return!1;var k=window.getSelection(),B=k&&k.anchorNode,Y=B?B===M||B.contains(M):!1;if(Y)return!1;var $=bi(_,M);if(!$)return!0;if($?S=_:(S=_==="v"?"h":"v",$=bi(_,M)),!$)return!1;if(!r.current&&"changedTouches"in p&&(x||N)&&(r.current=S),!S)return!0;var U=r.current||S;return nv(U,m,p,U==="h"?x:N)},[]),c=h.useCallback(function(p){var m=p;if(!(!Ot.length||Ot[Ot.length-1]!==a)){var w="deltaY"in m?xi(m):jn(m),y=t.current.filter(function(S){return S.name===m.type&&(S.target===m.target||m.target===S.shadowParent)&&rv(S.delta,w)})[0];if(y&&y.should){m.cancelable&&m.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Ci).filter(Boolean).filter(function(S){return S.contains(m.target)}),N=x.length>0?l(m,x[0]):!i.current.noIsolation;N&&m.cancelable&&m.preventDefault()}}},[]),d=h.useCallback(function(p,m,w,y){var x={name:p,delta:m,target:w,should:y,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=jn(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,jn(p),p.target,l(p,e.lockRef.current))},[]);h.useEffect(function(){return Ot.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Dt),document.addEventListener("touchmove",c,Dt),document.addEventListener("touchstart",u,Dt),function(){Ot=Ot.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Dt),document.removeEventListener("touchmove",c,Dt),document.removeEventListener("touchstart",u,Dt)}},[]);var v=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(a,{styles:ov(o)}):null,v?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 Gn=h.forwardRef(function(e,t){return h.createElement(Vn,Ye({},e,{ref:t,sideCar:lv}))});Gn.classNames=Vn.classNames;var Un="Popover",[Ni]=Se(Un,[_t]),Zt=_t(),[cv,tt]=Ni(Un),Si=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=Zt(t),c=h.useRef(null),[d,u]=h.useState(!1),[f,g]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:Un});return s.jsx(uo,{...l,children:s.jsx(cv,{scope:t,contentId:ke(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:h.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:i,children:n})})};Si.displayName=Un;var ki="PopoverAnchor",dv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tt(ki,n),a=Zt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return h.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(Wn,{...a,...r,ref:t})});dv.displayName=ki;var Ai="PopoverTrigger",Pi=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tt(Ai,n),a=Zt(n),i=Z(t,o.triggerRef),l=s.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Di(o.open),...r,ref:i,onClick:V(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(Wn,{asChild:!0,...a,children:l})});Pi.displayName=Ai;var wo="PopoverPortal",[uv,fv]=Ni(wo,{forceMount:void 0}),Ei=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=tt(wo,t);return s.jsx(uv,{scope:t,forceMount:n,children:s.jsx(Ie,{present:n||a.open,children:s.jsx(Xt,{asChild:!0,container:o,children:r})})})};Ei.displayName=wo;var It="PopoverContent",_i=h.forwardRef((e,t)=>{const n=fv(It,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=tt(It,e.__scopePopover);return s.jsx(Ie,{present:r||a.open,children:a.modal?s.jsx(pv,{...o,ref:t}):s.jsx(gv,{...o,ref:t})})});_i.displayName=It;var hv=pt("PopoverContent.RemoveScroll"),pv=h.forwardRef((e,t)=>{const n=tt(It,e.__scopePopover),r=h.useRef(null),o=Z(t,r),a=h.useRef(!1);return h.useEffect(()=>{const i=r.current;if(i)return go(i)},[]),s.jsx(Gn,{as:hv,allowPinchZoom:!0,children:s.jsx(Mi,{...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})})})}),gv=h.forwardRef((e,t)=>{const n=tt(It,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(Mi,{...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()}})}),Mi=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=tt(It,n),v=Zt(n);return Qr(),s.jsx(An,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Ut,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:s.jsx(fo,{"data-state":Di(g.open),role:"dialog",id:g.contentId,...v,...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)"}})})})}),Ti="PopoverClose",mv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tt(Ti,n);return s.jsx(K.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});mv.displayName=Ti;var vv="PopoverArrow",bv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zt(n);return s.jsx(ho,{...o,...r,ref:t})});bv.displayName=vv;function Di(e){return e?"open":"closed"}var Oi=Si,Ii=Pi,Li=Ei,Fi=_i;const xo=E.forwardRef(({label:e,placeholder:t,className:n,type:r="button",...o},a)=>s.jsxs("button",{ref:a,type:r,className:A("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(O,{size:"body2",weight:"medium",className:A(e?"text-gray-900":"text-gray-500"),children:e??t}),s.jsx(Ta,{className:"h-6 w-6 text-gray-600",strokeWidth:2.2})]}));xo.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,i]=E.useState(!1),l=e?Ee(e,"yyyy/MM/dd"):void 0;return s.jsxs(Oi,{open:a,onOpenChange:i,children:[s.jsx(Ii,{asChild:!0,children:s.jsx(xo,{label:l,placeholder:r,className:n})}),s.jsx(Li,{children:s.jsx(Fi,{className:A("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:s.jsx(Hr,{mode:"single",selected:e,onSelect:c=>{t(c),c&&i(!1)},initialFocus:!0})})})]})}function wv({value:e,onChange:t,className:n,placeholder:r="기간을 선택해주세요",disableClickPropagation:o=!1}){const[a,i]=E.useState(!1),l=E.useRef(!1),c=e?.from&&e?.to?`${Ee(e.from,"yyyy/MM/dd")} - ${Ee(e.to,"yyyy/MM/dd")}`:e?.from?`${Ee(e.from,"yyyy/MM/dd")} -`:void 0;return s.jsxs(Oi,{open:a,onOpenChange:d=>{if(i(d),d){l.current=!!(e?.from&&e?.to);return}l.current=!1},children:[s.jsx(Ii,{asChild:!0,children:s.jsx(xo,{label:c,placeholder:r,className:n})}),s.jsx(Li,{children:s.jsx(Fi,{className:A("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:s.jsx(Hr,{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 Kn="Dialog",[zi]=Se(Kn),[xv,De]=zi(Kn),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]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:Kn});return s.jsx(xv,{scope:t,triggerRef:l,contentRef:c,contentId:ke(),titleId:ke(),descriptionId:ke(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:i,children:n})};Bi.displayName=Kn;var $i="DialogTrigger",Hi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De($i,n),a=Z(t,o.triggerRef);return s.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":So(o.open),...r,ref:a,onClick:V(e.onClick,o.onOpenToggle)})});Hi.displayName=$i;var Co="DialogPortal",[Cv,Vi]=zi(Co,{forceMount:void 0}),Yi=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=De(Co,t);return s.jsx(Cv,{scope:t,forceMount:n,children:h.Children.map(r,i=>s.jsx(Ie,{present:n||a.open,children:s.jsx(Xt,{asChild:!0,container:o,children:i})}))})};Yi.displayName=Co;var Qn="DialogOverlay",ji=h.forwardRef((e,t)=>{const n=Vi(Qn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=De(Qn,e.__scopeDialog);return a.modal?s.jsx(Ie,{present:r||a.open,children:s.jsx(Sv,{...o,ref:t})}):null});ji.displayName=Qn;var Nv=pt("DialogOverlay.RemoveScroll"),Sv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Qn,n);return s.jsx(Gn,{as:Nv,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(K.div,{"data-state":So(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ut="DialogContent",Gi=h.forwardRef((e,t)=>{const n=Vi(ut,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=De(ut,e.__scopeDialog);return s.jsx(Ie,{present:r||a.open,children:a.modal?s.jsx(kv,{...o,ref:t}):s.jsx(Av,{...o,ref:t})})});Gi.displayName=ut;var kv=h.forwardRef((e,t)=>{const n=De(ut,e.__scopeDialog),r=h.useRef(null),o=Z(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return go(a)},[]),s.jsx(Ui,{...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=De(ut,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return s.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 i=a.target;n.triggerRef.current?.contains(i)&&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,...i}=e,l=De(ut,n),c=h.useRef(null),d=Z(t,c);return Qr(),s.jsxs(s.Fragment,{children:[s.jsx(An,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Ut,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":So(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Pv,{titleId:l.titleId}),s.jsx(_v,{contentRef:c,descriptionId:l.descriptionId})]})]})}),No="DialogTitle",Ki=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(No,n);return s.jsx(K.h2,{id:o.titleId,...r,ref:t})});Ki.displayName=No;var Qi="DialogDescription",qi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Qi,n);return s.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=De(Xi,n);return s.jsx(K.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});Zi.displayName=Xi;function So(e){return e?"open":"closed"}var Ji="DialogTitleWarning",[sy,Ri]=fc(Ji,{contentName:ut,titleName:No,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
+ `)},av=0,It=[];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],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 g=Pm([e.lockRef.current],(e.shards||[]).map(Ci),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=Un(g),y=n.current,x="deltaX"in g?g.deltaX:y[0]-w[0],N="deltaY"in g?g.deltaY:y[1]-w[1],S,M=g.target,_=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in g&&_==="h"&&M.type==="range")return!1;var A=window.getSelection(),B=A&&A.anchorNode,$=B?B===M||B.contains(M):!1;if($)return!1;var H=bi(_,M);if(!H)return!0;if(H?S=_:(S=_==="v"?"h":"v",H=bi(_,M)),!H)return!1;if(!r.current&&"changedTouches"in g&&(x||N)&&(r.current=S),!S)return!0;var G=r.current||S;return nv(G,m,g,G==="h"?x:N)},[]),c=h.useCallback(function(g){var m=g;if(!(!It.length||It[It.length-1]!==a)){var w="deltaY"in m?xi(m):Un(m),y=t.current.filter(function(S){return S.name===m.type&&(S.target===m.target||m.target===S.shadowParent)&&rv(S.delta,w)})[0];if(y&&y.should){m.cancelable&&m.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Ci).filter(Boolean).filter(function(S){return S.contains(m.target)}),N=x.length>0?l(m,x[0]):!i.current.noIsolation;N&&m.cancelable&&m.preventDefault()}}},[]),d=h.useCallback(function(g,m,w,y){var x={name:g,delta:m,target:w,should:y,shadowParent:iv(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),u=h.useCallback(function(g){n.current=Un(g),r.current=void 0},[]),f=h.useCallback(function(g){d(g.type,xi(g),g.target,l(g,e.lockRef.current))},[]),p=h.useCallback(function(g){d(g.type,Un(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return It.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ot),document.addEventListener("touchmove",c,Ot),document.addEventListener("touchstart",u,Ot),function(){It=It.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,Ot),document.removeEventListener("touchmove",c,Ot),document.removeEventListener("touchstart",u,Ot)}},[]);var v=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(a,{styles:ov(o)}):null,v?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 Kn=h.forwardRef(function(e,t){return h.createElement(jn,je({},e,{ref:t,sideCar:lv}))});Kn.classNames=jn.classNames;var Qn="Popover",[Ni]=Ae(Qn,[Mt]),Jt=Mt(),[cv,nt]=Ni(Qn),Si=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=Jt(t),c=h.useRef(null),[d,u]=h.useState(!1),[f,p]=xe({prop:r,defaultProp:o??!1,onChange:a,caller:Qn});return s.jsx(fo,{...l,children:s.jsx(cv,{scope:t,contentId:ke(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:i,children:n})})};Si.displayName=Qn;var Ai="PopoverAnchor",dv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nt(Ai,n),a=Jt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return h.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(Bn,{...a,...r,ref:t})});dv.displayName=Ai;var ki="PopoverTrigger",Pi=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nt(ki,n),a=Jt(n),i=Z(t,o.triggerRef),l=s.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Di(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(Bn,{asChild:!0,...a,children:l})});Pi.displayName=ki;var xo="PopoverPortal",[uv,fv]=Ni(xo,{forceMount:void 0}),Ei=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=nt(xo,t);return s.jsx(uv,{scope:t,forceMount:n,children:s.jsx(Le,{present:n||a.open,children:s.jsx(Zt,{asChild:!0,container:o,children:r})})})};Ei.displayName=xo;var Lt="PopoverContent",_i=h.forwardRef((e,t)=>{const n=fv(Lt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=nt(Lt,e.__scopePopover);return s.jsx(Le,{present:r||a.open,children:a.modal?s.jsx(pv,{...o,ref:t}):s.jsx(gv,{...o,ref:t})})});_i.displayName=Lt;var hv=gt("PopoverContent.RemoveScroll"),pv=h.forwardRef((e,t)=>{const n=nt(Lt,e.__scopePopover),r=h.useRef(null),o=Z(t,r),a=h.useRef(!1);return h.useEffect(()=>{const i=r.current;if(i)return mo(i)},[]),s.jsx(Kn,{as:hv,allowPinchZoom:!0,children:s.jsx(Mi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:j(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:j(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),gv=h.forwardRef((e,t)=>{const n=nt(Lt,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(Mi,{...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()}})}),Mi=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,p=nt(Lt,n),v=Jt(n);return qr(),s.jsx(En,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:s.jsx(ho,{"data-state":Di(p.open),role:"dialog",id:p.contentId,...v,...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)"}})})})}),Ti="PopoverClose",mv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nt(Ti,n);return s.jsx(U.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});mv.displayName=Ti;var vv="PopoverArrow",bv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(n);return s.jsx(po,{...o,...r,ref:t})});bv.displayName=vv;function Di(e){return e?"open":"closed"}var Oi=Si,Ii=Pi,Li=Ei,Fi=_i;const Co=k.forwardRef(({label:e,placeholder:t,className:n,type:r="button",...o},a)=>s.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:[s.jsx(O,{size:"body2",weight:"medium",className:P(e?"text-gray-900":"text-gray-500"),children:e??t}),s.jsx(Ta,{className:"h-6 w-6 text-gray-600",strokeWidth:2.2})]}));Co.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,i]=k.useState(!1),l=e?_e(e,"yyyy/MM/dd"):void 0;return s.jsxs(Oi,{open:a,onOpenChange:i,children:[s.jsx(Ii,{asChild:!0,children:s.jsx(Co,{label:l,placeholder:r,className:n})}),s.jsx(Li,{children:s.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:s.jsx(Vr,{mode:"single",selected:e,onSelect:c=>{t(c),c&&i(!1)},initialFocus:!0})})})]})}function wv({value:e,onChange:t,className:n,placeholder:r="기간을 선택해주세요",disableClickPropagation:o=!1}){const[a,i]=k.useState(!1),l=k.useRef(!1),c=e?.from&&e?.to?`${_e(e.from,"yyyy/MM/dd")} - ${_e(e.to,"yyyy/MM/dd")}`:e?.from?`${_e(e.from,"yyyy/MM/dd")} -`:void 0;return s.jsxs(Oi,{open:a,onOpenChange:d=>{if(i(d),d){l.current=!!(e?.from&&e?.to);return}l.current=!1},children:[s.jsx(Ii,{asChild:!0,children:s.jsx(Co,{label:c,placeholder:r,className:n})}),s.jsx(Li,{children:s.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:s.jsx(Vr,{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 qn="Dialog",[zi]=Ae(qn),[xv,Oe]=zi(qn),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]=xe({prop:r,defaultProp:o??!1,onChange:a,caller:qn});return s.jsx(xv,{scope:t,triggerRef:l,contentRef:c,contentId:ke(),titleId:ke(),descriptionId:ke(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:i,children:n})};Bi.displayName=qn;var $i="DialogTrigger",Hi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe($i,n),a=Z(t,o.triggerRef);return s.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ao(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Hi.displayName=$i;var No="DialogPortal",[Cv,Vi]=zi(No,{forceMount:void 0}),Yi=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Oe(No,t);return s.jsx(Cv,{scope:t,forceMount:n,children:h.Children.map(r,i=>s.jsx(Le,{present:n||a.open,children:s.jsx(Zt,{asChild:!0,container:o,children:i})}))})};Yi.displayName=No;var Xn="DialogOverlay",ji=h.forwardRef((e,t)=>{const n=Vi(Xn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Oe(Xn,e.__scopeDialog);return a.modal?s.jsx(Le,{present:r||a.open,children:s.jsx(Sv,{...o,ref:t})}):null});ji.displayName=Xn;var Nv=gt("DialogOverlay.RemoveScroll"),Sv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Xn,n);return s.jsx(Kn,{as:Nv,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(U.div,{"data-state":Ao(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ft="DialogContent",Gi=h.forwardRef((e,t)=>{const n=Vi(ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Oe(ft,e.__scopeDialog);return s.jsx(Le,{present:r||a.open,children:a.modal?s.jsx(Av,{...o,ref:t}):s.jsx(kv,{...o,ref:t})})});Gi.displayName=ft;var Av=h.forwardRef((e,t)=>{const n=Oe(ft,e.__scopeDialog),r=h.useRef(null),o=Z(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return mo(a)},[]),s.jsx(Ui,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),kv=h.forwardRef((e,t)=>{const n=Oe(ft,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return s.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 i=a.target;n.triggerRef.current?.contains(i)&&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,...i}=e,l=Oe(ft,n),c=h.useRef(null),d=Z(t,c);return qr(),s.jsxs(s.Fragment,{children:[s.jsx(En,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Kt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ao(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Pv,{titleId:l.titleId}),s.jsx(_v,{contentRef:c,descriptionId:l.descriptionId})]})]})}),So="DialogTitle",Ki=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(So,n);return s.jsx(U.h2,{id:o.titleId,...r,ref:t})});Ki.displayName=So;var Qi="DialogDescription",qi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Qi,n);return s.jsx(U.p,{id:o.descriptionId,...r,ref:t})});qi.displayName=Qi;var Xi="DialogClose",Zi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Xi,n);return s.jsx(U.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Zi.displayName=Xi;function Ao(e){return e?"open":"closed"}var Ji="DialogTitleWarning",[ly,Ri]=fc(Ji,{contentName:ft,titleName:So,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.
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},Mv=Bi,Tv=Hi,Dv=Yi,Ov=ji,Iv=Gi,Lv=Ki,Fv=qi,el=Zi;const Wv=Mv,zv=Tv,tl=Dv,Bv=el;function nl({className:e,...t}){return s.jsx(Ov,{className:A("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 $v({className:e,children:t,...n}){return s.jsxs(tl,{children:[s.jsx(nl,{}),s.jsxs(Iv,{className:A("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(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:[s.jsx(yn,{width:18,height:18,className:"text-gray-500 sm:w-5 sm:h-5"}),s.jsx("span",{className:"sr-only",children:"닫기"})]})]})]})}function Hv({className:e,...t}){return s.jsx("div",{className:A("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Vv({className:e,...t}){return s.jsx("div",{className:A("mt-4 sm:mt-6 flex flex-row justify-end gap-2",e),...t})}function Yv({className:e,children:t,...n}){return s.jsx(Lv,{asChild:!0,...n,children:s.jsx(O,{size:"heading2",weight:"bold",className:A("text-black",e),children:t})})}function jv({className:e,children:t,...n}){return s.jsx(Fv,{asChild:!0,...n,children:s.jsx(O,{size:"body2",weight:"regular",className:A("text-gray-600 mt-2",e),children:t})})}function Gv({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(at,{src:e,alt:t,fill:!0,className:"h-full w-full object-cover"}):s.jsx(jt,{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-10 w-10 items-center justify-center rounded-full bg-white shadow-[0_6px_14px_rgba(34,34,34,0.2)] sm:h-12 sm:w-12",children:s.jsx(Gr,{value:c,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-3 right-3 z-20 text-2xl leading-none sm:text-3xl",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 cursor-pointer 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(vr,{width:14,height:14,className:"text-white"}):s.jsx(mr,{width:14,height:14,className:"text-white"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-white",children:a})]})})]})}function Uv({title:e,user:t,userImage:n,challengeLabel:r,onChallengeClick:o,date:a}){return s.jsxs("div",{className:"flex w-full flex-col gap-2 p-3 sm:gap-3 sm:p-4",children:[s.jsx(O,{as:"p",size:"body2",weight:"bold",className:"line-clamp-2 min-h-8 leading-tight text-gray-900 sm:text-xl sm:min-h-10",children:e}),s.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),o?.()},className:A("block w-full cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors","hover:bg-gray-100"),children:s.jsx(O,{size:"caption1",weight:"medium",className:"block w-full truncate text-blue-500 sm:text-lg",children:r})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[s.jsx(bt,{imageUrl:n,size:"sm"}),s.jsxs("div",{className:"flex flex-col gap-0.5 sm:gap-1",children:[s.jsx(O,{size:"caption1",weight:"bold",className:"text-gray-900 sm:text-lg",children:t}),s.jsx(O,{size:"caption3",weight:"regular",className:"text-gray-500 sm:text-sm",children:a})]})]})]})}function Kv({imageUrl:e,percent:t,likes:n,isLiked:r,defaultLiked:o=!1,onLikeToggle:a,title:i,user:l,userImage:c,challengeLabel:d,totalMemberCount:u,onChallengeClick:f,date:g,emotion:v="happy",onClick:b}){const p=typeof r=="boolean",[m,w]=E.useState(o),[y,x]=E.useState(n),N=p?r:m,S=p?n:y;E.useEffect(()=>{p||x(n)},[p,n]);const M=()=>{const k=!N,B=Math.max(0,S+(k?1:-1));p||(w(k),x(B)),a?.(k)},_=typeof u=="number"?u<=1?"개인":"단체":d;return s.jsx("div",{className:A("block w-full",b&&"cursor-pointer"),onClick:b,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(Gv,{imageUrl:e,alt:i,percent:t,emotion:v,isLiked:N,likeCount:S,onToggleLike:M}),s.jsx(Uv,{title:i,user:l,userImage:c,challengeLabel:_,onChallengeClick:f,date:g})]})})}const Qv={happy:"😎",soso:"🙂",sad:"🥲"};function qv({title:e,imageUrl:t,percent:n,emotion:r="happy",likes:o,isLiked:a,defaultLiked:i=!1,onLikeToggle:l,user:c,userImage:d,challengeLabel:u,totalMemberCount:f,onChallengeClick:g,date:v,onClick:b,className:p}){const m=typeof a=="boolean",[w,y]=E.useState(i),[x,N]=E.useState(o),S=m?a:w,M=m?o:x;E.useEffect(()=>{m||N(o)},[m,o]);const _=$=>{$.stopPropagation();const U=!S,D=Math.max(0,M+(U?1:-1));m||(y(U),N(D)),l?.(U)},k=!!(t&&t.trim().length>0),B=Math.min(Math.max(n,0),100),Y=typeof f=="number"?f<=1?"개인":"단체":u;return s.jsxs("div",{className:A("flex min-w-[320px] gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:min-w-[560px]",b&&"cursor-pointer",p),onClick:b,children:[s.jsxs("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[100px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:w-[140px]",children:[k?s.jsx(at,{src:t,alt:e,width:128,height:128,className:"h-full w-full object-cover"}):s.jsx(jt,{className:"h-full w-full",logoSize:"sm"}),k?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-6 bg-linear-to-t from-black/10 to-transparent"}):null,s.jsx("div",{className:"absolute top-2 left-2 z-10",children:s.jsx("div",{className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-white shadow-[0_4px_10px_rgba(34,34,34,0.18)]",children:s.jsx(Gr,{value:B,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-2 right-2 z-10 text-xl leading-none",children:s.jsx("span",{role:"img","aria-label":r,children:Qv[r]})})]}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-2 py-0.5",children:[s.jsx(O,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 leading-snug text-gray-900",children:e}),s.jsx("button",{type:"button",onClick:$=>{$.stopPropagation(),g?.()},className:"block w-fit cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors hover:bg-gray-100",children:s.jsx(O,{size:"caption1",weight:"medium",className:"truncate text-blue-500",children:Y})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(bt,{imageUrl:d,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[s.jsx(O,{size:"caption2",weight:"bold",className:"truncate text-gray-900",children:c}),s.jsx(O,{size:"caption2",weight:"regular",className:"shrink-0 text-gray-500",children:v})]})]}),s.jsxs("button",{type:"button",onClick:_,className:"flex shrink-0 items-center gap-1 text-gray-500 transition-colors hover:text-red-500",children:[S?s.jsx(vr,{width:15,height:15,className:"text-red-500"}):s.jsx(mr,{width:15,height:15}),s.jsx(O,{size:"caption2",weight:"medium",className:"text-inherit",children:M})]})]})]})]})}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"}),Xv="VisuallyHidden",al=h.forwardRef((e,t)=>s.jsx(K.span,{...e,ref:t,style:{...ol,...e.style}}));al.displayName=Xv;var Zv=al,Jv=[" ","Enter","ArrowUp","ArrowDown"],Rv=[" ","Enter"],ft="Select",[qn,Xn,e0]=rr(ft),[Lt]=Se(ft,[e0,_t]),Zn=_t(),[t0,nt]=Lt(ft),[n0,r0]=Lt(ft),sl=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:v,form:b}=e,p=Zn(t),[m,w]=h.useState(null),[y,x]=h.useState(null),[N,S]=h.useState(!1),M=ln(d),[_,k]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:ft}),[B,Y]=ye({prop:i,defaultProp:l,onChange:c,caller:ft}),$=h.useRef(null),U=m?b||!!m.closest("form"):!0,[D,L]=h.useState(new Set),j=Array.from(D).map(z=>z.props.value).join(";");return s.jsx(uo,{...p,children:s.jsxs(t0,{required:v,scope:t,trigger:m,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:ke(),value:B,onValueChange:Y,open:_,onOpenChange:k,dir:M,triggerPointerDownPosRef:$,disabled:g,children:[s.jsx(qn.Provider,{scope:t,children:s.jsx(n0,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(z=>{L(P=>new Set(P).add(z))},[]),onNativeOptionRemove:h.useCallback(z=>{L(P=>{const C=new Set(P);return C.delete(z),C})},[]),children:n})}),U?s.jsxs(Tl,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:f,value:B,onChange:z=>Y(z.target.value),disabled:g,form:b,children:[B===void 0?s.jsx("option",{value:""}):null,Array.from(D)]},j):null]})})};sl.displayName=ft;var il="SelectTrigger",ll=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Zn(n),i=nt(il,n),l=i.disabled||r,c=Z(t,i.onTriggerChange),d=Xn(n),u=h.useRef("touch"),[f,g,v]=Ol(p=>{const m=d().filter(x=>!x.disabled),w=m.find(x=>x.value===i.value),y=Il(m,p,w);y!==void 0&&i.onValueChange(y.value)}),b=p=>{l||(i.onOpenChange(!0),v()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return s.jsx(Wn,{asChild:!0,...a,children:s.jsx(K.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":Dl(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 m=p.target;m.hasPointerCapture(p.pointerId)&&m.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:V(o.onKeyDown,p=>{const m=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(m&&p.key===" ")&&Jv.includes(p.key)&&(b(),p.preventDefault())})})})});ll.displayName=il;var cl="SelectValue",dl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,c=nt(cl,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=Z(t,c.onValueNodeChange);return ue(()=>{d(u)},[d,u]),s.jsx(K.span,{...l,ref:f,style:{pointerEvents:"none"},children:Dl(c.value)?s.jsx(s.Fragment,{children:i}):a})});dl.displayName=cl;var o0="SelectIcon",ul=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ul.displayName=o0;var a0="SelectPortal",fl=e=>s.jsx(Xt,{asChild:!0,...e});fl.displayName=a0;var ht="SelectContent",hl=h.forwardRef((e,t)=>{const n=nt(ht,e.__scopeSelect),[r,o]=h.useState();if(ue(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?on.createPortal(s.jsx(pl,{scope:e.__scopeSelect,children:s.jsx(qn.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(gl,{...e,ref:t})});hl.displayName=ht;var Oe=10,[pl,rt]=Lt(ht),s0="SelectContentImpl",i0=pt("SelectContent.RemoveScroll"),gl=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:v,sticky:b,hideWhenDetached:p,avoidCollisions:m,...w}=e,y=nt(ht,n),[x,N]=h.useState(null),[S,M]=h.useState(null),_=Z(t,I=>N(I)),[k,B]=h.useState(null),[Y,$]=h.useState(null),U=Xn(n),[D,L]=h.useState(!1),j=h.useRef(!1);h.useEffect(()=>{if(x)return go(x)},[x]),Qr();const z=h.useCallback(I=>{const[J,...se]=U().map(G=>G.ref.current),[X]=se.slice(-1),R=document.activeElement;for(const G of I)if(G===R||(G?.scrollIntoView({block:"nearest"}),G===J&&S&&(S.scrollTop=0),G===X&&S&&(S.scrollTop=S.scrollHeight),G?.focus(),document.activeElement!==R))return},[U,S]),P=h.useCallback(()=>z([k,x]),[z,k,x]);h.useEffect(()=>{D&&P()},[D,P]);const{onOpenChange:C,triggerPointerDownPosRef:q}=y;h.useEffect(()=>{if(x){let I={x:0,y:0};const J=X=>{I={x:Math.abs(Math.round(X.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(X.pageY)-(q.current?.y??0))}},se=X=>{I.x<=10&&I.y<=10?X.preventDefault():x.contains(X.target)||C(!1),document.removeEventListener("pointermove",J),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",se,{capture:!0})}}},[x,C,q]),h.useEffect(()=>{const I=()=>C(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[C]);const[ae,he]=Ol(I=>{const J=U().filter(R=>!R.disabled),se=J.find(R=>R.ref.current===document.activeElement),X=Il(J,I,se);X&&setTimeout(()=>X.ref.current.focus())}),Ce=h.useCallback((I,J,se)=>{const X=!j.current&&!se;(y.value!==void 0&&y.value===J||X)&&(B(I),X&&(j.current=!0))},[y.value]),oe=h.useCallback(()=>x?.focus(),[x]),ne=h.useCallback((I,J,se)=>{const X=!j.current&&!se;(y.value!==void 0&&y.value===J||X)&&$(I)},[y.value]),pe=r==="popper"?ko:ml,Ne=pe===ko?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:v,sticky:b,hideWhenDetached:p,avoidCollisions:m}:{};return s.jsx(pl,{scope:n,content:x,viewport:S,onViewportChange:M,itemRefCallback:Ce,selectedItem:k,onItemLeave:oe,itemTextRefCallback:ne,focusSelectedItem:P,selectedItemText:Y,position:r,isPositioned:D,searchRef:ae,children:s.jsx(Gn,{as:i0,allowPinchZoom:!0,children:s.jsx(An,{asChild:!0,trapped:y.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:V(o,I=>{y.trigger?.focus({preventScroll:!0}),I.preventDefault()}),children:s.jsx(Ut,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:s.jsx(pe,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:I=>I.preventDefault(),...w,...Ne,onPlaced:()=>L(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:V(w.onKeyDown,I=>{const J=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!J&&I.key.length===1&&he(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let X=U().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(I.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const R=I.target,G=X.indexOf(R);X=X.slice(G+1)}setTimeout(()=>z(X)),I.preventDefault()}})})})})})})});gl.displayName=s0;var l0="SelectItemAlignedPosition",ml=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=nt(ht,n),i=rt(ht,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=Z(t,_=>u(_)),g=Xn(n),v=h.useRef(!1),b=h.useRef(!0),{viewport:p,selectedItem:m,selectedItemText:w,focusSelectedItem:y}=i,x=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&p&&m&&w){const _=a.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),Y=w.getBoundingClientRect();if(a.dir!=="rtl"){const R=Y.left-k.left,G=B.left-R,ie=_.left-G,ge=_.width+ie,rn=Math.max(ge,k.width),$o=window.innerWidth-Oe,Ho=rl(G,[Oe,Math.max(Oe,$o-rn)]);l.style.minWidth=ge+"px",l.style.left=Ho+"px"}else{const R=k.right-Y.right,G=window.innerWidth-B.right-R,ie=window.innerWidth-_.right-G,ge=_.width+ie,rn=Math.max(ge,k.width),$o=window.innerWidth-Oe,Ho=rl(G,[Oe,Math.max(Oe,$o-rn)]);l.style.minWidth=ge+"px",l.style.right=Ho+"px"}const $=g(),U=window.innerHeight-Oe*2,D=p.scrollHeight,L=window.getComputedStyle(d),j=parseInt(L.borderTopWidth,10),z=parseInt(L.paddingTop,10),P=parseInt(L.borderBottomWidth,10),C=parseInt(L.paddingBottom,10),q=j+z+D+C+P,ae=Math.min(m.offsetHeight*5,q),he=window.getComputedStyle(p),Ce=parseInt(he.paddingTop,10),oe=parseInt(he.paddingBottom,10),ne=_.top+_.height/2-Oe,pe=U-ne,Ne=m.offsetHeight/2,I=m.offsetTop+Ne,J=j+z+I,se=q-J;if(J<=ne){const R=$.length>0&&m===$[$.length-1].ref.current;l.style.bottom="0px";const G=d.clientHeight-p.offsetTop-p.offsetHeight,ie=Math.max(pe,Ne+(R?oe:0)+G+P),ge=J+ie;l.style.height=ge+"px"}else{const R=$.length>0&&m===$[0].ref.current;l.style.top="0px";const ie=Math.max(ne,j+p.offsetTop+(R?Ce:0)+Ne)+se;l.style.height=ie+"px",p.scrollTop=J-ne+p.offsetTop}l.style.margin=`${Oe}px 0`,l.style.minHeight=ae+"px",l.style.maxHeight=U+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[g,a.trigger,a.valueNode,l,d,p,m,w,a.dir,r]);ue(()=>x(),[x]);const[N,S]=h.useState();ue(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const M=h.useCallback(_=>{_&&b.current===!0&&(x(),y?.(),b.current=!1)},[x,y]);return s.jsx(d0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:s.jsx(K.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ml.displayName=l0;var c0="SelectPopperPosition",ko=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Oe,...a}=e,i=Zn(n);return s.jsx(fo,{...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)"}})});ko.displayName=c0;var[d0,Ao]=Lt(ht,{}),Po="SelectViewport",vl=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=rt(Po,n),i=Ao(Po,n),l=Z(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(qn.Slot,{scope:n,children:s.jsx(K.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 v=Math.abs(c.current-u.scrollTop);if(v>0){const b=window.innerHeight-Oe*2,p=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(p,m);if(w<b){const y=w+v,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})})})]})});vl.displayName=Po;var bl="SelectGroup",[u0,f0]=Lt(bl),yl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ke();return s.jsx(u0,{scope:n,id:o,children:s.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=f0(wl,n);return s.jsx(K.div,{id:o.id,...r,ref:t})});xl.displayName=wl;var Jn="SelectItem",[h0,Cl]=Lt(Jn),Nl=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=nt(Jn,n),c=rt(Jn,n),d=l.value===r,[u,f]=h.useState(a??""),[g,v]=h.useState(!1),b=Z(t,y=>c.itemRefCallback?.(y,r,o)),p=ke(),m=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(h0,{scope:n,value:r,disabled:o,textId:p,isSelected:d,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:s.jsx(qn.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:s.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,...i,ref:b,onFocus:V(i.onFocus,()=>v(!0)),onBlur:V(i.onBlur,()=>v(!1)),onClick:V(i.onClick,()=>{m.current!=="mouse"&&w()}),onPointerUp:V(i.onPointerUp,()=>{m.current==="mouse"&&w()}),onPointerDown:V(i.onPointerDown,y=>{m.current=y.pointerType}),onPointerMove:V(i.onPointerMove,y=>{m.current=y.pointerType,o?c.onItemLeave?.():m.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===" "||(Rv.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Nl.displayName=Jn;var Jt="SelectItemText",Sl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=nt(Jt,n),l=rt(Jt,n),c=Cl(Jt,n),d=r0(Jt,n),[u,f]=h.useState(null),g=Z(t,w=>f(w),c.onItemTextChange,w=>l.itemTextRefCallback?.(w,c.value,c.disabled)),v=u?.textContent,b=h.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:p,onNativeOptionRemove:m}=d;return ue(()=>(p(b),()=>m(b)),[p,m,b]),s.jsxs(s.Fragment,{children:[s.jsx(K.span,{id:c.textId,...a,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?on.createPortal(a.children,i.valueNode):null]})});Sl.displayName=Jt;var kl="SelectItemIndicator",Al=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Cl(kl,n).isSelected?s.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});Al.displayName=kl;var Eo="SelectScrollUpButton",Pl=h.forwardRef((e,t)=>{const n=rt(Eo,e.__scopeSelect),r=Ao(Eo,e.__scopeSelect),[o,a]=h.useState(!1),i=Z(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(_l,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Pl.displayName=Eo;var _o="SelectScrollDownButton",El=h.forwardRef((e,t)=>{const n=rt(_o,e.__scopeSelect),r=Ao(_o,e.__scopeSelect),[o,a]=h.useState(!1),i=Z(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(_l,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});El.displayName=_o;var _l=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=rt("SelectScrollButton",n),i=h.useRef(null),l=Xn(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(K.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()})})}),p0="SelectSeparator",Ml=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});Ml.displayName=p0;var Mo="SelectArrow",g0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Zn(n),a=nt(Mo,n),i=rt(Mo,n);return a.open&&i.position==="popper"?s.jsx(ho,{...o,...r,ref:t}):null});g0.displayName=Mo;var m0="SelectBubbleInput",Tl=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),a=Z(r,o),i=hs(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(K.select,{...n,style:{...ol,...n.style},ref:a,defaultValue:t})});Tl.displayName=m0;function Dl(e){return e===""||e===void 0}function Ol(e){const t=Ze(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 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 i=v0(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 v0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var b0=sl,y0=ll,w0=dl,x0=ul,C0=fl,N0=hl,S0=vl,k0=yl,A0=xl,P0=Nl,E0=Sl,_0=Al,M0=Pl,T0=El,D0=Ml;const O0=b0,I0=k0,L0=w0;function F0({className:e,size:t="default",children:n,...r}){const o=t==="sm";return s.jsxs(y0,{"data-slot":"select-trigger","data-size":t,className:A("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(O,{size:"body2",weight:"medium",className:"line-clamp-1 text-gray-900",children:n}),s.jsx(x0,{asChild:!0,children:s.jsx(gn,{"data-slot":"select-chevron",className:A("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 W0({className:e,children:t,...n}){return s.jsxs(P0,{"data-slot":"select-item",className:A("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(_0,{children:s.jsx(yt,{className:"size-4 text-main-800"})})}),s.jsx(E0,{children:s.jsx(O,{size:"body2",weight:"medium",children:t})})]})}function z0({className:e,...t}){return s.jsx(D0,{"data-slot":"select-separator",className:A("pointer-events-none my-1 h-px bg-gray-200",e),...t})}function Ll({className:e,...t}){return s.jsx(M0,{"data-slot":"select-scroll-up-button",className:A("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(Oa,{className:"size-4"})})}function Fl({className:e,...t}){return s.jsx(T0,{"data-slot":"select-scroll-down-button",className:A("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(gn,{className:"size-4"})})}function B0({className:e,children:t,position:n="popper",...r}){return s.jsx(C0,{children:s.jsxs(N0,{"data-slot":"select-content",className:A("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(Ll,{}),s.jsx(S0,{className:A("p-2",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),s.jsx(Fl,{})]})})}function $0({className:e,...t}){return s.jsx(A0,{"data-slot":"select-label",className:A("px-4 py-2 text-xs font-bold text-gray-500",e),...t})}function H0({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]=E.useState(t),[g,v]=E.useState(""),b=E.useRef(!1),p=d?e:u,m=x=>{d||f(x),n?.(x)},w=()=>{if(o)return;const x=g.trim();x&&(m([...p,x]),v(""))},y=x=>{o||m(p.filter((N,S)=>S!==x))};return s.jsxs("div",{className:A("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(O,{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:A("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(yn,{className:"h-5 w-5"})})]},`${x}-${N}`)),s.jsx("input",{type:"text",value:g,disabled:o,"aria-label":i,placeholder:r,onChange:x=>v(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:A("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 V0({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=E.useRef(null),d=E.useRef(null),[u,f]=E.useState(n??null),g=()=>{c.current?.click()};E.useEffect(()=>{f(n??null)},[n]),E.useEffect(()=>()=>{d.current&&URL.revokeObjectURL(d.current)},[]);const v=b=>{const p=b.target.files?.[0];if(p){d.current&&URL.revokeObjectURL(d.current);const m=URL.createObjectURL(p);d.current=m,f(m)}};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),v(b)},...o}),s.jsx("button",{type:"button",onClick:g,"aria-label":"이미지 선택",className:A("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(zt,{width:l,height:i,className:"text-gray-300"})})}),s.jsxs("button",{type:"button",onClick:g,className:A("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(wn,{className:"h-3.5 w-3.5 text-gray-700"}),s.jsx(O,{size:"caption1",weight:"medium",className:"text-gray-700",children:r})]})]})}function Y0({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:l}){return s.jsxs("div",{className:A("relative overflow-hidden rounded-2 text-white","flex flex-col justify-between","p-4 sm:p-4 lg:p-6","h-24 w-full sm:h-36 lg:h-47.5 lg: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(O,{size:"caption3",weight:"medium",className:"opacity-80",children:e}),s.jsx(O,{size:"caption2",weight:"bold",className:"mt-0.5 sm:text-xl sm:mt-1 lg:text-2xl",children:t})]}),s.jsx("div",{className:"absolute bottom-2 left-2 sm:bottom-4 sm:left-4 lg:bottom-6 lg:left-6",children:s.jsx(at,{src:n,alt:r,width:24,height:40,className:"object-contain sm:w-9 sm:h-15 lg:w-12 lg:h-19.5"})}),s.jsx(O,{size:"body2",weight:"bold",className:"absolute right-2 bottom-2 sm:right-4 sm:bottom-4 sm:text-3xl lg:right-6 lg:bottom-6 lg:text-4xl",children:"→"})]})}function j0(){return s.jsxs("div",{className:"flex items-end gap-2",children:[s.jsx(zt,{width:24,height:40,className:"text-gray-300"}),s.jsx(O,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}const Rt="...";function G0({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},(v,b)=>b+1),Rt,t]}if(l&&!c){const f=3+2*n,g=Array.from({length:f},(v,b)=>t-f+b+1);return[d,Rt,...g]}if(l&&c){const f=Array.from({length:i-a+1},(g,v)=>a+v);return[d,Rt,...f,Rt,u]}},[t,e,n])}function U0({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o}){const a=G0({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:A("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(gr,{className:"h-5 w-5"})}),a?.map((c,d)=>{if(c===Rt)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:A("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:A("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(bn,{className:"h-5 w-5"})})]})}function Wl({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:v,...b}){const p=Math.min(Math.max(e,0),100),m=a?"100%":`${p}%`,w=o??(a?"∞":`${p}%`),y=n??t!==void 0;return s.jsxs("div",{className:A("w-full",d),...b,children:[(y||r)&&s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y?s.jsx(O,{size:"caption1",weight:"medium",className:A("line-clamp-1 text-gray-800",u),children:t}):s.jsx("span",{}),r?s.jsx(O,{size:"caption1",weight:"medium",className:A("shrink-0 text-gray-600",f),children:w}):null]}),s.jsx("div",{className:A("mt-2.5 overflow-hidden rounded-full bg-gray-200",g),style:{height:`${i}px`,...c?{backgroundColor:c}:{}},children:s.jsx("div",{className:A("h-full rounded-full bg-main-800 transition-all duration-200",v),style:{width:m,...l?{backgroundColor:l}:{}}})})]})}const K0=[{id:"1",title:"알고리즘 부시기",progress:56,tone:"blue"},{id:"2",title:"새벽 러닝",progress:84,tone:"green"}],Q0={blue:"#3b82f6",green:"#22c55e",orange:"#ff5722"};function q0({isLoggedIn:e=!0,userName:t,userSubtitle:n,userImage:r,streakDays:o,fixed:a=!0,collapsible:i=!0,className:l,diaryButtonLabel:c="일지 작성하기",myPageButtonLabel:d="마이페이지",loginButtonLabel:u="로그인",loginPromptMessage:f="로그인하고 연속 기록을 시작해보세요",settingButtonLabel:g="설정",challengeTitle:v="참여중인 챌린지",challenges:b=K0,emptyChallengeMessage:p="챌린지가 없어요.",joinChallengeButtonLabel:m="챌린지 참여하기",joinChallengeMaxUserCount:w,createChallengeButtonLabel:y="챌린지 생성하기",onCollapseClick:x,onOpenSettings:N,onWriteDiary:S,onGoMyPage:M,onLogin:_,onJoinChallenge:k,onCreateChallenge:B}){const[L,j]=E.useState(!1),[z,P]=E.useState("expanded"),[C,q]=E.useState(!0),[ae,he]=E.useState(!1),[Ce,oe]=E.useState(null),ne=E.useRef(null),pe=E.useRef([]),Ne=typeof w=="number"&&w<=1,I=()=>{pe.current.forEach(G=>clearTimeout(G)),pe.current=[]},J=(G,ie)=>{const ge=setTimeout(()=>{G(),pe.current=pe.current.filter(rn=>rn!==ge)},ie);pe.current.push(ge)};E.useEffect(()=>()=>{I()},[]);const se=()=>{const G=ne.current;return G?Math.max(Math.ceil(G.scrollHeight),0):null},X=()=>{const G=ne.current;if(!G)return null;const ie=G.style.height;G.style.height="auto";const ge=se();return G.style.height=ie,ge},R=()=>{if(ae)return;const G=!L,ie=ne.current?.offsetHeight;ie&&ie>0&&oe(ie),he(!0),q(!1),x?.(),I(),J(()=>{j(G),P(G?"collapsed":"expanded")},140),J(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{const ge=X();ge&&ge>0&&oe(ge)})})},440),J(()=>{q(!0)},720),J(()=>{oe(null),he(!1)},940)};return s.jsxs("div",{className:A("z-40 transition-[width] duration-300 ease-in-out",a?"fixed top-4 right-3 max-h-[calc(100vh-2rem)]":"relative max-h-190",L?"w-22":"w-69",l),children:[i&&s.jsx(fe,{type:"button",variant:"outlined",size:"icon","aria-label":"사이드바 접기",onClick:R,disabled:ae,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(bn,{className:A("h-4 w-4 transition-transform duration-200",L?"rotate-180":"rotate-0")})}),s.jsx("aside",{ref:ne,className:A("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:Ce?`${Ce}px`:void 0},children:s.jsx("div",{className:A("flex h-full w-full transition-opacity ease-out",C?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${C?220:140}ms`},"aria-hidden":!C,children:z==="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(bt,{imageUrl:r,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(O,{size:"body1",weight:"bold",className:"text-gray-900",children:e?t??"고라니":"게스트"}),s.jsx(O,{size:"caption1",weight:"regular",className:"text-gray-600",children:e?n??"":"로그인 후 이용 가능"})]})]}),e?s.jsx(fe,{type:"button",variant:"ghost",size:"icon","aria-label":"설정",onClick:N,className:"text-gray-500 hover:text-gray-700",children:s.jsx(wr,{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(O,{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(Da,{className:"h-7 w-7 text-main-800",strokeWidth:2.2}),s.jsx(O,{size:"heading1",weight:"bold",className:"text-main-800",children:o}),s.jsx(O,{size:"body1",weight:"bold",className:"text-gray-800",children:"Days"})]}):s.jsx(O,{as:"p",size:"caption1",weight:"medium",className:"mt-3 block leading-tight text-gray-700",children:f})]}),e?s.jsxs(s.Fragment,{children:[s.jsxs(fe,{className:"mt-5 w-full",size:"medium",disabled:b.length===0,onClick:S,children:[s.jsx(wn,{className:"h-4 w-4"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-inherit",children:c})]}),s.jsxs(fe,{variant:"outlined",className:"mt-3 w-full",size:"medium",onClick:M,children:[s.jsx(wt,{className:"h-4 w-4"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-inherit",children:d})]}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(O,{size:"caption1",weight:"medium",className:"text-gray-500",children:v}),b.length>0?s.jsx("div",{className:"mt-4 flex flex-col gap-5",children:b.map(G=>{const ie=G.tone??"blue";return s.jsx(Wl,{label:G.title,value:G.progress,infinite:G.hasDeadline===!1,fillColor:Q0[ie]},G.id)})}):s.jsxs("div",{className:"mt-4",children:[s.jsx(O,{as:"p",size:"caption1",weight:"medium",className:"text-gray-600",children:p}),s.jsxs("div",{className:"mt-3 flex flex-col gap-2.5",children:[s.jsx(fe,{type:"button",className:"w-full",size:"medium",disabled:Ne,onClick:k,children:m}),s.jsx(fe,{type:"button",variant:"outlined",className:"w-full",size:"medium",onClick:B,children:y})]})]})]})]}):s.jsxs(fe,{className:"mt-5 w-full",size:"medium",onClick:_,children:[s.jsx(br,{className:"h-4 w-4"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-inherit",children:u})]})]}):s.jsxs("div",{className:"flex w-full flex-col items-center pt-2",children:[s.jsx(bt,{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":c,onClick:S,children:s.jsx(wn,{className:"h-4 w-4"})}),s.jsx(fe,{type:"button",variant:"outlined",size:"icon","aria-label":d,onClick:M,children:s.jsx(wt,{className:"h-4 w-4"})}),s.jsx(fe,{type:"button",variant:"outlined",size:"icon","aria-label":g,onClick:N,children:s.jsx(wr,{className:"h-4 w-4"})})]}):s.jsx(fe,{type:"button",size:"icon","aria-label":u,onClick:_,children:s.jsx(br,{className:"h-4 w-4"})})})]})})})]})}const X0=["SUN","MON","TUE","WED","THU","FRI","SAT"];function Z0(e){return e===void 0?"100%":typeof e=="number"?`${e}%`:e}function J0(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 R0(e="main"){return e==="soft"?"bg-main-600/50":"bg-main-800"}function eb({rows:e,weekLabels:t=[...X0],cellMinHeight:n=140,className:r}){return s.jsx("div",{className:A("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:A("h-8 border-b border-r border-gray-300 bg-gray-100 px-1 text-center align-middle sm:h-12 sm:px-2.5",a===t.length-1&&"border-r-0"),scope:"col",children:s.jsx(O,{size:"caption3",weight:"bold",className:"text-gray-600 sm:text-lg",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:A("border-r border-b border-gray-300 align-top",u&&"border-r-0"),children:s.jsx("div",{className:A("flex h-full flex-col gap-1 p-1 sm:gap-2 sm: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(O,{size:"caption3",weight:"medium",className:A("leading-tight sm:text-lg",J0(i.dayTone)),children:i.day}):null,i.title!==void 0?s.jsx(O,{size:"caption3",weight:"bold",className:"line-clamp-1 text-gray-900 sm:text-lg",children:i.title}):null,i.bars&&i.bars.length>0?s.jsx("div",{className:"mt-0.5 flex flex-col gap-1",children:i.bars.map((f,g)=>s.jsx("span",{className:A("block h-1 rounded-full transition-all duration-200 sm:h-1.5",R0(f.tone)),style:{width:Z0(f.width)}},`${d}-bar-${g}`))}):null,i.subtitle!==void 0?s.jsx(O,{size:"caption3",weight:"medium",className:"hidden text-gray-600 sm:block",children:i.subtitle}):null]})})},d)})},`row-${a}`))})]})})}function tb({icon:e,iconName:t,title:n,value:r,unit:o,className:a,iconClassName:i,...l}){const c=e??(t?s.jsx(Fa,{name:t,size:32}):null);return s.jsxs("div",{className:A("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:A("text-main-800","[&_svg]:h-8 [&_svg]:w-8",i),children:c}),s.jsx(O,{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(O,{size:"display1",weight:"bold",className:"text-gray-900",children:r}),s.jsx(O,{size:"heading2",weight:"medium",className:"pb-1 text-gray-600",children:o})]})]})}const nb={sm:{circle:"h-7 w-7",trackTop:"top-3.5",checkIcon:"h-3 w-3",numberSize:"caption1",labelSize:"body2",labelMargin:"mt-3"},md:{circle:"h-10 w-10",trackTop:"top-5",checkIcon:"h-4 w-4",numberSize:"body1",labelSize:"heading2",labelMargin:"mt-5"},lg:{circle:"h-14 w-14",trackTop:"top-7",checkIcon:"h-5 w-5",numberSize:"body1",labelSize:"heading1",labelMargin:"mt-7"}};function rb({steps:e,currentStep:t,size:n="md",className:r}){const o=nb[n];if(e.length===0)return s.jsx("div",{className:A("w-full",r)});const a=Math.max(e.length-1,0),i=Math.min(Math.max(t-1,0),a),l=`${100/(e.length*2)}%`,c=a===0?100:i/a*100;return s.jsx("div",{className:A("w-full",r),children:s.jsxs("div",{className:"relative",children:[e.length>1?s.jsxs("div",{className:A("absolute",o.trackTop),style:{left:l,right:l},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:`${c}%`}})]}):null,s.jsx("ol",{className:"relative z-10 flex items-start",children:e.map((d,u)=>{const f=u<i,g=u===i,v=d.id??`step-${u}`;return s.jsxs("li",{className:"flex flex-1 flex-col items-center",children:[s.jsx("span",{className:A("flex items-center justify-center rounded-full border-2 bg-white transition-colors duration-200",o.circle,f&&"border-main-800 bg-main-800 text-white",g&&"border-main-800 bg-main-800 text-white ring-4 ring-main-300",!f&&!g&&"border-gray-300 text-gray-600"),"aria-current":g?"step":void 0,children:f?s.jsx(yt,{className:o.checkIcon,strokeWidth:2.5}):s.jsx(O,{size:o.numberSize,weight:"bold",className:A(g?"text-white":"text-gray-600"),children:u+1})}),s.jsx(O,{size:o.labelSize,weight:g?"bold":"medium",className:A("text-center leading-tight",o.labelMargin,f&&"text-gray-900",g&&"text-main-800",!f&&!g&&"text-gray-600"),children:d.label})]},v)})})]})})}var[Rn]=Se("Tooltip",[_t]),er=_t(),zl="TooltipProvider",ob=700,To="tooltip.open",[ab,Do]=Rn(zl),Bl=e=>{const{__scopeTooltip:t,delayDuration:n=ob,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(ab,{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=zl;var en="Tooltip",[sb,tn]=Rn(en),$l=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=Do(en,e.__scopeTooltip),d=er(t),[u,f]=h.useState(null),g=ke(),v=h.useRef(0),b=i??c.disableHoverableContent,p=l??c.delayDuration,m=h.useRef(!1),[w,y]=ye({prop:r,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(To))):c.onClose(),a?.(_)},caller:en}),x=h.useMemo(()=>w?m.current?"delayed-open":"instant-open":"closed",[w]),N=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,m.current=!1,y(!0)},[y]),S=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),M=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,y(!0),v.current=0},p)},[p,y]);return h.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),s.jsx(uo,{...d,children:s.jsx(sb,{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(v.current),v.current=0)},[S,b]),onOpen:N,onClose:S,disableHoverableContent:b,children:n})})};$l.displayName=en;var Oo="TooltipTrigger",Hl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(Oo,n),a=Do(Oo,n),i=er(n),l=h.useRef(null),c=Z(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(Wn,{asChild:!0,...i,children:s.jsx(K.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)})})});Hl.displayName=Oo;var Io="TooltipPortal",[ib,lb]=Rn(Io,{forceMount:void 0}),Vl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=tn(Io,t);return s.jsx(ib,{scope:t,forceMount:n,children:s.jsx(Ie,{present:n||a.open,children:s.jsx(Xt,{asChild:!0,container:o,children:r})})})};Vl.displayName=Io;var Ft="TooltipContent",Yl=h.forwardRef((e,t)=>{const n=lb(Ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=tn(Ft,e.__scopeTooltip);return s.jsx(Ie,{present:r||i.open,children:i.disableHoverableContent?s.jsx(jl,{side:o,...a,ref:t}):s.jsx(cb,{side:o,...a,ref:t})})}),cb=h.forwardRef((e,t)=>{const n=tn(Ft,e.__scopeTooltip),r=Do(Ft,e.__scopeTooltip),o=h.useRef(null),a=Z(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]),v=h.useCallback((b,p)=>{const m=b.currentTarget,w={x:b.clientX,y:b.clientY},y=pb(w,m.getBoundingClientRect()),x=gb(w,y),N=mb(p.getBoundingClientRect()),S=bb([...x,...N]);l(S),f(!0)},[f]);return h.useEffect(()=>()=>g(),[g]),h.useEffect(()=>{if(c&&u){const b=m=>v(m,u),p=m=>v(m,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",p)}}},[c,u,v,g]),h.useEffect(()=>{if(i){const b=p=>{const m=p.target,w={x:p.clientX,y:p.clientY},y=c?.contains(m)||u?.contains(m),x=!vb(w,i);y?g():x&&(g(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,d,g]),s.jsx(jl,{...e,ref:a})}),[db,ub]=Rn(en,{isInside:!1}),fb=gc("TooltipContent"),jl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=tn(Ft,n),d=er(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(To,u),()=>document.removeEventListener(To,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(Ut,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.jsxs(fo,{"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(fb,{children:r}),s.jsx(db,{scope:n,isInside:!0,children:s.jsx(Zv,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Yl.displayName=Ft;var Gl="TooltipArrow",hb=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=er(n);return ub(Gl,n).isInside?null:s.jsx(ho,{...o,...r,ref:t})});hb.displayName=Gl;function pb(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 gb(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 mb(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 vb(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 bb(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),yb(t)}function yb(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 wb=Bl,xb=$l,Cb=Hl,Nb=Vl,Sb=Yl;function Ul({delayDuration:e=200,...t}){return s.jsx(wb,{delayDuration:e,...t})}const Kl=xb,Ql=Cb;function ql({className:e,sideOffset:t=4,...n}){return s.jsx(Nb,{children:s.jsx(Sb,{sideOffset:t,className:A("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 kb({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:A("w-full overflow-x-auto pb-2",r),children:s.jsx(Ul,{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(Kl,{children:[s.jsx(Ql,{asChild:!0,children:s.jsx("div",{className:A("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.date," · ",a.count,"회 활동"]})})]},i))})})})}const Xl=it(["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 Ab(e,t){return"body2"}function Pb({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(O,{size:"body1",weight:"bold",className:"text-gray-900",children:e}),n?s.jsx(O,{size:"body1",weight:"bold",className:"text-main-800",children:"*"}):null,t?s.jsx(O,{size:"body1",weight:"regular",className:"text-gray-500",children:t}):null]}):null}const Lo=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 v=t==="search",b=Ab(t,i);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsx(Pb,{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:A(vn({size:b,weight:"regular"}),Xl({variant:t,multiline:!0}),e),ref:g,...f}):s.jsx("input",{id:u,type:a,required:d,className:A(vn({size:b,weight:v?"light":"regular"}),Xl({variant:t,multiline:!1}),e),ref:g,...f}),v&&!i?s.jsx(La,{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(O,{size:"caption1",weight:"regular",className:"mt-2 text-warning",children:o}):null]})});Lo.displayName="TextField";const Zl=h.forwardRef((e,t)=>s.jsx(Lo,{...e,ref:t,multiline:!0}));Zl.displayName="TextArea";var Jl="Toggle",Fo=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,l]=ye({prop:n,onChange:o,defaultProp:r??!1,caller:Jl});return s.jsx(K.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)})})});Fo.displayName=Jl;var Eb=Fo;const _b=it(["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 Mb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Eb,{className:A(_b({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(O,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var Wo="rovingFocusGroup.onEntryFocus",Tb={bubbles:!1,cancelable:!0},nn="RovingFocusGroup",[zo,Rl,Db]=rr(nn),[Ob,ec]=Se(nn,[Db]),[Ib,Lb]=Ob(nn),tc=h.forwardRef((e,t)=>s.jsx(zo.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(zo.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Fb,{...e,ref:t})})}));tc.displayName=nn;var Fb=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),v=Z(t,g),b=ln(a),[p,m]=ye({prop:i,defaultProp:l??null,onChange:c,caller:nn}),[w,y]=h.useState(!1),x=Ze(d),N=Rl(n),S=h.useRef(!1),[M,_]=h.useState(0);return h.useEffect(()=>{const k=g.current;if(k)return k.addEventListener(Wo,x),()=>k.removeEventListener(Wo,x)},[x]),s.jsx(Ib,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:p,onItemFocus:h.useCallback(k=>m(k),[m]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>_(k=>k+1),[]),onFocusableItemRemove:h.useCallback(()=>_(k=>k-1),[]),children:s.jsx(K.div,{tabIndex:w||M===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,k=>{const B=!S.current;if(k.target===k.currentTarget&&B&&!w){const Y=new CustomEvent(Wo,Tb);if(k.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const $=N().filter(z=>z.focusable),U=$.find(z=>z.active),D=$.find(z=>z.id===p),j=[U,D,...$].filter(Boolean).map(z=>z.ref.current);oc(j,u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})}),nc="RovingFocusGroupItem",rc=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...l}=e,c=ke(),d=a||c,u=Lb(nc,n),f=u.currentTabStopId===d,g=Rl(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:p}=u;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),s.jsx(zo.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:s.jsx(K.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:V(e.onMouseDown,m=>{r?u.onItemFocus(d):m.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:V(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const w=Bb(m,u.orientation,u.dir);if(w!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.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(m.currentTarget);x=u.loop?$b(x,N+1):x.slice(N+1)}setTimeout(()=>oc(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:p!=null}):i})})});rc.displayName=nc;var Wb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zb(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Bb(e,t,n){const r=zb(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Wb[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 $b(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Hb=tc,Vb=rc,ot="ToggleGroup",[ac]=Se(ot,[ec]),sc=ec(),Bo=E.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return s.jsx(Yb,{...o,ref:t})}if(n==="multiple"){const o=r;return s.jsx(jb,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ot}\``)});Bo.displayName=ot;var[ic,lc]=ac(ot),Yb=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:n,defaultProp:r??"",onChange:o,caller:ot});return s.jsx(ic,{scope:e.__scopeToggleGroup,type:"single",value:E.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:E.useCallback(()=>l(""),[l]),children:s.jsx(cc,{...a,ref:t})})}),jb=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:n,defaultProp:r??[],onChange:o,caller:ot}),c=E.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=E.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return s.jsx(ic,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:s.jsx(cc,{...a,ref:t})})});Bo.displayName=ot;var[Gb,Ub]=ac(ot),cc=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...c}=e,d=sc(n),u=ln(i),f={role:"group",dir:u,...c};return s.jsx(Gb,{scope:n,rovingFocus:o,disabled:r,children:o?s.jsx(Hb,{asChild:!0,...d,orientation:a,dir:u,loop:l,children:s.jsx(K.div,{...f,ref:t})}):s.jsx(K.div,{...f,ref:t})})}),tr="ToggleGroupItem",dc=E.forwardRef((e,t)=>{const n=lc(tr,e.__scopeToggleGroup),r=Ub(tr,e.__scopeToggleGroup),o=sc(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},c=E.useRef(null);return r.rovingFocus?s.jsx(Vb,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:s.jsx(uc,{...l,ref:t})}):s.jsx(uc,{...l,ref:t})});dc.displayName=tr;var uc=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=lc(tr,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(Fo,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Kb=Bo,Qb=dc;const qb=it(["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 Xb({children:e,className:t,...n}){return s.jsx(Kb,{"data-slot":"toggle-group",className:A("flex flex-wrap gap-4 rounded-none",t),...n,children:e})}function Zb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Qb,{"data-slot":"toggle-group-item",className:A(qb({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(O,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}function Jb({className:e,userName:t,userImageSrc:n,timeLabel:r,isAuthor:o=!1,onAccept:a,onReject:i}){return s.jsxs("div",{className:A("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(at,{src:n,alt:`${t} profile`,fill:!0,className:"object-cover"}):s.jsx(wt,{className:"h-4.5 w-4.5 text-gray-500"})}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(O,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:t}),r?s.jsx(O,{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(yt,{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(yn,{className:"h-4.5 w-4.5",strokeWidth:2.4})})]})}):null]})}T.Accordion=Wd,T.AccordionContent=$d,T.AccordionItem=zd,T.AccordionTrigger=Bd,T.AppHeader=mu,T.BannerCarousel=wu,T.Button=fe,T.Calendar=Hr,T.ChallengeCard=Lp,T.ChallengeListItem=Fp,T.CheckContainer=Wp,T.CheckList=Vp,T.Checkbox=jr,T.CircleAvatar=bt,T.CircularProgress=Gr,T.DatePicker=yv,T.Dialog=Wv,T.DialogClose=Bv,T.DialogContent=$v,T.DialogDescription=jv,T.DialogFooter=Vv,T.DialogHeader=Hv,T.DialogOverlay=nl,T.DialogPortal=tl,T.DialogTitle=Yv,T.DialogTrigger=zv,T.DiaryCard=Kv,T.DiaryListItem=qv,T.GoalAddList=H0,T.Icon=Fa,T.ImagePicker=V0,T.ImagePlaceholder=jt,T.InfoButton=Y0,T.PageWatermark=j0,T.Pagination=U0,T.ProgressBar=Wl,T.RangeDatePicker=wv,T.RightSidebar=q0,T.ScheduleCalendar=eb,T.Select=O0,T.SelectContent=B0,T.SelectGroup=I0,T.SelectItem=W0,T.SelectLabel=$0,T.SelectScrollDownButton=Fl,T.SelectScrollUpButton=Ll,T.SelectSeparator=z0,T.SelectTrigger=F0,T.SelectValue=L0,T.StatContainer=tb,T.StepIndicator=rb,T.Streak=kb,T.Tag=Gt,T.Text=O,T.TextArea=Zl,T.TextField=Lo,T.Toggle=Mb,T.ToggleGroup=Xb,T.ToggleGroupItem=Zb,T.Tooltip=Kl,T.TooltipContent=ql,T.TooltipProvider=Ul,T.TooltipTrigger=Ql,T.UserListItem=Jb,T.cn=A,T.textVariants=vn,Object.defineProperty(T,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},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},Mv=Bi,Tv=Hi,Dv=Yi,Ov=ji,Iv=Gi,Lv=Ki,Fv=qi,el=Zi;const Wv=Mv,zv=Tv,tl=Dv,Bv=el;function nl({className:e,...t}){return s.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 $v({className:e,children:t,...n}){return s.jsxs(tl,{children:[s.jsx(nl,{}),s.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,s.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:[s.jsx(xn,{width:18,height:18,className:"text-gray-500 sm:w-5 sm:h-5"}),s.jsx("span",{className:"sr-only",children:"닫기"})]})]})]})}function Hv({className:e,...t}){return s.jsx("div",{className:P("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Vv({className:e,...t}){return s.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 s.jsx(Lv,{asChild:!0,...n,children:s.jsx(O,{size:"heading2",weight:"bold",className:P("text-black",e),children:t})})}function jv({className:e,children:t,...n}){return s.jsx(Fv,{asChild:!0,...n,children:s.jsx(O,{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: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(st,{src:e,alt:t,fill:!0,className:"h-full w-full object-cover"}):s.jsx(Gt,{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-10 w-10 items-center justify-center rounded-full bg-white shadow-[0_6px_14px_rgba(34,34,34,0.2)] sm:h-12 sm:w-12",children:s.jsx(Ur,{value:c,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-3 right-3 z-20 text-2xl leading-none sm:text-3xl",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 cursor-pointer 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(br,{width:14,height:14,className:"text-white"}):s.jsx(vr,{width:14,height:14,className:"text-white"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-white",children:a})]})})]})}function Uv({title:e,user:t,userImage:n,challengeLabel:r,onChallengeClick:o,date:a}){return s.jsxs("div",{className:"flex w-full flex-col gap-2 p-3 sm:gap-3 sm:p-4",children:[s.jsx(O,{as:"p",size:"body2",weight:"bold",className:"line-clamp-2 min-h-8 leading-tight text-gray-900 sm:text-xl sm:min-h-10",children:e}),s.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),o?.()},className:P("block w-full cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors","hover:bg-gray-100"),children:s.jsx(O,{size:"caption1",weight:"medium",className:"block w-full truncate text-blue-500 sm:text-lg",children:r})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[s.jsx(yt,{imageUrl:n,size:"sm"}),s.jsxs("div",{className:"flex flex-col gap-0.5 sm:gap-1",children:[s.jsx(O,{size:"caption1",weight:"bold",className:"text-gray-900 sm:text-lg",children:t}),s.jsx(O,{size:"caption3",weight:"regular",className:"text-gray-500 sm:text-sm",children:a})]})]})]})}function Kv({imageUrl:e,percent:t,likes:n,isLiked:r,defaultLiked:o=!1,onLikeToggle:a,title:i,user:l,userImage:c,challengeLabel:d,totalMemberCount:u,onChallengeClick:f,date:p,emotion:v="happy",onClick:b}){const g=typeof r=="boolean",[m,w]=k.useState(o),[y,x]=k.useState(n),N=g?r:m,S=g?n:y;k.useEffect(()=>{g||x(n)},[g,n]);const M=()=>{const A=!N,B=Math.max(0,S+(A?1:-1));g||(w(A),x(B)),a?.(A)},_=typeof u=="number"?u<=1?"개인":"단체":d;return s.jsx("div",{className:P("block w-full",b&&"cursor-pointer"),onClick:b,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(Gv,{imageUrl:e,alt:i,percent:t,emotion:v,isLiked:N,likeCount:S,onToggleLike:M}),s.jsx(Uv,{title:i,user:l,userImage:c,challengeLabel:_,onChallengeClick:f,date:p})]})})}const Qv={happy:"😎",soso:"🙂",sad:"🥲"};function qv({title:e,imageUrl:t,percent:n,emotion:r="happy",likes:o,isLiked:a,defaultLiked:i=!1,onLikeToggle:l,user:c,userImage:d,challengeLabel:u,totalMemberCount:f,onChallengeClick:p,date:v,onClick:b,className:g}){const m=typeof a=="boolean",[w,y]=k.useState(i),[x,N]=k.useState(o),S=m?a:w,M=m?o:x;k.useEffect(()=>{m||N(o)},[m,o]);const _=H=>{H.stopPropagation();const G=!S,D=Math.max(0,M+(G?1:-1));m||(y(G),N(D)),l?.(G)},A=!!(t&&t.trim().length>0),B=Math.min(Math.max(n,0),100),$=typeof f=="number"?f<=1?"개인":"단체":u;return s.jsxs("div",{className:P("flex min-w-[320px] gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:min-w-[560px]",b&&"cursor-pointer",g),onClick:b,children:[s.jsxs("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[100px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:w-[140px]",children:[A?s.jsx(st,{src:t,alt:e,width:128,height:128,className:"h-full w-full object-cover"}):s.jsx(Gt,{className:"h-full w-full",logoSize:"sm"}),A?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-6 bg-linear-to-t from-black/10 to-transparent"}):null,s.jsx("div",{className:"absolute top-2 left-2 z-10",children:s.jsx("div",{className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-white shadow-[0_4px_10px_rgba(34,34,34,0.18)]",children:s.jsx(Ur,{value:B,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-2 right-2 z-10 text-xl leading-none",children:s.jsx("span",{role:"img","aria-label":r,children:Qv[r]})})]}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-2 py-0.5",children:[s.jsx(O,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 leading-snug text-gray-900",children:e}),s.jsx("button",{type:"button",onClick:H=>{H.stopPropagation(),p?.()},className:"block w-fit cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors hover:bg-gray-100",children:s.jsx(O,{size:"caption1",weight:"medium",className:"truncate text-blue-500",children:$})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(yt,{imageUrl:d,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[s.jsx(O,{size:"caption2",weight:"bold",className:"truncate text-gray-900",children:c}),s.jsx(O,{size:"caption2",weight:"regular",className:"shrink-0 text-gray-500",children:v})]})]}),s.jsxs("button",{type:"button",onClick:_,className:"flex shrink-0 items-center gap-1 text-gray-500 transition-colors hover:text-red-500",children:[S?s.jsx(br,{width:15,height:15,className:"text-red-500"}):s.jsx(vr,{width:15,height:15}),s.jsx(O,{size:"caption2",weight:"medium",className:"text-inherit",children:M})]})]})]})]})}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"}),Xv="VisuallyHidden",al=h.forwardRef((e,t)=>s.jsx(U.span,{...e,ref:t,style:{...ol,...e.style}}));al.displayName=Xv;var Zv=al,Jv=[" ","Enter","ArrowUp","ArrowDown"],Rv=[" ","Enter"],ht="Select",[Zn,Jn,e0]=ar(ht),[Ft]=Ae(ht,[e0,Mt]),Rn=Mt(),[t0,rt]=Ft(ht),[n0,r0]=Ft(ht),sl=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:p,required:v,form:b}=e,g=Rn(t),[m,w]=h.useState(null),[y,x]=h.useState(null),[N,S]=h.useState(!1),M=cn(d),[_,A]=xe({prop:r,defaultProp:o??!1,onChange:a,caller:ht}),[B,$]=xe({prop:i,defaultProp:l,onChange:c,caller:ht}),H=h.useRef(null),G=m?b||!!m.closest("form"):!0,[D,W]=h.useState(new Set),Y=Array.from(D).map(z=>z.props.value).join(";");return s.jsx(fo,{...g,children:s.jsxs(t0,{required:v,scope:t,trigger:m,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:ke(),value:B,onValueChange:$,open:_,onOpenChange:A,dir:M,triggerPointerDownPosRef:H,disabled:p,children:[s.jsx(Zn.Provider,{scope:t,children:s.jsx(n0,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(z=>{W(E=>new Set(E).add(z))},[]),onNativeOptionRemove:h.useCallback(z=>{W(E=>{const C=new Set(E);return C.delete(z),C})},[]),children:n})}),G?s.jsxs(Tl,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:f,value:B,onChange:z=>$(z.target.value),disabled:p,form:b,children:[B===void 0?s.jsx("option",{value:""}):null,Array.from(D)]},Y):null]})})};sl.displayName=ht;var il="SelectTrigger",ll=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Rn(n),i=rt(il,n),l=i.disabled||r,c=Z(t,i.onTriggerChange),d=Jn(n),u=h.useRef("touch"),[f,p,v]=Ol(g=>{const m=d().filter(x=>!x.disabled),w=m.find(x=>x.value===i.value),y=Il(m,g,w);y!==void 0&&i.onValueChange(y.value)}),b=g=>{l||(i.onOpenChange(!0),v()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return s.jsx(Bn,{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":Dl(i.value)?"":void 0,...o,ref:c,onClick:j(o.onClick,g=>{g.currentTarget.focus(),u.current!=="mouse"&&b(g)}),onPointerDown:j(o.onPointerDown,g=>{u.current=g.pointerType;const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(b(g),g.preventDefault())}),onKeyDown:j(o.onKeyDown,g=>{const m=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(m&&g.key===" ")&&Jv.includes(g.key)&&(b(),g.preventDefault())})})})});ll.displayName=il;var cl="SelectValue",dl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,c=rt(cl,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=Z(t,c.onValueNodeChange);return fe(()=>{d(u)},[d,u]),s.jsx(U.span,{...l,ref:f,style:{pointerEvents:"none"},children:Dl(c.value)?s.jsx(s.Fragment,{children:i}):a})});dl.displayName=cl;var o0="SelectIcon",ul=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ul.displayName=o0;var a0="SelectPortal",fl=e=>s.jsx(Zt,{asChild:!0,...e});fl.displayName=a0;var pt="SelectContent",hl=h.forwardRef((e,t)=>{const n=rt(pt,e.__scopeSelect),[r,o]=h.useState();if(fe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?an.createPortal(s.jsx(pl,{scope:e.__scopeSelect,children:s.jsx(Zn.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(gl,{...e,ref:t})});hl.displayName=pt;var Ie=10,[pl,ot]=Ft(pt),s0="SelectContentImpl",i0=gt("SelectContent.RemoveScroll"),gl=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:p,collisionPadding:v,sticky:b,hideWhenDetached:g,avoidCollisions:m,...w}=e,y=rt(pt,n),[x,N]=h.useState(null),[S,M]=h.useState(null),_=Z(t,I=>N(I)),[A,B]=h.useState(null),[$,H]=h.useState(null),G=Jn(n),[D,W]=h.useState(!1),Y=h.useRef(!1);h.useEffect(()=>{if(x)return mo(x)},[x]),qr();const z=h.useCallback(I=>{const[te,...ae]=G().map(ne=>ne.ref.current),[X]=ae.slice(-1),J=document.activeElement;for(const ne of I)if(ne===J||(ne?.scrollIntoView({block:"nearest"}),ne===te&&S&&(S.scrollTop=0),ne===X&&S&&(S.scrollTop=S.scrollHeight),ne?.focus(),document.activeElement!==J))return},[G,S]),E=h.useCallback(()=>z([A,x]),[z,A,x]);h.useEffect(()=>{D&&E()},[D,E]);const{onOpenChange:C,triggerPointerDownPosRef:Q}=y;h.useEffect(()=>{if(x){let I={x:0,y:0};const te=X=>{I={x:Math.abs(Math.round(X.pageX)-(Q.current?.x??0)),y:Math.abs(Math.round(X.pageY)-(Q.current?.y??0))}},ae=X=>{I.x<=10&&I.y<=10?X.preventDefault():x.contains(X.target)||C(!1),document.removeEventListener("pointermove",te),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",ae,{capture:!0})}}},[x,C,Q]),h.useEffect(()=>{const I=()=>C(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[C]);const[se,he]=Ol(I=>{const te=G().filter(J=>!J.disabled),ae=te.find(J=>J.ref.current===document.activeElement),X=Il(te,I,ae);X&&setTimeout(()=>X.ref.current.focus())}),Se=h.useCallback((I,te,ae)=>{const X=!Y.current&&!ae;(y.value!==void 0&&y.value===te||X)&&(B(I),X&&(Y.current=!0))},[y.value]),ie=h.useCallback(()=>x?.focus(),[x]),oe=h.useCallback((I,te,ae)=>{const X=!Y.current&&!ae;(y.value!==void 0&&y.value===te||X)&&H(I)},[y.value]),ge=r==="popper"?ko:ml,me=ge===ko?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:b,hideWhenDetached:g,avoidCollisions:m}:{};return s.jsx(pl,{scope:n,content:x,viewport:S,onViewportChange:M,itemRefCallback:Se,selectedItem:A,onItemLeave:ie,itemTextRefCallback:oe,focusSelectedItem:E,selectedItemText:$,position:r,isPositioned:D,searchRef:se,children:s.jsx(Kn,{as:i0,allowPinchZoom:!0,children:s.jsx(En,{asChild:!0,trapped:y.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:j(o,I=>{y.trigger?.focus({preventScroll:!0}),I.preventDefault()}),children:s.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:s.jsx(ge,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:I=>I.preventDefault(),...w,...me,onPlaced:()=>W(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:j(w.onKeyDown,I=>{const te=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!te&&I.key.length===1&&he(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let X=G().filter(J=>!J.disabled).map(J=>J.ref.current);if(["ArrowUp","End"].includes(I.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const J=I.target,ne=X.indexOf(J);X=X.slice(ne+1)}setTimeout(()=>z(X)),I.preventDefault()}})})})})})})});gl.displayName=s0;var l0="SelectItemAlignedPosition",ml=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=rt(pt,n),i=ot(pt,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=Z(t,_=>u(_)),p=Jn(n),v=h.useRef(!1),b=h.useRef(!0),{viewport:g,selectedItem:m,selectedItemText:w,focusSelectedItem:y}=i,x=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&g&&m&&w){const _=a.trigger.getBoundingClientRect(),A=d.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),$=w.getBoundingClientRect();if(a.dir!=="rtl"){const J=$.left-A.left,ne=B.left-J,q=_.left-ne,pe=_.width+q,be=Math.max(pe,A.width),on=window.innerWidth-Ie,Ho=rl(ne,[Ie,Math.max(Ie,on-be)]);l.style.minWidth=pe+"px",l.style.left=Ho+"px"}else{const J=A.right-$.right,ne=window.innerWidth-B.right-J,q=window.innerWidth-_.right-ne,pe=_.width+q,be=Math.max(pe,A.width),on=window.innerWidth-Ie,Ho=rl(ne,[Ie,Math.max(Ie,on-be)]);l.style.minWidth=pe+"px",l.style.right=Ho+"px"}const H=p(),G=window.innerHeight-Ie*2,D=g.scrollHeight,W=window.getComputedStyle(d),Y=parseInt(W.borderTopWidth,10),z=parseInt(W.paddingTop,10),E=parseInt(W.borderBottomWidth,10),C=parseInt(W.paddingBottom,10),Q=Y+z+D+C+E,se=Math.min(m.offsetHeight*5,Q),he=window.getComputedStyle(g),Se=parseInt(he.paddingTop,10),ie=parseInt(he.paddingBottom,10),oe=_.top+_.height/2-Ie,ge=G-oe,me=m.offsetHeight/2,I=m.offsetTop+me,te=Y+z+I,ae=Q-te;if(te<=oe){const J=H.length>0&&m===H[H.length-1].ref.current;l.style.bottom="0px";const ne=d.clientHeight-g.offsetTop-g.offsetHeight,q=Math.max(ge,me+(J?ie:0)+ne+E),pe=te+q;l.style.height=pe+"px"}else{const J=H.length>0&&m===H[0].ref.current;l.style.top="0px";const q=Math.max(oe,Y+g.offsetTop+(J?Se:0)+me)+ae;l.style.height=q+"px",g.scrollTop=te-oe+g.offsetTop}l.style.margin=`${Ie}px 0`,l.style.minHeight=se+"px",l.style.maxHeight=G+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[p,a.trigger,a.valueNode,l,d,g,m,w,a.dir,r]);fe(()=>x(),[x]);const[N,S]=h.useState();fe(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const M=h.useCallback(_=>{_&&b.current===!0&&(x(),y?.(),b.current=!1)},[x,y]);return s.jsx(d0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:v,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}})})})});ml.displayName=l0;var c0="SelectPopperPosition",ko=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ie,...a}=e,i=Rn(n);return s.jsx(ho,{...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)"}})});ko.displayName=c0;var[d0,Po]=Ft(pt,{}),Eo="SelectViewport",vl=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=ot(Eo,n),i=Po(Eo,n),l=Z(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(Zn.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:j(o.onScroll,d=>{const u=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=i;if(p?.current&&f){const v=Math.abs(c.current-u.scrollTop);if(v>0){const b=window.innerHeight-Ie*2,g=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(g,m);if(w<b){const y=w+v,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})})})]})});vl.displayName=Eo;var bl="SelectGroup",[u0,f0]=Ft(bl),yl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ke();return s.jsx(u0,{scope:n,id:o,children:s.jsx(U.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=f0(wl,n);return s.jsx(U.div,{id:o.id,...r,ref:t})});xl.displayName=wl;var er="SelectItem",[h0,Cl]=Ft(er),Nl=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=rt(er,n),c=ot(er,n),d=l.value===r,[u,f]=h.useState(a??""),[p,v]=h.useState(!1),b=Z(t,y=>c.itemRefCallback?.(y,r,o)),g=ke(),m=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(h0,{scope:n,value:r,disabled:o,textId:g,isSelected:d,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:s.jsx(Zn.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:s.jsx(U.div,{role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:j(i.onFocus,()=>v(!0)),onBlur:j(i.onBlur,()=>v(!1)),onClick:j(i.onClick,()=>{m.current!=="mouse"&&w()}),onPointerUp:j(i.onPointerUp,()=>{m.current==="mouse"&&w()}),onPointerDown:j(i.onPointerDown,y=>{m.current=y.pointerType}),onPointerMove:j(i.onPointerMove,y=>{m.current=y.pointerType,o?c.onItemLeave?.():m.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:j(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:j(i.onKeyDown,y=>{c.searchRef?.current!==""&&y.key===" "||(Rv.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Nl.displayName=er;var Rt="SelectItemText",Sl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=rt(Rt,n),l=ot(Rt,n),c=Cl(Rt,n),d=r0(Rt,n),[u,f]=h.useState(null),p=Z(t,w=>f(w),c.onItemTextChange,w=>l.itemTextRefCallback?.(w,c.value,c.disabled)),v=u?.textContent,b=h.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:g,onNativeOptionRemove:m}=d;return fe(()=>(g(b),()=>m(b)),[g,m,b]),s.jsxs(s.Fragment,{children:[s.jsx(U.span,{id:c.textId,...a,ref:p}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?an.createPortal(a.children,i.valueNode):null]})});Sl.displayName=Rt;var Al="SelectItemIndicator",kl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Cl(Al,n).isSelected?s.jsx(U.span,{"aria-hidden":!0,...r,ref:t}):null});kl.displayName=Al;var _o="SelectScrollUpButton",Pl=h.forwardRef((e,t)=>{const n=ot(_o,e.__scopeSelect),r=Po(_o,e.__scopeSelect),[o,a]=h.useState(!1),i=Z(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?s.jsx(_l,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Pl.displayName=_o;var Mo="SelectScrollDownButton",El=h.forwardRef((e,t)=>{const n=ot(Mo,e.__scopeSelect),r=Po(Mo,e.__scopeSelect),[o,a]=h.useState(!1),i=Z(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?s.jsx(_l,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});El.displayName=Mo;var _l=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=ot("SelectScrollButton",n),i=h.useRef(null),l=Jn(n),c=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),fe(()=>{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:j(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:j(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:j(o.onPointerLeave,()=>{c()})})}),p0="SelectSeparator",Ml=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(U.div,{"aria-hidden":!0,...r,ref:t})});Ml.displayName=p0;var To="SelectArrow",g0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Rn(n),a=rt(To,n),i=ot(To,n);return a.open&&i.position==="popper"?s.jsx(po,{...o,...r,ref:t}):null});g0.displayName=To;var m0="SelectBubbleInput",Tl=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),a=Z(r,o),i=hs(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:{...ol,...n.style},ref:a,defaultValue:t})});Tl.displayName=m0;function Dl(e){return e===""||e===void 0}function Ol(e){const t=Je(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 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 i=v0(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 v0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var b0=sl,y0=ll,w0=dl,x0=ul,C0=fl,N0=hl,S0=vl,A0=yl,k0=xl,P0=Nl,E0=Sl,_0=kl,M0=Pl,T0=El,D0=Ml;const O0=b0,I0=A0,L0=w0;function F0({className:e,size:t="default",children:n,...r}){const o=t==="sm";return s.jsxs(y0,{"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-[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(O,{size:"body2",weight:"medium",className:"line-clamp-1 text-gray-900",children:n}),s.jsx(x0,{asChild:!0,children:s.jsx(mn,{"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 W0({className:e,children:t,...n}){return s.jsxs(P0,{"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:[s.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center",children:s.jsx(_0,{children:s.jsx(wt,{className:"size-4 text-main-800"})})}),s.jsx(E0,{children:s.jsx(O,{size:"body2",weight:"medium",children:t})})]})}function z0({className:e,...t}){return s.jsx(D0,{"data-slot":"select-separator",className:P("pointer-events-none my-1 h-px bg-gray-200",e),...t})}function Ll({className:e,...t}){return s.jsx(M0,{"data-slot":"select-scroll-up-button",className:P("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(Oa,{className:"size-4"})})}function Fl({className:e,...t}){return s.jsx(T0,{"data-slot":"select-scroll-down-button",className:P("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(mn,{className:"size-4"})})}function B0({className:e,children:t,position:n="popper",...r}){return s.jsx(C0,{children:s.jsxs(N0,{"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:[s.jsx(Ll,{}),s.jsx(S0,{className:P("p-2",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),s.jsx(Fl,{})]})})}function $0({className:e,...t}){return s.jsx(k0,{"data-slot":"select-label",className:P("px-4 py-2 text-xs font-bold text-gray-500",e),...t})}function H0({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]=k.useState(t),[p,v]=k.useState(""),b=k.useRef(!1),g=d?e:u,m=x=>{d||f(x),n?.(x)},w=()=>{if(o)return;const x=p.trim();x&&(m([...g,x]),v(""))},y=x=>{o||m(g.filter((N,S)=>S!==x))};return s.jsxs("div",{className:P("flex w-full flex-col gap-4",l),...c,children:[g.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(O,{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: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:s.jsx(xn,{className:"h-5 w-5"})})]},`${x}-${N}`)),s.jsx("input",{type:"text",value:p,disabled:o,"aria-label":i,placeholder:r,onChange:x=>v(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: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 V0({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=k.useRef(null),d=k.useRef(null),[u,f]=k.useState(n??null),p=()=>{c.current?.click()};k.useEffect(()=>{f(n??null)},[n]),k.useEffect(()=>()=>{d.current&&URL.revokeObjectURL(d.current)},[]);const v=b=>{const g=b.target.files?.[0];if(g){d.current&&URL.revokeObjectURL(d.current);const m=URL.createObjectURL(g);d.current=m,f(m)}};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),v(b)},...o}),s.jsx("button",{type:"button",onClick:p,"aria-label":"이미지 선택",className:P("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(Bt,{width:l,height:i,className:"text-gray-300"})})}),s.jsxs("button",{type:"button",onClick:p,className:P("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(Cn,{className:"h-3.5 w-3.5 text-gray-700"}),s.jsx(O,{size:"caption1",weight:"medium",className:"text-gray-700",children:r})]})]})}function Y0({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:l}){return s.jsxs("div",{className:P("relative overflow-hidden rounded-2 text-white","flex flex-col justify-between","p-4 sm:p-4 lg:p-6","h-24 w-full sm:h-36 lg:h-47.5 lg: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(O,{size:"caption3",weight:"medium",className:"opacity-80",children:e}),s.jsx(O,{size:"caption2",weight:"bold",className:"mt-0.5 sm:text-xl sm:mt-1 lg:text-2xl",children:t})]}),s.jsx("div",{className:"absolute bottom-2 left-2 sm:bottom-4 sm:left-4 lg:bottom-6 lg:left-6",children:s.jsx(st,{src:n,alt:r,width:24,height:40,className:"object-contain sm:w-9 sm:h-15 lg:w-12 lg:h-19.5"})}),s.jsx(O,{size:"body2",weight:"bold",className:"absolute right-2 bottom-2 sm:right-4 sm:bottom-4 sm:text-3xl lg:right-6 lg:bottom-6 lg:text-4xl",children:"→"})]})}function j0(){return s.jsxs("div",{className:"flex items-end gap-2",children:[s.jsx(Bt,{width:24,height:40,className:"text-gray-300"}),s.jsx(O,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}const en="...";function G0({currentPage:e,totalPages:t,siblingCount:n=1}){return h.useMemo(()=>{if(n+5>=t)return Array.from({length:t},(f,p)=>p+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},(v,b)=>b+1),en,t]}if(l&&!c){const f=3+2*n,p=Array.from({length:f},(v,b)=>t-f+b+1);return[d,en,...p]}if(l&&c){const f=Array.from({length:i-a+1},(p,v)=>a+v);return[d,en,...f,en,u]}},[t,e,n])}function U0({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o}){const a=G0({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:P("flex items-center justify-center gap-3",o),children:[s.jsx(de,{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(yn,{className:"h-5 w-5"})}),a?.map((c,d)=>{if(c===en)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(de,{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:s.jsx("span",{className:P("text-2xl leading-none",u?"font-bold text-white":"font-medium text-gray-700"),children:c})},c)}),s.jsx(de,{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(wn,{className:"h-5 w-5"})})]})}function Wl({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:p,fillClassName:v,...b}){const g=Math.min(Math.max(e,0),100),m=a?"100%":`${g}%`,w=o??(a?"∞":`${g}%`),y=n??t!==void 0;return s.jsxs("div",{className:P("w-full",d),...b,children:[(y||r)&&s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y?s.jsx(O,{size:"caption1",weight:"medium",className:P("line-clamp-1 text-gray-800",u),children:t}):s.jsx("span",{}),r?s.jsx(O,{size:"caption1",weight:"medium",className:P("shrink-0 text-gray-600",f),children:w}):null]}),s.jsx("div",{className:P("mt-2.5 overflow-hidden rounded-full bg-gray-200",p),style:{height:`${i}px`,...c?{backgroundColor:c}:{}},children:s.jsx("div",{className:P("h-full rounded-full bg-main-800 transition-all duration-200",v),style:{width:m,...l?{backgroundColor:l}:{}}})})]})}function K0({digit:e}){const[t,n]=k.useState(0),r=k.useRef(0);return k.useEffect(()=>(cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{n(e)}),()=>cancelAnimationFrame(r.current)),[e]),s.jsx("span",{className:"inline-block overflow-hidden",style:{height:"1.2em"},children:s.jsx("span",{className:"flex flex-col",style:{transform:`translateY(calc(-${t} * 1.2em))`,transition:"transform 0.6s cubic-bezier(0.22, 1, 0.36, 1)",lineHeight:"1.2em"},children:Array.from({length:10},(o,a)=>s.jsx("span",{className:"flex items-center",style:{height:"1.2em"},children:a},a))})})}function Q0({value:e}){const t=String(Math.max(0,Math.floor(e))).split("").map(Number);return s.jsx(s.Fragment,{children:t.map((n,r)=>s.jsx(K0,{digit:n},r))})}const q0=[{id:"1",title:"알고리즘 부시기",progress:56,tone:"blue"},{id:"2",title:"새벽 러닝",progress:84,tone:"green"}],X0={blue:"#3b82f6",green:"#22c55e",orange:"#ff5722"};function Z0({isLoggedIn:e=!0,userName:t,userSubtitle:n,userImage:r,streakDays:o,fixed:a=!0,collapsible:i=!0,className:l,diaryButtonLabel:c="일지 작성하기",myPageButtonLabel:d="마이페이지",loginButtonLabel:u="로그인",loginPromptMessage:f="로그인하고 연속 기록을 시작해보세요",settingButtonLabel:p="설정",challengeTitle:v="참여중인 챌린지",challenges:b=q0,emptyChallengeMessage:g="챌린지가 없어요.",joinChallengeButtonLabel:m="챌린지 참여하기",joinChallengeMaxUserCount:w,createChallengeButtonLabel:y="챌린지 생성하기",onCollapseClick:x,onOpenSettings:N,onWriteDiary:S,onGoMyPage:M,onLogin:_,onJoinChallenge:A,onCreateChallenge:B,onChallengeClick:$}){const[Y,z]=k.useState(!1),[E,C]=k.useState("expanded"),[Q,se]=k.useState(!0),[he,Se]=k.useState(!1),[ie,oe]=k.useState(null),ge=k.useRef(null),me=k.useRef([]),I=typeof w=="number"&&w<=1,te=()=>{me.current.forEach(q=>clearTimeout(q)),me.current=[]},ae=(q,pe)=>{const be=setTimeout(()=>{q(),me.current=me.current.filter(on=>on!==be)},pe);me.current.push(be)};k.useEffect(()=>()=>{te()},[]);const X=()=>{const q=ge.current;return q?Math.max(Math.ceil(q.scrollHeight),0):null},J=()=>{const q=ge.current;if(!q)return null;const pe=q.style.height;q.style.height="auto";const be=X();return q.style.height=pe,be},ne=()=>{if(he)return;const q=!Y,pe=ge.current?.offsetHeight;pe&&pe>0&&oe(pe),Se(!0),se(!1),x?.(),te(),ae(()=>{z(q),C(q?"collapsed":"expanded")},140),ae(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{const be=J();be&&be>0&&oe(be)})})},440),ae(()=>{se(!0)},720),ae(()=>{oe(null),Se(!1)},940)};return s.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",Y?"w-22":"w-69",l),children:[i&&s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":"사이드바 접기",onClick:ne,disabled:he,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(wn,{className:P("h-4 w-4 transition-transform duration-200",Y?"rotate-180":"rotate-0")})}),s.jsx("aside",{ref:ge,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:ie?`${ie}px`:void 0},children:s.jsx("div",{className:P("flex h-full w-full transition-opacity ease-out",Q?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${Q?220:140}ms`},"aria-hidden":!Q,children:E==="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(yt,{imageUrl:r,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(O,{size:"body1",weight:"bold",className:"text-gray-900",children:e?t??"고라니":"게스트"}),s.jsx(O,{size:"caption1",weight:"regular",className:"text-gray-600",children:e?n??"":"로그인 후 이용 가능"})]})]}),e?s.jsx(de,{type:"button",variant:"ghost",size:"icon","aria-label":"설정",onClick:N,className:"text-gray-500 hover:text-gray-700",children:s.jsx(xr,{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(O,{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(Da,{className:"h-7 w-7 text-main-800",strokeWidth:2.2}),s.jsx(O,{size:"heading1",weight:"bold",className:"text-main-800",children:s.jsx(Q0,{value:o})}),s.jsx(O,{size:"body1",weight:"bold",className:"text-gray-800",children:"Days"})]}):s.jsx(O,{as:"p",size:"caption1",weight:"medium",className:"mt-3 block leading-tight text-gray-700",children:f})]}),e?s.jsxs(s.Fragment,{children:[s.jsxs(de,{className:"mt-5 w-full",size:"medium",disabled:b.length===0,onClick:S,children:[s.jsx(Cn,{className:"h-4 w-4"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-inherit",children:c})]}),s.jsxs(de,{variant:"outlined",className:"mt-3 w-full",size:"medium",onClick:M,children:[s.jsx(xt,{className:"h-4 w-4"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-inherit",children:d})]}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(O,{size:"caption1",weight:"medium",className:"text-gray-500",children:v}),b.length>0?s.jsx("div",{className:"mt-4 flex flex-col gap-1",children:b.map(q=>{const pe=q.tone??"blue";return s.jsx("div",{role:$?"button":void 0,tabIndex:$?0:void 0,onClick:$?()=>$(q):void 0,onKeyDown:$?be=>{(be.key==="Enter"||be.key===" ")&&$(q)}:void 0,className:P("-mx-2 rounded-2 px-2 py-2 transition-colors duration-150",$&&"cursor-pointer hover:bg-gray-100 active:bg-gray-200"),children:s.jsx(Wl,{label:q.title,value:q.progress,infinite:q.hasDeadline===!1,fillColor:X0[pe]})},q.id)})}):s.jsxs("div",{className:"mt-4",children:[s.jsx(O,{as:"p",size:"caption1",weight:"medium",className:"text-gray-600",children:g}),s.jsxs("div",{className:"mt-3 flex flex-col gap-2.5",children:[s.jsx(de,{type:"button",className:"w-full",size:"medium",disabled:I,onClick:A,children:m}),s.jsx(de,{type:"button",variant:"outlined",className:"w-full",size:"medium",onClick:B,children:y})]})]})]})]}):s.jsxs(de,{className:"mt-5 w-full",size:"medium",onClick:_,children:[s.jsx(yr,{className:"h-4 w-4"}),s.jsx(O,{size:"body2",weight:"bold",className:"text-inherit",children:u})]})]}):s.jsxs("div",{className:"flex w-full flex-col items-center pt-2",children:[s.jsx(yt,{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(de,{type:"button",size:"icon","aria-label":c,onClick:S,children:s.jsx(Cn,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":d,onClick:M,children:s.jsx(xt,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":p,onClick:N,children:s.jsx(xr,{className:"h-4 w-4"})})]}):s.jsx(de,{type:"button",size:"icon","aria-label":u,onClick:_,children:s.jsx(yr,{className:"h-4 w-4"})})})]})})})]})}const J0=["SUN","MON","TUE","WED","THU","FRI","SAT"];function R0(e){return e===void 0?"100%":typeof e=="number"?`${e}%`:e}function eb(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 tb(e="main"){return e==="soft"?"bg-main-600/50":"bg-main-800"}function nb({rows:e,weekLabels:t=[...J0],cellMinHeight:n=140,className:r}){return s.jsx("div",{className:P("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:P("h-8 border-b border-r border-gray-300 bg-gray-100 px-1 text-center align-middle sm:h-12 sm:px-2.5",a===t.length-1&&"border-r-0"),scope:"col",children:s.jsx(O,{size:"caption3",weight:"bold",className:"text-gray-600 sm:text-lg",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,p)=>f+(p.colSpan??1),0)>=7;return s.jsx("td",{colSpan:c,className:P("border-r border-b border-gray-300 align-top",u&&"border-r-0"),children:s.jsx("div",{className:P("flex h-full flex-col gap-1 p-1 sm:gap-2 sm: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(O,{size:"caption3",weight:"medium",className:P("leading-tight sm:text-lg",eb(i.dayTone)),children:i.day}):null,i.title!==void 0?s.jsx(O,{size:"caption3",weight:"bold",className:"line-clamp-1 text-gray-900 sm:text-lg",children:i.title}):null,i.bars&&i.bars.length>0?s.jsx("div",{className:"mt-0.5 flex flex-col gap-1",children:i.bars.map((f,p)=>s.jsx("span",{className:P("block h-1 rounded-full transition-all duration-200 sm:h-1.5",tb(f.tone)),style:{width:R0(f.width)}},`${d}-bar-${p}`))}):null,i.subtitle!==void 0?s.jsx(O,{size:"caption3",weight:"medium",className:"hidden text-gray-600 sm:block",children:i.subtitle}):null]})})},d)})},`row-${a}`))})]})})}function rb({icon:e,iconName:t,title:n,value:r,unit:o,className:a,iconClassName:i,...l}){const c=e??(t?s.jsx(Fa,{name:t,size:32}):null);return s.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:[s.jsxs("div",{className:"flex items-center gap-3.5",children:[s.jsx("div",{className:P("text-main-800","[&_svg]:h-8 [&_svg]:w-8",i),children:c}),s.jsx(O,{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(O,{size:"display1",weight:"bold",className:"text-gray-900",children:r}),s.jsx(O,{size:"heading2",weight:"medium",className:"pb-1 text-gray-600",children:o})]})]})}const ob={sm:{circle:"h-7 w-7",trackTop:"top-3.5",checkIcon:"h-3 w-3",numberSize:"caption1",labelSize:"body2",labelMargin:"mt-3"},md:{circle:"h-10 w-10",trackTop:"top-5",checkIcon:"h-4 w-4",numberSize:"body1",labelSize:"heading2",labelMargin:"mt-5"},lg:{circle:"h-14 w-14",trackTop:"top-7",checkIcon:"h-5 w-5",numberSize:"body1",labelSize:"heading1",labelMargin:"mt-7"}};function ab({steps:e,currentStep:t,size:n="md",className:r}){const o=ob[n];if(e.length===0)return s.jsx("div",{className:P("w-full",r)});const a=Math.max(e.length-1,0),i=Math.min(Math.max(t-1,0),a),l=`${100/(e.length*2)}%`,c=a===0?100:i/a*100;return s.jsx("div",{className:P("w-full",r),children:s.jsxs("div",{className:"relative",children:[e.length>1?s.jsxs("div",{className:P("absolute",o.trackTop),style:{left:l,right:l},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:`${c}%`}})]}):null,s.jsx("ol",{className:"relative z-10 flex items-start",children:e.map((d,u)=>{const f=u<i,p=u===i,v=d.id??`step-${u}`;return s.jsxs("li",{className:"flex flex-1 flex-col items-center",children:[s.jsx("span",{className:P("flex items-center justify-center rounded-full border-2 bg-white transition-colors duration-200",o.circle,f&&"border-main-800 bg-main-800 text-white",p&&"border-main-800 bg-main-800 text-white ring-4 ring-main-300",!f&&!p&&"border-gray-300 text-gray-600"),"aria-current":p?"step":void 0,children:f?s.jsx(wt,{className:o.checkIcon,strokeWidth:2.5}):s.jsx(O,{size:o.numberSize,weight:"bold",className:P(p?"text-white":"text-gray-600"),children:u+1})}),s.jsx(O,{size:o.labelSize,weight:p?"bold":"medium",className:P("text-center leading-tight",o.labelMargin,f&&"text-gray-900",p&&"text-main-800",!f&&!p&&"text-gray-600"),children:d.label})]},v)})})]})})}var[tr]=Ae("Tooltip",[Mt]),nr=Mt(),zl="TooltipProvider",sb=700,Do="tooltip.open",[ib,Oo]=tr(zl),Bl=e=>{const{__scopeTooltip:t,delayDuration:n=sb,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(ib,{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=zl;var tn="Tooltip",[lb,nn]=tr(tn),$l=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=Oo(tn,e.__scopeTooltip),d=nr(t),[u,f]=h.useState(null),p=ke(),v=h.useRef(0),b=i??c.disableHoverableContent,g=l??c.delayDuration,m=h.useRef(!1),[w,y]=xe({prop:r,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(Do))):c.onClose(),a?.(_)},caller:tn}),x=h.useMemo(()=>w?m.current?"delayed-open":"instant-open":"closed",[w]),N=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,m.current=!1,y(!0)},[y]),S=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),M=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,y(!0),v.current=0},g)},[g,y]);return h.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),s.jsx(fo,{...d,children:s.jsx(lb,{scope:t,contentId:p,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(v.current),v.current=0)},[S,b]),onOpen:N,onClose:S,disableHoverableContent:b,children:n})})};$l.displayName=tn;var Io="TooltipTrigger",Hl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nn(Io,n),a=Oo(Io,n),i=nr(n),l=h.useRef(null),c=Z(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(Bn,{asChild:!0,...i,children:s.jsx(U.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:j(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:j(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Hl.displayName=Io;var Lo="TooltipPortal",[cb,db]=tr(Lo,{forceMount:void 0}),Vl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=nn(Lo,t);return s.jsx(cb,{scope:t,forceMount:n,children:s.jsx(Le,{present:n||a.open,children:s.jsx(Zt,{asChild:!0,container:o,children:r})})})};Vl.displayName=Lo;var Wt="TooltipContent",Yl=h.forwardRef((e,t)=>{const n=db(Wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=nn(Wt,e.__scopeTooltip);return s.jsx(Le,{present:r||i.open,children:i.disableHoverableContent?s.jsx(jl,{side:o,...a,ref:t}):s.jsx(ub,{side:o,...a,ref:t})})}),ub=h.forwardRef((e,t)=>{const n=nn(Wt,e.__scopeTooltip),r=Oo(Wt,e.__scopeTooltip),o=h.useRef(null),a=Z(t,o),[i,l]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{l(null),f(!1)},[f]),v=h.useCallback((b,g)=>{const m=b.currentTarget,w={x:b.clientX,y:b.clientY},y=mb(w,m.getBoundingClientRect()),x=vb(w,y),N=bb(g.getBoundingClientRect()),S=wb([...x,...N]);l(S),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(c&&u){const b=m=>v(m,u),g=m=>v(m,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",g)}}},[c,u,v,p]),h.useEffect(()=>{if(i){const b=g=>{const m=g.target,w={x:g.clientX,y:g.clientY},y=c?.contains(m)||u?.contains(m),x=!yb(w,i);y?p():x&&(p(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,d,p]),s.jsx(jl,{...e,ref:a})}),[fb,hb]=tr(tn,{isInside:!1}),pb=gc("TooltipContent"),jl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=nn(Wt,n),d=nr(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(Do,u),()=>document.removeEventListener(Do,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=p=>{p.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),s.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.jsxs(ho,{"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(pb,{children:r}),s.jsx(fb,{scope:n,isInside:!0,children:s.jsx(Zv,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Yl.displayName=Wt;var Gl="TooltipArrow",gb=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nr(n);return hb(Gl,n).isInside?null:s.jsx(po,{...o,...r,ref:t})});gb.displayName=Gl;function mb(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 vb(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 bb(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 yb(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,p=c.y;u>r!=p>r&&n<(f-d)*(r-u)/(p-u)+d&&(o=!o)}return o}function wb(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),xb(t)}function xb(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 Cb=Bl,Nb=$l,Sb=Hl,Ab=Vl,kb=Yl;function Ul({delayDuration:e=200,...t}){return s.jsx(Cb,{delayDuration:e,...t})}const Kl=Nb,Ql=Sb;function ql({className:e,sideOffset:t=4,...n}){return s.jsx(Ab,{children:s.jsx(kb,{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 Pb({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:P("w-full overflow-x-auto pb-2",r),children:s.jsx(Ul,{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(Kl,{children:[s.jsx(Ql,{asChild:!0,children:s.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`}})}),s.jsx(ql,{side:"top",children:s.jsxs("p",{className:"text-xs",children:[a.date," · ",a.count,"회 활동"]})})]},i))})})})}const Xl=lt(["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 Eb(e,t){return"body2"}function _b({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(O,{size:"body1",weight:"bold",className:"text-gray-900",children:e}),n?s.jsx(O,{size:"body1",weight:"bold",className:"text-main-800",children:"*"}):null,t?s.jsx(O,{size:"body1",weight:"regular",className:"text-gray-500",children:t}):null]}):null}const Fo=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},p)=>{const v=t==="search",b=Eb(t,i);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsx(_b,{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:P(bn({size:b,weight:"regular"}),Xl({variant:t,multiline:!0}),e),ref:p,...f}):s.jsx("input",{id:u,type:a,required:d,className:P(bn({size:b,weight:v?"light":"regular"}),Xl({variant:t,multiline:!1}),e),ref:p,...f}),v&&!i?s.jsx(La,{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(O,{size:"caption1",weight:"regular",className:"mt-2 text-warning",children:o}):null]})});Fo.displayName="TextField";const Zl=h.forwardRef((e,t)=>s.jsx(Fo,{...e,ref:t,multiline:!0}));Zl.displayName="TextArea";var Jl="Toggle",Wo=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,l]=xe({prop:n,onChange:o,defaultProp:r??!1,caller:Jl});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:j(e.onClick,()=>{e.disabled||l(!i)})})});Wo.displayName=Jl;var Mb=Wo;const Tb=lt(["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 Db({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Mb,{className:P(Tb({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(O,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var zo="rovingFocusGroup.onEntryFocus",Ob={bubbles:!1,cancelable:!0},rn="RovingFocusGroup",[Bo,Rl,Ib]=ar(rn),[Lb,ec]=Ae(rn,[Ib]),[Fb,Wb]=Lb(rn),tc=h.forwardRef((e,t)=>s.jsx(Bo.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Bo.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(zb,{...e,ref:t})})}));tc.displayName=rn;var zb=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,p=h.useRef(null),v=Z(t,p),b=cn(a),[g,m]=xe({prop:i,defaultProp:l??null,onChange:c,caller:rn}),[w,y]=h.useState(!1),x=Je(d),N=Rl(n),S=h.useRef(!1),[M,_]=h.useState(0);return h.useEffect(()=>{const A=p.current;if(A)return A.addEventListener(zo,x),()=>A.removeEventListener(zo,x)},[x]),s.jsx(Fb,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:h.useCallback(A=>m(A),[m]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>_(A=>A+1),[]),onFocusableItemRemove:h.useCallback(()=>_(A=>A-1),[]),children:s.jsx(U.div,{tabIndex:w||M===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{S.current=!0}),onFocus:j(e.onFocus,A=>{const B=!S.current;if(A.target===A.currentTarget&&B&&!w){const $=new CustomEvent(zo,Ob);if(A.currentTarget.dispatchEvent($),!$.defaultPrevented){const H=N().filter(z=>z.focusable),G=H.find(z=>z.active),D=H.find(z=>z.id===g),Y=[G,D,...H].filter(Boolean).map(z=>z.ref.current);oc(Y,u)}}S.current=!1}),onBlur:j(e.onBlur,()=>y(!1))})})}),nc="RovingFocusGroupItem",rc=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...l}=e,c=ke(),d=a||c,u=Wb(nc,n),f=u.currentTabStopId===d,p=Rl(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:g}=u;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),s.jsx(Bo.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:j(e.onMouseDown,m=>{r?u.onItemFocus(d):m.preventDefault()}),onFocus:j(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:j(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const w=Hb(m,u.orientation,u.dir);if(w!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=p().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(m.currentTarget);x=u.loop?Vb(x,N+1):x.slice(N+1)}setTimeout(()=>oc(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:g!=null}):i})})});rc.displayName=nc;var Bb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $b(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hb(e,t,n){const r=$b(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Bb[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 Vb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Yb=tc,jb=rc,at="ToggleGroup",[ac]=Ae(at,[ec]),sc=ec(),$o=k.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return s.jsx(Gb,{...o,ref:t})}if(n==="multiple"){const o=r;return s.jsx(Ub,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${at}\``)});$o.displayName=at;var[ic,lc]=ac(at),Gb=k.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=xe({prop:n,defaultProp:r??"",onChange:o,caller:at});return s.jsx(ic,{scope:e.__scopeToggleGroup,type:"single",value:k.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:k.useCallback(()=>l(""),[l]),children:s.jsx(cc,{...a,ref:t})})}),Ub=k.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=xe({prop:n,defaultProp:r??[],onChange:o,caller:at}),c=k.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=k.useCallback(u=>l((f=[])=>f.filter(p=>p!==u)),[l]);return s.jsx(ic,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:s.jsx(cc,{...a,ref:t})})});$o.displayName=at;var[Kb,Qb]=ac(at),cc=k.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...c}=e,d=sc(n),u=cn(i),f={role:"group",dir:u,...c};return s.jsx(Kb,{scope:n,rovingFocus:o,disabled:r,children:o?s.jsx(Yb,{asChild:!0,...d,orientation:a,dir:u,loop:l,children:s.jsx(U.div,{...f,ref:t})}):s.jsx(U.div,{...f,ref:t})})}),rr="ToggleGroupItem",dc=k.forwardRef((e,t)=>{const n=lc(rr,e.__scopeToggleGroup),r=Qb(rr,e.__scopeToggleGroup),o=sc(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},c=k.useRef(null);return r.rovingFocus?s.jsx(jb,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:s.jsx(uc,{...l,ref:t})}):s.jsx(uc,{...l,ref:t})});dc.displayName=rr;var uc=k.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=lc(rr,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(Wo,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),qb=$o,Xb=dc;const Zb=lt(["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 Jb({children:e,className:t,...n}){return s.jsx(qb,{"data-slot":"toggle-group",className:P("flex flex-wrap gap-4 rounded-none",t),...n,children:e})}function Rb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Xb,{"data-slot":"toggle-group-item",className:P(Zb({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(O,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}function ey({className:e,userName:t,userImageSrc:n,timeLabel:r,isAuthor:o=!1,onAccept:a,onReject:i}){return s.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:[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(st,{src:n,alt:`${t} profile`,fill:!0,className:"object-cover"}):s.jsx(xt,{className:"h-4.5 w-4.5 text-gray-500"})}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(O,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:t}),r?s.jsx(O,{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(wt,{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(xn,{className:"h-4.5 w-4.5",strokeWidth:2.4})})]})}):null]})}T.Accordion=Wd,T.AccordionContent=$d,T.AccordionItem=zd,T.AccordionTrigger=Bd,T.AppHeader=mu,T.BannerCarousel=wu,T.Button=de,T.Calendar=Vr,T.ChallengeCard=Lp,T.ChallengeListItem=Fp,T.CheckContainer=Wp,T.CheckList=Vp,T.Checkbox=Gr,T.CircleAvatar=yt,T.CircularProgress=Ur,T.DatePicker=yv,T.Dialog=Wv,T.DialogClose=Bv,T.DialogContent=$v,T.DialogDescription=jv,T.DialogFooter=Vv,T.DialogHeader=Hv,T.DialogOverlay=nl,T.DialogPortal=tl,T.DialogTitle=Yv,T.DialogTrigger=zv,T.DiaryCard=Kv,T.DiaryListItem=qv,T.GoalAddList=H0,T.Icon=Fa,T.ImagePicker=V0,T.ImagePlaceholder=Gt,T.InfoButton=Y0,T.PageWatermark=j0,T.Pagination=U0,T.ProgressBar=Wl,T.RangeDatePicker=wv,T.RightSidebar=Z0,T.ScheduleCalendar=nb,T.Select=O0,T.SelectContent=B0,T.SelectGroup=I0,T.SelectItem=W0,T.SelectLabel=$0,T.SelectScrollDownButton=Fl,T.SelectScrollUpButton=Ll,T.SelectSeparator=z0,T.SelectTrigger=F0,T.SelectValue=L0,T.StatContainer=rb,T.StepIndicator=ab,T.Streak=Pb,T.Tag=Ut,T.Text=O,T.TextArea=Zl,T.TextField=Fo,T.Toggle=Db,T.ToggleGroup=Jb,T.ToggleGroupItem=Rb,T.Tooltip=Kl,T.TooltipContent=ql,T.TooltipProvider=Ul,T.TooltipTrigger=Ql,T.UserListItem=ey,T.cn=P,T.textVariants=bn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));