@workday/canvas-kit-mcp 14.3.16 → 14.3.17

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.
@@ -315,7 +315,7 @@ ${s}
315
315
  */(function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},n=e.exports,a=function(){for(var o,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,u=s.length,c={};l<u;l++)if(o=s[l],o&&o[1]in t){for(l=0;l<o.length;l++)c[s[0][l]]=o[l];return c}return!1}(),r={change:a.fullscreenchange,error:a.fullscreenerror},i={request:function(o,s){return new Promise((function(l,u){var c=(function(){this.off("change",c),l()}).bind(this);this.on("change",c),o=o||t.documentElement;var d=o[a.requestFullscreen](s);d instanceof Promise&&d.then(c).catch(u)}).bind(this))},exit:function(){return new Promise((function(o,s){if(!this.isFullscreen){o();return}var l=(function(){this.off("change",l),o()}).bind(this);this.on("change",l);var u=t[a.exitFullscreen]();u instanceof Promise&&u.then(l).catch(s)}).bind(this))},toggle:function(o,s){return this.isFullscreen?this.exit():this.request(o,s)},onchange:function(o){this.on("change",o)},onerror:function(o){this.on("error",o)},on:function(o,s){var l=r[o];l&&t.addEventListener(l,s,!1)},off:function(o,s){var l=r[o];l&&t.removeEventListener(l,s,!1)},raw:a};if(!a){n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(i,{isFullscreen:{get:function(){return!!t[a.fullscreenElement]}},element:{enumerable:!0,get:function(){return t[a.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!t[a.fullscreenEnabled]}}}),n?e.exports=i:window.screenfull=i})()})(RU);var Mie=RU.exports;const ur=hy(Mie);function Uie(e,t){var n=J.useRef(null),a=J.useRef(null);a.current=t;var r=J.useRef(null);J.useEffect(function(){i()});var i=J.useCallback(function(){var o=r.current,s=a.current,l=o||(s?s instanceof Element?s:s.current:null);n.current&&n.current.element===l&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:l,subscriber:e,cleanup:l?e(l):void 0})},[e]);return J.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),J.useCallback(function(o){r.current=o,i()},[i])}function CN(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function zie(e){e===void 0&&(e={});var t=e.onResize,n=J.useRef(void 0);n.current=t;var a=e.round||Math.round,r=J.useRef(),i=J.useState({width:void 0,height:void 0}),o=i[0],s=i[1],l=J.useRef(!1);J.useEffect(function(){return l.current=!1,function(){l.current=!0}},[]);var u=J.useRef({width:void 0,height:void 0}),c=Uie(J.useCallback(function(d){return(!r.current||r.current.box!==e.box||r.current.round!==a)&&(r.current={box:e.box,round:a,instance:new ResizeObserver(function(f){var g=f[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=CN(g,v,"inlineSize"),I=CN(g,v,"blockSize"),b=y?a(y):void 0,m=I?a(I):void 0;if(u.current.width!==b||u.current.height!==m){var h={width:b,height:m};u.current.width=b,u.current.height=m,n.current?n.current(h):l.current||s(h)}})}),r.current.instance.observe(d,{box:e.box}),function(){r.current&&r.current.instance.unobserve(d)}},[e.box,a]),e.ref);return J.useMemo(function(){return{ref:c,width:o.width,height:o.height}},[c,o.width,o.height])}const AU={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px)",position:"absolute",overflow:"hidden",whiteSpace:"nowrap",height:"1px",minHeight:"1px",width:"1px",minWidth:"1px",margin:"-1px",padding:0,border:0},jie=ct(AU);De("div")({displayName:"AccessibleHide",Component:(e,t,n)=>p.jsx(n,{ref:t,...cn(e,jie)})});const Bie={lightest:"lightest",lighter:"lighter",light:"light",main:"base",dark:"dark",darkest:"darkest",contrast:"accent"},qie=ct({[He.alertInner]:Es,[He.alertOuter]:_s,[He.errorInner]:tk,[He.focusOutline]:jw,[or.accent]:We,[or.darkest]:dk,[or.dark]:ck,[or.base]:uk,[or.light]:lk,[or.lighter]:ok,[or.lightest]:ik,[Pr.accent]:We,[Pr.darkest]:Kw,[Pr.dark]:Yw,[Pr.base]:Zw,[Pr.light]:Ww,[Pr.lighter]:Vw,[Pr.lightest]:Hw,[gn.accent]:We,[gn.darkest]:ak,[gn.dark]:rk,[gn.base]:nk,[gn.light]:ek,[gn.lighter]:Qw,[gn.lightest]:Jw,[Gn.accent]:Xw,[Gn.darkest]:Fw,[Gn.dark]:_s,[Gn.base]:Es,[Gn.light]:Pw,[Gn.lighter]:Dw,[Gn.lightest]:Lw,[me.accent]:We,[me.darkest]:Gw,[me.dark]:qw,[me.base]:Bw,[me.light]:zw,[me.lighter]:Uw,[me.lightest]:Mw,[fU.primary]:`linear-gradient(90deg, ${me.base} 0%, ${me.dark} 100%)`}),Gie=(e,t)=>{const n=vU(e),a=(t.className||"").split(" ").concat(qie).join(" "),r=t.style||{},{palette:i}=n.canvas;return["common","primary","error","alert","success","neutral"].forEach(o=>{o==="common"&&["focusOutline","alertInner","alertOuter","errorInner"].forEach(s=>{i.common[s]!==yr.palette.common[s]&&(r[He.focusOutline]=Xa(i.common.focusOutline),r[He.alertInner]=Xa(i.common.alertInner),r[He.alertOuter]=Xa(i.common.alertOuter),r[He.errorInner]=Xa(i.common.errorInner))}),["lightest","lighter","light","main","dark","darkest","contrast"].forEach(s=>{i[o][s]!==yr.palette[o][s]&&(r[Nae[o][Bie[s]]]=Xa(i[o][s]))})}),{...t,className:a,style:r}},Hie={system:{shape:{sm:O("--cnvs-sys-shape-md",Rr.x1Half)}}},Vie=e=>cie[e]||kn(e),Wie=e=>pie[e],Zie=e=>die[e]||kn(e),Yie=e=>fie[e]||kn(e),Kie=e=>fk.properties.fontFamilies[e]||kn(e),Xie=e=>fk.properties.fontSizes[e]||kn(e),Jie=e=>fk.properties.fontWeights[e]||kn(e);function wt(e){return e.reduce((t={},n)=>{const a=r=>n.properties.reduce((i={},o)=>{if(n.system==="color")return{...i,[o]:Vie(r)};if(n.system==="depth"){const s=Wie(r);return{...i,...s}}return n.system==="font"?{...i,[o]:Kie(r)}:n.system==="fontSize"?{...i,[o]:Xie(r)}:n.system==="fontWeight"?{...i,[o]:Jie(r)}:n.system==="shape"?{...i,[o]:Zie(r)}:n.system==="space"?{...i,[o]:Yie(r)}:{...i,[o]:r}},{});return{...t,[n.name]:a}},{})}function pn(e){return t=>{let n={};for(const a in t)if(a in t&&a in e){const r=e[a],i=t[a],o=r(i);n={...n,...o};continue}return n}}const CU=[{name:"background",properties:["background"],system:"color"},{name:"backgroundAttachment",properties:["backgroundAttachment"],system:"none"},{name:"backgroundColor",properties:["backgroundColor"],system:"color"},{name:"backgroundImage",properties:["backgroundImage"],system:"none"},{name:"backgroundPosition",properties:["backgroundPosition"],system:"none"},{name:"backgroundRepeat",properties:["backgroundRepeat"],system:"none"},{name:"backgroundSize",properties:["backgroundSize"],system:"none"}],Qie=wt(CU),eoe=pn(Qie),NU=[{name:"borderColor",properties:["borderColor"],system:"color"},{name:"borderTopColor",properties:["borderTopColor"],system:"color"},{name:"borderRightColor",properties:["borderRightColor"],system:"color"},{name:"borderBottomColor",properties:["borderBottomColor"],system:"color"},{name:"borderLeftColor",properties:["borderLeftColor"],system:"color"},{name:"borderInlineStartColor",properties:["borderInlineStartColor"],system:"color"},{name:"borderInlineEndColor",properties:["borderInlineEndColor"],system:"color"}],toe=wt(NU),OU=[{name:"borderCollapse",properties:["borderCollapse"],system:"none"},{name:"borderSpacing",properties:["borderSpacing"],system:"none"},{name:"borderStyle",properties:["borderStyle"],system:"none"},{name:"borderTopStyle",properties:["borderTopStyle"],system:"none"},{name:"borderRightStyle",properties:["borderRightStyle"],system:"none"},{name:"borderBottomStyle",properties:["borderBottomStyle"],system:"none"},{name:"borderLeftStyle",properties:["borderLeftStyle"],system:"none"},{name:"borderInlineStartStyle",properties:["borderInlineStartStyle"],system:"none"},{name:"borderInlineEndStyle",properties:["borderInlineEndStyle"],system:"none"}],noe=wt(OU),$U=[{name:"borderRadius",properties:["borderRadius"],system:"shape"},{name:"borderTopLeftRadius",properties:["borderTopLeftRadius"],system:"shape"},{name:"borderTopRightRadius",properties:["borderTopRightRadius"],system:"shape"},{name:"borderBottomLeftRadius",properties:["borderBottomLeftRadius"],system:"shape"},{name:"borderBottomRightRadius",properties:["borderBottomRightRadius"],system:"shape"}],roe=wt($U),LU=[{name:"border",properties:["border"],system:"none"},{name:"borderTop",properties:["borderTop"],system:"none"},{name:"borderRight",properties:["borderRight"],system:"none"},{name:"borderBottom",properties:["borderBottom"],system:"none"},{name:"borderLeft",properties:["borderLeft"],system:"none"},{name:"borderInlineStart",properties:["borderInlineStart"],system:"none"},{name:"borderInlineEnd",properties:["borderInlineEnd"],system:"none"}],aoe=wt(LU),DU=[{name:"borderWidth",properties:["borderWidth"],system:"none"},{name:"borderTopWidth",properties:["borderTopWidth"],system:"none"},{name:"borderRightWidth",properties:["borderRightWidth"],system:"none"},{name:"borderBottomWidth",properties:["borderBottomWidth"],system:"none"},{name:"borderLeftWidth",properties:["borderLeftWidth"],system:"none"},{name:"borderInlineStartWidth",properties:["borderInlineStartWidth"],system:"none"},{name:"borderInlineEndWidth",properties:["borderInlineEndWidth"],system:"none"}],ioe=wt(DU),ooe=pn({...toe,...noe,...roe,...aoe,...ioe}),soe=[...NU,...OU,...$U,...LU,...DU],PU=[{name:"backgroundColor",properties:["backgroundColor"],system:"color"},{name:"color",properties:["color"],system:"color"},{name:"opacity",properties:["opacity"],system:"none"}],loe=wt(PU),uoe=pn(loe),FU=[{name:"boxShadow",properties:["boxShadow"],system:"none"},{name:"depth",properties:["boxShadow"],system:"depth"}],coe=wt(FU),doe=pn(coe),MU=[{name:"flex",properties:["flex"],system:"none"},{name:"flexGrow",properties:["flexGrow"],system:"none"},{name:"flexShrink",properties:["flexShrink"],system:"none"},{name:"flexBasis",properties:["flexBasis"],system:"none"},{name:"justifySelf",properties:["justifySelf"],system:"none"},{name:"alignSelf",properties:["alignSelf"],system:"none"},{name:"order",properties:["order"],system:"none"}],poe=wt(MU),foe=pn(poe),UU=[{name:"gridColumnStart",properties:["gridColumnStart"],system:"none"},{name:"gridColumnEnd",properties:["gridColumnEnd"],system:"none"},{name:"gridRowStart",properties:["gridRowStart"],system:"none"},{name:"gridRowEnd",properties:["gridRowEnd"],system:"none"},{name:"gridColumn",properties:["gridColumn"],system:"none"},{name:"gridRow",properties:["gridRow"],system:"none"},{name:"gridArea",properties:["gridArea"],system:"none"},{name:"justifySelf",properties:["justifySelf"],system:"none"},{name:"alignSelf",properties:["alignSelf"],system:"none"},{name:"placeSelf",properties:["placeSelf"],system:"none"}],moe=wt(UU),goe=pn(moe),zU=[{name:"display",properties:["display"],system:"none"},{name:"height",properties:["height"],system:"space"},{name:"listStyle",properties:["listStyle"],system:"none"},{name:"maxHeight",properties:["maxHeight"],system:"space"},{name:"maxWidth",properties:["maxWidth"],system:"space"},{name:"minHeight",properties:["minHeight"],system:"space"},{name:"minWidth",properties:["minWidth"],system:"space"},{name:"overflow",properties:["overflow"],system:"none"},{name:"overflowX",properties:["overflowX"],system:"none"},{name:"overflowY",properties:["overflowY"],system:"none"},{name:"verticalAlign",properties:["verticalAlign"],system:"none"},{name:"width",properties:["width"],system:"space"}],hoe=wt(zU),boe=pn(hoe),jU=[{name:"animation",properties:["animation"],system:"none"},{name:"appearance",properties:["appearance"],system:"none"},{name:"boxSizing",properties:["boxSizing"],system:"none"},{name:"content",properties:["content"],system:"none"},{name:"cursor",properties:["cursor"],system:"none"},{name:"fill",properties:["fill"],system:"none"},{name:"float",properties:["float"],system:"none"},{name:"objectFit",properties:["objectFit"],system:"none"},{name:"objectPosition",properties:["objectPosition"],system:"none"},{name:"outline",properties:["outline"],system:"none"},{name:"outlineOffset",properties:["outlineOffset"],system:"none"},{name:"overflowWrap",properties:["overflowWrap"],system:"none"},{name:"pointerEvents",properties:["pointerEvents"],system:"none"},{name:"resize",properties:["resize"],system:"none"},{name:"stroke",properties:["stroke"],system:"none"},{name:"transform",properties:["transform"],system:"none"},{name:"transition",properties:["transition"],system:"none"},{name:"userSelect",properties:["userSelect"],system:"none"},{name:"visibility",properties:["visibility"],system:"none"}],voe=wt(jU),yoe=pn(voe),BU=[{name:"position",properties:["position"],system:"none"},{name:"zIndex",properties:["zIndex"],system:"none"},{name:"top",properties:["top"],system:"none"},{name:"right",properties:["right"],system:"none"},{name:"bottom",properties:["bottom"],system:"none"},{name:"left",properties:["left"],system:"none"},{name:"inset",properties:["inset"],system:"none"},{name:"insetInlineStart",properties:["insetInlineStart"],system:"none"},{name:"insetInlineEnd",properties:["insetInlineEnd"],system:"none"}],Soe=wt(BU),Eoe=pn(Soe),qU=[{name:"marginInlineStart",properties:["marginInlineStart"],system:"space"},{name:"marginInlineEnd",properties:["marginInlineEnd"],system:"space"},{name:"paddingInlineStart",properties:["paddingInlineStart"],system:"space"},{name:"paddingInlineEnd",properties:["paddingInlineEnd"],system:"space"},{name:"margin",properties:["margin"],system:"space"},{name:"marginX",properties:["marginInline"],system:"space"},{name:"marginY",properties:["marginBlock"],system:"space"},{name:"marginTop",properties:["marginTop"],system:"space"},{name:"marginRight",properties:["marginRight"],system:"space"},{name:"marginBottom",properties:["marginBottom"],system:"space"},{name:"marginLeft",properties:["marginLeft"],system:"space"},{name:"padding",properties:["padding"],system:"space"},{name:"paddingX",properties:["paddingInline"],system:"space"},{name:"paddingY",properties:["paddingBlock"],system:"space"},{name:"paddingTop",properties:["paddingTop"],system:"space"},{name:"paddingRight",properties:["paddingRight"],system:"space"},{name:"paddingBottom",properties:["paddingBottom"],system:"space"},{name:"paddingLeft",properties:["paddingLeft"],system:"space"}],_oe=wt(qU),woe=pn(_oe),GU=[{name:"fontFamily",properties:["fontFamily"],system:"font"},{name:"fontSize",properties:["fontSize"],system:"fontSize"},{name:"fontStyle",properties:["fontStyle"],system:"none"},{name:"fontWeight",properties:["fontWeight"],system:"fontWeight"},{name:"lineHeight",properties:["lineHeight"],system:"none"},{name:"letterSpacing",properties:["letterSpacing"],system:"none"},{name:"textAlign",properties:["textAlign"],system:"none"},{name:"textDecoration",properties:["textDecoration"],system:"none"},{name:"textOverflow",properties:["textOverflow"],system:"none"},{name:"textTransform",properties:["textTransform"],system:"none"},{name:"textShadow",properties:["textShadow"],system:"none"},{name:"whiteSpace",properties:["whiteSpace"],system:"none"},{name:"wordBreak",properties:["wordBreak"],system:"none"}],koe=wt(GU),Ioe=pn(koe),xoe=["display","color","height","overflow","width","border","background","fontSize","fontWeight","fontFamily","letterSpacing","lineHeight","textAlign","opacity","textDecoration","textOverflow","textTransform","textShadow","whiteSpace","wordBreak"],Toe=e=>XM(e)&&!xoe.includes(e),hk=e=>[{boxSizing:"border-box"},eoe,ooe,uoe,doe,foe,goe,boe,yoe,Eoe,woe,Ioe].reduce((t,n)=>{const a=typeof n=="function"?n(e):n;for(const r in a)t[r]=a[r];return t},{}),Roe=ji("div",{shouldForwardProp:Toe})(hk),Aoe=ji("div")(hk),zl=De("div")({displayName:"Box",Component:({children:e,...t},n,a)=>{const r=EU(()=>typeof a=="string"?Roe:Aoe);return p.jsx(r,{as:a,ref:n,...cn(t),children:e})}}),HU=[{name:"alignContent",properties:["alignContent"],system:"none"},{name:"alignItems",properties:["alignItems"],system:"none"},{name:"display",properties:["display"],system:"none"},{name:"flexDirection",properties:["flexDirection"],system:"none"},{name:"flexWrap",properties:["flexWrap"],system:"none"},{name:"justifyContent",properties:["justifyContent"],system:"none"},{name:"justifyItems",properties:["justifyItems"],system:"none"},{name:"gap",properties:["gap"],system:"space"},{name:"columnGap",properties:["columnGap"],system:"space"},{name:"rowGap",properties:["rowGap"],system:"space"}],Coe=wt(HU),VU=pn(Coe),WU=[{name:"gridGap",properties:["gridGap"],system:"space"},{name:"gridRowGap",properties:["gridRowGap"],system:"space"},{name:"gridColumnGap",properties:["gridColumnGap"],system:"space"},{name:"alignContent",properties:["alignContent"],system:"none"},{name:"alignItems",properties:["alignItems"],system:"none"},{name:"display",properties:["display"],system:"none"},{name:"justifyContent",properties:["justifyContent"],system:"none"},{name:"justifyItems",properties:["justifyItems"],system:"none"},{name:"gridTemplateAreas",properties:["gridTemplateAreas"],system:"none"},{name:"gridTemplate",properties:["gridTemplate"],system:"none"},{name:"gridTemplateColumns",properties:["gridTemplateColumns"],system:"none"},{name:"gridTemplateRows",properties:["gridTemplateRows"],system:"none"},{name:"gridPlaceItems",properties:["gridPlaceItems"],system:"none"},{name:"gridAutoColumns",properties:["gridAutoColumns"],system:"none"},{name:"gridAutoRows",properties:["gridAutoRows"],system:"none"},{name:"gridAutoFlow",properties:["gridAutoFlow"],system:"none"},{name:"gridArea",properties:["gridArea"],system:"none"},{name:"grid",properties:["grid"],system:"none"}],Noe=wt(WU),Ooe=pn(Noe),$oe=[...CU,...soe,...PU,...FU,...HU,...MU,...WU,...UU,...zU,...jU,...BU,...qU,...GU].reduce((e,t)=>(e[t.name]=!0,e),{});function Loe(e){return $oe[e]||!1}function Me(e,t){const n={};let a=!1;const r=Object.keys(e).reduce((o,s)=>(Loe(s)?(a=!0,n[s]=e[s]):o[s]=e[s],o),{});let i={};return a&&(i={...hk(n),...VU(n),...Ooe(n)}),cn(r,[t,i])}const Doe=ji(zl)({display:"flex"},VU),Ft=De("div")({displayName:"Flex",Component:({children:e,...t},n,a)=>p.jsx(Doe,{as:a,ref:n,...t,children:e}),subComponents:{Item:zl}}),po=dn({defaultConfig:{error:void 0,id:"",isRequired:!1,orientation:"vertical"}})(e=>{const t=Ul(e.id);return{state:{...e,id:t},events:{}}}),Poe=le()(({state:e})=>({id:`hint-${e.id}`})),Foe=le()(({state:e})=>({required:e.isRequired?!0:void 0,"aria-invalid":e.error==="error"?!0:void 0,"aria-describedby":e.id?`hint-${e.id}`:void 0,"aria-labelledby":e.id?`label-${e.id}`:void 0,id:e.id?`input-${e.id}`:void 0,error:e.error})),Moe=le()(({state:e})=>({htmlFor:`input-${e.id}`,id:`label-${e.id}`})),Uoe=Re("input")({displayName:"FormField.Input",modelHook:po,elemPropsHook:Foe})((e,t)=>p.jsx(zl,{"data-width":"ck-formfield-width",as:t,...Me(e)})),Nr=ye({base:{},modifiers:{typeLevel:{"title.large":{...et.title.large,color:L.text.strong},"title.medium":{...et.title.medium,color:L.text.strong},"title.small":{...et.title.small,color:L.text.strong},"heading.large":{...et.heading.large,color:L.text.strong},"heading.medium":{...et.heading.medium,color:L.text.strong},"heading.small":{...et.heading.small,color:L.text.strong},"body.large":{...et.body.large,color:L.text.default},"body.medium":{...et.body.medium,color:L.text.default},"body.small":{...et.body.small,color:L.text.default},"subtext.large":{...et.subtext.large,color:L.text.default},"subtext.medium":{...et.subtext.medium,color:L.text.default},"subtext.small":{...et.subtext.small,color:L.text.default}},variant:{error:{color:L.text.critical.default},hint:{color:L.text.hint},inverse:{color:L.text.inverse}}}});De("span")({displayName:"Text",Component:({children:e,typeLevel:t,variant:n,...a},r,i)=>p.jsx(i,{ref:r,...Me(a,Nr({typeLevel:t,variant:n})),children:e})});const zoe=ye({extends:Nr,base:{}});De("p")({displayName:"Subtext",Component:({size:e,variant:t,...n},a,r)=>{const i=`subtext.${e}`;return p.jsx(r,{ref:a,...Me(n,zoe({typeLevel:i,variant:t}))})}});const joe=ye({extends:Nr,base:{}}),Boe=De("p")({displayName:"BodyText",Component:({size:e,variant:t,...n},a,r)=>{const i=`body.${e}`;return p.jsx(r,{ref:a,...Me(n,joe({typeLevel:i,variant:t}))})}}),qoe=ye({extends:Nr,base:{}});De("h2")({displayName:"Heading",Component:({size:e,variant:t,...n},a,r)=>{const i=`heading.${e}`;return p.jsx(r,{ref:a,...Me(n,qoe({typeLevel:i,variant:t}))})}});const Goe=ye({extends:Nr,base:{}});De("h1")({displayName:"Title",Component:({size:e,variant:t,...n},a,r)=>{const i=`title.${e}`;return p.jsx(r,{ref:a,...Me(n,Goe({typeLevel:i,variant:t}))})}});const Hoe=ye({extends:Nr,base:{fontWeight:lr.medium,color:L.text.default,paddingInlineStart:D.zero,display:"flex",alignItems:"center",minWidth:ce(180)},modifiers:{isRequired:{true:{"&::after":{content:'"*"',fontSize:Cae.body.large,fontWeight:lr.normal,color:gn.base,textDecoration:"unset",marginInlineStart:D.x1}}},orientation:{horizontalStart:{justifyContent:"flex-start",float:"left",maxHeight:D.x10},horizontalEnd:{maxHeight:D.x10,float:"left",justifyContent:"flex-end"},vertical:{width:"100%"}},isHidden:{true:{...AU}}},defaultModifiers:{typeLevel:"subtext.large"}}),Voe=Re("label")({displayName:"FormField.Label",modelHook:po,elemPropsHook:Moe})(({children:e,typeLevel:t,variant:n,isHidden:a,...r},i,o)=>p.jsx(i,{...Me(r,Hoe({typeLevel:t,variant:n,isHidden:a?"true":void 0,isRequired:o.state.isRequired,orientation:o.state.orientation})),children:e})),Woe=ye({extends:Nr,base:{margin:D.zero},modifiers:{error:{error:{color:gn.base},caution:{color:L.text.caution.default}}},defaultModifiers:{typeLevel:"subtext.medium"}}),Zoe=Re("p")({displayName:"FormField.Hint",modelHook:po,elemPropsHook:Poe})(({children:e,typeLevel:t,variant:n,...a},r,i)=>e?p.jsx(r,{...Me(a,Woe({typeLevel:t,variant:n,error:i.state.error})),children:e}):null),Yoe=ye({base:{display:"flex",flexDirection:"column",gap:D.x2}}),Koe=Re("div")({displayName:"FormField.Container",modelHook:po})((e,t,n)=>p.jsx(t,{"data-width":"ck-formfield-width",...cn(e,Yoe())})),Xoe=ye({base:{display:"flex",border:"none",padding:D.zero,margin:`${D.zero} ${D.zero} ${D.x6}`},modifiers:{grow:{true:{width:"100%",'[data-width="ck-formfield-width"]':{width:"100%"},'&:has(div[data-width="ck-formfield-width"])':{width:"100%"}}},orientation:{horizontalStart:{flexDirection:"row",gap:D.x8},horizontalEnd:{flexDirection:"row",gap:D.x8},vertical:{flexDirection:"column",gap:D.x1,alignItems:"flex-start"}},required:{true:{}},error:{error:{},caution:{}}},defaultModifiers:{orientation:"vertical"}}),Joe=ye({base:{display:"flex",flexDirection:"column",gap:D.x2}}),Qoe=Re("div")({displayName:"FormField.Field",modelHook:po})((e,t,n)=>p.jsx(t,{"data-width":"ck-formfield-width",...cn(e,Joe())})),W=ia("div")({displayName:"FormField",modelHook:po,subComponents:{Input:Uoe,Label:Voe,Hint:Zoe,Container:Koe,Field:Qoe}})(({children:e,grow:t,orientation:n="vertical",...a},r,i)=>p.jsx(r,{...Me(a,Xoe({grow:t,orientation:i.state.orientation,error:i.state.error,required:i.state.isRequired})),children:e}));function ese(e){return e.length?e[e.length-1]:null}function ZU(e,t){const{min:n,max:a}=bk.zIndex;return t<=a-n?e+n:Math.max(n,a-(t-e)+1)}function Xb(e){const t=e.length;e.forEach((n,a)=>{n.style.zIndex=String(ZU(a,t))})}function tse(e,t){let n=e;do{const a=t.find(r=>r.element===n);if(a)return a.element}while(n=n.parentElement)}function nse(e,t){return t.filter(a=>a.owner).map(a=>({element:a.element,parent:tse(a.owner,t)})).filter(a=>a.parent===e.element)}function YU(e,t){const n=t.split("."),a=n.splice(0,1)[0];return n.length&&e[a]?YU(e[a],n.join(".")):e[a]}function KU(e,t,n){const a=t.split("."),r=a.splice(0,1)[0];return a.length?(e[r]===void 0&&(e[r]={}),KU(e[r],a.join("."),n)):e[r]=n,n}typeof window<"u"&&(window.workday=window.workday||{});const XU=e=>{if(typeof window<"u")return YU(window,e)},JU=(e,t)=>{typeof window<"u"&&KU(window,e,t)},NN=(e,t)=>{var a;let n=(a=e.container)==null?void 0:a.call(e);return n===document.body&&(n=t==null?void 0:t.ownerDocument.body),n||document.body},bk=XU("workday.__popupStack")||{description:"Global popup stack from @workday/canvas-kit/popup-stack",container:e=>(e==null?void 0:e.ownerDocument.body)||document.body,items:[],zIndex:{min:30,max:50,getValue:ZU},_adapter:{}};JU("workday.__popupStack",bk);const cr=XU("workday.__popupStackOfStacks")||[bk];cr.description="Global stack of popup stacks from @workday/canvas-kit/popup-stack";JU("workday.__popupStackOfStacks",cr);function ar(){return cr[cr.length-1]}const At={createContainer(){var n;const e=ar();if((n=e._adapter)!=null&&n.createContainer)return e._adapter.createContainer();const t=document.createElement("div");return t.style.position="relative",t},add(e){var n;const t=ar();if((n=t._adapter)!=null&&n.add){t._adapter.add(e);return}t.items.push(e),NN(t,e.owner).appendChild(e.element),Xb(At.getElements())},remove(e){var n;const t=cr.find(a=>!!At.getElements(a).find(r=>r===e));if(t){if((n=t._adapter)!=null&&n.remove){t._adapter.remove(e);return}const a=t.items.find(r=>r.element===e);t.items=t.items.filter(r=>r.element!==e),NN(t,a==null?void 0:a.owner).removeChild(e),Xb(At.getElements(t))}},isTopmost(e){var a;const t=ar();if((a=t._adapter)!=null&&a.isTopmost)return t._adapter.isTopmost(e);const n=ese(t.items);return n?n.element===e:!1},getElements(e){var n;const t=e||ar();return(n=t._adapter)!=null&&n.getElements?t._adapter.getElements():t.items.map(a=>a.element)},bringToTop(e){var a;const t=ar();if((a=t._adapter)!=null&&a.bringToTop){t._adapter.bringToTop(e);return}const n=t.items.find(r=>r.element===e);if(n)t.items=[...t.items.filter(r=>r!==n),n],nse(n,t.items).forEach(r=>{At.bringToTop(r.element)}),Xb(At.getElements());else{const r=new Error;console.warn("Could not find item",r.stack)}},contains(e,t){var i;const n=ar();if((i=n._adapter)!=null&&i.contains)return n._adapter.contains(e,t);const a=n.items.find(o=>o.element===e);if(a)return r(a,t);return!1;function r(o,s,l=0){var c;if(l>30)return!1;if(o.element===s||o.owner===s||o.element.contains(s)||(c=o.owner)!=null&&c.contains(s))return!0;const u=n.items.find(d=>d.owner&&o.element.contains(d.owner));return u?r(u,s,l+1):!1}},pushStackContext(e){var a,r;const t=ar();if((a=t._adapter)!=null&&a.pushStackContext)return t._adapter.pushStackContext(e);if(((r=t.container)==null?void 0:r.call(t))===e)return;const n={items:[],zIndex:t.zIndex,container:()=>e,_adapter:{}};cr.push(n)},popStackContext(e){var n,a;const t=ar();if((n=t._adapter)!=null&&n.popStackContext)return t._adapter.popStackContext(e);((a=t.container)==null?void 0:a.call(t))===e&&cr.length>1&&cr.pop()},transferToCurrentContext(e){var a;const t=ar();if((a=t._adapter)!=null&&a.transferToCurrentContext)return t._adapter.transferToCurrentContext(e);if(t.items.find(r=>r.element===e.element))return;cr.find(r=>!!r.items.find(i=>i.element===e.element))&&At.remove(e.element),At.add(e)}};let yu=null;ur.isEnabled&&ur.on("change",()=>{ur.isFullscreen?ur.element&&(yu=ur.element,At.pushStackContext(yu)):yu&&At.popStackContext(yu)});const Jb=dn({defaultConfig:{id:"",initialVisibility:"hidden"}})(e=>{const t=Ul(e.id),[n,a]=$.useState(e.initialVisibility||"hidden");return{state:{id:t,visibility:n},events:{show(o){a("visible")},hide(o){a("hidden")}}}}),ON=()=>{},ha=dn({defaultContext:{state:{},events:{show:ON,hide:ON}},defaultConfig:{...Jb.defaultConfig,returnFocusRef:void 0,initialFocusRef:void 0},requiredConfig:Jb.requiredConfig})(e=>{const t=J.useRef(null),n=J.useRef(null),[a,r]=J.useState("bottom"),i=Jb(e),o={...i.state,stackRef:t,targetRef:n,initialFocusRef:e.initialFocusRef,returnFocusRef:e.returnFocusRef,placement:a},s={...i.events,updatePlacement(l){r(l.placement)}};return{state:o,events:s}});ha.Context;const QU=le()(e=>{const t=$.useCallback(a=>{e.state.stackRef.current&&document.contains(a.target)&&!At.contains(e.state.stackRef.current,a.target)&&e.events.hide(a)},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{var a;if(n)return document.addEventListener("mousedown",t),(a=e.state.stackRef.current)==null||a.setAttribute("data-behavior-click-outside-close","always"),()=>{document.removeEventListener("mousedown",t)}},[e.state.stackRef,n,t]),{}}),ez=le()(e=>{const t=$.useCallback(a=>{(a.key==="Esc"||a.key==="Escape")&&At.isTopmost(e.state.stackRef.current)&&e.events.hide(a)},[e.state.stackRef,e.events]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[t,n]),{}}),rse=le()(e=>{const t=$.useCallback(a=>{ur.isFullscreen||e.events.hide(a)},[e.events]),n=e.state.visibility!=="hidden";return $.useEffect(()=>{if(n&&ur.isEnabled)return ur.on("change",t),()=>{ur.off("change",t)}},[t,n]),{}});function tz(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"||t.overflowX==="scroll"||t.overflowX==="auto"?e:tz(e.parentElement)}const ase=le()(e=>{const t=e.state.visibility!=="hidden",n=$.useCallback(a=>{a[0].intersectionRatio<.5&&e.events.hide()},[e.events]);return $.useLayoutEffect(()=>{if(!t||!e.state.targetRef.current)return;const a=e.state.targetRef.current,r=tz(a),i=new IntersectionObserver(n,{root:r,threshold:.5});return i.observe(e.state.targetRef.current),()=>{i.disconnect()}},[n,e.state.targetRef,t]),{}}),ise=le()(e=>{const t=$.useCallback(a=>{if(e.state.stackRef.current&&a.key==="Tab"){const r=Pie(e.state.stackRef.current),i=Fie(e.state.stackRef.current);a.getModifierState("Shift")&&document.activeElement===r?(a.preventDefault(),e.events.hide(a)):!a.getModifierState("Shift")&&(Array.isArray(i)&&document.activeElement&&i.includes(document.activeElement)||document.activeElement===i)&&e.events.hide(a)}},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[n,t]),{}}),nz=le()(({state:e,events:t},n)=>{const a=oa(n,e.stackRef),r=$.useRef(e.placement);r.current=e.placement;const i=$.useCallback(o=>{o!==r.current&&t.updatePlacement({placement:o})},[t]);return{open:e.visibility!=="hidden",anchorElement:e.targetRef,ref:a,onPlacementChange:i}}),ose=(e,t)=>{const{elementRef:n,localRef:a}=La(e),r=$.useContext($w),{style:i}=Gie(r,{}),o=$.useRef(!0),[s]=$.useState(()=>{if(o.current){const l=At.createContainer();return n(l),o.current=!1,l}return a.current});return $.useLayoutEffect(()=>{if(s!==a.current)throw Error("The 'ref' passed to usePopupStack should not be applied to a React element. This will cause a runtime error where the PopupStack and React compete for the element. Instead use ReactDOM.createPortal(<YourComponent />, ref.current)");const l=t?"current"in t?t.current||void 0:t:void 0,u=a.current;return At.add({element:u,owner:l}),()=>{At.remove(u)}},[a,t,s]),$.useLayoutEffect(()=>{var c,d;let u=(t?"current"in t?t.current:t:void 0)??void 0;if(u==null&&typeof document<"u"){const f=document.activeElement,g=a.current;u=(f&&g&&!g.contains(f)?f:document.body).closest("[dir]")??document.documentElement}if(u){const f=u.getAttribute("dir");(f!=null?f.toLowerCase()==="rtl":yU(u))?(c=a.current)==null||c.setAttribute("dir","rtl"):(d=a.current)==null||d.setAttribute("dir","ltr")}},[a,t]),$.useLayoutEffect(()=>{const l=a.current,u=Object.keys(i);if(l&&r){for(const c of u)l.style.setProperty(c,i[c]);return()=>{for(const c of u)l.style.removeProperty(c)}}},[a,i,r]),a},rz=le()(({events:e,state:t},n)=>({ref:oa(n,t.targetRef),onClick:r=>{t.targetRef.current instanceof Element||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r)}})),sse=le()(({events:e,state:t},n)=>({ref:oa(n,t.targetRef),onContextMenu:r=>{t.targetRef.current||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r),r.preventDefault()}}));function az(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"?e:az(e.parentElement)}function iz(e){return e===null||e===document.body||!e.parentElement?null:Die(e)?e:iz(e.parentElement)}function $N(e,t){const n=e.getBoundingClientRect();return n.top+n.height/2<t.top||n.bottom-n.height/2>t.bottom||n.left+n.width/2<t.left||n.right-n.width/2>t.right}const lse=le()(e=>{const t=e.state.visibility!=="hidden",n=$.useRef(null),a=$.useRef(!1),r=$.useCallback(o=>{o.key==="Tab"&&(a.current=!0)},[]),i=$.useCallback(o=>{e.state.stackRef.current&&o.target instanceof Element&&(At.contains(e.state.stackRef.current,o.target)||(n.current=o.target))},[e.state.stackRef]);return $.useLayoutEffect(()=>{if(!t)return;const o=(e.state.returnFocusRef||e.state.targetRef).current;return document.addEventListener("mousedown",i,!0),document.addEventListener("keydown",r,!0),()=>{if(document.removeEventListener("mousedown",i,!0),document.removeEventListener("keydown",r,!0),!o)return;const l=az(o).getBoundingClientRect(),u={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};if(n.current&&iz(n.current)||$N(o,l)||$N(o,u)){n.current=null;return}document.activeElement!==document.body&&e.state.stackRef.current&&document.activeElement instanceof Element&&!At.contains(e.state.stackRef.current,document.activeElement)||a.current?kN(o):requestAnimationFrame(()=>{kN(o)}),n.current=null}},[e.state.returnFocusRef,e.state.targetRef,t,i,r,e.state.stackRef]),{}}),use=ye({extends:Nr,base:{color:L.fg.strong,fontWeight:lr.bold,marginBlock:D.zero},defaultModifiers:{typeLevel:"body.large"}}),cse=De("h3")({displayName:"Card.Heading",Component:({children:e,...t},n,a)=>p.jsx(a,{ref:n,...Me(t,use()),children:e})}),dse=ye({extends:Nr,base:{},defaultModifiers:{typeLevel:"subtext.large"}}),pse=De("div")({displayName:"Card.Body",Component:({children:e,...t},n,a)=>p.jsx(a,{ref:n,...Me(t,dse()),children:e})}),fse=ye({base:{display:"flex",flexDirection:"column",gap:D.x6,padding:D.x8,backgroundColor:L.bg.default,borderRadius:Rr.x2,border:`${ce(1)} solid ${L.border.container}`},modifiers:{variant:{borderless:{borderColor:"transparent"},filled:{backgroundColor:L.bg.alt.soft,borderColor:L.border.transparent}}}}),mse=De("div")({displayName:"Card",Component:({children:e,variant:t,...n},a,r)=>p.jsx(r,{ref:a,...Me(n,fse({variant:t})),children:e}),subComponents:{Heading:cse,Body:pse}}),oz=e=>{const[t,n]=e.split("-");return{vertical:t==="top"?"bottom":t==="bottom"||n==="end"?"top":n==="start"?"bottom":"center",horizontal:t==="left"?"right":t==="right"||n==="end"?"left":n==="start"?"right":"center"}};var sz={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Accent="accent",t.Applet="applet",t.Expressive="expressive",t.System="system",t.Graphic="graphic"}(e.CanvasIconTypes||(e.CanvasIconTypes={}))})(sz);function gse(e,t){if(e.type!==t)throw`${e.name}: Icon type "${e.type}" does not match expected type "${t}"`}const lz=ye({vars:{width:"",height:"",size:""},base:({width:e,height:t,size:n})=>({display:"inline-block","> svg":{display:"block",width:O(e,n),height:O(t,n)}}),modifiers:{shouldMirror:{true:{transform:"scaleX(-1)"}},shouldMirrorInRTL:{true:{"&:dir(rtl)":{transform:"scaleX(-1)"}}}}}),ca=e=>e&&e in yN?O(yN[e]):e!=null&&e.startsWith("--")?O(e):e,hse=De("span")({displayName:"Svg",Component:({shouldMirror:e,shouldMirrorInRTL:t,src:n,type:a,...r},i,o)=>{try{gse(n,a)}catch(s){return console.error(s),null}return p.jsx(o,{ref:i,dangerouslySetInnerHTML:{__html:n.svg},...Me(r,lz({shouldMirror:e,shouldMirrorInRTL:t}))})}}),dr=ga("colorHover","fillHover","accentHover","backgroundHover"),ae=ye({extends:lz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,width:t,height:n,accentColor:a,backgroundColor:r,color:i})=>({"& svg":{width:O(t,O(e,D.x6)),height:O(n,O(e,D.x6))},"& .wd-icon-fill":{fill:O(i,L.icon.default)},"& .wd-icon-accent, & .wd-icon-accent2":{fill:O(a,O(i,L.fg.default))},"& .wd-icon-background":{fill:O(r,"transparent")},"&:where(:hover, .hover) .wd-icon-fill":{fill:O(dr.fillHover,O(dr.colorHover,O(i,L.fg.default)))},"&:where(:hover, .hover) .wd-icon-accent, & .wd-icon-accent2":{fill:O(dr.accentHover,O(dr.colorHover,O(a,O(i,L.fg.default))))},"&:where(:hover, .hover) .wd-icon-background":{fill:O(dr.backgroundHover,O(r,"transparent"))},"@media (prefers-contrast: more)":{".wd-icon-fill, .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),ks=De("span")({displayName:"SystemIcon",Component:({size:e,background:t,backgroundHover:n,color:a,colorHover:r,icon:i,accent:o,accentHover:s,fill:l,fillHover:u,...c},d,f)=>p.jsx(hse,{as:f,src:i,type:sz.CanvasIconTypes.System,ref:d,...cn(c,[ae({size:typeof e=="number"?ce(e):e,color:ca(l||a),accentColor:ca(o||a),backgroundColor:ca(t)}),{[dr.colorHover]:r&&ca(r),[dr.fillHover]:u&&ca(u),[dr.accentHover]:s&&ca(s),[dr.backgroundHover]:n&&ca(n)}])})}),bse={extraSmall:18,small:20,medium:20,large:24},vse=De("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>{if(e===void 0)return null;const s=bse[t];return p.jsx(ks,{ref:i,as:o,size:s,icon:e,width:ce(s),height:ce(s),display:"inline-block",shouldMirror:n,shouldMirrorInRTL:a,...r})}}),yse=tJ(zl.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),Sse=De("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>p.jsx(yse,{as:a,ref:n,...t,children:e})}),X={default:ga("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:ga("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:ga("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:ga("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:ga("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},q=ye({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", Arial, sans-serif',fontSize:"0.875rem",lineHeight:"normal",letterSpacing:"0.015rem",fontWeight:lr.bold,backgroundColor:O(X.default.background,O(e,"transparent")),color:O(X.default.label,O(r,L.fg.strong)),borderWidth:ce(1),borderStyle:"solid",gap:D.x2,borderColor:O(X.default.border,O(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",boxSizing:"border-box",outline:`${ce(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:O(X.default.borderRadius,O(o,Rr.round)),position:"relative",verticalAlign:"middle",overflow:"hidden",[ae.vars.color]:O(X.default.icon,L.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:O(X.default.opacity,O(i,$a.full))},"&:focus-visible, &.focus":{backgroundColor:O(X.focus.background,O(e,"transparent")),borderColor:O(X.focus.border,O(t,"transparent")),color:O(X.focus.label,O(r,L.fg.strong)),[ae.vars.color]:O(X.focus.icon,L.fg.strong),outline:`${ce(2)} solid transparent`,outlineOffset:ce(2),...dy({width:2,separation:2,innerColor:O(X.focus.boxShadowInner,O(n,O(L.border.inverse,We))),outerColor:O(X.focus.boxShadowOuter,O(a,He.focusOutline))})},"&:hover, &.hover":{backgroundColor:O(X.hover.background,O(e,L.bg.contrast.strong)),borderColor:O(X.hover.border,O(t,"transparent")),color:O(X.hover.label,O(r,L.fg.stronger)),[ae.vars.color]:O(X.hover.icon,L.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:O(X.active.background,O(e,"transparent")),borderColor:O(X.active.border,O(t,"transparent")),color:O(X.active.label,O(r,L.fg.strong)),[ae.vars.color]:O(X.active.icon,L.fg.strong)},"&:disabled, &.disabled":{backgroundColor:O(X.disabled.background,O(e,"transparent")),borderColor:O(X.disabled.border,O(t,"transparent")),color:O(X.disabled.label,O(r,L.fg.strong)),[ae.vars.color]:O(X.disabled.icon,L.fg.strong)},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${ce(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{...et.body.small,fontWeight:lr.bold,height:ce(48),paddingInline:D.x8,minWidth:ce(112)},medium:{...et.subtext.large,fontWeight:lr.bold,minWidth:ce(96),paddingInline:D.x6,height:D.x10},small:{...et.subtext.large,fontWeight:lr.bold,height:D.x8,minWidth:D.x20,paddingInline:D.x4,gap:D.x1},extraSmall:{...et.subtext.medium,fontWeight:lr.bold,height:D.x6,minWidth:"auto",paddingInline:D.x3,gap:D.x1}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:D.zero},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:ht.multiply(D.x4,3)}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:D.x6,paddingInlineEnd:D.x8}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:D.x8,paddingInlineEnd:D.x6}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:D.x10}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:ht.multiply(D.x1,5),paddingInlineEnd:D.x6}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:D.x6,paddingInlineEnd:ht.multiply(D.x1,5)}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:D.x8}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:D.x3,paddingInlineEnd:D.x4}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:D.x4,paddingInlineEnd:D.x3}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:D.x6}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:D.x2,paddingInlineEnd:D.x3}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:D.x3,paddingInlineEnd:D.x2}}]}),Su=De("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>p.jsx(u,{ref:l,type:"button",...Me(s,[q({size:t,iconPosition:r,grow:a}),X.default((o==null?void 0:o.default)||{}),X.focus((o==null?void 0:o.focus)||{}),X.hover((o==null?void 0:o.hover)||{}),X.active((o==null?void 0:o.active)||{}),X.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:vse,Label:Sse}});var Or={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Accent="accent",t.Applet="applet",t.System="system",t.Graphic="graphic"}(e.CanvasIconTypes||(e.CanvasIconTypes={}))})(Or);var Ese={name:"activityStream",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-activity-stream wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><polygon points="20 17 20 4 4 4 4 17" class="wd-icon-background"/><path d="M20.5 3a.5.5 0 0 1 .5.496v15.008a.503.503 0 0 1-.51.496H11l-3.602 2.701c-.22.165-.398.083-.398-.196V19H3.49a.496.496 0 0 1-.49-.496V3.496A.5.5 0 0 1 3.5 3zM19 5H5v12h14z" class="wd-icon-fill"/><path d="M7 11.505c0-.279.228-.505.491-.505h5.018a.49.49 0 0 1 .491.505v.99a.503.503 0 0 1-.491.505H7.491A.49.49 0 0 1 7 12.495zm0-3C7 8.226 7.228 8 7.51 8h8.98a.5.5 0 0 1 .51.505v.99a.507.507 0 0 1-.51.505H7.51A.5.5 0 0 1 7 9.495z" class="wd-icon-accent"/></g></svg>',filename:"wd-icon-activity-stream.svg",category:"Core",tags:["talk","chat","communcation"]},_se={name:"avatar",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-avatar wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><path fill-rule="nonzero" d="M6.243 10.927a4 4 0 0 1-.013-.32C6.23 8.607 7.777 7 9.665 7c1.197 0 2.29.647 2.916 1.7l.662 1.11.909-.92a1.7 1.7 0 0 1 1.216-.516c.965 0 1.763.829 1.763 1.87q0 .066-.004.131l-.065 1 1 .063c1.077.068 1.938 1.015 1.938 2.18 0 1.438-1.138 3.082-2.064 3.082H5.816C5.031 16.7 4 15.174 4 13.875c0-.927.621-1.71 1.455-1.887l.861-.184zM2 13.875C2 16.15 3.723 18.7 5.816 18.7h12.12c2.22 0 4.064-2.663 4.064-5.083 0-1.889-1.222-3.504-2.92-4.015-.297-1.826-1.84-3.228-3.712-3.228a3.7 3.7 0 0 0-1.714.424A5.35 5.35 0 0 0 9.665 5c-2.91 0-5.273 2.353-5.427 5.3C2.9 10.924 2 12.308 2 13.875Z" class="wd-icon-fill"/></g></svg>',filename:"wd-icon-avatar.svg",category:"Core",tags:["cloud","empty","online","picture","photo","ID"]},wse={name:"caretDownSmall",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-caret-down-small wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><path d="M12.288 15.866c.117.18.31.177.424 0l4.235-6.538c.116-.18.034-.328-.176-.328H8.229c-.214 0-.29.15-.176.328z" class="wd-icon-fill"/></g></svg>',filename:"wd-icon-caret-down-small.svg",category:"Core",tags:["navigation","arrow","triangle","data","table","grid"]},kse={name:"checkSmall",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-check-small wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><path d="m10.34 14.043 5.101-5.936a.287.287 0 0 1 .432-.017l.974.827a.344.344 0 0 1 .03.463l-6.13 7.237a.285.285 0 0 1-.407.04l-3.237-2.614a.344.344 0 0 1-.021-.469l.853-1.03a.296.296 0 0 1 .436-.026z" class="wd-icon-fill"/></g></svg>',filename:"wd-icon-check-small.svg",category:"Core",tags:["success","complete","check mark","check box"]},Ise={name:"chevronRightSmall",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-chevron-right-small wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><path d="M13.703 12 9.128 7.39a.44.44 0 0 1 0-.62l.635-.64a.44.44 0 0 1 .622-.002l.002.002 5.482 5.523a.44.44 0 0 1 .127.347.44.44 0 0 1-.127.347l-5.482 5.523a.44.44 0 0 1-.622.002l-.002-.002-.635-.64a.44.44 0 0 1 0-.62z" class="wd-icon-fill"/></g></svg>',filename:"wd-icon-chevron-right-small.svg",category:"Core",tags:["navigation","arrow"]},xse={name:"uploadCloud",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-upload-cloud wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><path fill-rule="nonzero" d="M9.642 5c1.56 0 3.002.69 4.007 1.842a3.6 3.6 0 0 1 1.753-.454c1.862 0 3.392 1.41 3.659 3.238C20.766 10.11 22 11.718 22 13.603c0 2.395-1.827 5.033-4.005 5.033H5.754C3.705 18.636 2 16.113 2 13.864c0-1.565.912-2.944 2.257-3.545C4.381 7.367 6.737 5 9.642 5Zm0 1.818c-1.965 0-3.571 1.669-3.571 3.744q0 .168.013.332l.067.797-.783.167c-.89.19-1.55 1.022-1.55 2.006 0 1.36 1.077 2.954 1.936 2.954h12.241c1.002 0 2.187-1.712 2.187-3.215 0-1.228-.91-2.23-2.053-2.301l-.909-.058.06-.909q.003-.07.004-.14c0-1.106-.85-1.989-1.882-1.989-.49 0-.95.199-1.3.552l-.827.836-.601-1.01c-.65-1.093-1.788-1.766-3.032-1.766ZM13 13.814v3.006h-2v-2.992L9.77 15.06a.497.497 0 0 1-.713-.002l-.7-.7a.496.496 0 0 1-.002-.712L12 10l3.66 3.645a.497.497 0 0 1-.003.712l-.7.7a.496.496 0 0 1-.712.002z" class="wd-icon-fill"/></g></svg>',filename:"wd-icon-upload-cloud.svg",category:"Core",tags:["storage","store"]},Tse={name:"user",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-user wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g class="wd-icon-container"><path fill-rule="evenodd" d="M20 20.496a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-1.5C4 16 6.246 13.8 8.756 12.684 7.682 11.674 7 10.174 7 8.499 7 5.462 9.239 3 12 3s5 2.462 5 5.499c0 1.675-.68 3.175-1.755 4.183C17.758 13.797 20 15.995 20 18.996z" class="wd-icon-background" clip-rule="evenodd"/><path fill-rule="evenodd" d="M20 20.496a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-1.5C4 16 6.246 13.8 8.756 12.684 7.682 11.674 7 10.174 7 8.499 7 5.462 9.239 3 12 3s5 2.462 5 5.499c0 1.675-.68 3.175-1.755 4.183C17.758 13.797 20 15.995 20 18.996zm-13.917-1.5H18c0-2.996-2.5-4.999-6-4.999s-6 2.003-5.917 5ZM12 11.998c1.657 0 3-1.567 3-3.5C15 6.567 13.657 5 12 5S9 6.566 9 8.499c0 1.932 1.343 3.499 3 3.499Z" class="wd-icon-fill" clip-rule="evenodd"/></g></svg>',filename:"wd-icon-user.svg",category:"Core",tags:["person","people","profile","avatar"]},Rse={name:"xSmall",type:Or.CanvasIconTypes.System,svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon-x-small wd-icon" focusable="false" role="presentation" viewBox="0 0 24 24"><g fill-rule="evenodd" class="wd-icon-container"><path d="m10.783 12-3.661 3.661a.414.414 0 0 0 .001.588l.628.628a.414.414 0 0 0 .588.001L12 13.217l3.661 3.661a.414.414 0 0 0 .588-.001l.628-.628a.414.414 0 0 0 .001-.588L13.217 12l3.661-3.661a.414.414 0 0 0-.001-.588l-.628-.628a.414.414 0 0 0-.588-.001L12 10.783 8.339 7.122a.414.414 0 0 0-.588.001l-.628.628a.414.414 0 0 0-.001.588z" class="wd-icon-fill"/></g></svg>',filename:"wd-icon-x-small.svg",category:"Core",tags:["close","exit","X"]};const vk=De("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return p.jsxs(Su,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&p.jsx(Su.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&p.jsx(Su.Label,{children:e}),t&&c&&["only","end"].includes(c)&&p.jsx(Su.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Ase=ye({extends:q,base:{[q.vars.background]:O(Tt.base,me.base),[q.vars.borderRadius]:Rr.round,[q.vars.label]:O(Tt.accent,me.accent),[ae.vars.color]:O(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[q.vars.background]:O(Tt.base,me.base),[q.vars.label]:O(Tt.accent,me.accent),[q.vars.boxShadowInner]:O(L.border.inverse,We),[q.vars.boxShadowOuter]:He.focusOutline,[ae.vars.color]:O(X.focus.icon,"currentColor")},"&:hover, &.hover":{[q.vars.background]:O(Tt.dark,me.dark),[q.vars.label]:O(Tt.accent,me.accent),[ae.vars.color]:O(X.hover.icon,"currentColor")},"&:active, &.active":{[q.vars.background]:O(Tt.darkest,me.darkest),[q.vars.label]:O(Tt.accent,me.accent),[ae.vars.color]:O(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[q.vars.background]:O(Tt.base,me.base),[q.vars.label]:O(Tt.accent,me.accent),[q.vars.opacity]:$a.disabled,[ae.vars.color]:O(X.disabled.icon,"currentColor")}},modifiers:{variant:{inverse:{[q.vars.background]:O(Tt.lightest,me.lightest),[q.vars.borderRadius]:Rr.round,[q.vars.label]:L.fg.strong,[ae.vars.color]:O(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[q.vars.background]:O(Tt.lightest,me.lightest),[q.vars.label]:L.fg.strong,[q.vars.boxShadowInner]:L.border.contrast.default,[q.vars.boxShadowOuter]:O(L.border.inverse,We),[ae.vars.color]:O(X.focus.icon,"currentColor")},"&:hover, &.hover":{[q.vars.background]:O(Tt.lighter,me.lightest),[q.vars.label]:L.fg.stronger,[ae.vars.color]:O(X.hover.icon,"currentColor")},"&:active, &.active":{[q.vars.background]:O(Tt.light,me.light),[q.vars.label]:L.fg.stronger,[ae.vars.color]:O(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[q.vars.background]:O(Tt.lightest,me.lightest),[q.vars.label]:L.fg.strong,[ae.vars.color]:O(X.disabled.icon,"currentColor")}}}}}),uz=De("button")({displayName:"PrimaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>p.jsx(vk,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Ase({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),Cse=ye({extends:q,base:{[q.vars.background]:L.bg.transparent.default,[q.vars.borderRadius]:Rr.round,[q.vars.border]:L.border.input.default,[q.vars.label]:L.fg.strong,[ae.vars.color]:O(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[q.vars.background]:L.bg.default,[q.vars.label]:L.fg.stronger,[q.vars.boxShadowInner]:O(L.border.inverse,We),[q.vars.boxShadowOuter]:He.focusOutline,[ae.vars.color]:O(X.focus.icon,"currentColor")},"&:hover, &.hover":{[q.vars.background]:sk,[q.vars.label]:L.fg.stronger,[q.vars.border]:L.border.input.strong,[ae.vars.color]:O(X.hover.icon,"currentColor")},"&:active, &.active":{[q.vars.background]:L.bg.alt.strong,[q.vars.label]:L.fg.stronger,[q.vars.border]:L.border.input.strong,[ae.vars.color]:O(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[q.vars.background]:L.bg.transparent.default,[q.vars.label]:L.fg.stronger,[q.vars.opacity]:$a.disabled,[ae.vars.color]:O(X.disabled.icon,"currentColor")}},modifiers:{variant:{inverse:{[q.vars.background]:"transparent",[q.vars.border]:O(L.border.inverse,We),[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.default.icon,"currentColor"),"&:hover, &.hover":{[q.vars.background]:L.bg.transparent.strong,[q.vars.border]:O(L.border.inverse,We),[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[q.vars.background]:L.bg.translucent,[q.vars.border]:"transparent",[q.vars.label]:L.fg.inverse,[q.vars.boxShadowInner]:L.border.contrast.default,[q.vars.boxShadowOuter]:O(L.border.inverse,We),[ae.vars.color]:O(X.focus.icon,"currentColor")},"&:active, &.active":{[q.vars.background]:L.bg.transparent.stronger,[q.vars.border]:O(L.border.inverse,We),[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[q.vars.background]:"transparent",[q.vars.border]:O(L.border.inverse,We),[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.disabled.icon,"currentColor")}}}}}),Is=De("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>p.jsx(vk,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Cse({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),Nse=ye({extends:q,base:{paddingInline:D.x2,minWidth:"auto",borderWidth:ce(2),[q.vars.borderRadius]:Rr.round,[q.vars.background]:L.bg.transparent.default,[q.vars.label]:me.base,[ae.vars.color]:O(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[q.vars.background]:L.bg.transparent.default,[q.vars.label]:me.base,[ae.vars.color]:O(X.focus.icon,"currentColor"),...dy({width:2,separation:0,innerColor:O(L.border.inverse,We),outerColor:He.focusOutline})},"&:hover, &.hover":{[q.vars.background]:L.bg.alt.soft,[q.vars.label]:me.dark,[ae.vars.color]:O(X.hover.icon,"currentColor"),textDecoration:"underline"},"&:active, &.active":{[q.vars.background]:sk,[q.vars.label]:me.darkest,[ae.vars.color]:O(X.active.icon,"currentColor"),textDecoration:"underline"},"&:disabled, &.disabled":{[q.vars.background]:L.bg.transparent.default,[q.vars.label]:me.base,[q.vars.opacity]:$a.disabled,[ae.vars.color]:O(X.disabled.icon,"currentColor")}},modifiers:{iconPosition:{only:{padding:0,[ae.vars.color]:L.fg.default,[ae.vars.color]:O(X.default.icon,L.fg.strong),"&:focus-visible, &.focus":{[ae.vars.color]:O(X.focus.icon,L.fg.strong)},"&:hover, &.hover":{[ae.vars.color]:O(X.hover.icon,L.fg.strong)},"&:active, &.active":{[ae.vars.color]:O(X.active.icon,L.fg.strong)},"&:disabled, &.disabled":{[ae.vars.color]:O(X.disabled.icon,L.fg.strong)}},start:{},end:{}},variant:{inverse:{[q.vars.background]:"transparent",[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[q.vars.background]:L.bg.translucent,[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.focus.icon,"currentColor"),...dy({width:2,separation:0,outerColor:O(L.border.inverse,We)})},"&:hover, &.hover":{[q.vars.background]:L.bg.transparent.strong,[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.hover.icon,"currentColor")},"&:active, &.active":{[q.vars.background]:L.bg.transparent.stronger,[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[q.vars.background]:"transparent",[q.vars.label]:L.fg.inverse,[ae.vars.color]:O(X.disabled.icon,"currentColor")}}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:ht.multiply(D.x4,3)}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:D.x2,paddingInlineEnd:D.x3}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:D.x3,paddingInlineEnd:D.x2}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:D.x10}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:D.x2,paddingInlineEnd:D.x3}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:D.x3,paddingInlineEnd:D.x2}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:D.x8}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:D.x2,paddingInlineEnd:D.x3}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:D.x3,paddingInlineEnd:D.x2}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:D.x6}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:D.x1,paddingInlineEnd:D.x2}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:D.x2,paddingInlineEnd:D.x1}}]}),Ose=De("button")({displayName:"TertiaryButton",Component:({children:e,icon:t,size:n="medium",variant:a,iconPosition:r,grow:i,cs:o,...s},l,u)=>{const c=r||(t?e?"start":"only":void 0);return p.jsx(vk,{as:u,ref:l,icon:t,size:n,iconPosition:r,grow:i,cs:[Nse({size:n,variant:a,grow:i,iconPosition:c}),o],...s,children:e})}});var In="top",Mn="bottom",Un="right",xn="left",yk="auto",jl=[In,Mn,Un,xn],Bi="start",Sk="end",$se="clippingParents",cz="viewport",To="popper",Lse="reference",LN=jl.reduce(function(e,t){return e.concat([t+"-"+Bi,t+"-"+Sk])},[]),dz=[].concat(jl,[yk]).reduce(function(e,t){return e.concat([t,t+"-"+Bi,t+"-"+Sk])},[]),Dse="beforeRead",Pse="read",Fse="afterRead",Mse="beforeMain",Use="main",zse="afterMain",jse="beforeWrite",Bse="write",qse="afterWrite",Gse=[Dse,Pse,Fse,Mse,Use,zse,jse,Bse,qse];function zn(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xs(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Qn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hse(e){var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vse(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Qn(i)||!zn(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Wse(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!Qn(r)||!zn(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const Zse={name:"applyStyles",enabled:!0,phase:"write",fn:Vse,effect:Wse,requires:["computeStyles"]};function Jn(e){return e.split("-")[0]}function Ek(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function pz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hse(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Sr(e){return jn(e).getComputedStyle(e)}function Yse(e){return["table","td","th"].indexOf(zn(e))>=0}function $r(e){return((xs(e)?e.ownerDocument:e.document)||window.document).documentElement}function pp(e){return zn(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||$r(e)}function DN(e){if(!Qn(e)||Sr(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=$r(t);if(zn(t)==="body"&&Sr(t).position==="static"&&Sr(n).position!=="static")return n}return t}function Kse(e){for(var t=pp(e);Qn(t)&&["html","body"].indexOf(zn(t))<0;){var n=Sr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Bl(e){for(var t=jn(e),n=DN(e);n&&Yse(n)&&Sr(n).position==="static";)n=DN(n);return n&&zn(n)==="body"&&Sr(n).position==="static"?t:n||Kse(e)||t}function _k(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bu(e,t,n){return Math.max(e,Math.min(t,n))}function fz(){return{top:0,right:0,bottom:0,left:0}}function mz(e){return Object.assign(Object.assign({},fz()),e)}function gz(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function Xse(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Jn(n.placement),s=_k(o),l=[xn,Un].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Ek(r),f=s==="y"?In:xn,g=s==="y"?Mn:Un,v=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],y=i[s]-n.rects.reference[s],I=Bl(r),b=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,m=v/2-y/2,h=c[f],S=b-d[u]-c[g],w=b/2-d[u]/2+m,_=Bu(h,w,S),k=s;n.modifiersData[a]=(t={},t[k]=_,t.centerOffset=_-w,t)}}function Jse(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||pz(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:mz(typeof s!="number"?s:gz(s,jl))}))}const Qse={name:"arrow",enabled:!0,phase:"main",fn:Xse,effect:Jse,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var ele={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tle(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function PN(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=tle(i),c=u.x,d=u.y,f=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),v=xn,y=In,I=window;if(l){var b=Bl(n);b===jn(n)&&(b=$r(n)),r===In&&(y=Mn,d-=b.clientHeight-a.height,d*=s?1:-1),r===xn&&(v=Un,c-=b.clientWidth-a.width,c*=s?1:-1)}var m=Object.assign({position:o},l&&ele);if(s){var h;return Object.assign(Object.assign({},m),{},(h={},h[y]=g?"0":"",h[v]=f?"0":"",h.transform=(I.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",h))}return Object.assign(Object.assign({},m),{},(t={},t[y]=g?d+"px":"",t[v]=f?c+"px":"",t.transform="",t))}function nle(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:Jn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),PN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),PN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const rle={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nle,data:{}};var Eu={passive:!0};function ale(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=jn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Eu)}),s&&l.addEventListener("resize",n.update,Eu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Eu)}),s&&l.removeEventListener("resize",n.update,Eu)}}const ile={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ale,data:{}};var ole={left:"right",right:"left",bottom:"top",top:"bottom"};function qu(e){return e.replace(/left|right|bottom|top/g,function(t){return ole[t]})}var sle={start:"end",end:"start"};function FN(e){return e.replace(/start|end/g,function(t){return sle[t]})}function Ts(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function wk(e){var t=jn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function kk(e){return Ts($r(e)).left+wk(e).scrollLeft}function lle(e){var t=jn(e),n=$r(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+kk(e),y:s}}function ule(e){var t=$r(e),n=wk(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+kk(e),s=-n.scrollTop;return Sr(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function Ik(e){var t=Sr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function hz(e){return["html","body","#document"].indexOf(zn(e))>=0?e.ownerDocument.body:Qn(e)&&Ik(e)?e:hz(pp(e))}function Wo(e,t){t===void 0&&(t=[]);var n=hz(e),a=zn(n)==="body",r=jn(n),i=a?[r].concat(r.visualViewport||[],Ik(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Wo(pp(i)))}function fy(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cle(e){var t=Ts(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function MN(e,t){return t===cz?fy(lle(e)):Qn(t)?cle(t):fy(ule($r(e)))}function dle(e){var t=Wo(pp(e)),n=["absolute","fixed"].indexOf(Sr(e).position)>=0,a=n&&Qn(e)?Bl(e):e;return xs(a)?t.filter(function(r){return xs(r)&&pz(r,a)&&zn(r)!=="body"}):[]}function ple(e,t,n){var a=t==="clippingParents"?dle(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=MN(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},MN(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Rs(e){return e.split("-")[1]}function bz(e){var t=e.reference,n=e.element,a=e.placement,r=a?Jn(a):null,i=a?Rs(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case In:l={x:o,y:t.y-n.height};break;case Mn:l={x:o,y:t.y+t.height};break;case Un:l={x:t.x+t.width,y:s};break;case xn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?_k(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Bi:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Sk:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function qi(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?$se:i,s=n.rootBoundary,l=s===void 0?cz:s,u=n.elementContext,c=u===void 0?To:u,d=n.altBoundary,f=d===void 0?!1:d,g=n.padding,v=g===void 0?0:g,y=mz(typeof v!="number"?v:gz(v,jl)),I=c===To?Lse:To,b=e.elements.reference,m=e.rects.popper,h=e.elements[f?I:c],S=ple(xs(h)?h:h.contextElement||$r(e.elements.popper),o,l),w=Ts(b),_=bz({reference:w,element:m,placement:r}),k=fy(Object.assign(Object.assign({},m),_)),A=c===To?k:w,N={top:S.top-A.top+y.top,bottom:A.bottom-S.bottom+y.bottom,left:S.left-A.left+y.left,right:A.right-S.right+y.right},M=e.modifiersData.offset;if(c===To&&M){var Z=M[r];Object.keys(N).forEach(function(re){var ie=[Un,Mn].indexOf(re)>=0?1:-1,ke=[In,Mn].indexOf(re)>=0?"y":"x";N[re]+=Z[ke]*ie})}return N}function fle(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?dz:l,c=Rs(a),d=c?s?LN:LN.filter(function(v){return Rs(v)===c}):jl,f=d.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=d);var g=f.reduce(function(v,y){return v[y]=qi(e,{placement:y,boundary:r,rootBoundary:i,padding:o})[Jn(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function mle(e){if(Jn(e)===yk)return[];var t=qu(e);return[FN(e),t,FN(t)]}function gle(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,I=t.options.placement,b=Jn(I),m=b===I,h=l||(m||!v?[qu(I)]:mle(I)),S=[I].concat(h).reduce(function(Ee,Ue){return Ee.concat(Jn(Ue)===yk?fle(t,{placement:Ue,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:y}):Ue)},[]),w=t.rects.reference,_=t.rects.popper,k=new Map,A=!0,N=S[0],M=0;M<S.length;M++){var Z=S[M],re=Jn(Z),ie=Rs(Z)===Bi,ke=[In,Mn].indexOf(re)>=0,Ae=ke?"width":"height",Se=qi(t,{placement:Z,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),Ce=ke?ie?Un:xn:ie?Mn:In;w[Ae]>_[Ae]&&(Ce=qu(Ce));var F=qu(Ce),G=[];if(i&&G.push(Se[re]<=0),s&&G.push(Se[Ce]<=0,Se[F]<=0),G.every(function(Ee){return Ee})){N=Z,A=!1;break}k.set(Z,G)}if(A)for(var H=v?3:1,Y=function(Ue){var je=S.find(function(it){var fn=k.get(it);if(fn)return fn.slice(0,Ue).every(function(Ba){return Ba})});if(je)return N=je,"break"},Q=H;Q>0;Q--){var Qe=Y(Q);if(Qe==="break")break}t.placement!==N&&(t.modifiersData[a]._skip=!0,t.placement=N,t.reset=!0)}}const hle={name:"flip",enabled:!0,phase:"main",fn:gle,requiresIfExists:["offset"],data:{_skip:!1}};function UN(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zN(e){return[In,Un,Mn,xn].some(function(t){return e[t]>=0})}function ble(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=qi(t,{elementContext:"reference"}),s=qi(t,{altBoundary:!0}),l=UN(o,a),u=UN(s,r,i),c=zN(l),d=zN(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const vle={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ble};function yle(e,t,n){var a=Jn(e),r=[xn,In].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[xn,Un].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function Sle(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=dz.reduce(function(c,d){return c[d]=yle(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const Ele={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Sle};function _le(e){var t=e.state,n=e.name;t.modifiersData[n]=bz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wle={name:"popperOffsets",enabled:!0,phase:"read",fn:_le,data:{}};function kle(e){return e==="x"?"y":"x"}function Ile(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,g=f===void 0?!0:f,v=n.tetherOffset,y=v===void 0?0:v,I=qi(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Jn(t.placement),m=Rs(t.placement),h=!m,S=_k(b),w=kle(S),_=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,N=typeof y=="function"?y(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):y,M={x:0,y:0};if(_){if(i){var Z=S==="y"?In:xn,re=S==="y"?Mn:Un,ie=S==="y"?"height":"width",ke=_[S],Ae=_[S]+I[Z],Se=_[S]-I[re],Ce=g?-A[ie]/2:0,F=m===Bi?k[ie]:A[ie],G=m===Bi?-A[ie]:-k[ie],H=t.elements.arrow,Y=g&&H?Ek(H):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fz(),Qe=Q[Z],Ee=Q[re],Ue=Bu(0,k[ie],Y[ie]),je=h?k[ie]/2-Ce-Ue-Qe-N:F-Ue-Qe-N,it=h?-k[ie]/2+Ce+Ue+Ee+N:G+Ue+Ee+N,fn=t.elements.arrow&&Bl(t.elements.arrow),Ba=fn?S==="y"?fn.clientTop||0:fn.clientLeft||0:0,qa=t.modifiersData.offset?t.modifiersData.offset[t.placement][S]:0,Ga=_[S]+je-qa-Ba,bp=_[S]+it-qa,Ha=Bu(g?Math.min(Ae,Ga):Ae,ke,g?Math.max(Se,bp):Se);_[S]=Ha,M[S]=Ha-ke}if(s){var Yz=S==="x"?In:xn,Kz=S==="x"?Mn:Un,Hl=_[w],Xz=Hl+I[Yz],Jz=Hl-I[Kz],Hk=Bu(Xz,Hl,Jz);_[w]=Hk,M[w]=Hk-Hl}t.modifiersData[a]=M}}const xle={name:"preventOverflow",enabled:!0,phase:"main",fn:Ile,requiresIfExists:["offset"]};function Tle(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Rle(e){return e===jn(e)||!Qn(e)?wk(e):Tle(e)}function Ale(e,t,n){n===void 0&&(n=!1);var a=$r(t),r=Ts(e),i=Qn(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((zn(t)!=="body"||Ik(a))&&(o=Rle(t)),Qn(t)?(s=Ts(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=kk(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Cle(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function Nle(e){var t=Cle(e);return Gse.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function Ole(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $le(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var jN={placement:"bottom",modifiers:[],strategy:"absolute"};function BN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Lle(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?jN:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},jN),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,g={state:c,setOptions:function(b){y(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),b),c.scrollParents={reference:xs(s)?Wo(s):s.contextElement?Wo(s.contextElement):[],popper:Wo(l)};var m=Nle($le([].concat(a,c.options.modifiers)));return c.orderedModifiers=m.filter(function(h){return h.enabled}),v(),g.update()},forceUpdate:function(){if(!f){var b=c.elements,m=b.reference,h=b.popper;if(BN(m,h)){c.rects={reference:Ale(m,Bl(h),c.options.strategy==="fixed"),popper:Ek(h)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var w=c.orderedModifiers[S],_=w.fn,k=w.options,A=k===void 0?{}:k,N=w.name;typeof _=="function"&&(c=_({state:c,options:A,name:N,instance:g})||c)}}}},update:Ole(function(){return new Promise(function(I){g.forceUpdate(),I(c)})}),destroy:function(){y(),f=!0}};if(!BN(s,l))return g;g.setOptions(u).then(function(I){!f&&u.onFirstUpdate&&u.onFirstUpdate(I)});function v(){c.orderedModifiers.forEach(function(I){var b=I.name,m=I.options,h=m===void 0?{}:m,S=I.effect;if(typeof S=="function"){var w=S({state:c,name:b,instance:g,options:h}),_=function(){};d.push(w||_)}})}function y(){d.forEach(function(I){return I()}),d=[]}return g}}var Dle=[ile,wle,rle,Zse,Ele,hle,xle,Qse,vle],Ple=Lle({defaultModifiers:Dle});const Fle=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],Mle=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=Fle.find(r=>r.includes(`${a}-${n}`))??a),a},vz=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=qi({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:vz(e.slice(1),t,n)},qN="fallbackModifier",GN={name:qN,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,Mle(n),...a||[]],i=vz(r,e,n);e.placement!==i&&(e.modifiersData[qN]._skip=!0,e.placement=i,e.reset=!0)}},yz=["top","right","bottom","left"],xk=J.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?p.jsx(jle,{ref:a,portal:e,...n}):null),Ule=e=>{if(e!==null)return"current"in e?e.current||void 0:e},zle={},jle=J.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=zle,placement:a="bottom",fallbackPlacements:r=yz,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=J.useRef(!0),{localRef:d,elementRef:f}=La(l),[g,v]=J.useState(a),y=ose(u,e),I=J.useRef(a);I.current=g;const b=J.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:h}){v(h.placement),i==null||i(h.placement)}}),[v,i]);J.useLayoutEffect(()=>{const h=t?{getBoundingClientRect:t}:Ule(e??null);if(!h){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(y.current){const S=Ple(h,y.current,{placement:a,...n,modifiers:[b,{...GN,options:{fallbackPlacements:r}},...n.modifiers||[]]});return f(S),()=>{S==null||S.destroy()}}},[e,t,y]),J.useLayoutEffect(()=>{var h;c.current||(h=d.current)==null||h.setOptions({placement:a,...n,modifiers:[b,{...GN,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,b,d]);const m=p.jsx(p.Fragment,{children:Ble(o)?o({placement:g}):o});return s?cS.createPortal(m,y.current):m});function Ble(e){return typeof e=="function"}function Ya(e,t,n){let a=n.initialDeps??[],r;function i(){var o,s,l,u;let c;n.key&&((o=n.debug)!=null&&o.call(n))&&(c=Date.now());const d=e();if(!(d.length!==a.length||d.some((v,y)=>a[y]!==v)))return r;a=d;let g;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(g=Date.now()),r=t(...d),n.key&&((l=n.debug)!=null&&l.call(n))){const v=Math.round((Date.now()-c)*100)/100,y=Math.round((Date.now()-g)*100)/100,I=y/16,b=(m,h)=>{for(m=String(m);m.length<h;)m=" "+m;return m};console.info(`%c⏱ ${b(y,5)} /${b(v,5)} ms`,`
316
316
  font-size: .6rem;
317
317
  font-weight: bold;
318
- color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(u=n==null?void 0:n.onChange)==null||u.call(n,r),r}return i.updateDeps=o=>{a=o},i}function HN(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const qle=(e,t)=>Math.abs(e-t)<=1,Gle=(e,t,n)=>{let a;return function(...r){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,r),n)}},VN=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Hle=e=>e,Vle=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Wle=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const r=o=>{const{width:s,height:l}=o;t({width:Math.round(s),height:Math.round(l)})};if(r(VN(n)),!a.ResizeObserver)return()=>{};const i=new a.ResizeObserver(o=>{const s=()=>{const l=o[0];if(l!=null&&l.borderBoxSize){const u=l.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(VN(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},WN={passive:!0},ZN=typeof window>"u"?!0:"onscrollend"in window,Zle=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let r=0;const i=e.options.useScrollendEvent&&ZN?()=>{}:Gle(a,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:d,isRtl:f}=e.options;r=d?n.scrollLeft*(f&&-1||1):n.scrollTop,i(),t(r,c)},s=o(!0),l=o(!1);l(),n.addEventListener("scroll",s,WN);const u=e.options.useScrollendEvent&&ZN;return u&&n.addEventListener("scrollend",l,WN),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},Yle=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Kle=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const o=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:o,behavior:n})};class Xle{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(i=>{const o=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=a())==null||r.disconnect(),n=null},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Hle,rangeExtractor:Vle,onChange:()=>{},measureElement:Yle,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=Ya(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let o=a-1;o>=0;o--){const s=n[o];if(r.has(s.lane))continue;const l=i.get(s.lane);if(l==null||s.end>l.end?i.set(s.lane,s):s.end<l.end&&r.set(s.lane,!0),r.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=Ya(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,a,r,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i,enabled:o}),{key:!1}),this.getMeasurements=Ya(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),g=f?f.end+this.options.gap:a+r,v=s.get(d),y=typeof v=="number"?v:this.options.estimateSize(c),I=g+y,b=f?f.lane:c%this.options.lanes;u[c]={index:c,start:g,size:y,end:I,key:d,lane:b}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ya(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,a,r,i)=>this.range=n.length>0&&a>0?Jle({measurements:n,outerSize:a,scrollOffset:r,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ya(()=>{let n=null,a=null;const r=this.calculateRange();return r&&(n=r.startIndex,a=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,a]},(n,a,r,i,o)=>i===null||o===null?[]:n({startIndex:i,endIndex:o,overscan:a,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.indexFromElement(n),i=this.measurementsCache[r];if(!i)return;const o=i.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(r,this.options.measureElement(n,a,this))},this.resizeItem=(n,a)=>{const r=this.measurementsCache[n];if(!r)return;const i=this.itemSizeCache.get(r.key)??r.size,o=a-i;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,a)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,r)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(r))});return}this._measureElement(n,void 0)},this.getVirtualItems=Ya(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,o=n.length;i<o;i++){const s=n[i],l=a[s];r.push(l)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();if(a.length!==0)return HN(a[Sz(0,a.length-1,r=>HN(a[r]).start,n)])},this.getOffsetForAlignment=(n,a,r=0)=>{const i=this.getSize(),o=this.getScrollOffset();a==="auto"&&(a=n>=o+i?"end":"start"),a==="center"?n+=(r-i)/2:a==="end"&&(n-=i);const s=this.getTotalSize()-i;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.measurementsCache[n];if(!r)return;const i=this.getSize(),o=this.getScrollOffset();if(a==="auto")if(r.end>=o+i-this.options.scrollPaddingEnd)a="end";else if(r.start<=o+this.options.scrollPaddingStart)a="start";else return[o,a];const s=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,a,r.size),a]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(n,a);if(!i)return;const[o,s]=i;this._scrollToOffset(o,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const u=this.getOffsetForIndex(n,s);if(!u)return;const[c]=u,d=this.getScrollOffset();qle(c,d)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;if(a.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=a[a.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let o=a.length-1;for(;o>=0&&i.some(s=>s===null);){const s=a[o];i[s.lane]===null&&(i[s.lane]=s.end),o--}r=Math.max(...i.filter(s=>s!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Sz=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(i<a)e=r+1;else if(i>a)t=r-1;else return r}return e>0?e-1:0};function Jle({measurements:e,outerSize:t,scrollOffset:n,lanes:a}){const r=e.length-1,i=l=>e[l].start;if(e.length<=a)return{startIndex:0,endIndex:r};let o=Sz(0,r,i,n),s=o;if(a===1)for(;s<r&&e[s].end<n+t;)s++;else if(a>1){const l=Array(a).fill(0);for(;s<r&&l.some(c=>c<n+t);){const c=e[s];l[c.lane]=c.end,s++}const u=Array(a).fill(n+t);for(;o>=0&&u.some(c=>c>=n);){const c=e[o];u[c.lane]=c.start,o--}o=Math.max(0,o-o%a),s=Math.min(r,s+(a-1-s%a))}return{startIndex:o,endIndex:s}}const YN=typeof document<"u"?J.useLayoutEffect:J.useEffect;function Qle(e){const t=J.useReducer(()=>({}),{})[1],n={...e,onChange:(r,i)=>{var o;i?cS.flushSync(t):t(),(o=e.onChange)==null||o.call(e,r,i)}},[a]=J.useState(()=>new Xle(n));return a.setOptions(n),YN(()=>a._didMount(),[]),YN(()=>a._willUpdate()),a}function eue(e){return Qle({observeElementRect:Wle,observeElementOffset:Zle,scrollToFn:Kle,...e})}const Qb=e=>e===void 0?"":typeof e=="string"?e:e.id||"",ev=e=>typeof e=="string"?e:e===void 0?"":e.text||"",tue={items:[]},_u=dn({defaultConfig:{...tue,id:"",getId:Qb,getTextValue:ev,nonInteractiveIds:[],orientation:"vertical",defaultItemHeight:50,shouldVirtualize:!0}})(e=>{var b;const t=Ul(e.id),n=$.useRef(Qb),a=$.useRef(ev);n.current=e.getId||Qb,a.current=e.getTextValue||e.getId||ev;const[r]=$.useState(e.orientation||"vertical"),[i,o]=$.useState(e.defaultItemHeight),s=e.shouldVirtualize&&!!((b=e.items)!=null&&b.length),l=$.useRef(0),u=$.useRef(null),c=$.useMemo(()=>(e.items||[]).map((m,h)=>({id:n.current(m),index:h,value:m,textValue:a.current(m)})),[e.items]),[d,f]=$.useState([]),g=eue({count:c.length,getScrollElement:()=>u.current,estimateSize:$.useCallback(()=>i,[i]),horizontal:e.orientation==="horizontal",overscan:3});return{state:{...{items:c.length?c:d},UNSTABLE_virtual:g,UNSTABLE_defaultItemHeight:i,containerRef:u,id:t,orientation:r,indexRef:l,nonInteractiveIds:e.nonInteractiveIds||[],isVirtualized:s},events:{registerItem(m){l.current++,f(h=>h.concat({...m,value:m,index:h.length}))},unregisterItem(m){f(h=>h.find(S=>S.id===m.id)?h.filter(S=>S.id!==m.id):h)},updateItemHeight(m){o(m.value)}},getId:e.getId,getTextValue:e.getTextValue}}),nue=e=>e,fp=()=>0,mp=(e,{state:t})=>t.items.length-1,rue=(e,{state:t})=>{if(t.columnCount){const n=e%t.columnCount;return e-n}return fp()},aue=(e,{state:t})=>{if(t.columnCount){const n=e%t.columnCount-t.columnCount+1;let a=e-n;return a>=t.items.length&&(a=t.items.length-1),a}return mp(e,{state:t})},iue=(e,{state:t})=>t.columnCount?e%t.columnCount:fp(),oue=(e,{state:t})=>t.columnCount?t.items.length-t.columnCount+e%t.columnCount:mp(e,{state:t}),sue=(e,{state:t})=>t.items.find(n=>n.id===e),gr=e=>typeof e.cursorId=="string"?e.cursorId:e.cursorId.slice(-1)[0]||"",Rc=(e,t)=>e.cursorId&&typeof e.cursorId=="string"?e.cursorId===t:e.cursorId.includes(t),Po=e=>(t,{state:n},a=n.items.length)=>{if(Number.isNaN(t)){if(e===1)return fp();if(e===-1)return mp(t,{state:n})}const r=n.items;let i=t+e;const s=Math.ceil(r.length/n.columnCount)*n.columnCount;return i<0?e===-1?i=r.length-1:(s+i>=r.length&&(i-=n.columnCount),i=s+i):i>=r.length&&(e===1?i=0:(i-s<0&&(i+=n.columnCount),i=i-s)),r.length>1&&n.nonInteractiveIds.includes(r[i].id)&&a>0?Po(e)(i,{state:n},a-1):i},lue=nue({getFirst:fp,getLast:mp,getItem:sue,getNext:Po(1),getNextRow:(e,{state:t})=>Po(t.columnCount)(e,{state:t}),getPrevious:Po(-1),getPreviousRow:(e,{state:t})=>Po(-t.columnCount)(e,{state:t}),getPreviousPage:iue,getNextPage:oue,getFirstOfRow:rue,getLastOfRow:aue}),wu=dn({defaultConfig:{..._u.defaultConfig,initialCursorId:"",columnCount:0,navigation:lue,pageSize:0},requiredConfig:_u.requiredConfig,contextOverride:_u.Context})(e=>{var d;const[t,n]=$.useState(e.initialCursorId),a=$.useRef(e.pageSize),r=e.columnCount||0,i=_u(e),o=e.navigation,s=$.useRef(-1),l=f=>{var v;const g=((v=u.items[f])==null?void 0:v.id)||"";n(g)};t&&((d=i.state.items[s.current])==null?void 0:d.id)!==t?s.current=i.state.items.findIndex(f=>f.id===t):t||(s.current=-1);const u={...i.state,cursorId:t,columnCount:r,pageSizeRef:a,cursorIndexRef:s},c={...i.events,goTo(f){const g=u.items.findIndex(v=>v.id===f.id);l(g)},goToNext(){const f=o.getNext(s.current,{state:u});l(f)},goToPrevious(){const f=o.getPrevious(s.current,{state:u});l(f)},goToPreviousRow(){const f=o.getPreviousRow(s.current,{state:u});l(f)},goToNextRow(){const f=o.getNextRow(s.current,{state:u});l(f)},goToFirst(){const f=o.getFirst(s.current,{state:u});l(f)},goToLast(){const f=o.getLast(s.current,{state:u});l(f)},goToFirstOfRow(){const f=o.getFirstOfRow(s.current,{state:u});l(f)},goToLastOfRow(){const f=o.getLastOfRow(s.current,{state:u});l(f)},goToNextPage(){const f=o.getNextPage(s.current,{state:u});l(f)},goToPreviousPage(){const f=o.getPreviousPage(s.current,{state:u});l(f)}};return{...i,state:u,events:c,navigation:o}}),uue=(e,{selectedIds:t,unselectedIds:n})=>t==="all"?!n.includes(e):t.includes(e),Ez={select(e){return{selectedIds:[e],unselectedIds:[]}}},cue={select(e,{selectedIds:t,unselectedIds:n}){return t==="all"?{selectedIds:"all",unselectedIds:n.includes(e)?n.filter(r=>r!==e):n.concat(e)}:{selectedIds:t.includes(e)?t.filter(r=>r!==e):t.concat(e),unselectedIds:[]}}},tv=dn({defaultConfig:{...wu.defaultConfig,initialSelectedIds:[],initialUnselectedIds:[],selection:Ez},requiredConfig:wu.requiredConfig,contextOverride:wu.Context})(e=>{const t=wu(e),[n,a]=$.useState(e.initialSelectedIds),[r,i]=$.useState(e.initialUnselectedIds),o=e.selection,s={...t.state,selectedIds:n,unselectedIds:r},l={...t.events,select(u){const{selectedIds:c,unselectedIds:d}=o.select(u.id,s);a(c),i(d)},selectAll(){a("all")},unselectAll(){a([])},setSelectedIds(u){a(u)},remove(u){}};return{...t,state:s,events:l,selection:o}}),di=dn({defaultConfig:{UNSTABLE_parentModel:void 0,...tv.defaultConfig},requiredConfig:tv.requiredConfig})(e=>({UNSTABLE_parentModel:e.UNSTABLE_parentModel,...tv(e)})),Gu=$.createContext({});function due(e,t){return typeof t=="function"?e.state.isVirtualized?e.state.UNSTABLE_virtual.getVirtualItems().map(a=>{const r=e.state.items[a.index],i=t(r.value,a.index);return p.jsx(Gu.Provider,{value:{item:r,virtual:a},children:i},r.id||r.index)}):e.state.items.map(a=>{const r=t(a.value,a.index);return p.jsx(Gu.Provider,{value:{item:a},children:r},a.id||a.index)}):p.jsx(Gu.Provider,{value:{},children:t})}const gp=le()((e,t,n={})=>{const{state:a,events:r}=e,{item:i,virtual:o}=$.useContext(Gu),[s,l]=$.useState(n["data-id"]||(i==null?void 0:i.id)||""),{localRef:u,elementRef:c}=La(oa(t,o?e.state.UNSTABLE_virtual.measureElement:null)),d=o?{position:"absolute",top:0,left:0,transform:`translateY(${o.start}px)`}:{};return Tie(()=>{var y;if((o==null?void 0:o.index)===0&&((y=u.current)!=null&&y.clientHeight),i)return;const f=a.indexRef.current,g=s||(n["data-has-children"]?`${a.id}-`:"")+String(f);if(a.items.find(I=>I.id===g))return;const v={id:g,textValue:n["data-text"]?n["data-text"]:typeof n.children=="string"?n.children:""};return r.registerItem(v),l(g),()=>{r.unregisterItem({id:g})}}),{ref:c,"data-id":s,disabled:n.disabled||a.nonInteractiveIds.includes(s)?!0:void 0,"aria-setsize":o?a.UNSTABLE_virtual.options.count:void 0,"aria-posinset":o?i.index+1:void 0,"data-index":o?i.index:void 0,style:d,id:gk(`${a.id}-${s}`)}}),my={horizontal:{ArrowLeft:"goToPrevious",Left:"goToPrevious",ArrowRight:"goToNext",Right:"goToNext",Home:"goToFirst",End:"goToLast",PageDown:"goToNextPage",PageUp:"goToPreviousPage"},vertical:{ArrowUp:"goToPrevious",Up:"goToPrevious",ArrowDown:"goToNext",Down:"goToNext",Home:"goToFirst",End:"goToLast",PageDown:"goToNextPage",PageUp:"goToPreviousPage"}},pue={ArrowLeft:"ArrowRight",Left:"Right",ArrowRight:"ArrowLeft",Right:"Left",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Home:"Home",End:"End",PageDown:"PageDown",PageUp:"PageUp"},KN={...my.horizontal,Home:"goToFirstOfRow",End:"goToLastOfRow",ArrowUp:"goToPreviousRow",Up:"goToPreviousRow",ArrowDown:"goToNextRow",Down:"goToNextRow"},nv={Home:"goToFirst",End:"goToLast"},XN=(e,t)=>e.hasOwnProperty(t);function _z(e,t){var r,i,o,s;if(e.ctrlKey){for(const l in nv)if(XN(nv,l)&&e.key===l)return(i=(r=t.events)[nv[l]])==null||i.call(r),!0}const n=t.state.columnCount>0?KN:my[t.state.orientation],a=yU(e.currentTarget);for(const l in n)if(XN(n,l)&&(a?e.key===pue[l]:e.key===l)){const u=t.state.columnCount>0?KN[l]:my[t.state.orientation][l];if(t.events[u])return(s=(o=t.events)[u])==null||s.call(o),!0}return!1}const wz=(e,t,n)=>{e()===!1&&t>1&&requestAnimationFrame(()=>wz(e,t-1)),n==null||n("Retry timeout")},fue=(e,t,n)=>new Promise((a,r)=>{var s;const i=(((s=n==null?void 0:n.dataset)==null?void 0:s.focusId)||"").split("-")[0]||e.state.id,o=e.navigation.getItem(t,e);if(o){e.state.isVirtualized&&e.state.UNSTABLE_virtual.scrollToIndex(o.index);const l=u=>document.querySelector(`[data-focus-id="${bU(`${u}-${o.id}`)}"]`);wz(()=>{const u=l(i)||l(e.state.id);return u&&(u.focus(),a(u)),!!u},5,r)}}),kz=le()((e,t,n={})=>{const a=$.useRef(e.state);a.current=e.state;const r=$.useRef(null);return $.useEffect(()=>{r.current&&fue(e,gr(e.state),r.current).then(()=>{r.current=null})},[e.state.cursorId]),$.useEffect(()=>{!e.state.cursorId&&e.state.items.length&&e.events.goTo({id:e.state.items[0].id})},[e.state.cursorId,e.state.items,e.events]),{onKeyDown(i){_z(i,e)&&(i.preventDefault(),r.current=i.currentTarget)},onClick(){e.events.goTo({id:n["data-id"]})},"data-focus-id":gk(`${e.state.id}-${n["data-id"]}`),tabIndex:e.state.cursorId?n["data-id"]&&Rc(e.state,n["data-id"])?0:-1:0}}),mue=le()(({state:e,events:t},n,a={})=>{const r=a["data-id"]||"";return{onClick:o=>{!e.nonInteractiveIds.includes(r)&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&t.select({id:r})}}}),gue=le()(e=>({"aria-activedescendant":e.state.cursorId?gk(`${e.state.id}-${typeof e.state.cursorId=="string"?e.state.cursorId:e.state.cursorId.join("-")}`):void 0})),hue=le()((e,t,n={})=>{const a=n["data-id"]||"";return{className:Rc(e.state,a)?"focus":""}}),bue=Re("li")({displayName:"Item",modelHook:di,elemPropsHook:gp})((e,t)=>p.jsx(t,{...Me(e)})),vue=le()(e=>({style:{position:"relative",height:e.state.isVirtualized?e.state.UNSTABLE_virtual.getTotalSize():void 0}})),yue=ye({base:{'& :where([data-part="list"])':{display:"flex",flexDirection:"column",marginBlockStart:D.zero,marginBlockEnd:D.zero}},modifiers:{orientation:{vertical:{overflowY:"auto"},horizontal:{overflowY:void 0,'& :where([data-part="list"])':{flexDirection:"row"}}}}}),Iz=ia("ul")({displayName:"ListBox",modelHook:di,elemPropsHook:vue,subComponents:{Item:bue}})(({height:e,maxHeight:t,marginY:n,marginBottom:a,overflowY:r,marginTop:i,...o},s,l)=>p.jsx("div",{ref:l.state.containerRef,...cn({style:{height:e,maxHeight:t,marginBottom:a??n,marginTop:i??n}},yue({orientation:l.state.orientation})),children:p.jsx(s,{...Me(o),"data-part":"list",children:due(l,o.children)})})),mt=dn({defaultConfig:{...di.defaultConfig,...ha.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...di.requiredConfig,...ha.requiredConfig},contextOverride:ha.Context})(e=>{const t=di(di.mergeConfig(e,{selection:e.mode==="single"?Ez:cue})),n=ha(ha.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));QU(n),ez(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),xz=nz,Tz={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},Sue=Re("div")({modelHook:mt,elemPropsHook:xz})(({children:e,...t})=>p.jsx(xk,{placement:"bottom-start",popperOptions:Tz,...t,children:e})),Rz=le()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),Eue=sa(Rz,rz),_ue=sa(Rz,sse),wue=Re(Is)({displayName:"Menu.Target",modelHook:mt,elemPropsHook:Eue})(({children:e,...t},n)=>p.jsx(n,{...t,children:e})),kue=Re(Is)({displayName:"Menu.Target",modelHook:mt,elemPropsHook:_ue})(({children:e,...t},n)=>p.jsx(n,{...t,children:e})),JN={vertical:"bottom",horizontal:"center"},gy=ga("positionX","positionY"),Iue=nie({"0%":{opacity:0,transform:`translate(${gy.positionX}, ${gy.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),xue=ye({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({...et.subtext.medium,display:"inline-flex",position:"relative",padding:D.x3,color:L.text.inverse,animationName:Iue,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:L.text.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:Rr.x1,outline:`${ce(1)} solid transparent`,outlineOffset:`-${ce(1)}`,zIndex:-1,margin:D.x1,backgroundColor:L.bg.translucent,position:"absolute",top:0,left:0,right:0,bottom:0},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:ht.negate(D.x1)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:ht.negate(D.x1)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:ht.negate(D.x1)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:ht.negate(D.x1)}}),modifiers:{elementHasFocus:{true:{padding:ht.subtract(D.x4,ht.divide(D.x1,2)),"&:before":{margin:ht.add(D.x1,ht.divide(D.x1,2))}}}}}),Tue=De("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=JN,elementHasFocus:n=!1,...a},r,i)=>{const o=Eie(t||JN,O(D.x2));return p.jsx(i,{ref:r,...Me(a,[xue({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),gy({positionX:o.x,positionY:o.y})]),children:e})}}),QN=(e,t=0)=>{const n=J.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return J.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},Rue=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Aue({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=J.useRef(!1),i=ha(),[o,s]=J.useState(null),l=Ul(),u=QN(i.events.hide,a),c=QN(i.events.show,n),d=()=>{u.start(),c.clear()},f=()=>{c.start(),u.clear()},g=m=>{s(m.currentTarget),f()},v=m=>{r.current||g(m),r.current=!1},y=m=>{r.current=!0,Rue(m.currentTarget)&&i.events.hide()};ez(i),QU(i),rse(i),ase(i);const I=i.state.visibility!=="hidden",b={"aria-describedby":e==="describe"&&I?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:g,onMouseLeave:d,onMouseDown:y,onFocus:v,onBlur:d};return b["aria-describedby"]===void 0&&delete b["aria-describedby"],{targetProps:b,popperProps:{open:I,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&I?l:void 0,role:"tooltip",onMouseEnter:f,onMouseLeave:d}}}const Az=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=Az(e.children[n]);if(a)return a}return null}return null},Cz=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=Cz(e.children[n]);if(a)return a}return null},eO=e=>{const t=Cz(e)||Az(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function Cue(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=SU(t[r],e[r]):a[r]=t[r],a),{})}const Tk=({placement:e="top",fallbackPlacements:t=yz,children:n,...a})=>{const[r,i]=J.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Aue({type:"muted"}),u=d=>{const f=d.currentTarget;i(f instanceof HTMLElement?f.innerText:""),eO(f)&&o.onMouseEnter(d)},c=d=>{const f=d.currentTarget;i(f instanceof HTMLElement?f.innerText:""),eO(f)&&o.onFocus(d)};return p.jsxs(J.Fragment,{children:[J.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...Cue({...o,onMouseEnter:u,onFocus:c},n.props)}),p.jsx(xk,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const f=oz(d);return p.jsx(Tue,{transformOrigin:f,...l,...a,children:r})}})]})},ql=ye({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({...et.subtext.large,display:"flex",alignItems:"center",width:"100%",gap:D.x4,padding:`${D.x2} ${D.x4}`,boxSizing:"border-box",cursor:"pointer",color:L.fg.default,borderWidth:0,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:D.x10,overflowWrap:"anywhere",[ae.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:$a.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:me.dark,backgroundColor:me.lightest,[`& :where(${n})`]:{opacity:$a.full},"&:where(.focus, :focus-visible)":{[ae.vars.color]:me.accent,outline:"none",backgroundColor:me.base,color:ae.vars.color}},"&:is(.hover, :hover)":{color:L.fg.strong,backgroundColor:or.lightest},"&:is(.focus, :focus-visible)":{color:me.accent,backgroundColor:me.base,outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(2)}`},"&:is(:disabled, [aria-disabled=true])":{color:L.fg.disabled,cursor:"default","&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:me.light}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),Nue=e=>p.jsx(ks,{...ql.parts.icon,...e}),Nz=De("span")({Component:({...e},t,n)=>p.jsx(n,{ref:t,...ql.parts.text,...cn(e)})}),Oz=De("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>p.jsx(r,{ref:a,"aria-disabled":t,...Me(n,ql({})),children:typeof e=="string"?p.jsx(Nz,{children:e}):e})}),$z=le()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),Lz=le()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=La(t),i=n["data-id"];return J.useLayoutEffect(()=>{e.state.mode==="single"&&Rc(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:Rc(e.state,n["data-id"])?"focus":void 0}});function Dz(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),Dz(e.UNSTABLE_parentModel))}const Oue=sa(le()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),Dz(e))}:void 0})),Lz,$z,mue,kz,gp),Gi=Re("button")({displayName:"Menu.Item",modelHook:mt,elemPropsHook:Oue,subComponents:{Icon:Nue,Text:Nz}})(({children:e,...t},n)=>p.jsx(Tk,{placement:"left",children:p.jsx(Oz,{as:n,...t,children:e})})),Pz=ye({vars:{minWidth:ce(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({...et.subtext.large,color:L.text.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:D.zero,maxWidth:ht.subtract("100vw",D.x8),boxShadow:Aae[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),$ue=le()(()=>({})),Fz=Re("div")({displayName:"Menu.Card",modelHook:mt,elemPropsHook:$ue})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=J.useMemo(()=>oz(r.state.placement||"bottom"),[r.state.placement]);return p.jsx(mse,{as:a,...Me(n,Pz({minWidth:typeof e=="number"?ce(e):e,maxHeight:typeof t=="number"?ce(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Lue=sa(le()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),lse,ise),Mz=ye({base:{background:L.bg.default,borderRadius:Rr.zero,padding:D.zero,gap:D.zero},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),Uz=Re("div")({displayName:"Menu.List",modelHook:mt,elemPropsHook:Lue})(({children:e,...t},n,a)=>p.jsx(Iz,{as:n,model:a,marginY:O(D.x2),...cn(t,Mz({orientation:a.state.orientation})),children:e})),Due=ye({base:{display:"block",height:ce(1),border:D.zero,borderTop:`${ce(1)} solid ${L.border.divider}`,margin:`${D.x2} ${D.zero}`}}),zz=De("hr")({displayName:"Menu.Divider",Component({...e},t,n){return p.jsx(n,{ref:t,...cn(e,Due())})}}),jz=De("span")({Component:({...e},t,n)=>p.jsxs(p.Fragment,{children:[p.jsx(Gi.Text,{ref:t,as:n,...e}),p.jsx(ks,{...ql.parts.selected,icon:kse})]})}),Pue=De("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>p.jsx(a,{ref:n,...Me(t,ql()),children:typeof e=="string"?p.jsx(jz,{children:e}):e})}),Fue=sa(le()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":uue(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),hue,gp),Bz=Re("li")({displayName:"Menu.Item",modelHook:mt,elemPropsHook:Fue,subComponents:{Icon:Gi.Icon,Text:jz}})(({children:e,...t},n)=>p.jsx(Tk,{placement:"left",children:p.jsx(Pue,{as:n,...t,children:e})})),qz=dn({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:Ul(e.id)},events:{}})),Mue=ye({base:{...et.subtext.large,display:"flex",alignItems:"center",width:"100%",gap:D.x4,padding:`${D.x2} ${D.x4}`,boxSizing:"border-box",fontWeight:lr.bold}}),Uue=le()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),zue=le()(e=>({id:e.state.id})),tO=Re("div")({modelHook:qz,elemPropsHook:zue})(({children:e,...t},n)=>p.jsx(Tk,{children:p.jsx(n,{...Me(t,Mue()),children:e})})),Gz=ia("div")({displayName:"Menu.Group",modelHook:qz,elemPropsHook:Uue,subComponents:{Heading:tO}})(({children:e,title:t,...n},a)=>p.jsxs(a,{...Me(n),children:[t?p.jsx(tO,{children:t}):null,e]})),jue=Re("div")({modelHook:mt,elemPropsHook:xz})(({children:e,...t})=>p.jsx(xk,{placement:"right-start",popperOptions:Tz,...t,children:e})),Bue=(e,t=0)=>{const n=$.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return $.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},que=sa(vu(e=>e.UNSTABLE_parentModel,Lz),vu(e=>e.UNSTABLE_parentModel,$z),vu(e=>e.UNSTABLE_parentModel,kz),le()((e,t)=>({ref:oa(t,e.state.targetRef)})),vu(e=>e.UNSTABLE_parentModel,gp),le()(e=>{const t=$.useRef(),n=Bue(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),Gue=Re("button")({modelHook:mt,elemPropsHook:que})(({children:e,...t},n)=>p.jsxs(Oz,{as:n,...t,children:[typeof e=="string"?p.jsx(Gi.Text,{children:e}):e,p.jsx(Gi.Icon,{icon:Ise})]})),Hue=Re()({modelHook:mt,subComponents:{Card:Fz,List:Uz,Item:Gi,TargetItem:Gue,Group:Gz,Option:Bz,Divider:zz,Popper:jue}})(({children:e,model:t,...n},a,r)=>{const i=mt(mt.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=mt.Context;return p.jsx(o.Provider,{value:i,children:e})}),Zo=ia()({displayName:"Menu",modelHook:mt,subComponents:{Target:wue,Card:Fz,List:Uz,Item:Gi,Group:Gz,Option:Bz,Divider:zz,TargetContext:kue,Popper:Sue,Submenu:Hue}})(({children:e})=>p.jsx(p.Fragment,{children:e})),rv=dn({defaultConfig:{value:void 0,onFilterChange(e){},onChange(e){}}})(e=>{const t=$.createRef();return{onFilterChange:e.onFilterChange,onChange:e.onChange,state:{value:e.value,inputRef:t},events:{}}}),hr=dn({defaultConfig:{...rv.defaultConfig,...mt.defaultConfig,shouldVirtualize:!0},requiredConfig:{...rv.requiredConfig,...mt.requiredConfig}})(e=>{const t=rv(e),n=mt(e),[a,r]=$.useState(0),i={width:a,...t.state,...n.state},o={...t.events,...n.events,setWidth(s){r(s)}};return{...n,...t,state:i,events:o}}),Vue=ye({vars:{width:""},base:({width:e})=>({...et.subtext.large,display:"block",border:`${ce(1)} solid ${O(L.border.input.default)}`,backgroundColor:L.bg.default,borderRadius:Hie.system.shape.sm,boxSizing:"border-box",height:D.x10,transition:"0.2s box-shadow, 0.2s border-color",padding:D.x2,margin:ce(0),width:e,minWidth:O(e,ht.add(ht.multiply(D.x20,3),D.x10)),color:L.text.default,textOverflow:"ellipsis","::-ms-clear":{display:"none"},"&::placeholder":{color:L.text.hint},"&:is(:hover, .hover)":{borderColor:L.border.input.strong},"&:is(:focus-visible, .focus):where(:not([disabled]))":{borderColor:He.focusOutline,boxShadow:`inset 0 0 0 1px ${O(He.focusOutline)}`,outline:`${ce(2)} solid transparent`},"&:is(:disabled, .disabled)":{backgroundColor:L.bg.alt.softer,borderColor:L.border.input.disabled,color:L.fg.disabled,"&::placeholder":{color:L.fg.disabled}}}),modifiers:{grow:{true:{width:"100%",resize:"vertical"},false:{width:"initial"}},error:{error:{borderColor:He.errorInner,borderWidth:ce(2),backgroundColor:gn.lightest,"&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))":{borderColor:He.errorInner},"&:is(:focus-visible, .focus):not([disabled])":{boxShadow:`0 0 0 2px ${O(L.border.inverse,We)}, 0 0 0 4px ${He.focusOutline}`,outlineOffset:ce(2)}},caution:{borderColor:He.alertOuter,boxShadow:`inset 0 0 0 ${ce(2)} ${He.alertInner}`,backgroundColor:Gn.lightest,"&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))":{borderColor:He.alertOuter},"&:is(:focus-visible, .focus):not([disabled])":{boxShadow:`inset 0 0 0 ${ce(2)} ${He.alertInner},
318
+ color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(u=n==null?void 0:n.onChange)==null||u.call(n,r),r}return i.updateDeps=o=>{a=o},i}function HN(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const qle=(e,t)=>Math.abs(e-t)<=1,Gle=(e,t,n)=>{let a;return function(...r){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,r),n)}},VN=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Hle=e=>e,Vle=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Wle=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const r=o=>{const{width:s,height:l}=o;t({width:Math.round(s),height:Math.round(l)})};if(r(VN(n)),!a.ResizeObserver)return()=>{};const i=new a.ResizeObserver(o=>{const s=()=>{const l=o[0];if(l!=null&&l.borderBoxSize){const u=l.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(VN(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},WN={passive:!0},ZN=typeof window>"u"?!0:"onscrollend"in window,Zle=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let r=0;const i=e.options.useScrollendEvent&&ZN?()=>{}:Gle(a,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:d,isRtl:f}=e.options;r=d?n.scrollLeft*(f&&-1||1):n.scrollTop,i(),t(r,c)},s=o(!0),l=o(!1);l(),n.addEventListener("scroll",s,WN);const u=e.options.useScrollendEvent&&ZN;return u&&n.addEventListener("scrollend",l,WN),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},Yle=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Kle=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const o=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:o,behavior:n})};class Xle{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(i=>{const o=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=a())==null||r.disconnect(),n=null},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Hle,rangeExtractor:Vle,onChange:()=>{},measureElement:Yle,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=Ya(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let o=a-1;o>=0;o--){const s=n[o];if(r.has(s.lane))continue;const l=i.get(s.lane);if(l==null||s.end>l.end?i.set(s.lane,s):s.end<l.end&&r.set(s.lane,!0),r.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=Ya(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,a,r,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i,enabled:o}),{key:!1}),this.getMeasurements=Ya(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),g=f?f.end+this.options.gap:a+r,v=s.get(d),y=typeof v=="number"?v:this.options.estimateSize(c),I=g+y,b=f?f.lane:c%this.options.lanes;u[c]={index:c,start:g,size:y,end:I,key:d,lane:b}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ya(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,a,r,i)=>this.range=n.length>0&&a>0?Jle({measurements:n,outerSize:a,scrollOffset:r,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ya(()=>{let n=null,a=null;const r=this.calculateRange();return r&&(n=r.startIndex,a=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,a]},(n,a,r,i,o)=>i===null||o===null?[]:n({startIndex:i,endIndex:o,overscan:a,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.indexFromElement(n),i=this.measurementsCache[r];if(!i)return;const o=i.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(r,this.options.measureElement(n,a,this))},this.resizeItem=(n,a)=>{const r=this.measurementsCache[n];if(!r)return;const i=this.itemSizeCache.get(r.key)??r.size,o=a-i;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,a)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,r)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(r))});return}this._measureElement(n,void 0)},this.getVirtualItems=Ya(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,o=n.length;i<o;i++){const s=n[i],l=a[s];r.push(l)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();if(a.length!==0)return HN(a[Sz(0,a.length-1,r=>HN(a[r]).start,n)])},this.getOffsetForAlignment=(n,a,r=0)=>{const i=this.getSize(),o=this.getScrollOffset();a==="auto"&&(a=n>=o+i?"end":"start"),a==="center"?n+=(r-i)/2:a==="end"&&(n-=i);const s=this.getTotalSize()-i;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.measurementsCache[n];if(!r)return;const i=this.getSize(),o=this.getScrollOffset();if(a==="auto")if(r.end>=o+i-this.options.scrollPaddingEnd)a="end";else if(r.start<=o+this.options.scrollPaddingStart)a="start";else return[o,a];const s=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,a,r.size),a]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(n,a);if(!i)return;const[o,s]=i;this._scrollToOffset(o,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const u=this.getOffsetForIndex(n,s);if(!u)return;const[c]=u,d=this.getScrollOffset();qle(c,d)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;if(a.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=a[a.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let o=a.length-1;for(;o>=0&&i.some(s=>s===null);){const s=a[o];i[s.lane]===null&&(i[s.lane]=s.end),o--}r=Math.max(...i.filter(s=>s!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Sz=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(i<a)e=r+1;else if(i>a)t=r-1;else return r}return e>0?e-1:0};function Jle({measurements:e,outerSize:t,scrollOffset:n,lanes:a}){const r=e.length-1,i=l=>e[l].start;if(e.length<=a)return{startIndex:0,endIndex:r};let o=Sz(0,r,i,n),s=o;if(a===1)for(;s<r&&e[s].end<n+t;)s++;else if(a>1){const l=Array(a).fill(0);for(;s<r&&l.some(c=>c<n+t);){const c=e[s];l[c.lane]=c.end,s++}const u=Array(a).fill(n+t);for(;o>=0&&u.some(c=>c>=n);){const c=e[o];u[c.lane]=c.start,o--}o=Math.max(0,o-o%a),s=Math.min(r,s+(a-1-s%a))}return{startIndex:o,endIndex:s}}const YN=typeof document<"u"?J.useLayoutEffect:J.useEffect;function Qle(e){const t=J.useReducer(()=>({}),{})[1],n={...e,onChange:(r,i)=>{var o;i?cS.flushSync(t):t(),(o=e.onChange)==null||o.call(e,r,i)}},[a]=J.useState(()=>new Xle(n));return a.setOptions(n),YN(()=>a._didMount(),[]),YN(()=>a._willUpdate()),a}function eue(e){return Qle({observeElementRect:Wle,observeElementOffset:Zle,scrollToFn:Kle,...e})}const Qb=e=>e===void 0?"":typeof e=="string"?e:e.id||"",ev=e=>typeof e=="string"?e:e===void 0?"":e.text||"",tue={items:[]},_u=dn({defaultConfig:{...tue,id:"",getId:Qb,getTextValue:ev,nonInteractiveIds:[],orientation:"vertical",defaultItemHeight:50,shouldVirtualize:!0}})(e=>{var b;const t=Ul(e.id),n=$.useRef(Qb),a=$.useRef(ev);n.current=e.getId||Qb,a.current=e.getTextValue||e.getId||ev;const[r]=$.useState(e.orientation||"vertical"),[i,o]=$.useState(e.defaultItemHeight),s=e.shouldVirtualize&&!!((b=e.items)!=null&&b.length),l=$.useRef(0),u=$.useRef(null),c=$.useMemo(()=>(e.items||[]).map((m,h)=>({id:n.current(m),index:h,value:m,textValue:a.current(m)})),[e.items]),[d,f]=$.useState([]),g=eue({count:c.length,getScrollElement:()=>u.current,estimateSize:$.useCallback(()=>i,[i]),horizontal:e.orientation==="horizontal",overscan:3});return{state:{...{items:c.length?c:d},UNSTABLE_virtual:g,UNSTABLE_defaultItemHeight:i,containerRef:u,id:t,orientation:r,indexRef:l,nonInteractiveIds:e.nonInteractiveIds||[],isVirtualized:s},events:{registerItem(m){l.current++,f(h=>h.concat({...m,value:m,index:h.length}))},unregisterItem(m){f(h=>h.find(S=>S.id===m.id)?h.filter(S=>S.id!==m.id):h)},updateItemHeight(m){o(m.value)}},getId:e.getId,getTextValue:e.getTextValue}}),nue=e=>e,fp=()=>0,mp=(e,{state:t})=>t.items.length-1,rue=(e,{state:t})=>{if(t.columnCount){const n=e%t.columnCount;return e-n}return fp()},aue=(e,{state:t})=>{if(t.columnCount){const n=e%t.columnCount-t.columnCount+1;let a=e-n;return a>=t.items.length&&(a=t.items.length-1),a}return mp(e,{state:t})},iue=(e,{state:t})=>t.columnCount?e%t.columnCount:fp(),oue=(e,{state:t})=>t.columnCount?t.items.length-t.columnCount+e%t.columnCount:mp(e,{state:t}),sue=(e,{state:t})=>t.items.find(n=>n.id===e),gr=e=>typeof e.cursorId=="string"?e.cursorId:e.cursorId.slice(-1)[0]||"",Rc=(e,t)=>{const{cursorId:n}=e;return n==null||n===""?!1:typeof n=="string"?n===t:n.includes(t)},Po=e=>(t,{state:n},a=n.items.length)=>{if(Number.isNaN(t)){if(e===1)return fp();if(e===-1)return mp(t,{state:n})}const r=n.items;let i=t+e;const s=Math.ceil(r.length/n.columnCount)*n.columnCount;return i<0?e===-1?i=r.length-1:(s+i>=r.length&&(i-=n.columnCount),i=s+i):i>=r.length&&(e===1?i=0:(i-s<0&&(i+=n.columnCount),i=i-s)),r.length>1&&n.nonInteractiveIds.includes(r[i].id)&&a>0?Po(e)(i,{state:n},a-1):i},lue=nue({getFirst:fp,getLast:mp,getItem:sue,getNext:Po(1),getNextRow:(e,{state:t})=>Po(t.columnCount)(e,{state:t}),getPrevious:Po(-1),getPreviousRow:(e,{state:t})=>Po(-t.columnCount)(e,{state:t}),getPreviousPage:iue,getNextPage:oue,getFirstOfRow:rue,getLastOfRow:aue}),wu=dn({defaultConfig:{..._u.defaultConfig,initialCursorId:"",columnCount:0,navigation:lue,pageSize:0},requiredConfig:_u.requiredConfig,contextOverride:_u.Context})(e=>{var d;const[t,n]=$.useState(e.initialCursorId),a=$.useRef(e.pageSize),r=e.columnCount||0,i=_u(e),o=e.navigation,s=$.useRef(-1),l=f=>{var v;const g=((v=u.items[f])==null?void 0:v.id)||"";n(g)};t&&((d=i.state.items[s.current])==null?void 0:d.id)!==t?s.current=i.state.items.findIndex(f=>f.id===t):t||(s.current=-1);const u={...i.state,cursorId:t,columnCount:r,pageSizeRef:a,cursorIndexRef:s},c={...i.events,goTo(f){const g=u.items.findIndex(v=>v.id===f.id);l(g)},goToNext(){const f=o.getNext(s.current,{state:u});l(f)},goToPrevious(){const f=o.getPrevious(s.current,{state:u});l(f)},goToPreviousRow(){const f=o.getPreviousRow(s.current,{state:u});l(f)},goToNextRow(){const f=o.getNextRow(s.current,{state:u});l(f)},goToFirst(){const f=o.getFirst(s.current,{state:u});l(f)},goToLast(){const f=o.getLast(s.current,{state:u});l(f)},goToFirstOfRow(){const f=o.getFirstOfRow(s.current,{state:u});l(f)},goToLastOfRow(){const f=o.getLastOfRow(s.current,{state:u});l(f)},goToNextPage(){const f=o.getNextPage(s.current,{state:u});l(f)},goToPreviousPage(){const f=o.getPreviousPage(s.current,{state:u});l(f)}};return{...i,state:u,events:c,navigation:o}}),uue=(e,{selectedIds:t,unselectedIds:n})=>t==="all"?!n.includes(e):t.includes(e),Ez={select(e){return{selectedIds:[e],unselectedIds:[]}}},cue={select(e,{selectedIds:t,unselectedIds:n}){return t==="all"?{selectedIds:"all",unselectedIds:n.includes(e)?n.filter(r=>r!==e):n.concat(e)}:{selectedIds:t.includes(e)?t.filter(r=>r!==e):t.concat(e),unselectedIds:[]}}},tv=dn({defaultConfig:{...wu.defaultConfig,initialSelectedIds:[],initialUnselectedIds:[],selection:Ez},requiredConfig:wu.requiredConfig,contextOverride:wu.Context})(e=>{const t=wu(e),[n,a]=$.useState(e.initialSelectedIds),[r,i]=$.useState(e.initialUnselectedIds),o=e.selection,s={...t.state,selectedIds:n,unselectedIds:r},l={...t.events,select(u){const{selectedIds:c,unselectedIds:d}=o.select(u.id,s);a(c),i(d)},selectAll(){a("all")},unselectAll(){a([])},setSelectedIds(u){a(u)},remove(u){}};return{...t,state:s,events:l,selection:o}}),di=dn({defaultConfig:{UNSTABLE_parentModel:void 0,...tv.defaultConfig},requiredConfig:tv.requiredConfig})(e=>({UNSTABLE_parentModel:e.UNSTABLE_parentModel,...tv(e)})),Gu=$.createContext({});function due(e,t){return typeof t=="function"?e.state.isVirtualized?e.state.UNSTABLE_virtual.getVirtualItems().map(a=>{const r=e.state.items[a.index],i=t(r.value,a.index);return p.jsx(Gu.Provider,{value:{item:r,virtual:a},children:i},r.id||r.index)}):e.state.items.map(a=>{const r=t(a.value,a.index);return p.jsx(Gu.Provider,{value:{item:a},children:r},a.id||a.index)}):p.jsx(Gu.Provider,{value:{},children:t})}const gp=le()((e,t,n={})=>{const{state:a,events:r}=e,{item:i,virtual:o}=$.useContext(Gu),[s,l]=$.useState(n["data-id"]||(i==null?void 0:i.id)||""),{localRef:u,elementRef:c}=La(oa(t,o?e.state.UNSTABLE_virtual.measureElement:null)),d=o?{position:"absolute",top:0,left:0,transform:`translateY(${o.start}px)`}:{};return Tie(()=>{var y;if((o==null?void 0:o.index)===0&&((y=u.current)!=null&&y.clientHeight),i)return;const f=a.indexRef.current,g=s||(n["data-has-children"]?`${a.id}-`:"")+String(f);if(a.items.find(I=>I.id===g))return;const v={id:g,textValue:n["data-text"]?n["data-text"]:typeof n.children=="string"?n.children:""};return r.registerItem(v),l(g),()=>{r.unregisterItem({id:g})}}),{ref:c,"data-id":s,disabled:n.disabled||a.nonInteractiveIds.includes(s)?!0:void 0,"aria-setsize":o?a.UNSTABLE_virtual.options.count:void 0,"aria-posinset":o?i.index+1:void 0,"data-index":o?i.index:void 0,style:d,id:gk(`${a.id}-${s}`)}}),my={horizontal:{ArrowLeft:"goToPrevious",Left:"goToPrevious",ArrowRight:"goToNext",Right:"goToNext",Home:"goToFirst",End:"goToLast",PageDown:"goToNextPage",PageUp:"goToPreviousPage"},vertical:{ArrowUp:"goToPrevious",Up:"goToPrevious",ArrowDown:"goToNext",Down:"goToNext",Home:"goToFirst",End:"goToLast",PageDown:"goToNextPage",PageUp:"goToPreviousPage"}},pue={ArrowLeft:"ArrowRight",Left:"Right",ArrowRight:"ArrowLeft",Right:"Left",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Home:"Home",End:"End",PageDown:"PageDown",PageUp:"PageUp"},KN={...my.horizontal,Home:"goToFirstOfRow",End:"goToLastOfRow",ArrowUp:"goToPreviousRow",Up:"goToPreviousRow",ArrowDown:"goToNextRow",Down:"goToNextRow"},nv={Home:"goToFirst",End:"goToLast"},XN=(e,t)=>e.hasOwnProperty(t);function _z(e,t){var r,i,o,s;if(e.ctrlKey){for(const l in nv)if(XN(nv,l)&&e.key===l)return(i=(r=t.events)[nv[l]])==null||i.call(r),!0}const n=t.state.columnCount>0?KN:my[t.state.orientation],a=yU(e.currentTarget);for(const l in n)if(XN(n,l)&&(a?e.key===pue[l]:e.key===l)){const u=t.state.columnCount>0?KN[l]:my[t.state.orientation][l];if(t.events[u])return(s=(o=t.events)[u])==null||s.call(o),!0}return!1}const wz=(e,t,n)=>{e()===!1&&t>1&&requestAnimationFrame(()=>wz(e,t-1)),n==null||n("Retry timeout")},fue=(e,t,n)=>new Promise((a,r)=>{var s;const i=(((s=n==null?void 0:n.dataset)==null?void 0:s.focusId)||"").split("-")[0]||e.state.id,o=e.navigation.getItem(t,e);if(o){e.state.isVirtualized&&e.state.UNSTABLE_virtual.scrollToIndex(o.index);const l=u=>document.querySelector(`[data-focus-id="${bU(`${u}-${o.id}`)}"]`);wz(()=>{const u=l(i)||l(e.state.id);return u&&(u.focus(),a(u)),!!u},5,r)}}),kz=le()((e,t,n={})=>{const a=$.useRef(e.state);a.current=e.state;const r=$.useRef(null);return $.useEffect(()=>{r.current&&fue(e,gr(e.state),r.current).then(()=>{r.current=null})},[e.state.cursorId]),$.useEffect(()=>{!e.state.cursorId&&e.state.items.length&&e.events.goTo({id:e.state.items[0].id})},[e.state.cursorId,e.state.items,e.events]),{onKeyDown(i){_z(i,e)&&(i.preventDefault(),r.current=i.currentTarget)},onClick(){e.events.goTo({id:n["data-id"]})},"data-focus-id":gk(`${e.state.id}-${n["data-id"]}`),tabIndex:e.state.cursorId?n["data-id"]&&Rc(e.state,n["data-id"])?0:-1:0}}),mue=le()(({state:e,events:t},n,a={})=>{const r=a["data-id"]||"";return{onClick:o=>{!e.nonInteractiveIds.includes(r)&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&t.select({id:r})}}}),gue=le()(e=>({"aria-activedescendant":e.state.cursorId?gk(`${e.state.id}-${typeof e.state.cursorId=="string"?e.state.cursorId:e.state.cursorId.join("-")}`):void 0})),hue=le()((e,t,n={})=>{const a=n["data-id"]||"";return{className:Rc(e.state,a)?"focus":""}}),bue=Re("li")({displayName:"Item",modelHook:di,elemPropsHook:gp})((e,t)=>p.jsx(t,{...Me(e)})),vue=le()(e=>({style:{position:"relative",height:e.state.isVirtualized?e.state.UNSTABLE_virtual.getTotalSize():void 0}})),yue=ye({base:{'& :where([data-part="list"])':{display:"flex",flexDirection:"column",marginBlockStart:D.zero,marginBlockEnd:D.zero}},modifiers:{orientation:{vertical:{overflowY:"auto"},horizontal:{overflowY:void 0,'& :where([data-part="list"])':{flexDirection:"row"}}}}}),Iz=ia("ul")({displayName:"ListBox",modelHook:di,elemPropsHook:vue,subComponents:{Item:bue}})(({height:e,maxHeight:t,marginY:n,marginBottom:a,overflowY:r,marginTop:i,...o},s,l)=>p.jsx("div",{ref:l.state.containerRef,...cn({style:{height:e,maxHeight:t,marginBottom:a??n,marginTop:i??n}},yue({orientation:l.state.orientation})),children:p.jsx(s,{...Me(o),"data-part":"list",children:due(l,o.children)})})),mt=dn({defaultConfig:{...di.defaultConfig,...ha.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...di.requiredConfig,...ha.requiredConfig},contextOverride:ha.Context})(e=>{const t=di(di.mergeConfig(e,{selection:e.mode==="single"?Ez:cue})),n=ha(ha.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));QU(n),ez(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),xz=nz,Tz={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},Sue=Re("div")({modelHook:mt,elemPropsHook:xz})(({children:e,...t})=>p.jsx(xk,{placement:"bottom-start",popperOptions:Tz,...t,children:e})),Rz=le()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),Eue=sa(Rz,rz),_ue=sa(Rz,sse),wue=Re(Is)({displayName:"Menu.Target",modelHook:mt,elemPropsHook:Eue})(({children:e,...t},n)=>p.jsx(n,{...t,children:e})),kue=Re(Is)({displayName:"Menu.Target",modelHook:mt,elemPropsHook:_ue})(({children:e,...t},n)=>p.jsx(n,{...t,children:e})),JN={vertical:"bottom",horizontal:"center"},gy=ga("positionX","positionY"),Iue=nie({"0%":{opacity:0,transform:`translate(${gy.positionX}, ${gy.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),xue=ye({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({...et.subtext.medium,display:"inline-flex",position:"relative",padding:D.x3,color:L.text.inverse,animationName:Iue,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:L.text.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:Rr.x1,outline:`${ce(1)} solid transparent`,outlineOffset:`-${ce(1)}`,zIndex:-1,margin:D.x1,backgroundColor:L.bg.translucent,position:"absolute",top:0,left:0,right:0,bottom:0},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:ht.negate(D.x1)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:ht.negate(D.x1)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:ht.negate(D.x1)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:ht.negate(D.x1)}}),modifiers:{elementHasFocus:{true:{padding:ht.subtract(D.x4,ht.divide(D.x1,2)),"&:before":{margin:ht.add(D.x1,ht.divide(D.x1,2))}}}}}),Tue=De("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=JN,elementHasFocus:n=!1,...a},r,i)=>{const o=Eie(t||JN,O(D.x2));return p.jsx(i,{ref:r,...Me(a,[xue({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),gy({positionX:o.x,positionY:o.y})]),children:e})}}),QN=(e,t=0)=>{const n=J.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return J.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},Rue=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Aue({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=J.useRef(!1),i=ha(),[o,s]=J.useState(null),l=Ul(),u=QN(i.events.hide,a),c=QN(i.events.show,n),d=()=>{u.start(),c.clear()},f=()=>{c.start(),u.clear()},g=m=>{s(m.currentTarget),f()},v=m=>{r.current||g(m),r.current=!1},y=m=>{r.current=!0,Rue(m.currentTarget)&&i.events.hide()};ez(i),QU(i),rse(i),ase(i);const I=i.state.visibility!=="hidden",b={"aria-describedby":e==="describe"&&I?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:g,onMouseLeave:d,onMouseDown:y,onFocus:v,onBlur:d};return b["aria-describedby"]===void 0&&delete b["aria-describedby"],{targetProps:b,popperProps:{open:I,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&I?l:void 0,role:"tooltip",onMouseEnter:f,onMouseLeave:d}}}const Az=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=Az(e.children[n]);if(a)return a}return null}return null},Cz=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=Cz(e.children[n]);if(a)return a}return null},eO=e=>{const t=Cz(e)||Az(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function Cue(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=SU(t[r],e[r]):a[r]=t[r],a),{})}const Tk=({placement:e="top",fallbackPlacements:t=yz,children:n,...a})=>{const[r,i]=J.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Aue({type:"muted"}),u=d=>{const f=d.currentTarget;i(f instanceof HTMLElement?f.innerText:""),eO(f)&&o.onMouseEnter(d)},c=d=>{const f=d.currentTarget;i(f instanceof HTMLElement?f.innerText:""),eO(f)&&o.onFocus(d)};return p.jsxs(J.Fragment,{children:[J.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...Cue({...o,onMouseEnter:u,onFocus:c},n.props)}),p.jsx(xk,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const f=oz(d);return p.jsx(Tue,{transformOrigin:f,...l,...a,children:r})}})]})},ql=ye({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({...et.subtext.large,display:"flex",alignItems:"center",width:"100%",gap:D.x4,padding:`${D.x2} ${D.x4}`,boxSizing:"border-box",cursor:"pointer",color:L.fg.default,borderWidth:0,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:D.x10,overflowWrap:"anywhere",[ae.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:$a.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:me.dark,backgroundColor:me.lightest,[`& :where(${n})`]:{opacity:$a.full},"&:where(.focus, :focus-visible)":{[ae.vars.color]:me.accent,outline:"none",backgroundColor:me.base,color:ae.vars.color}},"&:is(.hover, :hover)":{color:L.fg.strong,backgroundColor:or.lightest},"&:is(.focus, :focus-visible)":{color:me.accent,backgroundColor:me.base,outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(2)}`},"&:is(:disabled, [aria-disabled=true])":{color:L.fg.disabled,cursor:"default","&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:me.light}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),Nue=e=>p.jsx(ks,{...ql.parts.icon,...e}),Nz=De("span")({Component:({...e},t,n)=>p.jsx(n,{ref:t,...ql.parts.text,...cn(e)})}),Oz=De("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>p.jsx(r,{ref:a,"aria-disabled":t,...Me(n,ql({})),children:typeof e=="string"?p.jsx(Nz,{children:e}):e})}),$z=le()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),Lz=le()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=La(t),i=n["data-id"];return J.useLayoutEffect(()=>{e.state.mode==="single"&&Rc(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:Rc(e.state,n["data-id"])?"focus":void 0}});function Dz(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),Dz(e.UNSTABLE_parentModel))}const Oue=sa(le()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),Dz(e))}:void 0})),Lz,$z,mue,kz,gp),Gi=Re("button")({displayName:"Menu.Item",modelHook:mt,elemPropsHook:Oue,subComponents:{Icon:Nue,Text:Nz}})(({children:e,...t},n)=>p.jsx(Tk,{placement:"left",children:p.jsx(Oz,{as:n,...t,children:e})})),Pz=ye({vars:{minWidth:ce(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({...et.subtext.large,color:L.text.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:D.zero,maxWidth:ht.subtract("100vw",D.x8),boxShadow:Aae[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),$ue=le()(()=>({})),Fz=Re("div")({displayName:"Menu.Card",modelHook:mt,elemPropsHook:$ue})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=J.useMemo(()=>oz(r.state.placement||"bottom"),[r.state.placement]);return p.jsx(mse,{as:a,...Me(n,Pz({minWidth:typeof e=="number"?ce(e):e,maxHeight:typeof t=="number"?ce(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Lue=sa(le()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),lse,ise),Mz=ye({base:{background:L.bg.default,borderRadius:Rr.zero,padding:D.zero,gap:D.zero},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),Uz=Re("div")({displayName:"Menu.List",modelHook:mt,elemPropsHook:Lue})(({children:e,...t},n,a)=>p.jsx(Iz,{as:n,model:a,marginY:O(D.x2),...cn(t,Mz({orientation:a.state.orientation})),children:e})),Due=ye({base:{display:"block",height:ce(1),border:D.zero,borderTop:`${ce(1)} solid ${L.border.divider}`,margin:`${D.x2} ${D.zero}`}}),zz=De("hr")({displayName:"Menu.Divider",Component({...e},t,n){return p.jsx(n,{ref:t,...cn(e,Due())})}}),jz=De("span")({Component:({...e},t,n)=>p.jsxs(p.Fragment,{children:[p.jsx(Gi.Text,{ref:t,as:n,...e}),p.jsx(ks,{...ql.parts.selected,icon:kse})]})}),Pue=De("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>p.jsx(a,{ref:n,...Me(t,ql()),children:typeof e=="string"?p.jsx(jz,{children:e}):e})}),Fue=sa(le()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":uue(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),hue,gp),Bz=Re("li")({displayName:"Menu.Item",modelHook:mt,elemPropsHook:Fue,subComponents:{Icon:Gi.Icon,Text:jz}})(({children:e,...t},n)=>p.jsx(Tk,{placement:"left",children:p.jsx(Pue,{as:n,...t,children:e})})),qz=dn({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:Ul(e.id)},events:{}})),Mue=ye({base:{...et.subtext.large,display:"flex",alignItems:"center",width:"100%",gap:D.x4,padding:`${D.x2} ${D.x4}`,boxSizing:"border-box",fontWeight:lr.bold}}),Uue=le()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),zue=le()(e=>({id:e.state.id})),tO=Re("div")({modelHook:qz,elemPropsHook:zue})(({children:e,...t},n)=>p.jsx(Tk,{children:p.jsx(n,{...Me(t,Mue()),children:e})})),Gz=ia("div")({displayName:"Menu.Group",modelHook:qz,elemPropsHook:Uue,subComponents:{Heading:tO}})(({children:e,title:t,...n},a)=>p.jsxs(a,{...Me(n),children:[t?p.jsx(tO,{children:t}):null,e]})),jue=Re("div")({modelHook:mt,elemPropsHook:xz})(({children:e,...t})=>p.jsx(xk,{placement:"right-start",popperOptions:Tz,...t,children:e})),Bue=(e,t=0)=>{const n=$.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return $.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},que=sa(vu(e=>e.UNSTABLE_parentModel,Lz),vu(e=>e.UNSTABLE_parentModel,$z),vu(e=>e.UNSTABLE_parentModel,kz),le()((e,t)=>({ref:oa(t,e.state.targetRef)})),vu(e=>e.UNSTABLE_parentModel,gp),le()(e=>{const t=$.useRef(),n=Bue(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),Gue=Re("button")({modelHook:mt,elemPropsHook:que})(({children:e,...t},n)=>p.jsxs(Oz,{as:n,...t,children:[typeof e=="string"?p.jsx(Gi.Text,{children:e}):e,p.jsx(Gi.Icon,{icon:Ise})]})),Hue=Re()({modelHook:mt,subComponents:{Card:Fz,List:Uz,Item:Gi,TargetItem:Gue,Group:Gz,Option:Bz,Divider:zz,Popper:jue}})(({children:e,model:t,...n},a,r)=>{const i=mt(mt.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=mt.Context;return p.jsx(o.Provider,{value:i,children:e})}),Zo=ia()({displayName:"Menu",modelHook:mt,subComponents:{Target:wue,Card:Fz,List:Uz,Item:Gi,Group:Gz,Option:Bz,Divider:zz,TargetContext:kue,Popper:Sue,Submenu:Hue}})(({children:e})=>p.jsx(p.Fragment,{children:e})),rv=dn({defaultConfig:{value:void 0,onFilterChange(e){},onChange(e){}}})(e=>{const t=$.createRef();return{onFilterChange:e.onFilterChange,onChange:e.onChange,state:{value:e.value,inputRef:t},events:{}}}),hr=dn({defaultConfig:{...rv.defaultConfig,...mt.defaultConfig,shouldVirtualize:!0},requiredConfig:{...rv.requiredConfig,...mt.requiredConfig}})(e=>{const t=rv(e),n=mt(e),[a,r]=$.useState(0),i={width:a,...t.state,...n.state},o={...t.events,...n.events,setWidth(s){r(s)}};return{...n,...t,state:i,events:o}}),Vue=ye({vars:{width:""},base:({width:e})=>({...et.subtext.large,display:"block",border:`${ce(1)} solid ${O(L.border.input.default)}`,backgroundColor:L.bg.default,borderRadius:Hie.system.shape.sm,boxSizing:"border-box",height:D.x10,transition:"0.2s box-shadow, 0.2s border-color",padding:D.x2,margin:ce(0),width:e,minWidth:O(e,ht.add(ht.multiply(D.x20,3),D.x10)),color:L.text.default,textOverflow:"ellipsis","::-ms-clear":{display:"none"},"&::placeholder":{color:L.text.hint},"&:is(:hover, .hover)":{borderColor:L.border.input.strong},"&:is(:focus-visible, .focus):where(:not([disabled]))":{borderColor:He.focusOutline,boxShadow:`inset 0 0 0 1px ${O(He.focusOutline)}`,outline:`${ce(2)} solid transparent`},"&:is(:disabled, .disabled)":{backgroundColor:L.bg.alt.softer,borderColor:L.border.input.disabled,color:L.fg.disabled,"&::placeholder":{color:L.fg.disabled}}}),modifiers:{grow:{true:{width:"100%",resize:"vertical"},false:{width:"initial"}},error:{error:{borderColor:He.errorInner,borderWidth:ce(2),backgroundColor:gn.lightest,"&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))":{borderColor:He.errorInner},"&:is(:focus-visible, .focus):not([disabled])":{boxShadow:`0 0 0 2px ${O(L.border.inverse,We)}, 0 0 0 4px ${He.focusOutline}`,outlineOffset:ce(2)}},caution:{borderColor:He.alertOuter,boxShadow:`inset 0 0 0 ${ce(2)} ${He.alertInner}`,backgroundColor:Gn.lightest,"&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))":{borderColor:He.alertOuter},"&:is(:focus-visible, .focus):not([disabled])":{boxShadow:`inset 0 0 0 ${ce(2)} ${He.alertInner},
319
319
  0 0 0 2px ${O(L.border.inverse,We)},
320
320
  0 0 0 4px ${He.focusOutline}`},outlineOffset:ce(2)}}},defaultModifiers:{grow:"false"}}),Rk=De("input")({displayName:"TextInput",Component:({grow:e,error:t,width:n,...a},r,i)=>p.jsx(i,{type:"text",ref:r,...Me(a,Vue({width:typeof n=="number"?ce(n):n,grow:e,error:t}))}),subComponents:{ErrorType:ZM}}),Gl=dn({})(()=>({state:{inputRef:$.useRef(null)},events:{}})),Hz=ye({vars:{insetInlineStart:"initial",insetInlineEnd:"initial",width:D.x10,height:D.x10,pointerEvents:""},base:({width:e,height:t,insetInlineStart:n,insetInlineEnd:a})=>({display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",width:e,height:t,insetInlineStart:n,insetInlineEnd:a}),modifiers:{pointerEvents:{_:({pointerEvents:e})=>({pointerEvents:e})}}}),av=Re("div")({modelHook:Gl})(({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:a,height:r,...i},o)=>p.jsx(o,{...Me(i,Hz({pointerEvents:e,insetInlineStart:br(t),insetInlineEnd:br(n),width:br(a),height:br(r)}))})),iv=Re("div")({modelHook:Gl})(({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:a,height:r,...i},o)=>p.jsx(o,{...Me(i,Hz({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:br(a),height:br(r)}))})),Wue=le()((e,t)=>({ref:oa(t,e.state.inputRef),placeholder:""})),Zue=ye({vars:{paddingInlineStart:"",paddingInlineEnd:""},base:{display:"flex",width:"100%"},modifiers:{paddingInlineStart:{_:({paddingInlineStart:e})=>({paddingInlineStart:e})},paddingInlineEnd:{_:({paddingInlineEnd:e})=>({paddingInlineEnd:e})}}}),nO=Re(Rk)({modelHook:Gl,elemPropsHook:Wue})(({paddingInlineStart:e,paddingInlineEnd:t,...n},a)=>p.jsx(a,{as:a,...Me(n,Zue({paddingInlineStart:br(e),paddingInlineEnd:br(t)}))})),Yue=le()(e=>({role:"presentation",tabIndex:-1,icon:Rse,size:"small",onMouseDown(t){t.preventDefault()},onClick(){py(e.state.inputRef.current,"")}})),Kue=Re(Ose)({modelHook:Gl,elemPropsHook:Yue})((e,t)=>p.jsx(t,{"data-part":"input-group-clear-button",...cn(e)})),br=e=>typeof e=="number"?`${e}px`:e,ku=e=>{if(e.length!==0)return e.length===1?e[0]:`calc(${e.map(br).join(" + ")})`},Xue=ye({base:{display:"flex",position:"relative",alignItems:"center",'& :has([data-part="input-group-clear-button"])':{transition:"opacity 300ms ease"},'&:where(:has(input:placeholder-shown)) :has([data-part="input-group-clear-button"])':{opacity:0,pointerEvents:"none"}}}),Ro=ia("div")({displayName:"InputGroup",modelHook:Gl,subComponents:{InnerStart:av,Input:nO,InnerEnd:iv,ClearButton:Kue}})(({children:e,...t},n)=>{const a=[],r=[];$.Children.forEach(e,l=>{if($.isValidElement(l)&&l.type===av){const u=kn(l.props.width||D.x10);a.push(u)}if($.isValidElement(l)&&l.type===iv){const u=kn(l.props.width||D.x10);r.push(u)}});let i=0,o=0;const s=$.Children.map(e,l=>{if($.isValidElement(l)){if(l.type===nO)return $.cloneElement(l,{paddingInlineStart:ku(a),paddingInlineEnd:ku(r)});if(l.type===av){const u=ku(a.slice(0,i))||"0px";return i++,$.cloneElement(l,{insetInlineStart:u})}if(l.type===iv){const u=ku(r.slice(o+1,r.length))||"0px";return o++,$.cloneElement(l,{insetInlineEnd:u})}}return l});return p.jsx(n,{...Me(t,Xue()),children:s})}),Jue=le()(e=>({onKeyDown(t){(t.key==="ArrowDown"||t.key==="ArrowUp"&&e.state.visibility!=="visible")&&(e.events.show(t),e.events.setWidth(t.currentTarget.getBoundingClientRect().width))}})),Que=le()(e=>{const t=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{var n;t&&e.events.setWidth(((n=e.state.targetRef.current)==null?void 0:n.getBoundingClientRect().width)||0)},[t,e.events,e.state.targetRef]),{}}),ece=le()(e=>({onKeyDown(t){e.state.visibility==="visible"&&_z(t,e)&&t.preventDefault()}})),Vz=sa(le()((e,t)=>{const n=oa(t,e.state.inputRef);return $.useEffect(()=>{if(e.state.cursorId&&e.state.visibility==="visible"){const a=e.navigation.getItem(gr(e.state),e);if(e.state.isVirtualized&&a)e.state.UNSTABLE_virtual.scrollToIndex(a.index);else{const r=document.querySelector(`[id="${e.state.id}-list"] [data-id="${gr(e.state)}"]`);r&&requestAnimationFrame(()=>{r.scrollIntoView({block:"nearest"})})}}},[e.state.cursorId,e.state.selectedIds,e.state.visibility]),{onKeyDown(a){if(a.key==="Enter"&&!a.metaKey&&e.state.visibility==="visible"){const r=document.querySelector(`[data-id="${gr(e.state)}"]`);r&&(r==null?void 0:r.getAttribute("aria-disabled"))!=="true"&&(e.events.select({id:gr(e.state)}),e.state.mode==="single"&&e.events.hide(a)),a.preventDefault()}},onBlur(a){e.events.hide(a)},onClick(a){e.state.visibility==="hidden"&&e.events.setWidth(a.currentTarget.getBoundingClientRect().width)},value:e.state.value,role:"combobox","aria-haspopup":"listbox","aria-expanded":e.state.visibility==="visible","aria-autocomplete":"list","aria-controls":`${e.state.id}-list`,"aria-activedescendant":e.state.visibility==="hidden"?null:void 0,id:e.state.id,ref:n}}),Que,Jue,gue,ece,rz),tce=Re(Rk)({modelHook:hr,elemPropsHook:Vz})(({children:e,...t},n)=>p.jsx(n,{...t,children:e})),nce=le()(e=>({role:"listbox","aria-labelledby":e.state.id,id:`${e.state.id}-list`})),rce=ye({base:{},extends:Mz}),ace=Re("ul")({modelHook:hr,elemPropsHook:nce})(({children:e,...t},n,a)=>p.jsx(Iz,{as:n,model:a,marginY:O(D.x2),...cn(t,rce({orientation:a.state.orientation})),children:e})),ice=le()(e=>({minWidth:e.state.width})),oce=Re("div")({modelHook:hr,elemPropsHook:ice})(({children:e,...t},n)=>p.jsx(Zo.Card,{as:n,...t,children:e})),sce=nz,lce=Re("div")({displayName:"Combobox.Menu.Popper",modelHook:mt,elemPropsHook:sce})(({children:e,...t})=>p.jsx(Zo.Popper,{fallbackPlacements:["top","bottom"],...t,children:e})),rO=Re()({modelHook:hr,subComponents:{Popper:lce,List:ace,Item:Zo.Option,Card:oce,Divider:Zo.Divider}})(({children:e},t,n)=>p.jsx(Zo,{model:n,children:e})),Ei=ia()({displayName:"Combobox",modelHook:hr,subComponents:{Input:tce,Menu:rO}})(({children:e},t,n)=>p.jsx(rO,{model:n,children:e})),uce=le()(e=>($.useLayoutEffect(()=>{var n;const t=(n=e.state.items.find(a=>a.id===e.state.cursorId))==null?void 0:n.id;!e.state.selectedIds.length&&e.state.items.length&&!t?e.events.goTo({id:e.state.items[0].id}):e.state.selectedIds.length&&!t&&e.events.goTo({id:e.state.selectedIds[0]})},[e.state.selectedIds,e.events,e.state.items,e.state.cursorId,e.state.visibility]),{})),cce=le()(e=>{var u;const t=$.useRef(""),n=$.useRef(),[a,r]=$.useState(t.current),i=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t.current="",r(t.current)},500)},o=(c,d,f=e.state.items.length,g=!0)=>{for(let v=c;v<f;v++)if(e.state.items[v].textValue.toLowerCase().startsWith(d.toLowerCase())&&(!g||g&&!e.state.nonInteractiveIds.includes(e.state.items[v].id)))return v;return-1},s=e.state.items.length>0&&((u=e.navigation.getItem(gr(e.state),e))==null?void 0:u.index)||0,l=(c,d)=>{const f=t.current.length===0?s+1:s,g=f===d?0:f;t.current+=c,r(t.current),i();let v=o(g,t.current);o(g,t.current),v===-1&&(v=o(0,t.current,g)),v>-1&&(e.events.goTo({id:e.state.items[v].id}),e.state.visibility==="hidden"&&e.events.select({id:e.state.items[v].id}))};return{onKeyDown(c){c.key.length===1&&c.key.match(/\S/)&&l(c.key,e.state.items.length),(c.key==="Spacebar"||c.key===" ")&&e.state.visibility==="visible"&&t.current!==""&&l(" ",e.state.items.length),(c.key==="Spacebar"||c.key===" ")&&e.state.visibility==="hidden"&&t.current!==""&&l(" ",e.state.items.length)},keySoFar:a}});function dce(e){return!!e}const pce=le()((e,t,{disabled:n,value:a,onChange:r,name:i}={})=>{const{elementRef:o,localRef:s}=La(e.state.targetRef),{elementRef:l,localRef:u}=La(t),c=$.useRef(e.navigation);c.current=e.navigation;const d=$.useRef(e.state);return d.current=e.state,$.useLayoutEffect(()=>{u.current&&typeof a=="string"&&a!==u.current.value&&e.events.setSelectedIds(a?a.split(", "):[])},[a,u,e.events]),$.useImperativeHandle(l,()=>{if(u.current&&s.current){const f=u.current,g=s.current;return Object.defineProperty(f,"value",{get(){var y,I;return(I=(y=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(f),"value"))==null?void 0:y.get)==null?void 0:I.call(f)},set(v){f&&v!==(d.current.selectedIds==="all"?[]:d.current.selectedIds).join(", ")&&e.events.setSelectedIds(v?v.split(", "):[])}}),Object.defineProperty(f,"focus",{configurable:!0,writable:!0,value:v=>g.focus(v)}),Object.defineProperty(f,"blur",{configurable:!0,writable:!0,value:()=>g.blur()}),f}return u.current},[u,s,e.events]),$.useLayoutEffect(()=>{if(s.current){const f=e.state.items.length===0?"":(e.state.selectedIds==="all"?[]:e.state.selectedIds.map(g=>c.current.getItem(g,{state:d.current})).filter(dce).map(g=>g.textValue)).join(", ");f!==s.current.value&&py(s.current,f)}if(u.current){const f=(e.state.selectedIds==="all"?[]:e.state.selectedIds).join(", ");f!==u.current.value&&py(u.current,f)}},[e.state.selectedIds,e.state.items,u,s]),{ref:o,form:"",value:null,onChange:f=>{var g;return(g=e.onFilterChange)==null||g.call(e,f),null},name:null,disabled:n,formInputProps:{disabled:n,tabIndex:-1,"aria-hidden":!0,ref:l,onChange:f=>{var g;r==null||r(f),(g=e.onChange)==null||g.call(e,f)},name:i}}}),fce=le()(e=>{const t=e.state.visibility!=="hidden";return $.useEffect(()=>{!t&&e.state.selectedIds.length&&e.events.goTo({id:e.state.selectedIds[0]})},[t,e.events,e.state.selectedIds]),{}}),Lr=dn({defaultConfig:{...hr.defaultConfig,shouldVirtualize:!1},requiredConfig:{...hr.requiredConfig},contextOverride:hr.Context})(e=>hr(e)),mce=sa(le()((e,t,n={})=>{const{elementRef:a,localRef:r}=La(t);return zie({ref:r,onResize:i=>{if(e.state.visibility==="visible"){const o=i.width?i.width+42+8:0;e.events.setWidth(o)}}}),$.useEffect(()=>{var i;if(e.state.cursorId&&e.state.visibility==="visible"){const o=e.navigation.getItem(gr(e.state),e);if(e.state.isVirtualized&&o)e.state.UNSTABLE_virtual.scrollToIndex(o.index);else{const s=(i=r.current)==null?void 0:i.getAttribute("aria-controls");if(s){const l=document.querySelector(`[id="${s}"] [data-id="${gr(e.state)}"]`);l&&requestAnimationFrame(()=>{l.scrollIntoView({block:"nearest"})})}}}},[e.state.cursorId,e.state.selectedIds,e.state.visibility]),{onKeyDown(i){i.key!=="Tab"&&i.preventDefault(),(i.key==="Spacebar"||i.key===" "&&e.state.visibility==="hidden"&&(n==null?void 0:n.keySoFar)==="")&&e.events.show(),(i.key==="Spacebar"||i.key===" ")&&e.state.visibility==="visible"&&(n==null?void 0:n.keySoFar)===""&&(e.events.select({id:gr(e.state)}),e.events.hide())},autoComplete:"off",keySoFar:null,ref:a}}),cce,fce,uce,pce,Vz),da=ye({parts:{caret:"select-caret-icon",caretContainer:"select-caret-container",startIconContainer:"select-start-icon-container",startIcon:"select-start-icon",endIcon:"select-end-icon",hiddenInput:"select-hidden-input",visualInput:"select-visual-input"},base:({hiddenInputPart:e,startIconPart:t,endIconPart:n,visualInputPart:a,caretContainerPart:r,startIconContainerPart:i,caretPart:o})=>({[e]:{position:"absolute",top:D.zero,bottom:D.zero,left:D.zero,right:D.zero,opacity:$a.zero,cursor:"default",pointerEvents:"none",minWidth:"100%",width:"100%"},[`${t}, ${n}, ${r}, ${i}`]:{position:"absolute",pointerEvents:"none"},[a]:{caretColor:"transparent",backgroundColor:L.bg.default,color:L.text.default,cursor:"default","&::placeholder":{color:L.text.default},"&::selection":{backgroundColor:"transparent"}},"&:has(:disabled, .disabled)":{[o]:{[ae.vars.color]:L.fg.disabled}}}),modifiers:{error:{error:({visualInputPart:e})=>({[e]:{backgroundColor:gn.lightest}}),caution:({visualInputPart:e})=>({[e]:{backgroundColor:Gn.lightest}})}}}),gce=Re(Rk)({modelHook:Lr,elemPropsHook:mce})(({inputStartIcon:e,formInputProps:t,error:n,...a},r,i)=>p.jsxs(Ro,{"data-width":"ck-formfield-width",...da({error:n}),children:[e&&i.state.selectedIds.length>0&&p.jsx(Ro.InnerStart,{...da.parts.startIconContainer,children:p.jsx(ks,{...da.parts.startIcon,icon:e})}),p.jsx(Ro.Input,{...da.parts.hiddenInput,...t}),p.jsx(Ro.Input,{as:r,placeholder:"Choose an option",error:n,...da.parts.visualInput,...a}),p.jsx(Ro.InnerEnd,{...da.parts.caretContainer,children:p.jsx(ks,{...da.parts.caret,icon:wse})})]})),hce=le()(e=>({width:e.state.width})),bce=ye({base:{[Pz.vars.maxHeight]:ce(300)}}),vce=Re("div")({modelHook:Lr,elemPropsHook:hce})(({children:e,...t},n)=>p.jsx(Ei.Menu.Card,{as:n,...cn(t,bce()),children:e})),yce=Re("li")({modelHook:Lr,subComponents:{Icon:Ei.Menu.Item.Icon}})(({children:e,...t},n,a)=>p.jsx(Ei.Menu.Item,{as:n,...t,children:e})),U=ia()({displayName:"Select",modelHook:Lr,subComponents:{Input:gce,Popper:Ei.Menu.Popper,Card:vce,List:Ei.Menu.List,Item:yce}})(({children:e,...t},n,a)=>p.jsx(Ei,{model:a,...t,children:e})),Sce=ct({flexDirection:"column"}),Ece=["E-mail","Phone","Fax","Mail","Mobile Phone","The Ontologically Anthropocentric Sensory Immersive Simulation"],Ak=()=>{const[e,t]=$.useState(""),n=a=>{t(a.target.value)};return p.jsxs(Ft,{cs:Sce,children:[p.jsxs(W,{error:"caution",children:[p.jsx(W.Label,{children:"Contact"}),p.jsx(W.Field,{children:p.jsxs(U,{items:Ece,children:[p.jsx(W.Input,{as:U.Input,onChange:a=>n(a),id:"alert-select"}),p.jsx(U.Popper,{children:p.jsx(U.Card,{children:p.jsx(U.List,{children:a=>p.jsx(U.Item,{children:a})})})}),p.jsx(W.Hint,{children:"Please choose a form of contact."})]})})]}),"Selected value: ",e]})};Ak.__RAW__=`import React from 'react';
321
321
  import {FormField} from '@workday/canvas-kit-react/form-field';