@primer/react 37.11.1 → 37.11.2

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.
@@ -9,5 +9,5 @@ var M=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,O=Object.pr
9
9
  * @license
10
10
  * Copyright 2018 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */const Us=new Set(["children","localName","ref","style","className"]),Ys=new WeakMap,Xs=(e,r,t,o,a)=>{const n=null==a?void 0:a[r];void 0===n||t===o?null==t&&r in HTMLElement.prototype?e.removeAttribute(r):e[r]=t:((e,r,t)=>{let o=Ys.get(e);void 0===o&&Ys.set(e,o=new Map);let a=o.get(r);void 0!==t?void 0===a?(o.set(r,a={handleEvent:t}),e.addEventListener(r,a)):a.handleEvent=t:void 0!==a&&(o.delete(r),e.removeEventListener(r,a))})(e,n,t)};const Qs=e=>e[0].toUpperCase()+e.slice(1).replace(/(-\w)/g,(e=>e[1].toUpperCase())),Js=(e,t,o=void 0)=>{const a=Object.assign(Object.assign(p(function(e=window.React,r,t,o,a){let n,l,i;{const r=e;({tagName:l,elementClass:i,events:o,displayName:a}=r),n=r.react}const c=n.Component,s=n.createElement,d=new Set(Object.keys(null!=o?o:{}));class g extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(const r in this.i)Xs(this.o,r,this.props[r],e?e[r]:void 0,o)}componentDidMount(){var e;this.t(),null===(e=this.o)||void 0===e||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){const{_$Gl:e,...r}=this.props;this.h!==e&&(this.u=r=>{null!==e&&((e,r)=>{"function"==typeof e?e(r):e.current=r})(e,r),this.o=r,this.h=e}),this.i={};const t={ref:this.u};for(const[e,o]of Object.entries(r))Us.has(e)?t["className"===e?"class":e]=o:d.has(e)||e in i.prototype?this.i[e]=o:t[e]=o;return t.suppressHydrationWarning=!0,s(l,t)}}g.displayName=null!=a?a:i.name;const u=n.forwardRef(((e,r)=>s(g,{...e,_$Gl:r},null==e?void 0:e.children)));return u.displayName=g.displayName,u}({tagName:t,elementClass:e,react:r,events:o})),{displayName:Qs(t)})(fo),{displayName:Qs(t)});return a},ed=w(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),rd=p.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&C(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],ed))),td=({show:e,children:t})=>{const[o,n]=i(e);a((()=>{e&&n(!0)}),[e]);return o?r.createElement(ho,{height:e?"auto":0,overflow:"hidden"},r.createElement(rd,{show:e,onAnimationEnd:()=>{e||n(!1)}},t)):null},od=r.createContext({});var ad="prc_Body_cNQoa",nd="prc_GroupFieldset_0NZzG",ld="prc_GroupLegend_HW4-c",id="prc_CheckboxOrRadioGroupCaption_9GgyY",cd="prc_RadioGroupLabel_anQ3U",sd="prc_GroupLabelChildren_j5sBI";const dd="primer_react_css_modules_ga",gd=({className:e,children:t,sx:o})=>{const{disabled:a,captionId:n}=r.useContext(od);return bo(dd)?o?r.createElement(kl,{className:Gr(e,id),id:n,sx:o},t):r.createElement("span",{className:Gr(e,id),id:n},t):r.createElement(kl,{color:a?"fg.muted":"fg.subtle",fontSize:1,id:n,sx:o,className:e},t)};function ud(e,r){if(null!=r)return"object"==typeof r?Object.fromEntries(Object.entries(r).map((([r,t])=>vd(`data-${e}-${r}`,t)))):Object.fromEntries([vd(`data-${e}`,r)])}function vd(e,r){return[e,r]}gd.displayName="CheckboxOrRadioGroupCaption";var bd="prc_Stack_WJVsK",fd="prc_StackItem_CweWT";function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},hd.apply(null,arguments)}const md="primer_react_css_modules_ga",pd=So(md,"div",p.div.withConfig({displayName:"Stack__StyledStack",componentId:"sc-x3xa2i-0"})(["display:flex;flex-flow:column;align-items:stretch;align-content:flex-start;gap:var(--stack-gap,var(--stack-gap-normal,1rem));&[data-padding='none'],&[data-padding-narrow='none']{padding:0;}&[data-padding='condensed'],&[data-padding-narrow='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding='normal'],&[data-padding-narrow='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding='spacious'],&[data-padding-narrow='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction='horizontal'],&[data-direction-narrow='horizontal']{flex-flow:row;}&[data-direction='vertical'],&[data-direction-narrow='vertical']{flex-flow:column;}&[data-gap='none'],&[data-gap-narrow='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap='condensed'],&[data-gap-narrow='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap='normal'],&[data-gap-narrow='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap='spacious'],&[data-gap-narrow='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align='start'],&[data-align-narrow='start']{align-items:flex-start;}&[data-align='center'],&[data-align-narrow='center']{align-items:center;}&[data-align='end'],&[data-align-narrow='end']{align-items:flex-end;}&[data-align='baseline'],&[data-align-narrow='baseline']{align-items:baseline;}&[data-justify='start'],&[data-justify-narrow='start']{justify-content:flex-start;}&[data-justify='center'],&[data-justify-narrow='center']{justify-content:center;}&[data-justify='end'],&[data-justify-narrow='end']{justify-content:flex-end;}&[data-justify='space-between'],&[data-justify-narrow='space-between']{justify-content:space-between;}&[data-justify='space-evenly'],&[data-justify-narrow='space-evenly']{justify-content:space-evenly;}&[data-wrap='wrap'],&[data-wrap-narrow='wrap']{flex-wrap:wrap;}&[data-wrap='nowrap'],&[data-wrap-narrow='nowrap']{flex-wrap:nowrap;}@media (min-width:48rem){&[data-padding-regular='none']{padding:0;}&[data-padding-regular='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-regular='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-regular='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-regular='horizontal']{flex-flow:row;}&[data-direction-regular='vertical']{flex-flow:column;}&[data-gap-regular='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-regular='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-regular='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-regular='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-regular='start']{align-items:flex-start;}&[data-align-regular='center']{align-items:center;}&[data-align-regular='end']{align-items:flex-end;}&[data-align-regular='baseline']{align-items:baseline;}&[data-justify-regular='start']{justify-content:flex-start;}&[data-justify-regular='center']{justify-content:center;}&[data-justify-regular='end']{justify-content:flex-end;}&[data-justify-regular='space-between']{justify-content:space-between;}&[data-justify-regular='space-evenly']{justify-content:space-evenly;}&[data-wrap-regular='wrap']{flex-wrap:wrap;}&[data-wrap-regular='nowrap']{flex-wrap:nowrap;}}@media (min-width:87.5rem){&[data-padding-wide='none']{padding:0;}&[data-padding-wide='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-wide='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-wide='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-wide='horizontal']{flex-flow:row;}&[data-direction-wide='vertical']{flex-flow:column;}&[data-gap-wide='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-wide='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-wide='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-wide='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-wide='start']{align-items:flex-start;}&[data-align-wide='center']{align-items:center;}&[data-align-wide='end']{align-items:flex-end;}&[data-align-wide='baseline']{align-items:baseline;}&[data-justify-wide='start']{justify-content:flex-start;}&[data-justify-wide='center']{justify-content:center;}&[data-justify-wide='end']{justify-content:flex-end;}&[data-justify-wide='space-between']{justify-content:space-between;}&[data-justify-wide='space-evenly']{justify-content:space-evenly;}&[data-wrap-wide='wrap']{flex-wrap:wrap;}&[data-wrap-wide='nowrap']{flex-wrap:nowrap;}}"]));function yd({as:e,children:t,align:o="stretch",direction:a="vertical",gap:n,justify:l="start",padding:i="none",wrap:c="nowrap",className:s,...d}){const g=null!=e?e:"div",u=bo(md);return r.createElement(pd,hd({},d,{as:g,className:Gr(s,{[bd]:u})},ud("gap",n),ud("direction",a),ud("align",o),ud("wrap",c),ud("justify",l),ud("padding",i)),t)}yd.displayName="Stack";const xd=So(md,"div",p.div.withConfig({displayName:"Stack__StyledStackItem",componentId:"sc-x3xa2i-1"})(["flex:0 1 auto;min-inline-size:0;&[data-grow='true'],&[data-grow-narrow='true']{flex-grow:1;}@media (min-width:48rem){&[data-grow-regular='true']{flex-grow:1;}&[data-grow-regular='false']{flex-grow:0;}}@media (min-width:87.5rem){&[data-grow-wide='true']{flex-grow:1;}&[data-grow-wide='false']{flex-grow:0;}}"]));function wd({as:e,children:t,grow:o,className:a,...n}){const l=null!=e?e:"div",i=bo(md);return r.createElement(xd,hd({},n,{as:l,className:Gr(a,{[fd]:i})},ud("grow",o)),t)}wd.displayName="StackItem";const Cd=Object.assign(yd,{Item:wd}),kd=({children:e,className:t,visuallyHidden:o=!1,sx:a})=>{const{required:n,disabled:l}=r.useContext(od);return bo(dd)?a?r.createElement(El,{className:Gr(t,cd),isVisible:!o,title:n?"required field":void 0,"data-label-disabled":l?"":void 0,sx:a},n?r.createElement(Cd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:sd},e),r.createElement("span",null,"*")):e):r.createElement(El,{className:Gr(t,cd),isVisible:!o,title:n?"required field":void 0,"data-label-disabled":l?"":void 0},n?r.createElement(Cd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:sd},e),r.createElement("span",null,"*")):e):r.createElement(El,{className:t,isVisible:!o,title:n?"required field":void 0,sx:{display:"block",color:l?"fg.muted":void 0,fontSize:1,fontWeight:"bold",...a}},n?r.createElement(ho,{display:"flex",as:"span"},r.createElement(ho,{mr:1},e),r.createElement("span",null,"*")):e)};kd.displayName="CheckboxOrRadioGroupLabel";const Ed="primer_react_css_modules_team";var Bd="prc_InputValidation_GjS0D",Td="prc_ValidationIcon_Kdbbr",Nd="prc_ValidationText_jjsBp";const Sd={success:_c,error:Tc},_d=({children:e,id:t,validationStatus:o,sx:a})=>{const n=bo(Ed),l=o?Sd[o]:void 0,i=16/12;return r.createElement(Id,{className:Gr({[Bd]:n}),"data-validation-status":o,sx:a},l?r.createElement(Ad,{"aria-hidden":"true",className:Gr({[Td]:n}),style:{"--inputValidation-iconSize":16}},r.createElement(l,{size:12,fill:"currentColor"})):null,r.createElement(Md,{id:t,className:Gr({[Nd]:n}),style:{"--inputValidation-lineHeight":i}},e))};_d.displayName="InputValidation";const Id=p(kl).withConfig({displayName:"InputValidation__StyledInputValidation",componentId:"sc-1b199hv-0"})(["color:var(--inputValidation-fgColor);display:flex;font-size:var(--text-body-size-small);font-weight:600;& :where(a){color:currentColor;text-dectoration:underline;}&:where([data-validation-status='success']){--inputValidation-fgColor:var(--fgColor-success);}&:where([data-validation-status='error']){--inputValidation-fgColor:var(--fgColor-danger);}",""],fo),Ad=p.span.withConfig({displayName:"InputValidation__StyledValidationIcon",componentId:"sc-1b199hv-1"})(["align-items:center;display:flex;margin-inline-end:var(--base-size-4);min-height:var(--inputValidation-iconSize);"]),Md=p.span.withConfig({displayName:"InputValidation__StyledValidationText",componentId:"sc-1b199hv-2"})(["line-height:var(--inputValidation-lineHeight);"]),Ld=({children:e,variant:t,sx:o})=>{const{validationMessageId:a=""}=r.useContext(od);return r.createElement(_d,{validationStatus:t,id:a,sx:o},e)};function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Od.apply(null,arguments)}Ld.displayName="CheckboxOrRadioGroupValidation";const jd=So(dd,"div",p.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Wr("space.2"))),Rd=({"aria-labelledby":e,children:t,disabled:o=!1,id:a,required:n=!1,className:l,sx:i})=>{const[c,s]=ai(t,{caption:gd,label:kd,validation:Ld}),d=r.Children.toArray(t).find((e=>r.isValidElement(e)&&e.type===kd)),g=r.Children.toArray(t).find((e=>r.isValidElement(e)&&e.type===Ld?e:null)),u=r.Children.toArray(t).find((e=>r.isValidElement(e)&&e.type===gd?e:null)),v=ro(a),b=g?`${v}-validationMessage`:void 0,f=u?`${v}-caption`:void 0;d||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const h=r.isValidElement(d)&&!d.props.visuallyHidden;return bo(dd)?i?r.createElement(od.Provider,{value:{disabled:o,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ho,Od({className:Gr(l,nd),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:o},{sx:i}),d?r.createElement("legend",{className:ld,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(El,null,c.validation.props.children)):c.caption,r.createElement(jd,Od({className:ad},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement(td,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(od.Provider,{value:{disabled:o,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement("fieldset",Od({className:Gr(l,nd),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:o}),d?r.createElement("legend",{className:ld,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(El,null,c.validation.props.children)):c.caption,r.createElement(jd,Od({className:ad},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement(td,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(od.Provider,{value:{disabled:o,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ho,Od({border:"none",margin:0,mb:g?2:void 0,padding:0},d&&{as:"fieldset",disabled:o},{className:l,sx:i}),d?r.createElement(ho,{as:"legend",mb:h?2:void 0,padding:0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(El,null,c.validation.props.children)):c.caption,r.createElement(jd,!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement(td,{"aria-hidden":Boolean(d),show:!0},c.validation)))};Rd.displayName="CheckboxOrRadioGroup";var zd=Object.assign(Rd,{Caption:gd,Label:kd,Validation:Ld});function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pd.apply(null,arguments)}const Vd=d(null),Dd=({children:e,disabled:t,onChange:o,name:a,...n})=>{const[l,i]=qt(null);return r.createElement(Vd.Provider,{value:{disabled:t,name:a,onChange:e=>{o&&((e=>{const{value:r,checked:t}=e.currentTarget;t&&i(r)})(e),o(l.current,e))}}},r.createElement(zd,Pd({disabled:t},n),e))};Dd.displayName="RadioGroup";var Hd=Object.assign(Dd,{Caption:gd,Label:kd,Validation:Ld}),Fd="prc_Radio_Ly4MR",Wd="prc_Input_mxggT";function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$d.apply(null,arguments)}const Zd=r.forwardRef((({checked:e,disabled:t,name:o,onChange:a,sx:n=To,required:l,validationStatus:i,value:c,className:s,...d},u)=>{const v=g(Vd),b=e=>{(null==v?void 0:v.onChange)&&v.onChange(e),a&&a(e)},f=o||(null==v?void 0:v.name);return f||console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop"),n!==To?r.createElement(ho,$d({as:"input",sx:n,type:"radio",value:c,name:f,ref:u,disabled:t,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===i?"true":"false",onChange:b,className:Gr(s,Wd,Fd)},d)):r.createElement("input",$d({type:"radio",value:c,name:f,ref:u,disabled:t,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===i?"true":"false",onChange:b,className:Gr(s,Wd,Fd)},d))}));Zd.displayName="Radio";const Kd=r.createContext({});var Gd="prc_Heading_6CmGO";function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qd.apply(null,arguments)}const Ud=u((({as:e="h2",className:t,variant:o,...a},n)=>{const l=r.useRef(null);return eo(n,l),a.sx?r.createElement(ho,qd({as:e,className:Gr(t,Gd),"data-variant":o},a,{ref:l})):r.createElement(e,qd({className:Gr(t,Gd),"data-variant":o},a,{ref:l}))}));Ud.displayName="Heading";const Yd=r.createContext({}),Xd=(e,r,t)=>r?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:t?{color:"fg.muted",iconColor:"fg.muted",annotationColor:"fg.muted"}:"danger"===e?{color:"danger.fg",iconColor:"danger.fg",annotationColor:"fg.muted",hoverColor:"actionListItem.danger.hoverText"}:{color:"fg.default",iconColor:"fg.muted",annotationColor:"fg.muted",hoverColor:"fg.default"},Qd=r.createContext({});var Jd="prc_ActionListHeader_lEr8v";const eg="primer_react_css_modules_staff";function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rg.apply(null,arguments)}const tg=u((({as:e,size:t,children:o,sx:a=To,visuallyHidden:n=!1,className:l,...i},c)=>{var s,d,g;const u=r.useRef(null);eo(c,u);const v=bo(eg),{headingId:b,variant:f}=r.useContext(Qd),{container:h}=r.useContext(Kd);"ActionMenu"===h&&Rn(!1);const m={marginBottom:2,marginX:"full"===f?2:3};return r.createElement(El,{isVisible:!n},v?a!==To?r.createElement(Ud,rg({as:e,variant:t,ref:u,id:null!==(s=i.id)&&void 0!==s?s:b,className:Gr(l,Jd),"data-list-variant":f,sx:a},i),o):r.createElement(Ud,rg({as:e,variant:t,ref:u,id:null!==(d=i.id)&&void 0!==d?d:b,className:Gr(l,Jd),"data-list-variant":f},i),o):r.createElement(Ud,rg({as:e,variant:t,ref:u,id:null!==(g=i.id)&&void 0!==g?g:b,sx:tt(m,a),className:l},i),o))}));tg.displayName="ActionList.Heading";var og="prc_ActionList_X4RiC",ag="prc_ActionListItem_uq6I7",ng="prc_ActionListSubContent_lP9xj",lg="prc_Divider_rsZFG",ig="prc_TrailingAction_RmUk1",cg="prc_TrailingVisual_XocgV",sg="prc_ItemLabel_TmBhn",dg="prc_InactiveWarning_YRMKV",gg="prc_ActionListContent_sg9-x",ug="prc_Spacer_dydlX",vg="prc_MultiSelectCheckbox_nK6PJ",bg="prc_SingleSelectCheckmark_Vqn87",fg="prc_ExpandIcon_SKUGP",hg="prc_SubGroup_24eK2",mg="prc_LeadingAction_Oy04M",pg="prc_LeadingVisual_dxXxW",yg="prc_ItemDescriptionWrap_VJA7h",xg="prc_Description_G0lJ3",wg="prc_VisualWrap_rfjV-",Cg="prc_TrailingActionButton_i2wnc",kg="prc_InactiveButtonWrap_T6Jfa",Eg="prc_InactiveButtonReset_3lIQX";function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bg.apply(null,arguments)}const Tg=p.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(fo),Ng=r.forwardRef((({variant:e="inset",selectionVariant:t,showDividers:o=!1,role:a,sx:n=To,className:l,...i},c)=>{var s;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[g,u]=ai(i.children,{heading:tg}),v=ro(),{listRole:b,listLabelledBy:f,selectionVariant:h,enableFocusZone:m}=r.useContext(Kd),p=g.heading?null!==(s=g.heading.props.id)&&void 0!==s?s:v:f,y=a||b,x=ct(c);let w=!1;void 0!==m?w=m:y&&(w=["menu","menubar","listbox"].includes(y)),Uc({disabled:!w,containerRef:x,bindKeys:Ot.ArrowVertical|Ot.HomeAndEnd|Ot.PageUpDown,focusOutBehavior:"menu"===y?"wrap":void 0});const C=bo(eg);return r.createElement(Qd.Provider,{value:{variant:e,selectionVariant:t||h,showDividers:o,role:y,headingId:v}},g.heading,C?n!==To?r.createElement(Tg,Bg({sx:tt(d,n),className:Gr(og,l),role:y,"aria-labelledby":p,ref:x,"data-dividers":o,"data-variant":e},i),u):r.createElement("ul",Bg({className:Gr(og,l),role:y,"aria-labelledby":p,ref:x,"data-dividers":o,"data-variant":e},i),u):r.createElement(Tg,Bg({sx:tt(d,n),role:y,"aria-labelledby":p},i,{ref:x,className:l}),u))}));Ng.displayName="ActionList";var Sg="prc_Group_fXpF9",_g="prc_GroupHeadingWrap_pfbd9",Ig="prc_GroupHeading_eahp0";function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ag.apply(null,arguments)}const Mg=({as:e="h3",className:t,children:o,sx:a=To,id:n,...l})=>r.createElement(ho,Ag({as:e,className:t,sx:a,id:n},l),o);Mg.displayName="Heading";const Lg=({as:e="div",children:t,className:o,...a})=>r.createElement(e,{...a,className:o},t),Og=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),jg=({title:e,variant:t="subtle",auxiliaryText:o,selectionVariant:a,role:n,sx:l=To,...i})=>{var c;const s=bo(eg),d=ro(),{role:g}=r.useContext(Qd),[u,v]=ai(i.children,{groupHeading:Rg});let b;var f,h,m;u.groupHeading&&(b=null!==(f=u.groupHeading.props.id)&&void 0!==f?f:d);return e&&(b=d),s?l!==To?r.createElement(ho,Ag({as:"li",className:Sg,role:g?"none":void 0,sx:l},i),r.createElement(Og.Provider,{value:{selectionVariant:a,groupHeadingId:b}},e&&!u.groupHeading?r.createElement(Rg,{variant:t,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?r.cloneElement(u.groupHeading):null,r.createElement("ul",{"aria-labelledby":g?void 0:b,"aria-label":g?null!=e?e:null===(m=u.groupHeading)||void 0===m?void 0:m.props.children:void 0,role:n||g&&"group"},u.groupHeading?v:i.children))):r.createElement("li",Ag({className:Sg,role:g?"none":void 0},i),r.createElement(Og.Provider,{value:{selectionVariant:a,groupHeadingId:b}},e&&!u.groupHeading?r.createElement(Rg,{variant:t,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?r.cloneElement(u.groupHeading):null,r.createElement("ul",{"aria-labelledby":g?void 0:b,"aria-label":g?null!=e?e:null===(h=u.groupHeading)||void 0===h?void 0:h.props.children:void 0,role:n||g&&"group"},u.groupHeading?v:i.children))):r.createElement(ho,Ag({as:"li",role:g?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Og.Provider,{value:{selectionVariant:a,groupHeadingId:b}},e&&!u.groupHeading?r.createElement(Rg,{variant:t,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?r.cloneElement(u.groupHeading):null,r.createElement(ho,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":g?void 0:b,"aria-label":g?null!=e?e:null===(c=u.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:n||g&&"group"},u.groupHeading?v:i.children)))};jg.displayName="Group";const Rg=({as:e,variant:t="subtle",_internalBackwardCompatibleTitle:o,auxiliaryText:a,children:n,className:l,sx:i=To,headingWrapElement:c="div",...s})=>{const{role:d}=r.useContext(Qd),{groupHeadingId:g}=r.useContext(Og),u=void 0!==d&&"list"!==d&&void 0!==n&&void 0!==e;return(void 0===d||"list"===d)&&void 0!==n&&void 0===e&&Rn(!1),u&&Rn(!1),r.createElement(r.Fragment,null,d&&"list"!==d?r.createElement(Lg,Ag({role:"presentation",className:_g,"aria-hidden":"true","data-variant":t,"data-component":"GroupHeadingWrap",as:c},s),r.createElement("span",{className:Gr(l,Ig),id:g},null!=o?o:n),a&&r.createElement("div",{className:xg},a)):r.createElement(Lg,{className:_g,"data-variant":t,as:c,"data-component":"GroupHeadingWrap"},i!==To?r.createElement(Mg,Ag({className:Gr(l,Ig),as:e||"h3",id:g,sx:i},s),null!=o?o:n):r.createElement(Mg,Ag({className:Gr(l,Ig),as:e||"h3",id:g},s),null!=o?o:n),a&&r.createElement("div",{className:xg},a)))};function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zg.apply(null,arguments)}const Pg=p.div.withConfig({displayName:"Truncate__StyledTruncate",componentId:"sc-23o1d2-0"})(["display:",";overflow:hidden;text-overflow:ellipsis;vertical-align:",";white-space:nowrap;"," "," ",";"],(e=>e.inline?"inline-block":"inherit"),(e=>e.inline?"top":"initial"),Oe,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),fo),Vg=r.forwardRef((function({as:e,expandable:t=!1,inline:o=!1,maxWidth:a=125,...n},l){return r.createElement(Pg,zg({ref:l,as:e,expandable:t,inline:o,maxWidth:a},n))}));const Dg=({variant:e="inline",sx:t=To,className:o,truncate:a,...n})=>{const l={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:"inline"!==e||a?0:"auto",minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &[data-component="ActionList.Description"]':{color:"inherit"},'li[data-variant="danger"]:hover &[data-component="ActionList.Description"], li[data-variant="danger"]:active &[data-component="ActionList.Description"]':{color:"inherit"}},{blockDescriptionId:i,inlineDescriptionId:c}=r.useContext(Yd);return bo(eg)?t!==To?"block"!==e&&a?r.createElement(Vg,{id:c,className:o,sx:tt(l,t),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description"},n.children):r.createElement(ho,{as:"span",sx:tt(l,t),id:"block"===e?i:c,className:o,"data-component":"ActionList.Description"},n.children):"block"!==e&&a?r.createElement(Vg,{id:c,className:Gr(o,xg),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description","data-truncate":a},n.children):r.createElement("span",{className:Gr(o,xg),"data-component":"ActionList.Description",id:"block"===e?i:c},n.children):"block"!==e&&a?r.createElement(Vg,{id:c,className:o,sx:tt(l,t),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description"},n.children):r.createElement(ho,{as:"span",sx:tt(l,t),id:"block"===e?i:c,className:o,"data-component":"ActionList.Description"},n.children)};function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hg.apply(null,arguments)}const Fg=({sx:e=To,className:t,...o})=>e!==To?r.createElement(ho,Hg({as:"span",className:Gr(t,wg),sx:e},o)):r.createElement("span",Hg({className:Gr(t,wg)},o));Fg.displayName="VisualContainer";const Wg=({sx:e=To,...t})=>r.createElement(ho,Hg({as:"span",sx:tt({height:"20px",maxWidth:"20px",display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2,color:"fg.muted"},e)},t));Wg.displayName="LeadingVisualContainer";const $g=({sx:e=To,className:t,...o})=>{const{variant:a,disabled:n,inactive:l}=r.useContext(Yd);return bo(eg)?r.createElement(Fg,Hg({className:Gr(t,pg),sx:e},o),o.children):r.createElement(Wg,Hg({className:t,sx:tt({color:Xd(a,n,l).iconColor,svg:{fontSize:0},'[data-variant="danger"]:not([aria-disabled]):not([data-inactive]):hover &, [data-variant="danger"]:active &':{color:Xd(a,n,l).hoverColor}},e)},o),o.children)};$g.displayName="LeadingVisual";const Zg=({sx:e=To,className:t,...o})=>{const{variant:a,disabled:n,inactive:l,trailingVisualId:i}=r.useContext(Yd);return bo(eg)?e!==To?r.createElement(Fg,Hg({className:Gr(t,cg),sx:e,id:i},o),o.children):r.createElement(Fg,Hg({className:Gr(t,cg),id:i},o),o.children):r.createElement(ho,Hg({id:i,as:"span",className:t,sx:tt({height:"20px",flexShrink:0,color:Xd(a,n,l).annotationColor,marginLeft:2,fontWeight:"initial",display:"grid",alignContent:"center",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:Xd(a,n,l).hoverColor}},e)},o),o.children)};Zg.displayName="TrailingVisual";const Kg=({children:e,labelId:t,loading:o,inactiveText:a,itemHasLeadingVisual:n,position:l,className:i})=>{const c="leading"===l?$g:Zg;return o||a?n&&"trailing"===l||!n&&"leading"===l?e:a?r.createElement("span",{className:kg},r.createElement(Gl,{text:a,type:"label"},r.createElement("button",{type:"button",className:Eg,"aria-describedby":t},r.createElement(c,null,r.createElement(Bc,null))))):r.createElement(c,{className:i},r.createElement(Ho,{size:"small"})):e},Gg=({selected:e,className:t})=>{const{selectionVariant:o,role:a}=r.useContext(Qd),{selectionVariant:n}=r.useContext(Og),l=bo(eg);let i;if(i=void 0!==n?n:o,!i){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===i||"menu"===a)return l?r.createElement(Fg,{className:t},r.createElement(Sc,{className:bg})):r.createElement(Wg,{"data-component":"ActionList.Selection",sx:{minWidth:"16px"}},e&&r.createElement(Sc,null));return l?r.createElement(Fg,{className:t},r.createElement("div",{className:vg})):r.createElement(Wg,{"data-component":"ActionList.Selection",sx:{minWidth:"16px"}},r.createElement(ho,{sx:{borderColor:e?"var(--control-checked-borderColor-rest)":"var(--control-borderColor-emphasis)",borderStyle:"solid",borderWidth:"1",borderRadius:"1",cursor:"pointer",display:"grid",height:"var(--base-size-16, 16px)",margin:"0",placeContent:"center",width:"var(--base-size-16, 16px)",backgroundColor:e?"var(--control-checked-bgColor-rest)":"canvas.default",transition:e?"background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1)":"background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms","::before":{width:"var(--base-size-16, 16px)",height:"var(--base-size-16, 16px)",visibility:e?"visible":"hidden",content:'""',backgroundColor:"fg.onEmphasis",transition:e?"visibility 0s linear 0s":"visibility 0s linear 230ms",clipPath:"inset(var(--base-size-16, 16px) 0 0 0)",maskImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')",maskSize:"75%",maskRepeat:"no-repeat",maskPosition:"center",animation:e?"checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms":"checkmarkOut 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards","@keyframes checkmarkIn":{from:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},"@keyframes checkmarkOut":{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"}}},"@media (forced-colors: active)":{borderWidth:e?"8px":"1px"}},"data-component":"ActionList.Checkbox"}))};function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qg.apply(null,arguments)}Gg.displayName="Selection";const Ug=u((({as:e="button",icon:t,label:o,href:a=null,className:n,...l},i)=>bo(eg)?r.createElement("span",{className:Gr(n,ig)},t?r.createElement(Yl,qg({as:e,"aria-label":o,icon:t,variant:"invisible",tooltipDirection:"w",href:a,ref:i,className:Cg},l)):r.createElement(On,qg({variant:"invisible",as:e,href:a,ref:i,className:Cg},l),o)):r.createElement(ho,{as:"span","data-component":"ActionList.TrailingAction",sx:{flexShrink:0}},t?r.createElement(Yl,qg({as:e,"aria-label":o,icon:t,variant:"invisible",tooltipDirection:"w",href:a,ref:i},l)):r.createElement(On,qg({variant:"invisible",as:e,href:a,ref:i},l),o))));function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Yg.apply(null,arguments)}Ug.displayName="ActionList.TrailingAction";const Xg=p.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(fo),Qg=({children:e})=>r.createElement(r.Fragment,null,e);Qg.displayName="ActionList.SubItem";const Jg=r.forwardRef((({children:e,style:t,...o},a)=>r.createElement("button",Yg({type:"button",ref:a,style:t},o),e))),eu=r.forwardRef((({children:e,...t},o)=>r.createElement("div",Yg({ref:o},t),e))),ru=r.forwardRef((({variant:e="default",disabled:t=!1,inactiveText:o,selected:a,active:n=!1,onSelect:l,sx:i=To,id:c,role:s,loading:d,_PrivateItemWrapper:g,className:u,...v},b)=>{var f,h,m;const p=bo(eg),y={leadingVisual:$g,trailingVisual:Zg,trailingAction:Ug,subItem:Qg},[x,w]=ai(v.children,p?{...y,description:Dg}:{...y,blockDescription:[Dg,e=>"block"===e.variant],inlineDescription:[Dg,e=>"block"!==e.variant]}),C={blockDescription:void 0,inlineDescription:void 0,description:void 0,...x},{container:k,afterSelect:E,selectionAttribute:B,defaultTrailingVisual:T}=r.useContext(Kd),N=T?r.createElement(Zg,null,T):null,S=null!==(f=C.trailingVisual)&&void 0!==f?f:N,{variant:_,role:I,showDividers:A,selectionVariant:M}=r.useContext(Qd),{selectionVariant:L}=r.useContext(Og),O=Boolean(o),j=O&&void 0===k,R=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[l]),z=L||M;let P;"ActionMenu"===k?P="single"===z?"menuitemradio":"multiple"===z?"menuitemcheckbox":"menuitem":"SelectPanel"===k&&"listbox"===I&&void 0!==z&&(P="option");const V=s||P,D="ActionMenu"===k||"SelectPanel"===k;let H;C.trailingAction&&D&&Rn(!1),"menuitemradio"===V||"menuitemcheckbox"===V?H="aria-checked":"option"===V&&(H="aria-selected");const F=B||H,W="option"===s||"menuitem"===s||"menuitemradio"===s||"menuitemcheckbox"===s,$=I&&["listbox","menu","list"].includes(I)||O||W||!p,Z=!$&&!g,{theme:K}=io(),G={fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"var(--borderColor-accent-emphasis)",borderRadius:2}},q={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:"16px",minHeight:5,marginX:"inset"===_?2:0,borderRadius:2,transition:"background 33.333ms linear",color:Xd(e,t,O||d).color,cursor:"pointer","&[data-loading]":{cursor:"default"},"&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--control-bgColor-disabled, rgba(175, 184, 193, 0.2))",borderColor:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"},'[data-component="ActionList.Selection"]':{color:"primer.fg.disabled"}},appearance:"none",background:"unset",border:"unset",width:"inset"===_?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible, &[data-is-active-descendant]":{outline:"solid 1px transparent !important"}},"@media (hover: hover) and (pointer: fine)":{"&:hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:Xd(e,t,O).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==K?void 0:K.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:"0 0 0 2px var(--focus-outlineColor)"},"&:active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:Xd(e,t,O).hoverColor}},'[data-component="ActionList.Item--DividerContainer"]':{position:"relative"},'[data-component="ActionList.Item--DividerContainer"]::before':{content:'" "',display:"block",position:"absolute",width:"100%",top:"-7px",border:"0 solid",borderTopWidth:A?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==K?void 0:K.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...n?G:{},"&[data-is-active-descendant]":{...G,fontWeight:"normal"}},U=r.useCallback((e=>{t||O||d||R(e,E)}),[R,t,O,E,d]),Y=r.useCallback((e=>{t||O||d||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),R(e,E))}),[R,t,d,O,E]),X=ro(c),Q=`${X}--label`,J=`${X}--inline-description`,ee=`${X}--block-description`,re=`${X}--trailing-visual`,te=O&&!j?`${X}--warning-message`:void 0;let oe=r.Fragment;oe=p?$?eu:Jg:r.Fragment;const ae=g||oe,ne=F&&V&&["menuitemradio","menuitemcheckbox","option"].includes(V),le={onClick:U,onKeyPress:Z?void 0:Y,"aria-disabled":!!t||void 0,"data-inactive":!!O||void 0,"data-loading":!(!d||O)||void 0,tabIndex:t||j?void 0:0,"aria-labelledby":`${Q} ${C.trailingVisual?re:""} ${C.inlineDescription?J:""}`,"aria-describedby":[C.blockDescription?ee:void 0,null!=te?te:void 0].filter(String).join(" ").trim()||void 0,...ne&&{[F]:a},role:V,id:X},ie=g?{role:V?"none":void 0,...v}:$&&{...le,...v,ref:b}||{},ce=g?le:!$&&{...le,...v,ref:b},se=null!==(h=null===(m=C.description)||void 0===m?void 0:m.props.variant)&&void 0!==h?h:"inline";return p?i!==To?r.createElement(Yd.Provider,{value:{variant:e,disabled:t,inactive:Boolean(o),inlineDescriptionId:J,blockDescriptionId:ee,trailingVisualId:re}},r.createElement(Xg,Yg({},ie,{sx:tt(q,i),ref:$?b:null,"data-variant":"danger"===e?e:void 0,"data-active":!!n||void 0,"data-inactive":!!o||void 0,"data-has-subitem":!!C.subItem||void 0,className:Gr(ag,u)}),r.createElement(ae,Yg({},ce,{className:gg}),r.createElement("span",{className:ug}),r.createElement(Gg,{selected:a,className:mg}),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"leading"},C.leadingVisual),r.createElement("span",{className:ng},r.createElement(Zo,{if:!!C.description,className:yg,"data-description-variant":se},r.createElement("span",{id:Q,className:sg},w,!0===d&&r.createElement(El,null,"Loading")),C.description),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"trailing"},S),O&&k?r.createElement("span",{className:dg,id:te},o):null)),!O&&!d&&!D&&Boolean(C.trailingAction)&&C.trailingAction,C.subItem)):r.createElement(Yd.Provider,{value:{variant:e,disabled:t,inactive:Boolean(o),inlineDescriptionId:J,blockDescriptionId:ee,trailingVisualId:re}},r.createElement("li",Yg({},ie,{ref:$?b:null,"data-variant":"danger"===e?e:void 0,"data-active":!!n||void 0,"data-inactive":!!o||void 0,"data-has-subitem":!!C.subItem||void 0,className:Gr(ag,u)}),r.createElement(ae,Yg({},ce,{className:gg}),r.createElement("span",{className:ug}),r.createElement(Gg,{selected:a,className:mg}),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"leading"},C.leadingVisual),r.createElement("span",{className:ng},r.createElement(Zo,{if:!!C.description,className:yg,"data-description-variant":se},r.createElement("span",{id:Q,className:sg},w,!0===d&&r.createElement(El,null,"Loading")),C.description),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"trailing"},S),O&&k?r.createElement("span",{className:dg,id:te},o):null)),!O&&!d&&!D&&Boolean(C.trailingAction)&&C.trailingAction,C.subItem)):r.createElement(Yd.Provider,{value:{variant:e,disabled:t,inactive:Boolean(o),inlineDescriptionId:J,blockDescriptionId:ee,trailingVisualId:re}},r.createElement(Xg,Yg({ref:$?b:null,className:u,sx:tt(q,i),"data-variant":"danger"===e?e:void 0},ie),r.createElement(ae,ce,r.createElement(Gg,{selected:a}),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"leading"},C.leadingVisual),r.createElement(ho,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Zo,{if:Boolean(S||(j||d)&&!C.leadingVisual),sx:{display:"flex",flexGrow:1}},r.createElement(Zo,{if:!!C.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(ho,{as:"span",id:Q,sx:{flexGrow:C.inlineDescription?0:1,fontWeight:C.inlineDescription||C.blockDescription||n?"bold":"normal",marginBlockEnd:C.blockDescription?"4px":void 0,wordBreak:C.inlineDescription?"normal":"break-word",lineHeight:"20px"}},w,!0===d&&r.createElement(El,null,"Loading")),C.inlineDescription),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"trailing"},S)),O&&k?r.createElement(ho,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:te},o):null,C.blockDescription)),!O&&!d&&!D&&Boolean(C.trailingAction)&&C.trailingAction))}));ru.displayName="ActionList.Item";var tu="prc_Link_85e08";function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ou.apply(null,arguments)}const au=u((({as:e="a",className:t,inline:o,underline:a,hoverColor:n,...l},i)=>{const c=r.useRef(null);return eo(i,c),l.sx?r.createElement(ho,ou({as:e,className:Gr(t,tu),"data-muted":l.muted,"data-inline":o,"data-underline":a,"data-hover-color":n},l,{ref:c})):r.createElement(e,ou({className:Gr(t,tu),"data-muted":l.muted,"data-inline":o,"data-underline":a,"data-hover-color":n},l,{ref:c}))}));function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nu.apply(null,arguments)}au.displayName="Link";const lu=r.forwardRef((({sx:e=To,active:t,inactiveText:o,variant:a,as:n,className:l,...i},c)=>{const s={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return bo(eg)?r.createElement(ru,{className:l,active:t,inactiveText:o,"data-inactive":!!o||void 0,variant:a,_PrivateItemWrapper:({children:e,onClick:t,...a})=>o?r.createElement("span",a,e):r.createElement(au,nu({as:n},a,i,{onClick:e=>{t&&t(e),i.onClick&&i.onClick(e)},ref:c}),e)},i.children):r.createElement(ru,{className:l,active:t,sx:{paddingY:0,paddingX:0},inactiveText:o,"data-inactive":!!o||void 0,_PrivateItemWrapper:({children:t,onClick:a,...l})=>o?r.createElement(ho,nu({sx:tt(s,e)},l),t):r.createElement(au,nu({as:n,sx:tt(s,e)},l,i,{onClick:e=>{a&&a(e),i.onClick&&i.onClick(e)},ref:c}),t)},i.children)})),iu=({sx:e=To,className:t})=>bo(eg)?e!==To?r.createElement(ho,{className:Gr(t,lg),as:"li","aria-hidden":"true",sx:e,"data-component":"ActionList.Divider"}):r.createElement("li",{className:Gr(t,lg),"aria-hidden":"true","data-component":"ActionList.Divider"}):r.createElement(ho,{as:"li","aria-hidden":"true",sx:tt({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Wr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),className:t,"data-component":"ActionList.Divider"});iu.displayName="Divider";const cu=Object.assign(Ng,{Group:jg,Item:ru,LinkItem:lu,Divider:iu,Description:Dg,LeadingVisual:$g,TrailingVisual:Zg,Heading:tg,GroupHeading:Rg,TrailingAction:Ug});var su="prc_Overlay_dVyJl";function du(){return du=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},du.apply(null,arguments)}const gu="primer_react_css_modules_team",uu={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},vu={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const bu=So(gu,"div",p.div.withConfig({displayName:"Overlay__StyledOverlay",componentId:"sc-51280t-0"})(["background-color:",";box-shadow:",";position:absolute;min-width:192px;max-width:",";height:",";max-height:",";width:",";border-radius:12px;overflow:",";animation:overlay-appear ","ms ",";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}@media (forced-colors:active){outline:solid 1px transparent;}&[data-reflow-container='true']{max-width:calc(100vw - 2rem);}",";"],Wr("colors.canvas.overlay"),Wr("shadows.overlay.shadow"),(e=>e.maxWidth&&vu[e.maxWidth]),(e=>uu[e.height||"auto"]),(e=>e.maxHeight&&uu[e.maxHeight]),(e=>vu[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Wr("animation.easeOutCubic"),fo)),fu=r.forwardRef((({visibility:e,height:t,width:o,top:a,left:n,right:l,bottom:i,position:c,style:s={},className:d,maxHeight:g,maxWidth:u,...v},b)=>bo(gu)?r.createElement(bu,du({},v,{ref:b,style:{left:n,right:l,top:a,bottom:i,position:c,...s},[`data-width-${o}`]:"",[`data-max-width-${u}`]:u?"":void 0,[`data-height-${t}`]:"",[`data-max-height-${g}`]:g?"":void 0,[`data-visibility-${e}`]:"",className:Gr(d,su)})):r.createElement(bu,du({height:t,width:o,maxHeight:g,maxWidth:u},v,{ref:b,style:{left:n,right:l,top:a,bottom:i,position:c,"--styled-overlay-visibility":e,...s},className:d})))),hu=r.forwardRef((({anchorSide:e,height:t="auto",ignoreClickRefs:o,initialFocusRef:n,left:i,onClickOutside:c,onEscape:s,portalContainerName:d,preventOverflow:g=!0,preventFocusOnOpen:u,returnFocusRef:v,right:b,role:f="none",visibility:h="visible",width:m="auto",...p},y)=>{const x=l(null);eo(y,x);const{theme:w}=io(),C=parseInt(Wr("space.2")(w).replace("px","")),k=Wr("animation.easeOutCubic")(w);Gt({overlayRef:x,returnFocusRef:v,onEscape:s,ignoreClickRefs:o,onClickOutside:c,initialFocusRef:n,preventFocusOnOpen:u}),a((()=>{var e;"initial"===t&&null!==(e=x.current)&&void 0!==e&&e.clientHeight&&(x.current.style.height=`${x.current.clientHeight}px`)}),[t]),$t((()=>{var r;const{x:t,y:o}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(e);(t||o)&&null!==(r=x.current)&&void 0!==r&&r.animate&&"hidden"!==h&&x.current.animate({transform:[`translate(${C*t}px, ${C*o}px)`,"translate(0, 0)"]},{duration:200,easing:k})}),[e,C,k,h]);const E=void 0===i&&void 0===b?0:i,B=bo("primer_react_overlay_overflow");return r.createElement(es,{containerName:d},r.createElement(fu,du({role:f,width:m,"data-reflow-container":!(!B&&g)||void 0,ref:x,left:E,right:b,height:t,visibility:h},p)))}));function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mu.apply(null,arguments)}const pu=({renderAnchor:e,anchorRef:t,anchorId:n,children:l,open:i,onOpen:c,onClose:s,height:d,width:g,overlayProps:u,focusTrapSettings:v,focusZoneSettings:b,side:f="outside-bottom",align:h="start",alignmentOffset:m,anchorOffset:p,className:y,preventOverflow:x=!0})=>{const w=ct(t),[C,k]=qt(),E=ro(n),B=o((()=>null==s?void 0:s("click-outside")),[s]),T=o((()=>null==s?void 0:s("escape")),[s]),N=o((e=>{e.defaultPrevented||!i&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press",e),e.preventDefault())}),[i,c]),S=o((e=>{e.defaultPrevented||0!==e.button||(i?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[i,c,s]),{position:_}=Kt({anchorElementRef:w,floatingElementRef:C,side:f,align:h,alignmentOffset:m,anchorOffset:p},[C.current]);return a((()=>{!i&&C.current&&k(null)}),[i,C,k]),Uc({containerRef:C,disabled:!i||!_,...b}),hc({containerRef:C,disabled:!i||!_,...v}),r.createElement(r.Fragment,null,e&&e({ref:w,id:E,"aria-haspopup":"true","aria-expanded":i,tabIndex:0,onClick:S,onKeyDown:N}),i?r.createElement(hu,mu({returnFocusRef:w,onClickOutside:B,ignoreClickRefs:[w],onEscape:T,ref:k,role:"none",visibility:_?"visible":"hidden",height:d,width:g,top:(null==_?void 0:_.top)||0,left:(null==_?void 0:_.left)||0,anchorSide:null==_?void 0:_.anchorSide,className:y,preventOverflow:x},u),l):null)};function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yu.apply(null,arguments)}pu.displayName="AnchoredOverlay";const xu=r.createContext({renderAnchor:null,open:!1}),wu=(e,r)=>{const t={...e};if("function"==typeof r.onClick){const o=e.onClick,a=e=>{var t;null===(t=r.onClick)||void 0===t||t.call(r,e),null==o||o(e)};t.onClick=a}if("function"==typeof r.onKeyDown){const o=e.onKeyDown,a=e=>{var t;null===(t=r.onKeyDown)||void 0===t||t.call(r,e),null==o||o(e)};t.onKeyDown=a}return t},Cu=({anchorRef:e,open:t,onOpenChange:o,children:a})=>{const n=g(xu),[l,i]=Ut(t,o,!1),c=r.useCallback((()=>i(!0)),[i]),s=r.useCallback((e=>{var r;switch(i(!1),e){case"tab":case"item-select":null===(r=n.onClose)||void 0===r||r.call(n,e)}}),[i,n]),d=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===Eu||e.type===ku))),u=r.isValidElement(d)?d.props.id:void 0,v=ct(e),b=ro(u);let f=null;const h=r.Children.map(a,(e=>{if(e.type===Gl){const t=e.props.children;return t.type===Eu&&(f=o=>{const a=r.cloneElement(t,wu({...o},t.props));return r.cloneElement(e,{children:a,ref:v})}),null}if(e.type===ku){const t=e.props.children;return void 0!==t&&t.type===Gl?null!==t.props.children&&(f=o=>{const a=t.props.children,n=r.cloneElement(a,wu({...o},a.props)),l=r.cloneElement(t,{children:n});return r.cloneElement(e,{children:l,ref:v})}):f=t=>r.cloneElement(e,t),null}return e.type===Eu?(f=t=>r.cloneElement(e,wu(t,e.props)),null):e}));return r.createElement(xu.Provider,{value:{anchorRef:v,renderAnchor:f,anchorId:b,open:l,onOpen:c,onClose:s,isSubmenu:void 0!==n.isSubmenu}},h)};Cu.displayName="Menu";const ku=r.forwardRef((({children:e,...a},n)=>{const{onOpen:l,isSubmenu:i}=r.useContext(xu),c=o((e=>{i&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==l||l("anchor-key-press"))}),[i,l]),s=g(Kd),d=t((()=>i?{...s,defaultTrailingVisual:r.createElement(Ac,null),afterSelect:()=>null==l?void 0:l("anchor-click")}:s),[i,l,s]);return r.createElement(Kd.Provider,{value:d},r.cloneElement(e,{...a,ref:n,onClick:r=>{var t,o,n;null===(t=(o=e.props).onClick)||void 0===t||t.call(o,r),null===(n=a.onClick)||void 0===n||n.call(a,r)},onKeyDown:r=>{var t,o,n;null===(t=(o=e.props).onKeyDown)||void 0===t||t.call(o,r),c(r),null===(n=a.onKeyDown)||void 0===n||n.call(a,r)}}))})),Eu=r.forwardRef((({...e},t)=>r.createElement(ku,{ref:t},r.createElement(On,yu({type:"button",trailingAction:Gc},e))))),Bu=({children:e,align:t="start",side:o,"aria-labelledby":n,...l})=>{const{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,isSubmenu:b=!1}=r.useContext(xu),f=r.useRef(null);Yt(g,v,f,c,b);const[h,m]=i(null);return a((()=>{if(null!=c&&c.current){const e=c.current.getAttribute("aria-labelledby");e&&m(e)}}),[c]),r.createElement(pu,{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,align:t,side:null!=o?o:b?"outside-right":"outside-bottom",overlayProps:l,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:f},r.createElement(Kd.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:n||h||d,selectionAttribute:"aria-checked",afterSelect:()=>null==v?void 0:v("item-select"),enableFocusZone:!1}},e)))};Bu.displayName="Overlay",Cu.displayName="ActionMenu";const Tu=Object.assign(Cu,{Button:Eu,Anchor:ku,Overlay:Bu,Divider:iu}),Nu=d(null);var Su="prc_Spinner_Azb7p",_u="prc_SpinnerLeading_s-LyA",Iu="prc_SpinnerHidden_GG1PJ",Au="prc_SpinnerVisible_w5g8l",Mu="prc_Input_Ic-y8";function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lu.apply(null,arguments)}const Ou="primer_react_css_modules_ga",ju=So(Ou,"input",p.input.withConfig({displayName:"UnstyledTextInput__ToggledUnstyledTextInput",componentId:"sc-14ypya-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}",";"],fo)),Ru=r.forwardRef((function({className:e,...t},o){const a=bo(Ou);return r.createElement(ju,Lu({ref:o},t,{className:Gr(e,a&&Mu)}))}));function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zu.apply(null,arguments)}Ru.displayName="UnstyledTextInput";const Pu=({children:e,hasLoadingIndicator:t,showLoadingIndicator:o,visualPosition:a,id:n})=>{const l=bo(Ou),i="leading"===a;if(!e&&!t||i&&!e&&!o)return null;if(!t)return r.createElement("span",{className:"TextInput-icon",id:n,"aria-hidden":"true"},e);const c=l?{className:Gr(o?Iu:Au)}:{sx:{visibility:o?"hidden":"visible"}},s=l?{className:Gr(o?Au:Iu,e&&Su,e&&i&&_u)}:{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:o?"visible":"hidden",...i?{left:0}:{right:0}}:{visibility:o?"visible":"hidden"}};return r.createElement("span",{className:"TextInput-icon"},r.createElement(ho,{display:"flex",position:"relative",id:n},e&&r.createElement(ho,c,e),r.createElement(Ho,zu({srText:null},s,{size:e?void 0:"small"}))))};Pu.displayName="TextInputInnerVisualSlot";var Vu="prc_TextInputBaseWrapper_ueK9q",Du="prc_TextInputWrapper_i1ofR";function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hu.apply(null,arguments)}const Fu=So(Ou,"span",p.span.withConfig({displayName:"TextInputWrapper__StyledTextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:var(--base-size-20);color:",";vertical-align:middle;background-color:",";border:1px solid var(--control-borderColor-rest,",");border-radius:",";outline:none;box-shadow:",";display:inline-flex;align-items:stretch;min-height:var(--base-size-32);overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action]):focus-within){border-color:",";outline:2px solid ",";outline-offset:-1px;}> textarea{padding:var(--base-size-12);}&:where([data-contrast]){background-color:",";}&:where([data-disabled]){color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}}&:where([data-monospace]){font-family:",";}&:where([data-validation='error']){border-color:",";&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action])):focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}}&:where([data-validation='success']){border-color:",";}&:where([data-block]){width:100%;display:flex;align-self:stretch;}@media (min-width:","){font-size:var(--text-body-size-medium);}--inner-action-size:var(--base-size-24);&:where([data-size='small']){--inner-action-size:var(--base-size-20);min-height:var(--base-size-28);padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:var(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-size='large']){--inner-action-size:var(--base-size-28);height:var(--base-size-40);padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);}&:where([data-variant='small']){min-height:28px;padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-variant='large']){padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);font-size:var(--text-title-size-medium);}&{"," "," "," ","}"],Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.canvas.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("shadows.primer.shadow.inset"),Wr("colors.fg.muted"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.canvas.inset"),Wr("colors.primer.fg.disabled"),Wr("colors.input.disabledBg"),Wr("colors.border.default"),Wr("fonts.mono"),Wr("colors.danger.emphasis"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.success.emphasis"),Wr("breakpoints.1"),Ie,Me,Oe,fo)),Wu=r.forwardRef((function({className:e,style:t,variant:o,size:a,isInputFocused:n,hasTrailingAction:l,validationStatus:i,disabled:c,contrast:s,monospace:d,block:g,width:u,minWidth:v,maxWidth:b,...f},h){const m=bo(Ou),p=m?{}:{width:u,minWidth:v,maxWidth:b};return r.createElement(Fu,Hu({ref:h,className:Gr(e,m&&Vu),"data-block":g||void 0,"data-contrast":s||void 0,"data-disabled":c||void 0,"data-focused":n||void 0,"data-monospace":d||void 0,"data-size":a||void 0,"data-trailing-action":l||void 0,"data-validation":i||void 0,"data-variant":o||void 0,style:m&&"string"==typeof u?{width:u,...t}:t},p,f))}));Wu.displayName="TextInputBaseWrapper";const $u=So(Ou,Wu,p(Wu).withConfig({displayName:"TextInputWrapper__StyledTextInputWrapper",componentId:"sc-1mqhpbi-1"})(["background-repeat:no-repeat;background-position:right 8px center;& > :not(:last-child){margin-right:",";}.TextInput-icon,.TextInput-action{align-self:center;color:",";flex-shrink:0;}padding-right:0;padding-left:0;> input,> select{padding-right:0;padding-left:0;}&:where([data-leading-visual]){padding-left:var(--base-size-12);}&:where([data-trailing-visual]:not([data-trailing-action])){padding-right:var(--base-size-12);}&:where(:not([data-leading-visual])) > input,&:where(:not([data-leading-visual])) > select{padding-left:var(--base-size-12);}&:where(:not([data-trailing-visual]):not([data-trailing-action])) > input,&:where(:not([data-trailing-visual]):not([data-trailing-action])) > select{padding-right:var(--base-size-12);}&{","}"],Wr("space.2"),Wr("colors.fg.muted"),fo)),Zu=r.forwardRef((function({className:e,hasLeadingVisual:t,hasTrailingVisual:o,...a},n){return bo(Ou)?r.createElement(Wu,Hu({ref:n,className:Gr(e,Du),"data-leading-visual":t||void 0,"data-trailing-visual":o||void 0},a)):r.createElement($u,Hu({ref:n,className:e,"data-leading-visual":t||void 0,"data-trailing-visual":o||void 0},a))}));var Ku="prc_Invisible_uIWry";function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gu.apply(null,arguments)}const qu={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",backgroundColor:"transparent",color:"fg.subtle","&:hover, &:focus":{color:"fg.default"},'&[data-component="IconButton"]':{width:"var(--inner-action-size)",height:"var(--inner-action-size)"},"@media (pointer: coarse)":{":after":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}},Uu=({"aria-label":e,children:t,tooltipDirection:o})=>r.createElement(r.Fragment,null,e?r.createElement(Gl,{text:e,direction:o,sx:{display:"inline-block"}},t):t),Yu=u((({"aria-label":e,"aria-labelledby":t,tooltipDirection:o,children:a,icon:n,sx:l,className:i,variant:c="invisible",...s},d)=>{const g=bo(Ou)?{className:Gr("invisible"===c&&Ku,i),sx:l||{}}:{className:i,sx:"invisible"===c?tt(qu,l||{}):l||{}};(n&&!e||!a&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology");const u=e?{"aria-label":e}:t?{"aria-labelledby":t}:{"aria-label":""};return r.createElement(ho,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},n&&!a&&e?r.createElement(Yl,Gu({},u,{tooltipDirection:null!=o?o:"s",variant:c,type:"button",icon:n,size:"small"},g,s,{ref:d})):r.createElement(Uu,{"aria-label":e},r.createElement(On,Gu({variant:c,type:"button"},g,s,{ref:d}),a)))}));function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xu.apply(null,arguments)}const Qu=r.forwardRef((({icon:e,leadingVisual:t,trailingVisual:a,trailingAction:n,block:l,className:c,contrast:d,disabled:g,loading:u,loaderPosition:v="auto",loaderText:b="Loading",monospace:f,validationStatus:h,sx:m,size:p,onFocus:y,onBlur:x,width:w,minWidth:C,maxWidth:k,variant:E,type:B="text",required:T,...N},S)=>{const[_,I]=i(!1),A=ct(S),M=Gr(c,"TextInput-wrapper"),L=u&&("leading"===v||Boolean(t&&"trailing"!==v)),O=u&&("trailing"===v||Boolean("auto"===v&&!t)),j=s(),R=s(),z=s(),P=Gr(N["aria-describedby"],t&&j,a&&R,u&&z)||void 0,V=o((e=>{I(!0),y&&y(e)}),[y]),D=o((e=>{I(!1),x&&x(e)}),[x]);return r.createElement(Zu,{block:l,className:M,validationStatus:h,contrast:d,disabled:g,monospace:f,sx:m,size:p,width:w,minWidth:C,maxWidth:k,variant:E,hasLeadingVisual:Boolean(t||L),hasTrailingVisual:Boolean(a||O),hasTrailingAction:Boolean(n),isInputFocused:_,onClick:()=>{var e;null===(e=A.current)||void 0===e||e.focus()},"aria-busy":Boolean(u)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pu,{visualPosition:"leading",showLoadingIndicator:L,hasLoadingIndicator:"boolean"==typeof u,id:j,"data-testid":"text-input-leading-visual"},"string"!=typeof t&&_n.isValidElementType(t)?r.createElement(t,null):t),r.createElement(Ru,Xu({ref:A,disabled:g,onFocus:V,onBlur:D,type:B,"aria-required":T,"aria-invalid":"error"===h?"true":void 0},N,{"aria-describedby":P,"data-component":"input"})),u&&r.createElement(El,{id:z},b),r.createElement(Pu,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof u,id:R,"data-testid":"text-input-trailing-visual"},"string"!=typeof a&&_n.isValidElementType(a)?r.createElement(a,null):a),n)}));Qu.displayName="TextInput";var Ju=Object.assign(Qu,{Action:Yu});function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ev.apply(null,arguments)}const rv=new Set(["ArrowUp","ArrowDown"]),tv=r.forwardRef((({as:e=Ju,onFocus:t,onBlur:n,onChange:l,onKeyDown:c,onKeyUp:s,onKeyPress:d,value:u,openOnFocus:v=!1,...b},f)=>{const h=g(Nu);if(null===h)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:m,autocompleteSuggestion:p="",id:y,inputRef:x,inputValue:w="",isMenuDirectlyActivated:C,setInputValue:k,setShowMenu:E,showMenu:B}=h;eo(f,x);const[T,N]=i(!0),{safeSetTimeout:S}=zl(),_=o((e=>{n&&n(e),S((()=>{document.activeElement!==x.current&&E(!1)}),0)}),[n,E,x,S]),I=o((e=>{var r;c&&c(e),"Backspace"===e.key&&N(!1),"Escape"===e.key&&null!==(r=x.current)&&void 0!==r&&r.value&&(k(""),x.current.value=""),B||!rv.has(e.key)||e.altKey||E(!0)}),[x,k,N,c,B,E]),A=o((e=>{s&&s(e),"Backspace"===e.key&&N(!0)}),[N,s]),M=o((e=>{if(d&&d(e),B&&"Enter"===e.key&&m.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);m.current.dispatchEvent(r)}}),[m,B,d]);return a((()=>{x.current&&(p||(x.current.value=w),T&&p&&(w||C)&&(x.current.value=p,0===p.toLowerCase().indexOf(w.toLowerCase())&&x.current.setSelectionRange(w.length,p.length)))}),[p,w,x,C]),a((()=>{k(void 0!==u?u.toString():"")}),[u,k]),r.createElement(e,ev({onFocus:e=>{null==t||t(e),v&&E(!0)},onBlur:_,onChange:e=>{l&&l(e),k(e.currentTarget.value),B||E(!0)},onKeyDown:I,onKeyPress:M,onKeyUp:A,ref:x,"aria-controls":`${y}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-owns":`${y}-listbox`,autoComplete:"off",id:y},b))}));tv.displayName="AutocompleteInput";var ov="prc_SpinnerWrapper_OvHpT",av="prc_EmptyStateWrapper_tAx1w";function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nv.apply(null,arguments)}const lv={startMargin:0,endMargin:8};function iv(e){const o=g(Nu);if(null===o)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:c,inputRef:s,inputValue:d="",scrollContainerRef:u,setAutocompleteSuggestion:v,setShowMenu:b,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:m,showMenu:p}=o,{items:y,selectedItemIds:x,sortOnCloseFn:w,emptyStateText:C="No selectable options",addNewItem:k,loading:E,selectionVariant:B="single",filterFn:T,"aria-labelledby":N,onOpenChange:S,onSelectedChange:_,customScrollContainerRef:I}=e,A=l(null),M=l([]),[L,O]=i(),[j,R]=i(y.map((({id:e})=>e))),z=ro(c),P=t((()=>y.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===B?x.includes(e.id):void 0,onAction:e=>{const r=x.filter((r=>r!==e.id)),t=x.includes(e.id)?r:[...r,e.id];var o,a;((_||(o=f,function(e){const{text:r=""}=Array.isArray(e)?e.slice(-1)[0]:e;o(r)}))(t.map((e=>function(e,r){return r.find((r=>r.id===e))}(e,y)))),"multiple"===B)?(f(""),v("")):(b(!1),null===(a=s.current)||void 0===a||a.setSelectionRange(s.current.value.length,s.current.value.length))}})))),[L,y,x,s,_,B,v,f,b]),V=t((()=>j.reduce(((e,r,t)=>(e[r]=t,e)),{})),[j]),D=t((()=>{return P.filter(T||(e=d,function(r,t){var o;return Boolean(null===(o=r.text)||void 0===o?void 0:o.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>V[e.id]-V[r.id]));var e}),[P,V,T,d]),H=t((()=>[...D,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===B?x.includes(k.id):void 0,leadingVisual:()=>r.createElement(Wc,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===B&&(f(""),v(""))}}]:[]]),[D,k,v,B,f,z,L,x]);if(r.useEffect((()=>{M.current=H})),Uc({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:s,onActiveDescendantChanged:(e,r,t)=>{if(n.current=e||null,e){const r=M.current.find((r=>{var t;return r.id===(null===(t=e.closest("li"))||void 0===t?void 0:t.getAttribute("data-id"))}));O(r),h(t)}e&&I&&I.current&&t?Wt(e,I.current,lv):e&&u.current&&t&&Wt(e,u.current,lv)}},[E]),a((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(d)&&!x.includes(L.id)?v(L.text):v("")}),[L,d,x,v]),a((()=>{const e=[...j].sort(w||(r=e=>((e,r)=>r.includes(e))(e,x),(e,t)=>r(e)===r(t)?0:r(e)?-1:1));var r;const t=e.length===j.length&&e.every(((e,r)=>e===j[r]));!1!==p||t||R(e),S&&S(Boolean(p))}),[p,S,x,w,j]),a((()=>{x.length&&m(x.length)}),[x,m]),"single"===B&&x.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');const F=bo("primer_react_css_modules_team");return r.createElement(El,{isVisible:p},E?F?r.createElement(ho,{className:ov},r.createElement(Ho,null)):r.createElement(ho,{p:3,display:"flex",justifyContent:"center"},r.createElement(Ho,null)):r.createElement("div",{ref:A},H.length?r.createElement(cu,{selectionVariant:B,role:"listbox",id:`${c}-listbox`,"aria-labelledby":N},H.map((e=>{const{id:t,onAction:o,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(cu.Item,nv({key:t,onSelect:()=>o(e)},c,{id:t,"data-id":t}),l&&r.createElement(cu.LeadingVisual,null,_n.isElement(l)?l:r.createElement(l,null)),null!=a?a:n,i&&r.createElement(cu.TrailingVisual,null,_n.isElement(i)?i:r.createElement(i,null)))}))):!1!==C&&null!==C?F?r.createElement(ho,{className:av},C):r.createElement(ho,{p:3},C):null))}iv.displayName="AutocompleteMenu",iv.displayName="AutocompleteMenu";var cv="prc_Overlay_4kapX";function sv(){return sv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sv.apply(null,arguments)}function dv({menuAnchorRef:e,overlayProps:t,children:a,...n}){const l=g(Nu);if(null===l)throw new Error("AutocompleteContext returned null values");const i={...t,...n},{inputRef:c,scrollContainerRef:s,selectedItemLength:d,setShowMenu:u,showMenu:v=!1}=l,{floatingElementRef:b,position:f}=Kt({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,d]);eo(s,b);const h=o((()=>{u(!1)}),[u]),m=bo("primer_react_css_modules_team");return"undefined"==typeof window?null:v?r.createElement(hu,sv({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:b,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:m?void 0:{overflow:"auto"},className:m?cv:void 0},i),a):r.createElement(El,{"aria-hidden":"true"},a)}dv.displayName="AutocompleteOverlay";const gv={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},uv=(e,r)=>{const{type:t,payload:o}=r;switch(t){case"inputValue":return{...e,inputValue:o};case"showMenu":return{...e,showMenu:o};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:o};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:o};case"selectedItemLength":return{...e,selectedItemLength:o};default:return e}},vv=({children:e,id:t})=>{const a=l(null),n=l(null),i=l(null),[c,s]=h(uv,gv),{inputValue:d,showMenu:g,autocompleteSuggestion:u,isMenuDirectlyActivated:v,selectedItemLength:b}=c,f=o((e=>{s({type:"inputValue",payload:e})}),[]),m=o((e=>{s({type:"showMenu",payload:e})}),[]),p=o((e=>{s({type:"autocompleteSuggestion",payload:e})}),[]),y=o((e=>{s({type:"isMenuDirectlyActivated",payload:e})}),[]),x=o((e=>{s({type:"selectedItemLength",payload:e})}),[]),w=ro(t);return r.createElement(Nu.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:u,id:w,inputRef:i,inputValue:d,isMenuDirectlyActivated:v,scrollContainerRef:n,selectedItemLength:b,setAutocompleteSuggestion:p,setInputValue:f,setIsMenuDirectlyActivated:y,setShowMenu:m,setSelectedItemLength:x,showMenu:g}},e)};vv.displayName="Autocomplete";var bv=Object.assign(vv,{Context:Nu,Input:tv,Menu:iv,Overlay:dv}),fv="prc_Avatar_ZRS-m";function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},hv.apply(null,arguments)}const mv=20,pv=r.forwardRef((function({alt:e="",size:t=20,square:o=!1,sx:a=To,className:n,...l},i){const c=ti(t),s={};if(c)for(const[e,r]of Object.entries(t))s[`--avatarSize-${e}`]=`${r}px`;else s["--avatarSize-regular"]=`${t}px`;return a!==To?r.createElement(ho,hv({as:"img","data-component":"Avatar",className:Gr(n,fv),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":o?"":void 0,width:c?void 0:t,height:c?void 0:t,style:s,sx:a},l)):r.createElement("img",hv({"data-component":"Avatar",className:Gr(n,fv),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":o?"":void 0,width:c?void 0:t,height:c?void 0:t,style:s},l))}));const yv={xsmall:{width:"320px"},small:{width:A.breakpoints[0]},medium:{width:A.breakpoints[1]},large:{width:A.breakpoints[2]},xlarge:{width:A.breakpoints[3]},xxlarge:{width:"1400px"}};function xv(e){return`@media screen and (min-width: ${e})`}const wv=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(yv.medium.width),Cv=xv(yv.medium.width),kv=xv(yv.xxlarge.width);function Ev(e){if("narrow"in e&&"regular"in e&&"wide"in e){const r=Object.values(e);return r.every((e=>e===r[0]))}return!1}function Bv(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}function Tv(e,r,t){if(ti(e)){const o=e,a="narrow"in o?{[wv]:{[r]:t(o.narrow)}}:{},n="regular"in o?{[Cv]:{[r]:t(o.regular)}}:{},l="wide"in o?{[kv]:{[r]:t(o.wide)}}:{};return Ev(o)?{[r]:t(o.narrow)}:Bv(o)?{...a,...n}:{...a,...n,...l}}return{[r]:t(e)}}var Nv="prc_SkeletonBox_HR9PH";const Sv="primer_react_css_modules_ga";function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_v.apply(null,arguments)}const Iv=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Av=So(Sv,"div",p.div.withConfig({displayName:"SkeletonBox__StyledSkeletonBox",componentId:"sc-ovy911-0"})(["animation:",";display:block;background-color:var(--bgColor-muted,",");border-radius:3px;height:",";width:",";@media (prefers-reduced-motion:no-preference){mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}",";"],Iv,Wr("colors.canvas.subtle"),(e=>e.height||"1rem"),(e=>e.width),Iv,fo)),Mv=r.forwardRef((function({height:e,width:t,className:o,style:a,...n},l){const i=bo(Sv);return r.createElement(Av,_v({height:i?void 0:e,width:i?void 0:t,className:Gr(o,{[Nv]:i}),style:i?tt(a,{height:e,width:t}):a},n,{ref:l}))}));var Lv="prc_SkeletonAvatar_TYNvX";function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ov.apply(null,arguments)}const jv={'&[data-component="SkeletonAvatar"]':{borderRadius:"50%",boxShadow:`0 0 0 1px ${Wr("colors.avatar.border")}`,display:"inline-block",lineHeight:Wr("lineHeights.condensedUltra"),height:"var(--avatar-size)",width:"var(--avatar-size)"},"&[data-square]":{borderRadius:"clamp(4px, var(--avatar-size) - 24px, 6px)"}},Rv=({size:e=20,square:t,className:o,style:a,...n})=>{const l=ti(e),i={},c=bo(Sv),s=l?{...Tv(e,"--avatar-size",(e=>`${e||mv}px`)),...jv}:{"--avatar-size":`${e}px`,...jv};if(c)if(l)for(const[r,t]of Object.entries(e))i[`--avatarSize-${r}`]=`${t}px`;else i["--avatarSize-regular"]=`${e}px`;return r.createElement(Mv,Ov({sx:c?void 0:s,className:Gr(o,{[Lv]:c})},n,{"data-component":"SkeletonAvatar","data-responsive":l?"":void 0,"data-square":t?"":void 0,style:tt(a,c?i:{})}))};Rv.displayName="SkeletonAvatar";var zv="prc_AvatarPair_Av0UV",Pv="prc_AvatarChild_icdQd";function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vv.apply(null,arguments)}const Dv=({children:e,className:t,...o})=>{const a=r.Children.map(e,((e,t)=>r.isValidElement(e)?0===t?r.cloneElement(e,{size:40}):e.type===Rv?r.createElement(Rv,Vv({},e.props,{size:20})):r.createElement(pv,Vv({className:Gr(e.props.className,Pv)},e.props,{size:20})):e));return r.createElement("div",Vv({className:Gr(t,zv)},o),a)};Dv.displayName="AvatarPair",Dv.displayName="AvatarPair";var Hv="prc_AvatarStack_N-r3C",Fv="prc_AvatarItem_nS1mt",Wv="prc_AvatarStackBody_mSyoJ";const $v={disabled:"[disabled]",hidden:"[hidden]",inert:"[inert]",negativeTabIndex:'[tabindex="-1"]'},Zv=["a[href]","button","summary","select","input:not([type=hidden])","textarea",'[tabindex="0"]',"audio[controls]","video[controls]","[contenteditable]"].map((e=>`${e}:not(${Object.values($v).join("):not(")})`));function Kv(e,r){if(!e||Gv(e))return!1;const t=qv(e,[e]);return Boolean(t)}function Gv(e){const r=getComputedStyle(e),t=e.matches("[disabled], [hidden], [inert]"),o="none"===r.display||"hidden"===r.visibility;return t||o}function qv(e,r){if(!e)return;const t=r.find((r=>r===e)),o=Gv(e);if(e.matches(Zv.join(", "))&&!t&&!o)return e;for(const t of e.children){if(qv(t,r))return!0}}const Uv=C(["box-shadow:none;outline:2px solid ",";"],Wr("colors.accent.fg")),Yv=e=>C(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],Uv,void 0===e?"2px":e,Uv,void 0===e?"2px":e),Xv="primer_react_css_modules_team",Qv=So(Xv,"span",p.span.withConfig({displayName:"AvatarStack__AvatarStackWrapper",componentId:"sc-4pdg6v-0"})(["--avatar-border-width:1px;--avatar-two-margin:calc(var(--avatar-stack-size) * -0.55);--avatar-three-margin:calc(var(--avatar-stack-size) * -0.85);display:flex;position:relative;height:var(--avatar-stack-size);min-width:var(--avatar-stack-size);.pc-AvatarStackBody{display:flex;position:absolute;","}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);position:relative;overflow:hidden;display:flex;&:is(img){box-shadow:0 0 0 var(--avatar-border-width) ",";}&:first-child{margin-left:0;z-index:10;}&:nth-child(n + 2){margin-left:var(--avatar-two-margin);z-index:9;}&:nth-child(n + 3){margin-left:var(--avatar-three-margin);opacity:","%;z-index:8;}&:nth-child(n + 4){opacity:","%;z-index:7;}&:nth-child(n + 5){opacity:","%;z-index:6;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}&.pc-AvatarStack--two{min-width:calc( var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width) );}&.pc-AvatarStack--three{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) ) );}&.pc-AvatarStack--three-plus{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) * 2 ) );}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;&:first-child{margin-right:0;}&:nth-child(n + 2){margin-right:var(--avatar-two-margin);}&:nth-child(n + 3){margin-right:var(--avatar-three-margin);}}.pc-AvatarStackBody{flex-direction:row-reverse;&:not(.pc-AvatarStack--disableExpand):hover,&:not(.pc-AvatarStack--disableExpand):focus-within{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover,.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):focus-within{width:auto;.pc-AvatarItem{margin-left:",";opacity:100%;visibility:visible;"," transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;"," &:first-child{margin-left:0;}}}.pc-AvatarStack--disableExpand{position:relative;}",";"],Yv("1px"),(e=>1===e.count?Wr("colors.avatar.border"):Wr("colors.canvas.default")),55,40,25,Wr("space.1"),Wr("space.1"),(e=>1===e.count?"":`box-shadow: inset 0 0 0 4px ${Wr("colors.canvas.default")};`),Yv("1px"),fo)),Jv=({disableExpand:e,hasInteractiveChildren:t,stackContainer:o,children:a})=>{const n=Gr("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":e});return bo(Xv)?r.createElement("div",{"data-disable-expand":e?"":void 0,className:Gr(n,Wv),tabIndex:t||e?void 0:0,ref:o},a):r.createElement(ho,{className:n,tabIndex:t||e?void 0:0,ref:o},a)};Jv.displayName="AvatarStackBody";const eb=({children:e,alignRight:t,disableExpand:o,size:n,className:c,sx:s=To})=>{const d=bo(Xv),[g,u]=i(!1),v=l(null),b=r.Children.count(e),f=Gr({"pc-AvatarStack--two":2===b,"pc-AvatarStack--three":3===b,"pc-AvatarStack--three-plus":b>3,"pc-AvatarStack--right":t},c),h=(()=>{const t={narrow:[],regular:[],wide:[]};return r.Children.toArray(e).reduce(((e,o)=>{if(!r.isValidElement(o))return e;for(const r of Object.keys(t))ti(o.props.size)?t[r].push(o.props.size[r]||mv):t[r].push(o.props.size||mv),e[r]=Math.min(...t[r]);return e}),{narrow:mv,regular:mv,wide:mv})})();a((()=>{if(v.current){const e=()=>{u(Kv(v.current))},r=new MutationObserver(e);return r.observe(v.current,{childList:!0}),e(),()=>{r.disconnect()}}}),[]);const m=()=>n?ti(n)?d?{"--stackSize-narrow":`${n.narrow||mv}px`,"--stackSize-regular":`${n.regular||mv}px`,"--stackSize-wide":`${n.wide||mv}px`}:Tv(n,"--avatar-stack-size",(e=>`${e||mv}px`)):{"--avatar-stack-size":`${n}px`}:d?{"--stackSize-narrow":`${h.narrow}px`,"--stackSize-regular":`${h.regular}px`,"--stackSize-wide":`${h.wide}px`}:Tv(h,"--avatar-stack-size",(e=>`${e}px`)),p=tt(!d&&m(),s);return r.createElement(Qv,{count:d?void 0:b,"data-avatar-count":d?b>3?"3+":b:void 0,"data-align-right":d&&t?"":void 0,"data-responsive":!d||n&&!ti(n)?void 0:"",className:Gr(f,{[Hv]:d}),style:d?m():void 0,sx:p},r.createElement(Jv,{disableExpand:o,hasInteractiveChildren:g,stackContainer:v}," ",((e,t)=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Gr(e.props.className,"pc-AvatarItem",{[Fv]:t})}):e)))(e,d)))};eb.displayName="AvatarStack";var rb="prc_BranchName_jFtg-";function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tb.apply(null,arguments)}const ob=p.a.withConfig({displayName:"BranchName__StyledBranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:var(--text-body-size-small,",");font-family:var(--fontStack-monospace,",");color:var(--fgColor-link,",");background-color:var(--bgColor-accent-muted,",");border-radius:var(--borderRadius-medium,",");text-decoration:none;&:is(:not(a)){color:var(--fgColor-muted);}",";"],Wr("fontSizes.0"),Wr("fonts.mono"),Wr("colors.accent.fg"),Wr("colors.accent.subtle"),Wr("radii.2"),fo);function ab(e,t){const{as:o="a",className:a,children:n,sx:l,...i}=e;return bo("primer_react_css_modules_ga")?l?r.createElement(ho,tb({},i,{ref:t,as:o,className:Gr(a,rb),sx:l}),n):r.createElement(o,tb({},i,{ref:t,className:Gr(a,rb)}),n):r.createElement(ob,tb({},i,{as:o,ref:t,className:a,sx:l}),n)}ab.displayName="BranchName";const nb=r.forwardRef;ab.displayName="BranchName";var lb=nb(ab),ib="prc_BreadcrumbsBase_6gqOz",cb="prc_BreadcrumbsList_K7eeK",sb="prc_ItemWrapper_Mfwuj",db="prc_Item_7BKO-",gb="prc_ItemSelected_9ZYcW";function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ub.apply(null,arguments)}const vb="selected",bb="primer_react_css_modules_ga",fb=So(bb,"li",p.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{font-size:",";content:'';display:inline-block;height:0.8em;margin:0 0.5em;border-right:0.1em solid;border-color:",";transform:rotate(15deg) translateY(0.0625em);}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Wr("fontSizes.1"),Wr("colors.fg.muted"))),hb=So(bb,"nav",p.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],fo)),mb=({children:e})=>bo(bb)?r.createElement("ol",{className:cb},e):r.createElement(ho,{as:"ol",my:0,pl:0},e);function pb({className:e,children:t,sx:o}){const a=bo(bb),n=r.Children.map(t,(e=>r.createElement(fb,{className:Gr({[sb]:a})},e)));return r.createElement(hb,{className:Gr(e,{[ib]:a}),"aria-label":"Breadcrumbs",sx:o},r.createElement(mb,null,n))}mb.displayName="BreadcrumbsList",pb.displayName="Breadcrumbs";const yb=So(bb,"a",p.a.withConfig({displayName:"Breadcrumbs__StyledBreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover,&:focus{text-decoration:underline;}&.selected{color:",";pointer-events:none;}&.selected:focus{text-decoration:none;}",";"],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),fo)),xb=r.forwardRef((({selected:e,className:t,...o},a)=>{const n=bo(bb);return r.createElement(yb,ub({className:Gr(t,{[vb]:e,[db]:n,[gb]:n&&e}),"aria-current":e?"page":null,ref:a},o))}));pb.displayName="Breadcrumbs",xb.displayName="Breadcrumbs.Item";var wb=Object.assign(pb,{Item:xb});const Cb=Object.assign(pb,{Item:xb});var kb="prc_ButtonGroup_vcMeG";function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Eb.apply(null,arguments)}const Bb=r.forwardRef((function({children:e,className:t,role:o,sx:a,...n},l){const i=r.Children.map(e,((e,t)=>r.createElement("div",{key:t},e))),c=ct(l);return Uc({containerRef:c,disabled:"toolbar"!==o,bindKeys:Ot.ArrowHorizontal,focusOutBehavior:"wrap"}),a!==To?r.createElement(ho,Eb({as:"div",className:Gr(t,kb),role:o},n,{sx:a,ref:c}),i):r.createElement("div",Eb({ref:c,className:Gr(t,kb),role:o},n),i)}));Bb.displayName="ButtonGroup";const Tb={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Nb={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Sb(e,r,t){const o=Tb[e].toLowerCase(),a=Nb[e].toLowerCase();return{[o]:"100%",[r||a]:r?t:"50%"}}const _b=Pr({prop:"bg",key:"colors"}),Ib=Pr({prop:"borderColor",key:"colors"}),Ab=Pr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Mb(e){var t;const o=r.useContext(k),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(t=e.theme)&&void 0!==t?t:o},{bg:n}=_b(a),{borderColor:l}=Ib(a),{borderWidth:i}=Ab(a),{size:c=8,location:s="bottom"}=e,[d,g]=function(e){const[r,t]=e.split("-");return[r,t]}(s),u=Nb[d],v=[-c,0],b=[0,c],f=[c,0],h=`M${v}L${b}L${f}L${v}Z`,m=`M${v}L${b}L${f}`,p={top:`translate(${[c,2*c]}) rotate(180)`,right:`translate(${[0,c]}) rotate(-90)`,bottom:`translate(${[c,0]})`,left:`translate(${[2*c,c]}) rotate(90)`}[d];return r.createElement("svg",{width:2*c,height:2*c,style:{pointerEvents:"none",position:"absolute",...Sb(d,g,c),[`margin${u}`]:g?null:-c},role:"presentation"},r.createElement("g",{transform:p},r.createElement("path",{d:h,fill:null==o?void 0:o.colors.canvas.default}),r.createElement("path",{d:h,fill:n}),r.createElement("path",{d:m,fill:"none",stroke:l,strokeWidth:i})))}function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lb.apply(null,arguments)}function Ob(e){const{size:t=32,as:o,icon:a,bg:n,"aria-label":l,...i}=e;return r.createElement(ho,{as:o,bg:n,overflow:"hidden",borderWidth:0,size:t,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},r.createElement(ho,Lb({display:"flex",as:o,size:t},i,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:t,"aria-label":l})))}Mb.displayName="Caret",Mb.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Ob.displayName="CircleOcticon";const jb=d(null),Rb=jb.Provider;function zb(){var e;return null!==(e=g(jb))&&void 0!==e?e:{}}function Pb(e){const r=g(jb);return r?{disabled:r.disabled,id:r.id,required:r.required,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const Vb=d({});var Db="prc_Checkbox_gIwWX";function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hb.apply(null,arguments)}const Fb=r.forwardRef((({checked:e,className:t,defaultChecked:o,indeterminate:n,disabled:l,onChange:i,sx:c,required:s,validationStatus:d,value:u,...v},b)=>{const f=ct(b),h=g(Vb),m={type:"checkbox",disabled:l,ref:f,checked:!n&&e,defaultChecked:o,required:s,"aria-required":s?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{h.onChange&&h.onChange(e),i&&i(e)},value:u,name:u,...v};return $t((()=>{f.current&&(f.current.indeterminate=n||!1)}),[n,e,f]),a((()=>{const{current:e}=f;e&&(n?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),c?r.createElement(ho,Hb({as:"input"},m,{className:Gr(t,Wd,Db),sx:c})):r.createElement("input",Hb({},m,{className:Gr(t,Wd,Db)}))}));Fb.displayName="Checkbox";var Wb={Select:"prc_Select_F7Flx",TextInputWrapper:"prc_TextInputWrapper_eBxmL",disabled:"prc_disabled_qvF9B",ArrowIndicator:"prc_ArrowIndicator_vtddB"};function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$b.apply(null,arguments)}const Zb="primer_react_css_modules_ga",Kb=So(Zb,"select",p.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-124jcjr-0"})(["appearance:none;border-radius:inherit;border:0;color:currentColor;font-size:inherit;outline:none;width:100%;background-color:inherit;margin-top:1px;margin-left:1px;margin-bottom:1px;&:disabled{background-color:transparent;}@media screen and (forced-colors:active){&:disabled{background-color:-moz-combobox;}}"])),Gb=({className:e})=>r.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},r.createElement("path",{d:"m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z"}));Gb.displayName="ArrowIndicatorSVG";const qb=p(Gb).withConfig({displayName:"Select__StyledArrowIndicatorSVG",componentId:"sc-124jcjr-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),Ub=({className:e})=>bo(Zb)?r.createElement(Gb,{className:Gr(Wb.ArrowIndicator,e)}):r.createElement(qb,null);Ub.displayName="ArrowIndicator";const Yb=r.forwardRef((({block:e,children:t,contrast:o,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,...s},d)=>bo(Zb)?r.createElement(Zu,{block:e,contrast:o,disabled:a,size:l,validationStatus:c,className:Wb.TextInputWrapper,sx:s.sx},r.createElement(Kb,$b({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0,className:Gr(Wb.Select,a&&Wb.Disabled)},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),t),r.createElement(Ub,{className:Wb.ArrowIndicator})):r.createElement(Zu,{sx:{overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},block:e,contrast:o,disabled:a,size:l,validationStatus:c},r.createElement(Kb,$b({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),t),r.createElement(Ub,null)))),Xb=e=>r.createElement("option",e);Xb.displayName="Option";const Qb=e=>r.createElement("optgroup",e);Qb.displayName="OptGroup";var Jb=Object.assign(Yb,{Option:Xb,OptGroup:Qb});function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ef.apply(null,arguments)}const rf=p.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-cjezay-0"})(["{}padding:6px ",";font-size:",";font-weight:",";color:",";"," ",""],Wr("space.3"),Wr("fontSizes.0"),Wr("fontWeights.bold"),Wr("colors.fg.muted"),(({variant:e})=>"filled"===e&&C(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Wr("colors.canvas.subtle"),Wr("space.2"),Wr("colors.neutral.muted"),Wr("colors.neutral.muted"))),fo);function tf({variant:e="subtle",title:t,auxiliaryText:o,children:a,...n}){return r.createElement(rf,ef({role:"heading",variant:e},n),t,o&&r.createElement("span",null,o))}tf.displayName="Header";const of=p.div.withConfig({displayName:"Group__StyledGroup",componentId:"sc-1s2aw76-0"})(["",""],fo);function af({header:e,items:t,...o}){return r.createElement(of,o,e&&r.createElement(tf,e),t)}af.displayName="Group";const nf=p.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1s7tlfq-0"})(["height:1px;background:",";margin-top:calc("," - 1px);margin-bottom:",";"],Wr("colors.border.muted"),Wr("space.2"),Wr("space.2"));function lf(){return r.createElement(nf,null)}function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},cf.apply(null,arguments)}lf.displayName="Divider",lf.renderItem=lf;const sf=(e="default",r)=>r?{color:Wr("colors.primer.fg.disabled"),iconColor:Wr("colors.primer.fg.disabled"),annotationColor:Wr("colors.primer.fg.disabled"),hoverCursor:"default"}:"danger"===e?{color:Wr("colors.danger.fg"),iconColor:Wr("colors.danger.fg"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.danger.hoverBg"),focusBg:Wr("colors.actionListItem.danger.activeBg"),hoverText:Wr("colors.actionListItem.danger.hoverText")}:{color:Wr("colors.fg.default"),iconColor:Wr("colors.fg.muted"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.default.hoverBg"),focusBg:Wr("colors.actionListItem.default.activeBg")},df=p.div.withConfig({displayName:"Item__DividedContent",componentId:"sc-y6iv6t-0"})(["display:flex;min-width:0;position:relative;flex-grow:1;"]),gf=p.div.withConfig({displayName:"Item__MainContent",componentId:"sc-y6iv6t-1"})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]),uf=p.div.withConfig({displayName:"Item__StyledItem",componentId:"sc-y6iv6t-2"})(["padding:6px ",";display:flex;border-radius:",";color:",";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,"," );color:",";cursor:",";}}:not(:first-of-type):not("," + &):not("," + &){margin-top:",";","::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ",";border-top-width:",";}}&:hover ","::before,:hover + * ","::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ","::before,:focus + * ","::before,&[","] ","::before,[","] + & ","::before{border-color:transparent !important;}&[","='","']{background:",";}&[","='","']{background:",";}&:focus{background:",";outline:none;}&:active{background:",";}",""],Wr("space.2"),Wr("radii.2"),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).color),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverText),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverCursor),nf,rf,(({showDivider:e})=>e?"1px":"0"),df,Wr("colors.border.muted"),(({showDivider:e})=>e?"1px":"0"),df,df,df,df,Pt,df,Pt,df,Pt,Vt,(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).focusBg),Pt,Dt,(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).focusBg),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).focusBg),fo),vf=p.span.withConfig({displayName:"Item__TextContainer",componentId:"sc-y6iv6t-3"})([""]),bf=p.div.withConfig({displayName:"Item__BaseVisualContainer",componentId:"sc-y6iv6t-4"})(["height:20px;width:",";margin-right:",";display:flex;justify-content:center;align-items:center;flex-shrink:0;"],Wr("space.3"),Wr("space.2")),ff=p(bf).withConfig({displayName:"Item__ColoredVisualContainer",componentId:"sc-y6iv6t-5"})(["svg{fill:",";font-size:",";}"],(({variant:e,disabled:r})=>sf(e,r).iconColor),Wr("fontSizes.0")),hf=p(ff).withConfig({displayName:"Item__LeadingVisualContainer",componentId:"sc-y6iv6t-6"})(["display:flex;flex-direction:column;justify-content:center;"]),mf=p(ff).withConfig({displayName:"Item__TrailingContent",componentId:"sc-y6iv6t-7"})(["color:",";margin-left:",";margin-right:0;width:auto;div:nth-child(2){margin-left:",";}"],(({variant:e,disabled:r})=>sf(e,r).annotationColor),Wr("space.2"),Wr("space.2")),pf=p.span.withConfig({displayName:"Item__DescriptionContainer",componentId:"sc-y6iv6t-8"})(["color:",";font-size:",";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"],Wr("colors.fg.muted"),Wr("fontSizes.0")),yf=p.svg.withConfig({displayName:"Item__MultiSelectIcon",componentId:"sc-y6iv6t-9"})(["rect{fill:",";stroke:",";shape-rendering:auto;}path{fill:",";boxshadow:",";opacity:",";}"],(({selected:e})=>Wr(e?"colors.accent.fg":"colors.canvas.default")),(({selected:e})=>Wr(e?"colors.accent.fg":"colors.border.default")),Wr("colors.fg.onEmphasis"),Wr("shadow.small"),(({selected:e})=>e?1:0)),xf=r.forwardRef(((e,t)=>{const{as:a,text:n,description:l,descriptionVariant:i="inline",selected:c,selectionVariant:s,leadingVisual:d,trailingIcon:g,trailingVisual:u,trailingText:v,variant:b="default",showDivider:f,disabled:h,onAction:m,onKeyPress:p,children:y,onClick:x,id:w,...C}=e,k=ro(),E=ro(),B=o((r=>{h||(null==p||p(r),!r.defaultPrevented&&[" ","Enter"].includes(r.key)&&(null==m||m(e,r)))}),[m,h,e,p]),T=o((r=>{h||(null==x||x(r),r.defaultPrevented||null==m||m(e,r))}),[m,h,e,x]),{theme:N}=io();return r.createElement(uf,cf({ref:t,as:a,tabIndex:h?void 0:-1,variant:b,showDivider:f,"aria-selected":c,"aria-labelledby":n?k:void 0,"aria-describedby":l?E:void 0},C,{"data-id":w,onKeyPress:B,onClick:T}),!!c===c&&r.createElement(bf,null,"multiple"===s?r.createElement(r.Fragment,null,r.createElement(yf,{selected:c,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r.createElement("rect",{x:"2",y:"2",width:"12",height:"12",rx:"4"}),r.createElement("path",{fillRule:"evenodd",strokeWidth:"0",d:"M4.03231 8.69862C3.84775 8.20646 4.49385 7.77554 4.95539 7.77554C5.41693 7.77554 6.80154 9.85246 6.80154 9.85246C6.80154 9.85246 10.2631 4.314 10.4938 4.08323C10.7246 3.85246 11.8785 4.08323 11.4169 5.00631C11.0081 5.82388 7.26308 11.4678 7.26308 11.4678C7.26308 11.4678 6.80154 12.1602 6.34 11.4678C5.87846 10.7755 4.21687 9.19077 4.03231 8.69862Z"}))):c&&r.createElement(Sc,{fill:null==N?void 0:N.colors.fg.default})),d&&r.createElement(hf,{variant:b,disabled:h},r.createElement(d,null)),r.createElement(df,null,r.createElement(gf,{style:{"--main-content-flex-direction":"inline"===i?"row":"column"}},y,n?r.createElement(vf,{id:k},n):null,l?r.createElement(pf,{id:E,style:{"--description-container-margin-left":"inline"===i?Wr("space.2")(N):0,"--description-container-flex-basis":"inline"===i?0:"auto"}},"block"===i?l:r.createElement(Vg,{title:l,inline:!0,maxWidth:"100%"},l)):null),u?r.createElement(mf,{variant:b,disabled:h},"string"!=typeof u&&_n.isValidElementType(u)?r.createElement(u,null):u):g||v?r.createElement(mf,{variant:b,disabled:h},v,g&&r.createElement(g,null)):null))}));function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wf.apply(null,arguments)}xf.displayName="ActionList.Item";const Cf=p.div.withConfig({displayName:"List__StyledList",componentId:"sc-hkz3q0-0"})(["font-size:",";line-height:20px;&[","],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:",";}"],Wr("fontSizes.1"),Ht,Wr("colors.border.muted"));const kf=r.forwardRef(((e,t)=>{const{firstGroupStyle:o,lastGroupStyle:a,headerStyle:n,itemStyle:l}=function(e="inset"){return"full"===e?{headerStyle:{paddingX:Wr("space.2")},itemStyle:{borderRadius:0}}:{firstGroupStyle:{marginTop:Wr("space.2")},lastGroupStyle:{marginBottom:Wr("space.2")},itemStyle:{marginX:Wr("space.2")}}}(e.variant),i=(t,o,a)=>{var n,i,c;const s="renderItem"in t&&t.renderItem||e.renderItem||xf,d=null!==(n=null!==(i="key"in t?t.key:void 0)&&void 0!==i?i:null===(c=t.id)||void 0===c?void 0:c.toString())&&void 0!==n?n:a.toString();return r.createElement(s,wf({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},t,{key:d,sx:{...l,...t.sx},item:o}))};let c=[];if(function(e){return"groupMetadata"in e}(e)){const r=e.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const t of e.items){var s,d,g;const e=r.get(t.groupId),o=null!==(s=null==e||null===(d=e.items)||void 0===d?void 0:d.length)&&void 0!==s?s:0;r.set(t.groupId,{...e,items:[...null!==(g=null==e?void 0:e.items)&&void 0!==g?g:[],i({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...t},t,o)]})}c=[...r.values()]}else c=[{items:e.items.map(((e,r)=>i(e,e,r))),groupId:"0"}];return r.createElement(Cf,wf({},e,{ref:t}),c.map((({header:t,...l},i)=>{const s="filled"===(null==t?void 0:t.variant),d=i>0&&!s;return r.createElement(r.Fragment,{key:l.groupId},d?r.createElement(lf,{key:`${l.groupId}-divider`}):null,(t=>{var o;const a=(null!==(o="renderGroup"in t&&t.renderGroup)&&void 0!==o?o:e.renderGroup)||af;return r.createElement(a,wf({},t,{key:t.groupId}))})({sx:{...0===i&&o,...i===c.length-1&&a,...i>0&&!d&&{mt:2}},...t&&{header:{...t,sx:{...n,...t.sx}}},...l}))})))}));kf.displayName="ActionList";const Ef=Object.assign(kf,{Group:af,Item:xf,Divider:lf});function Bf(e){a((()=>{const r=e.current;if(!r)return;const t=r.scrollTop,o=r.scrollHeight,a=t<Math.min(1,o)?t+1:t-1;r.scrollTop=a,r.scrollTop=t}),[e])}function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tf.apply(null,arguments)}const Nf={startMargin:0,endMargin:8},Sf=p.div.withConfig({displayName:"FilteredActionListWithDeprecatedActionList__StyledHeader",componentId:"sc-o1spcd-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function _f({loading:e=!1,placeholderText:t,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,className:u,...v}){const[b,f]=Ut(n,void 0,""),h=o((e=>{const r=e.target.value;i(r,e),f(r)}),[i,f]),m=l(null),p=l(null),y=ct(d),x=l(),w=ro(),C=ro(),k=o((e=>{if("Enter"===e.key&&x.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);x.current.dispatchEvent(r)}}),[x]);return Uc({containerRef:p,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:y,onActiveDescendantChanged:(e,r,t)=>{x.current=e,e&&m.current&&t&&Wt(e,m.current,Nf)}},[e]),a((()=>{x.current&&m.current&&Wt(x.current,m.current,{...Nf,behavior:"auto"})}),[c]),Bf(m),r.createElement(ho,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:u,"data-testid":"filtered-action-list"},r.createElement(Sf,null,r.createElement(Ju,Tf({ref:y,block:!0,width:"auto",color:"fg.default",value:b,onChange:h,onKeyPress:k,placeholder:t,"aria-label":t,"aria-controls":w,"aria-describedby":C},s))),r.createElement(Lo,{id:C},"Items will be filtered as you type"),r.createElement(ho,{ref:m,overflow:"auto"},e?r.createElement(ho,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Ho,null)):r.createElement(Ef,Tf({ref:p,items:c},v,{role:"listbox",id:w}))))}_f.displayName="FilteredActionList",_f.displayName="FilteredActionList";const If=(e,r)=>{const t=e.current,o=null==t?void 0:t.querySelector("[data-is-active-descendant]");if(!t||null==o||!o.textContent)return;const a=t.querySelectorAll('[role="option"]'),n=Array.from(a).indexOf(o),l=r[n];return{index:n,text:null==l?void 0:l.text,selected:null==l?void 0:l.selected}},Af=(e,r,t)=>{const o=document.querySelector("live-region");a((function(){const a=()=>{window.requestAnimationFrame((()=>{const t=If(r,e);if(!t)return;const{index:a,text:n,selected:l}=t;Ka(["Focus on filter text box and list of items",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:o||void 0})}))},n=t.current;return null==n||n.addEventListener("focus",a),()=>null==n?void 0:n.removeEventListener("focus",a)}),[r,t,e,o]);const n=(()=>{const e=l(!0);return a((()=>{e.current=!1}),[]),e.current})();a((function(){n||(null==o||o.clear(),0!==e.length?window.requestAnimationFrame((()=>{const t=If(r,e);if(!t)return;const{index:a,text:n,selected:l}=t;Ka(["List updated",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:o||void 0})})):Ka("No matching items.",{delayMs:500}))}),[n,e,r,o])};function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mf.apply(null,arguments)}const Lf={startMargin:0,endMargin:8},Of=p.div.withConfig({displayName:"FilteredActionListWithModernActionList__StyledHeader",componentId:"sc-1d2kw5v-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function jf({loading:e=!1,placeholderText:t,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,groupMetadata:u,showItemDividers:v,className:b,...f}){const[h,m]=Ut(n,void 0,""),p=o((e=>{const r=e.target.value;i(r,e),m(r)}),[i,m]),y=l(null),x=l(null),w=ct(d),C=l(),k=ro(),E=ro(),B=o((e=>{if("Enter"===e.key&&C.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);C.current.dispatchEvent(r)}}),[C]);return Uc({containerRef:x,bindKeys:Ot.ArrowVertical|Ot.PageUpDown,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:w,onActiveDescendantChanged:(e,r,t)=>{C.current=e,e&&y.current&&t&&Wt(e,y.current,Lf)}},[e]),a((()=>{C.current&&y.current&&Wt(C.current,y.current,{...Lf,behavior:"auto"})}),[c]),Bf(y),Af(c,x,w),r.createElement(ho,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:b,"data-testid":"filtered-action-list"},r.createElement(Of,null,r.createElement(Ju,Mf({ref:w,block:!0,width:"auto",color:"fg.default",value:h,onChange:p,onKeyPress:B,placeholder:t,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":k,"aria-label":t,"aria-describedby":E},s))),r.createElement(Lo,{id:E},"Items will be filtered as you type"),r.createElement(ho,{ref:y,overflow:"auto"},e?r.createElement(ho,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Ho,null)):r.createElement(cu,Mf({ref:x,showDividers:v},f,{role:"listbox",id:k}),null!=u&&u.length?u.map(((e,t)=>{var o,a;return r.createElement(cu.Group,{key:t},r.createElement(cu.GroupHeading,{variant:null!==(o=e.header)&&void 0!==o&&o.variant?e.header.variant:void 0},null!==(a=e.header)&&void 0!==a&&a.title?e.header.title:`Group ${e.groupId}`),function(e){const r=[];for(const t of c)t.groupId===e&&r.push(t);return r}(e.groupId).map(((e,t)=>r.createElement(Rf,Mf({key:t},e,{renderItem:f.renderItem})))))})):c.map(((e,t)=>r.createElement(Rf,Mf({key:t},e,{renderItem:f.renderItem})))))))}function Rf(e){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:t,description:o,descriptionVariant:a,text:n,trailingVisual:l,leadingVisual:i,trailingText:c,trailingIcon:s,onAction:d,children:g,...u}=e;return r.createElement(cu.Item,Mf({role:"option",onSelect:r=>{"function"==typeof d&&d(e,r)},"data-id":t},u),i?r.createElement(cu.LeadingVisual,null,r.createElement(i,null)):null,g,n,o?r.createElement(cu.Description,{variant:a},o):null,l?r.createElement(cu.TrailingVisual,null,"string"!=typeof l&&_n.isValidElementType(l)?r.createElement(l,null):l):s||c?r.createElement(cu.TrailingVisual,null,c,s&&r.createElement(s,null)):null)}function zf(e){return bo("primer_react_select_panel_with_modern_action_list")?r.createElement(jf,e):r.createElement(_f,e)}jf.displayName="FilteredActionList",Rf.displayName="MappedActionListItem",jf.displayName="FilteredActionList",zf.displayName="FilteredActionList";const Pf=r.createContext(null);function Vf(){const e=r.useContext(Pf);if(!e)throw new Error("useLiveRegion() must be used within a <LiveRegion>");return e}function Df({children:e}){const[t,o]=r.useState(""),a=r.useMemo((()=>({announce:o,message:t})),[t]);return r.createElement(Pf.Provider,{value:a},e)}function Hf(){const e=Vf();return r.createElement(Lo,{role:"status","aria-live":"polite","aria-atomic":!0},e.message)}function Ff({value:e}){const t=Vf(),o=r.useRef(t),a=r.useRef(!1);return r.useEffect((()=>{o.current=t}),[t]),r.useEffect((()=>{if(!0!==a.current)return;const r=setTimeout((()=>{o.current.announce(e)}),750);return()=>{clearTimeout(r)}}),[e]),r.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),null}Df.displayName="LiveRegion",Hf.displayName="LiveRegionOutlet";var Wf="prc_Wrapper_43Iz8",$f="prc_Content_rbAGw",Zf="prc_Title_-CZN1",Kf="prc_Subtitle_tMSzu",Gf="prc_Footer_78rgp",qf="prc_FilteredActionList_wzS7m";function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Uf.apply(null,arguments)}function Yf(e){return Array.isArray(e)}const Xf={disabled:!0},Qf=(e,r)=>void 0!==e.id?e.id===r.id:e===r,Jf=(e,r)=>e.some((e=>Qf(e,r)));function eh({open:e,onOpenChange:a,renderAnchor:n=e=>{const{children:t,...o}=e;return r.createElement(On,Uf({trailingAction:Gc},o),t)},anchorRef:l,placeholder:i,placeholderText:c="Filter items",inputLabel:s=c,selected:d,title:g=(Yf(d)?"Select items":"Select an item"),subtitle:u,onSelectedChange:v,filterValue:b,onFilterChange:f,items:h,footer:m,textInputProps:p,overlayProps:y,sx:x,className:w,id:C,...k}){const E=ro(),B=ro(),[T,N]=Ut(b,void 0,""),S=o(((e,r)=>{f(e,r),N(e)}),[f,N]),_=bo("primer_react_css_modules_team"),I=ct(l),A=o((e=>a(!0,e)),[a]),M=o((e=>{a(!1,e)}),[a]),L=t((()=>{if(null===n)return null;const e=Array.isArray(d)?d:[...d?[d]:[]];return r=>n({...r,children:e.length?e.map((e=>e.text)).join(", "):i})}),[i,n,d]),O=t((()=>h.map((e=>{const r=Yf(d)?Jf(d,e):d===e;return{...e,role:"option",selected:"selected"in e&&void 0===e.selected?void 0:r,onAction:(r,t)=>{var o;if(null===(o=e.onAction)||void 0===o||o.call(e,r,t),t.defaultPrevented)return;if(Yf(d)){const r=d.filter((r=>!Qf(r,e))),t=Jf(d,e)?r:[...r,e];return void v(t)}v(e===d?void 0:e),M("selection")}}}))),[M,v,h,d]),j=r.useRef(null),R={initialFocusRef:j},z=t((()=>({sx:{m:2},contrast:!0,leadingVisual:Zc,"aria-label":s,...p})),[s,p]),P=bo("primer_react_select_panel_with_modern_action_list");return r.createElement(Df,null,r.createElement(pu,{renderAnchor:L,anchorRef:I,open:e,onOpen:A,onClose:M,overlayProps:{role:"dialog","aria-labelledby":E,"aria-describedby":u?B:void 0,...y},focusTrapSettings:R,focusZoneSettings:Xf,anchorId:C},r.createElement(Hf,null),P?null:r.createElement(Ff,{value:""===T?"Showing all items":h.length<=0?"No matching items":`${h.length} matching ${1===h.length?"item":"items"}`}),r.createElement(ho,{sx:_?void 0:{display:"flex",flexDirection:"column",height:"inherit",maxHeight:"inherit"},className:_?Wf:void 0},r.createElement(ho,{sx:_?void 0:{pt:2,px:3},className:_?$f:void 0},r.createElement(Ud,{as:"h1",id:E,sx:_?void 0:{fontSize:1},className:_?Zf:void 0},g),u?r.createElement(ho,{id:B,sx:_?void 0:{fontSize:0,color:"fg.muted"},className:_?Kf:void 0},u):null),r.createElement(zf,Uf({filterValue:T,onFilterChange:S,placeholderText:c},k,{role:"listbox","aria-labelledby":k["aria-label"]?void 0:E,"aria-multiselectable":Yf(d)?"true":"false",selectionVariant:Yf(d)?"multiple":"single",items:O,textInputProps:z,inputRef:j,sx:_?x:{...x,height:"inherit",maxHeight:"inherit"},className:_?Gr(w,qf):w})),m&&r.createElement(ho,{sx:_?void 0:{display:"flex",borderTop:"1px solid",borderColor:"border.default",padding:2},className:_?Gf:void 0},m))))}eh.displayName="SelectPanel",eh.displayName="SelectPanel";var rh=G(be,Q,X,U,J,oe,ne,ie,re,fe,Ne,Se,_e),th=new RegExp("^("+rh.propNames.join("|")+")$"),oh="prc_TokenBase_PfQzJ";function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ah.apply(null,arguments)}const nh={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},lh="medium",ih=({as:e="span",onClick:r,onFocus:t,tabIndex:o=-1,disabled:a})=>!a&&Boolean(t||r||o>-1||["a","button"].includes(e)),ch=Te({prop:"size",variants:{small:{fontSize:0,height:nh.small,lineHeight:nh.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:nh.medium,lineHeight:nh.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:nh.large,lineHeight:nh.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:nh.xlarge,lineHeight:nh.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),sh="primer_react_css_modules_team",dh=So(sh,"span",p.span.withConfig({displayName:"TokenBase__StyledTokenBase",componentId:"sc-1ju9l7y-0"})(["align-items:center;border-radius:999px;cursor:",";display:inline-flex;font-weight:",";font-family:inherit;text-decoration:none;position:relative;white-space:nowrap;"," ",""],(e=>ih(e)?"pointer":"auto"),Wr("fontWeights.bold"),ch,fo)),gh=r.forwardRef((({onRemove:e,onKeyDown:t,id:o,className:a,size:n=lh,...l},i)=>bo(sh)?r.createElement(dh,ah({onKeyDown:r=>{t&&t(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},className:Gr(oh,a),"data-cursor-is-interactive":ih(l),"data-size":n,id:null==o?void 0:o.toString()},l,{ref:i})):r.createElement(dh,ah({onKeyDown:r=>{t&&t(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},className:a,id:null==o?void 0:o.toString(),size:n},l,{ref:i}))));var uh="prc_TokenButton_F4Y8h";function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vh.apply(null,arguments)}const bh="primer_react_css_modules_team",fh=Te({prop:"size",variants:{small:{height:nh.small,width:nh.small},medium:{height:nh.medium,width:nh.medium},large:{height:nh.large,width:nh.large},xlarge:{height:nh.xlarge,width:nh.xlarge}}}),hh=e=>.75*parseInt(nh[e||lh],10),mh=So(bh,"span",p.span.withConfig({displayName:"_RemoveTokenButton__StyledTokenButton",componentId:"sc-urhpr1-0"})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:",";align-self:baseline;border:0;border-radius:999px;"," &:hover,&:focus{background-color:",";}&:active{background-color:",";}"," ",""],(e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`),(e=>{switch(e.size){case"large":case"xlarge":return C(["margin-left:",";"],Wr("space.2"));default:return C(["margin-left:",";"],Wr("space.1"))}}),Wr("colors.neutral.muted"),Wr("colors.neutral.subtle"),fh,fo)),ph=({"aria-label":e,isParentInteractive:t,size:o=lh,className:a,...n})=>{delete n.children;const l=bo(bh);return r.createElement(mh,vh({as:t?"span":"button",tabIndex:t?-1:void 0,"aria-label":t?e:"Remove token",size:o,"data-size":o,className:Gr(l&&uh,a),style:l?{transform:`translate(${n.borderOffset}px, -${n.borderOffset}px)`}:{}},n),r.createElement(qc,{size:hh(o)}))};ph.displayName="RemoveTokenButton";var yh="prc_TokenTextContainer_-rlDJ";function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},xh.apply(null,arguments)}const wh="primer_react_css_modules_team",Ch=So(wh,"span",p("span").withConfig({displayName:"_TokenTextContainer__StyledTokenTextContainer",componentId:"sc-6l9eri-0"})(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;line-height:normal;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex='0']){cursor:pointer;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}}"])),kh=({children:e,...t})=>{const o=bo(wh);return r.createElement(Ch,xh({className:Gr(o&&yh)},t),e)};kh.displayName="TokenTextContainer";var Eh="prc_Token_L2-At";function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bh.apply(null,arguments)}const Th=({children:e,size:t})=>r.createElement(ho,{sx:{flexShrink:0,lineHeight:0,marginRight:t&&["large","xlarge"].includes(t)?2:1}},e);Th.displayName="LeadingVisualContainer";const Nh=u(((e,t)=>{const o=bo("primer_react_css_modules_team"),{as:a,onRemove:n,id:l,leadingVisual:i,text:c,size:s=lh,hideRemoveButton:d,href:g,onClick:u,sx:v=To,className:b,style:f,...h}=e,m=ih(e)&&Boolean(n)&&!d,p=e=>{e.stopPropagation(),n&&n()},y={as:a,href:g,onClick:u},x=tt({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!d&&n?0:void 0,...ih(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},v);return o?r.createElement(gh,Bh({onRemove:n,id:null==l?void 0:l.toString(),className:Gr(b,Eh),text:c,size:s,sx:v,"data-is-selected":e.isSelected,"data-is-remove-btn":!(d||!n)},m?{}:y,h,{ref:t,style:{borderWidth:"1px",...f}}),i?r.createElement(Th,{size:s},r.createElement(i,null)):null,r.createElement(kh,m?y:{},c,n&&r.createElement(El,null," (press backspace or delete to remove)")),!d&&n?r.createElement(ph,{borderOffset:1,onClick:p,size:s,isParentInteractive:ih(e),"aria-hidden":m?"true":"false"}):null):r.createElement(gh,Bh({onRemove:n,id:null==l?void 0:l.toString(),text:c,size:s,sx:x,className:b},m?{}:y,h,{ref:t,style:f}),i?r.createElement(Th,{size:s},r.createElement(i,null)):null,r.createElement(kh,m?y:{},c,n&&r.createElement(El,null," (press backspace or delete to remove)")),!d&&n?r.createElement(ph,{borderOffset:1,onClick:p,size:s,isParentInteractive:ih(e),"aria-hidden":m?"true":"false"}):null)}));Nh.displayName="Token";var Sh="prc_TextInputWrapper_kj1cB",_h="prc_UnstyledTextInput_F582M";function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ih.apply(null,arguments)}const Ah={small:0,medium:1,large:1,xlarge:2};function Mh({icon:e,leadingVisual:t,trailingVisual:o,loading:a,loaderPosition:n="auto",contrast:c,className:s,block:d,disabled:g,sx:u,tokens:v,onTokenRemove:b,tokenComponent:f=Nh,preventTokenWrapping:h=!1,size:m="xlarge",hideTokenRemoveButtons:p=!1,maxHeight:y,width:x,minWidth:w,maxWidth:C,validationStatus:k,variant:E,visibleTokenCount:B,style:T,...N},S){const{onBlur:_,onFocus:I,onKeyDown:A,...M}=function(e){var r={};for(var t in e)th.test(t)||(r[t]=e[t]);return r}(N),L=l(null);eo(S,L);const[O,j]=i(),[R,z]=i(Boolean(B)),{containerRef:P}=Uc({focusOutBehavior:"wrap",bindKeys:Ot.ArrowHorizontal|Ot.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!O&&0!==O)return;let t=O+1;return"next"===e&&(t+=1),"previous"===e&&(t-=1),t>v.length||t<1?L.current||void 0:null===(r=P.current)||void 0===r?void 0:r.children[t]}},[O]),V=e=>{b(e),setTimeout((()=>{var e,r;const t=null===(e=P.current)||void 0===e?void 0:e.children[O||0],o=t&&ft(t)?t:Array.from((null===(r=P.current)||void 0===r?void 0:r.children)||[]).find((e=>ft(e)));var a;o?o.focus():null===(a=L.current)||void 0===a||a.focus()}),0)},D=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!B||z(!0)}),0)},H=e=>{var r;"Escape"===e.key&&(null===(r=L.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},W=R?v.slice(0,B):v,$=a&&("leading"===n||Boolean(t&&"trailing"!==n)),Z=a&&("trailing"===n||"auto"===n&&!t),K=bo(Ou),G=r.useMemo((()=>K?{className:Gr(s,Sh),style:y?{maxHeight:y,...T}:T,sx:u}:{className:s,style:T,sx:{paddingLeft:"12px",py:"6px",...d?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...u}}),[d,s,K,y,h,T,u]);return r.createElement(Zu,Ih({block:d,contrast:c,disabled:g,hasLeadingVisual:Boolean(t||$),hasTrailingVisual:Boolean(o||Z),width:x,minWidth:w,maxWidth:C,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[m],validationStatus:k,variant:E,onClick:()=>{var e;null===(e=L.current)||void 0===e||e.focus()},"data-token-wrapping":Boolean(h||y)||void 0},G),e&&!t&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pu,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:$},"string"!=typeof t&&_n.isValidElementType(t)?r.createElement(t,null):t),r.createElement(ho,{ref:P,display:"flex",sx:{alignItems:"center",flexWrap:h?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},r.createElement(ho,{sx:{order:1,flexGrow:1}},r.createElement(Ru,Ih({ref:L,disabled:g,onFocus:e=>{I&&I(e),j(void 0),B&&z(!1)},onBlur:e=>{_&&_(e),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!B||z(!0)}),0)},onKeyDown:e=>{var r;if(A&&A(e),null!==(r=L.current)&&void 0!==r&&r.value)return;const t=v[v.length-1];"Backspace"===e.key&&t&&(V(t.id),L.current&&(L.current.value=`${t.text} `),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.select()}),0))},type:"text",sx:K?void 0:{height:"100%"},className:K?_h:void 0,"aria-invalid":"error"===k?"true":"false"},M))),W.map((({id:e,...t},o)=>{return r.createElement(f,Ih({disabled:g,key:e,onFocus:(a=o,()=>{g||j(a)}),onBlur:D,onKeyUp:H,onClick:F,isSelected:O===o,onRemove:()=>{V(e)},hideRemoveButton:g||p,size:m,tabIndex:0},t));var a})),R&&v.length-W.length?r.createElement(kl,{color:"fg.muted",fontSize:Ah[m]},"+",v.length-W.length):null),r.createElement(Pu,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:Z},"string"!=typeof o&&_n.isValidElementType(o)?r.createElement(o,null):o))}Mh.displayName="TextInputWithTokensInnerComponent";const Lh=r.forwardRef(Mh);Lh.displayName="TextInputWithTokens";var Oh="prc_TextArea_13q4j";function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jh.apply(null,arguments)}const Rh="primer_react_css_modules_ga",zh=So(Rh,"textarea",p.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-1lf8it-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;resize:both;&:focus{outline:0;}"," "," ",";"],(e=>e.resize&&C(["resize:",";"],e.resize)),(e=>e.disabled&&C(["resize:none;"])),fo)),Ph=r.forwardRef((({value:e,disabled:t,sx:o,required:a,validationStatus:n,rows:l=7,cols:i=30,resize:c="both",block:s,contrast:d,className:g,...u},v)=>{const b=bo(Rh);return r.createElement(Wu,{sx:o,validationStatus:n,disabled:t,block:s,contrast:d,className:g},r.createElement(zh,jh({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:v,disabled:t,rows:l,cols:i,className:Gr(b&&Oh,g)},u)))}));Ph.displayName="Textarea";var Vh="prc_Caption_tfuKU";function Dh({id:e,children:t,sx:o}){const a=bo(Ed),{captionId:n,disabled:l}=zb();return r.createElement(Hh,{id:null!=e?e:n,className:Gr({[Vh]:a}),"data-control-disabled":l?"":void 0,sx:o},t)}Dh.displayName="FormControlCaption";const Hh=So(Ed,kl,p(kl).withConfig({displayName:"FormControlCaption__StyledCaption",componentId:"sc-u5w2b2-0"})(["color:var(--fgColor-muted);display:block;font-size:var(--text-body-size-small);&:where([data-control-disabled]){color:var(--control-fgColor-disabled);}",""],fo));var Fh="prc_Label_bE-kK",Wh="prc_RequiredText_ztJvt";function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$h.apply(null,arguments)}function Zh({children:e,disabled:t,htmlFor:o,id:a,required:n,requiredText:l,requiredIndicator:i,visuallyHidden:c,sx:s,as:d="label",className:g,...u}){const v=bo(Ed);return r.createElement(Kh,$h({as:d,"data-control-disabled":t?"":void 0,"data-visually-hidden":c?"":void 0,htmlFor:o,id:a,className:Gr(g,{[Fh]:v}),sx:s},u),n||l?r.createElement(Gh,{className:Gr({[Wh]:v})},r.createElement("span",null,e),r.createElement("span",{"aria-hidden":!i||void 0},null!=l?l:"*")):e)}Zh.displayName="InputLabel";const Kh=So(Ed,"label",p.label.withConfig({displayName:"InputLabel__StyledLabel",componentId:"sc-l3hcqt-0"})(["align-self:flex-start;display:block;color:var(--fgColor-default);cursor:pointer;font-weight:600;font-size:var(--text-body-size-medium);&:where([data-control-disabled]){color:var(--fgColor-muted);cursor:not-allowed;}&:where([data-visually-hidden]){border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}",""],fo)),Gh=So(Ed,"span",p.span.withConfig({displayName:"InputLabel__StyledRequiredText",componentId:"sc-l3hcqt-1"})(["display:flex;column-gap:var(--base-size-4);"])),qh=({as:e,children:t,htmlFor:o,id:a,visuallyHidden:n,requiredIndicator:l=!0,requiredText:i,sx:c,className:s,...d})=>{const{disabled:g,id:u,required:v}=zb(),b="legend"===e||"span"===e?{as:e,id:a,className:s,visuallyHidden:n,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d}:{as:e,id:a,className:s,visuallyHidden:n,htmlFor:o||u,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d};return r.createElement(Zh,b,t)};qh.displayName="FormControlLabel";const Uh=({children:e,sx:t})=>{const{disabled:o,captionId:a}=zb();return r.createElement(Yh,{"data-control-disabled":o?"":void 0,"data-has-caption":a?"":void 0,sx:t},e)};Uh.displayName="FormControlLeadingVisual";const Yh=p.div.withConfig({displayName:"FormControlLeadingVisual__StyledLeadingVisual",componentId:"sc-1c26i0t-0"})(["--leadingVisual-size:",";color:var(--fgColor-default);margin-inline-start:",";&:where([data-control-disabled]){color:var(--fgColor-muted);}& > *{min-width:var(--leadingVisual-size);min-height:var(--leadingVisual-size);fill:currentColor;}&:where([data-has-caption]){--leadingVisual-size:",";}",""],Wr("fontSizes.2"),Wr("space.2"),Wr("fontSizes.4"),fo),Xh=({children:e,variant:t,sx:o,id:a})=>{const{validationMessageId:n}=zb();return r.createElement(_d,{validationStatus:t,id:a||n||"",sx:o},e)};Xh.displayName="FormControlValidation";var Qh="prc_ControlHorizontalLayout_GkYZF",Jh="prc_ControlVerticalLayout_wOp8f",em="prc_ControlChoiceInputs_VxfAy",rm="prc_LabelContainer_lwQsw",tm="prc_LeadingVisual_fEyC5";const om=r.forwardRef((({children:e,disabled:t,layout:o="vertical",id:a,required:n,sx:l,className:i},c)=>{var s,d;const u=bo(Ed),[v,b]=ai(e,{caption:Dh,label:qh,leadingVisual:Uh,validation:Xh}),f=[bv,Fb,Zd,Jb,Ju,Lh,Ph,eh],h=g(od).disabled||t,m=ro(a),p=v.validation?`${m}-validationMessage`:void 0,y=v.caption?`${m}-caption`:void 0,x=null===(s=v.validation)||void 0===s?void 0:s.props.variant,w=b.find((e=>f.some((t=>r.isValidElement(e)&&e.type===t)))),C=(r.isValidElement(w)&&w.props,r.isValidElement(w)&&(w.type===Fb||w.type===Zd)),k=r.isValidElement(w)&&w.type===Zd;v.label||console.error(`The input field with the id ${m} MUST have a FormControl.Label child.\n\nIf you want to hide the label, pass the 'visuallyHidden' prop to the FormControl.Label component.`);const E=null===(d=v.label)||void 0===d?void 0:d.props.visuallyHidden;return r.createElement(Rb,{value:{captionId:y,disabled:h,id:m,required:n,validationMessageId:p}},C||"horizontal"===o?r.createElement(am,{ref:c,"data-has-leading-visual":v.leadingVisual?"":void 0,sx:l,className:Gr(i,{[Qh]:u})},r.createElement(nm,{className:em},r.isValidElement(w)?r.cloneElement(w,{id:m,disabled:h,required:n&&!k,"aria-describedby":y}):null,b.filter((e=>r.isValidElement(e)&&![Fb,Zd].some((r=>e.type===r))))),v.leadingVisual?r.createElement(im,{className:Gr({[tm]:u}),"data-disabled":h?"":void 0,"data-has-caption":v.caption?"":void 0},v.leadingVisual):null,r.createElement(lm,{className:rm},v.label,v.caption)):r.createElement(ho,{ref:c,"data-has-label":E?void 0:"",display:"flex",flexDirection:"column",alignItems:"flex-start",sx:u?l:{...E?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l},className:Gr(i,{[Jh]:u})},v.label,r.isValidElement(w)&&r.cloneElement(w,Object.assign({id:m,required:n,disabled:h,validationStatus:x,"aria-describedby":[p,y].filter(Boolean).join(" ")},w.props)),b.filter((e=>r.isValidElement(e)&&!f.some((r=>e.type===r)))),v.validation?r.createElement(td,{show:!0},v.validation):null,v.caption))})),am=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledHorizontalLayout",componentId:"sc-1t6d2k4-0"})(["display:flex;&:where([data-has-leading-visual]){align-items:center;}",""],fo)),nm=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledChoiceInputs",componentId:"sc-1t6d2k4-1"})(["> input{margin-left:0;margin-right:0;}"])),lm=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledLabelContainer",componentId:"sc-1t6d2k4-2"})(["> *{padding-left:var(--stack-gap-condensed);}> label{font-weight:var(--base-text-weight-normal);}"])),im=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledLeadingVisual",componentId:"sc-1t6d2k4-3"})(["color:var(--fgColor-default);margin-left:var(--base-size-8);&:where([data-disabled]){color:var(--fgColor-muted);}> *{fill:currentColor;min-width:var(--text-body-size-large);min-height:var(--text-body-size-large);}> *:where([data-has-caption]){min-width:var(--base-size-24);min-height:var(--base-size-24);}"]));var cm=Object.assign(om,{Caption:Dh,Label:qh,LeadingVisual:Uh,Validation:Xh});function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sm.apply(null,arguments)}const dm=({children:e,disabled:t,onChange:o,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===cm)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Fb)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=qt(l);return r.createElement(Vb.Provider,{value:{disabled:t,onChange:e=>{o&&((e=>{const{value:r,checked:t}=e.currentTarget;c(t?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),o(i.current||[],e))}}},r.createElement(zd,sm({disabled:t},a),e))};dm.displayName="CheckboxGroup";var gm=Object.assign(dm,{Caption:gd,Label:kd,Validation:Ld});function um(){return um=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},um.apply(null,arguments)}const vm=p(r.forwardRef(((e,t)=>{const{icon:o,...a}=e;return r.createElement(o,um({},a,{ref:t}))}))).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>fo({sx:{color:e,...r}})));const bm={small:56,medium:96,large:128},fm=p.div.withConfig({displayName:"CircleBadge",componentId:"sc-nywehb-0"})(["display:",";align-items:center;justify-content:center;background-color:",";border-radius:50%;box-shadow:",";",";",";"],(({inline:e=!1})=>e?"inline-flex":"flex"),Wr("colors.canvas.default"),Wr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const t=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:bm[r];return{width:t,height:t}}),fo),hm=p(vm).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);hm.displayName="CircleBadge.Icon";var mm=Object.assign(fm,{Icon:hm}),pm="prc_Details_XJobb";function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ym.apply(null,arguments)}const xm=r.forwardRef((({className:e,children:t,sx:n=To,...l},c)=>{const s=r.useRef(null),d=function(...e){return o((r=>{for(const t of e)"function"==typeof t?t(r):t&&(t.current=r)}),e)}(c,s),[g,u]=i(!1);return a((()=>{const{current:e}=s;if(!e)return;const r=()=>{const r=e.querySelector("summary:not([data-default-summary])");u(!!r)};r();const t=new MutationObserver((()=>{r()}));return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect()}}),[]),n!==To?r.createElement(ho,ym({as:"details",className:Gr(e,pm)},l,{sx:n,ref:d}),!g&&r.createElement(Cm.Summary,{"data-default-summary":!0},"See Details"),t):r.createElement("details",ym({className:Gr(e,pm)},l,{ref:d}),!g&&r.createElement(Cm.Summary,{"data-default-summary":!0},"See Details"),t)}));function wm({as:e,children:t,...o}){const a=null!=e?e:"summary";return r.createElement(a,ym({as:"summary"===a?null:"summary"},o),t)}xm.displayName="Details",wm.displayName="Summary",wm.displayName="Summary";const Cm=Object.assign(xm,{Summary:wm});function km(){return km=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},km.apply(null,arguments)}const Em=Te({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),Bm=p.div.withConfig({displayName:"Flash__StyledFlash",componentId:"sc-hzrzfc-0"})(["position:relative;color:",";padding:",";border-style:solid;border-width:",";border-radius:",";margin-top:",";p:last-child{margin-bottom:0;}svg{margin-right:",";}",";",";"],Wr("colors.fg.default"),Wr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Wr("radii.2")),(e=>e.full?"-1px":"0"),Wr("space.2"),Em,fo),Tm=r.forwardRef((function({as:e,variant:t="default",...o},a){return r.createElement(Bm,km({ref:a,as:e,variant:t},o))}));var Nm="prc_Header_RoCS8",Sm="prc_HeaderItem_0wRcu",_m="prc_HeaderLink_2Q6pd";function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Im.apply(null,arguments)}const Am="primer_react_css_modules_ga",Mm=So(Am,"header",p.header.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;overflow:auto;",";"],Wr("space.3"),Wr("fontSizes.1"),Wr("lineHeights.default"),Wr("colors.header.text"),Wr("colors.header.bg"),fo)),Lm=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(Am);return r.createElement(Mm,Im({ref:a,className:Gr(t,{[Nm]:n})},o),e)}));Lm.displayName="Header";const Om=So(Am,"div",p.div.withConfig({displayName:"Header__StyledHeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Wr("space.3"),(({full:e})=>e&&C(["flex:auto;"])),fo)),jm=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(Am);return r.createElement(Om,Im({ref:a,className:Gr(t,n&&Sm),"data-full":o.full},o),e)}));jm.displayName="Header.Item";const Rm=So(Am,"a",p.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__StyledHeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Wr("fontWeights.bold"),Wr("colors.header.logo"),Wr("colors.header.text"),fo)),zm=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(Am);return r.createElement(Rm,Im({ref:a,className:Gr(t,n&&_m)},o),e)}));zm.displayName="Header.Link";var Pm=Object.assign(Lm,{Link:zm,Item:jm}),Vm="prc_Label_-LG6X";function Dm(){return Dm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dm.apply(null,arguments)}const Hm=r.forwardRef((function({as:e,size:t="small",variant:o="default",className:a,...n},l){const i=e||"span";return n.sx?r.createElement(ho,Dm({as:i,className:Gr(a,Vm),"data-size":t,"data-variant":o,ref:l},n)):r.createElement(i,Dm({className:Gr(a,Vm),"data-size":t,"data-variant":o},n))}));function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fm.apply(null,arguments)}const Wm=p.div.withConfig({displayName:"LabelGroup__StyledLabelGroupContainer",componentId:"sc-6tqg8q-0"})(["display:flex;flex-wrap:nowrap;gap:",";line-height:1;max-width:100%;overflow:hidden;&[data-overflow='inline']{flex-wrap:wrap;}&[data-list]{padding-inline-start:0;margin-block-start:0;margin-block-end:0;list-style-type:none;}",";"],Wr("space.1"),fo),$m=p.div.withConfig({displayName:"LabelGroup__ItemWrapper",componentId:"sc-6tqg8q-1"})(["display:flex;align-items:center;min-height:28px;&.ItemWrapper--hidden{order:9999;pointer-events:none;visibility:hidden;}"]),Zm=({collapseButtonRef:e,collapseInlineExpandedChildren:t,expandButtonRef:o,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l})=>n?r.createElement(On,{ref:e,onClick:t,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(On,{ref:o,variant:"invisible",size:"small",onClick:l},r.createElement(El,null,"Show +",a.length," more"),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,Km=({children:e,closeOverflowOverlay:t,expandButtonRef:o,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c})=>a.length?r.createElement(pu,{open:n,onOpen:l,onClose:t,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:o,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>r.createElement(On,Fm({variant:"invisible",size:"small"},e,{ref:o}),r.createElement(El,null,"Show +",a.length," more"),r.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},r.createElement(ho,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},r.createElement(ho,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),r.createElement(Yl,{onClick:t,icon:qc,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,Gm=({children:e,visibleChildCount:t,overflowStyle:o="overlay",sx:a,as:n="ul"})=>{const l=r.useRef(null),i=r.useRef(null),c=r.useRef(void 0),[s,d]=r.useState({}),[g,u]=r.useState(!1),[v,b]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:f}=io(),h=parseInt(Wr("space.2")(f),10),m=Object.keys(s).filter((e=>!s[e])),p=m.length&&"overlay"===o?((e,r,t)=>{var o;return t+e.right-((null===(o=r.current)||void 0===o?void 0:o.getBoundingClientRect().left)||0)})(v,l,h):void 0,y=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===v.width&&r.right===v.right||b(r),y.current=e}}),[v]),x=r.useCallback((e=>{var r;const t=(null===(r=l.current)||void 0===r?void 0:r.children)||[],o={};for(const r of t){const t=r.getAttribute("data-index");t&&(o[t]=parseInt(t,10)<e)}d(o)}),[]),w=r.useCallback((()=>u(!0)),[u]),C=r.useCallback((()=>{u(!1)}),[u]),k=r.useCallback((()=>{u(!1),t&&"number"==typeof t&&x(t),setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),10)}),[y,x,t]),E=r.useCallback((()=>{d({}),u(!0)}),[d,u]);r.useEffect((()=>{if(t&&!g){if("auto"===t){const r=new IntersectionObserver((e=>{const r={};for(const t of e){const e=t.target.getAttribute("data-index");e&&(r[e]=t.isIntersecting)}d((e=>({...e,...r})))}),{root:l.current,rootMargin:`0px -${v.width}px 0px 0px`,threshold:1});for(const t of(null===(e=l.current)||void 0===e?void 0:e.children)||[]){var e;t.getAttribute("data-index")&&r.observe(t)}return()=>r.disconnect()}x(t)}}),[v,t,x,g]),r.useEffect((()=>{"overlay"!==o&&m.length&&(c.current=parseInt(m[0],10))}),[m,o,g]),r.useEffect((()=>{if("overlay"===o)return;const e=document.querySelector(`[data-index="${c.current}"]`),r=e?bt(e):null;var t;g&&(r?r.focus():null===(t=i.current)||void 0===t||t.focus())}),[o,g]);const B="ul"===n||"ol"===n,T=B?"li":r.Fragment;return t?r.createElement(Wm,{ref:l,"data-overflow":"inline"===o&&g?"inline":void 0,"data-list":B||void 0,sx:a,as:n},r.Children.map(e,((e,t)=>r.createElement($m,{"data-index":t,className:m.includes(t.toString())?"ItemWrapper--hidden":void 0,as:B?"li":"span",key:t},e))),r.createElement(T,null,"inline"===o?r.createElement(Zm,{collapseButtonRef:i,collapseInlineExpandedChildren:k,expandButtonRef:y,hiddenItemIds:m,isOverflowShown:g,showAllTokensInline:E,totalLength:r.Children.toArray(e).length}):r.createElement(Km,{closeOverflowOverlay:C,expandButtonRef:y,hiddenItemIds:m,isOverflowShown:g,openOverflowOverlay:w,overlayPaddingPx:h,overlayWidth:p,totalLength:r.Children.toArray(e).length},e))):r.createElement(Wm,{"data-overflow":"inline","data-list":B||void 0,sx:a,as:n},B?r.Children.map(e,((e,t)=>r.createElement("li",{key:t},e))):e)};function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qm.apply(null,arguments)}Gm.displayName="LabelGroup";const Um=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:1,fontWeight:e>0?"normal":null}),Ym=So("primer_react_css_modules_team","nav",p.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(fo)),Xm=r.forwardRef((({children:e,...t},o)=>r.createElement(Ym,qm({},t,{ref:o}),r.createElement(Kd.Provider,{value:{container:"NavList"}},r.createElement(cu,null,e)))));Xm.displayName="NavList";const Qm=r.forwardRef((({"aria-current":e,children:t,defaultOpen:o,sx:a=To,...n},l)=>{const i=bo("primer_react_css_modules_team"),{depth:c}=r.useContext(rp),s=r.Children.toArray(t).find((e=>m(e)&&e.type===tp)),d=r.Children.toArray(t).filter((e=>!m(e)||e.type!==tp&&e.type!==lp));return!m(s)&&o&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),s&&m(s)?r.createElement(ep,{subNav:s,depth:c,defaultOpen:o,sx:a,style:{"--subitem-depth":c}},d):r.createElement(cu.LinkItem,qm({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:i?void 0:tt(Um(c),a),style:{"--subitem-depth":c}},n),t)}));Qm.displayName="NavList.Item";const Jm=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function ep({children:e,subNav:t,depth:o,defaultOpen:a,style:n={},sx:l=To}){var i;const c=ro(),s=ro(),[d,g]=r.useState(null!==(i=a||null)&&void 0!==i&&i),u=r.useRef(null),[v,b]=r.useState(!1);$t((()=>{if(u.current){u.current.querySelector("[aria-current]:not([aria-current=false])")&&(b(!0),g(!0))}}),[t,c]);return bo("primer_react_css_modules_team")?l!==To?r.createElement(Jm.Provider,{value:{buttonId:c,subNavId:s,isOpen:d}},r.createElement(cu.Item,{id:c,"aria-expanded":d,"aria-controls":s,active:!d&&v,onClick:()=>g((e=>!e)),style:n,sx:l},e,r.createElement(cu.TrailingVisual,null,r.createElement(Ic,{className:fg})),r.createElement(Qg,null,r.cloneElement(t,{ref:u})))):r.createElement(Jm.Provider,{value:{buttonId:c,subNavId:s,isOpen:d}},r.createElement(cu.Item,{id:c,"aria-expanded":d,"aria-controls":s,active:!d&&v,onClick:()=>g((e=>!e)),style:n},e,r.createElement(cu.TrailingVisual,null,r.createElement(Ic,{className:fg})),r.createElement(Qg,null,r.cloneElement(t,{ref:u})))):r.createElement(Jm.Provider,{value:{buttonId:c,subNavId:s,isOpen:d}},r.createElement(ho,{as:"li","aria-labelledby":c,sx:{listStyle:"none"}},r.createElement(cu.Item,{as:"button",id:c,"aria-expanded":d,"aria-controls":s,active:!d&&v,onClick:()=>g((e=>!e)),sx:tt({...Um(o),fontWeight:v?"bold":null},l)},e,r.createElement(cu.TrailingVisual,null,r.createElement(vm,{icon:Ic,sx:{transform:d?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:u},t)))}ep.displayName="ItemWithSubNav";const rp=r.createContext({depth:0}),tp=r.forwardRef((({children:e,sx:t=To},o)=>{const{buttonId:a,subNavId:n,isOpen:l}=r.useContext(Jm),{depth:i}=r.useContext(rp),c=bo("primer_react_css_modules_team");return a&&n||console.error("NavList.SubNav must be a child of a NavList.Item"),i>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):c?t!==To?r.createElement(rp.Provider,{value:{depth:i+1}},r.createElement(ho,{as:"ul",id:n,"aria-labelledby":a,className:hg,ref:o,sx:t},e)):r.createElement(rp.Provider,{value:{depth:i+1}},r.createElement("ul",{className:hg,id:n,"aria-labelledby":a,ref:o},e)):r.createElement(rp.Provider,{value:{depth:i+1}},r.createElement(ho,{as:"ul",id:n,"aria-labelledby":a,sx:tt({padding:0,margin:0,display:l?"block":"none"},t)},e))}));tp.displayName="NavList.SubNav";const op=cu.LeadingVisual;op.displayName="NavList.LeadingVisual";const ap=cu.TrailingVisual;ap.displayName="NavList.TrailingVisual";const np=cu.Divider;np.displayName="NavList.Divider";const lp=cu.TrailingAction;lp.displayName="NavList.TrailingAction";const ip={},cp=({title:e,children:t,sx:o=ip,...a})=>bo("primer_react_css_modules_team")?o!==ip?r.createElement(ho,{sx:o,as:"li","data-component":"ActionList.Group"},e?r.createElement(cu.GroupHeading,null,e):null,t):r.createElement(r.Fragment,null,r.createElement(cu.Divider,null),r.createElement(cu.Group,a,e?r.createElement(cu.GroupHeading,{as:"h3","data-component":"ActionList.GroupHeading"},e):null,t)):r.createElement(r.Fragment,null,r.createElement(cu.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(cu.Group,qm({},a,{sx:tt(o,{':has([data-component="GroupHeadingWrap"] + ul > [data-component="GroupHeadingWrap"])':{'& > [data-component="GroupHeadingWrap"]':{display:"none"}}})}),e?r.createElement(cu.GroupHeading,{as:"h3","data-component":"ActionList.GroupHeading"},e):null,t));cp.displayName="NavList.Group";const sp=({as:e="h3",sx:t=To,...o})=>r.createElement(cu.GroupHeading,qm({as:e,sx:tt({"> a {":{color:"var(--fgColor-default)",textDecoration:"inherit",":hover":{textDecoration:"underline"}}},t),"data-component":"NavList.GroupHeading",headingWrapElement:"li"},o));sp.displayName="GroupHeading";const dp=Object.assign(Xm,{Item:Qm,SubNav:tp,LeadingVisual:op,TrailingVisual:ap,TrailingAction:lp,Divider:np,Group:cp,GroupHeading:sp});var gp="prc_Page_yoEQf",up="prc_PaginationContainer_yNDPO",vp="prc_TablePaginationSteps_RRjtg";function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bp.apply(null,arguments)}const fp="primer_react_css_modules_team",hp=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(ri),mp=So(fp,"a",p.a.withConfig({displayName:"Pagination__Page",componentId:"sc-cp45c9-0"})(["display:inline-block;min-width:32px;height:32px;padding:0.5rem calc((2rem - 1.25rem) / 2);font-style:normal;line-height:1;color:",";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:",";&:last-child{margin-right:0;}background-color:transparent;border-radius:",";transition:background-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;background-color:",";outline:0;transition-duration:0.1s;}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-current]:focus-visible{outline:2px solid ",";outline-offset:-2px;box-shadow:inset 0 0 0 3px ",";}&[aria-disabled],&[aria-disabled]:hover{margin:0 2px;&:first-child{margin-right:6px;}}&[aria-disabled],&[aria-disabled]:hover,&[role='presentation'],&[role='presentation']:hover{color:",";cursor:default;background-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:",";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:",";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"],Wr("colors.fg.default"),Wr("space.1"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.accent.emphasis"),Wr("colors.border.muted"),Wr("colors.accent.fg"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),Wr("colors.fg.onEmphasis"),Wr("colors.primer.fg.disabled"),Wr("space.1"),Wr("space.1")));function pp({theme:e,pageCount:t,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}){const s=r.useCallback((e=>r=>a(r,e)),[a]),d=bo(fp),g=r.useMemo((()=>function(e,r,t,o,a){const n=[];if(t){const t=[],l=r=>{r>=1&&r<=e&&t.push(r)};let i=r-a,c=r+a;if(i<1&&c>e)i=1,c=e;else if(i<1)for(;i<1;)i++,c++;else if(c>e)for(;c>e;)i--,c--;for(let r=1;r<=o;r++){const t=e-(r-1);r>=i?c++:l(r),t<=c?i--:l(t)}for(let e=i;e<=c;e++)l(e);const s=t.slice().sort(((e,r)=>e-r)).filter(((e,r,t)=>!r||e!==t[r-1]));for(let e=0;e<s.length;e++){const t=s[e],o=t===r,a=t-s[e-1],l=-1!=t-s[e+1];0===e?(1!==t&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:t,selected:o,precedesBreak:l})):1===a?n.push({type:"NUM",num:t,selected:o,precedesBreak:l}):(n.push({type:"BREAK",num:t-1}),n.push({type:"NUM",num:t,selected:o,precedesBreak:!1}))}const d=n[n.length-1];"NUM"===d.type&&d.num!==e&&n.push({type:"BREAK",num:e})}const l={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,l]}(t,o,!!i,l,c)),[t,o,i,l,c]),u=r.useMemo((()=>g.map((t=>{const{props:o,key:a,content:l}=function(e,r,t){const o={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(o,{"aria-hidden":"true"}):Object.assign(o,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:t});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(o,{"aria-hidden":"true"}):Object.assign(o,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:t});break;case"NUM":n=`page-${e.num}`,a=String(e.num),Object.assign(o,{href:r(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:t,"aria-current":e.selected?"page":void 0});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(o,{as:"span",role:"presentation"})}return{props:o,key:n,content:a}}(t,n,s(t.num));return r.createElement(mp,bp({},o,{key:a,theme:e,className:Gr(d&&gp)}),l)}))),[g,n,s,e,d]);return u}const yp=So(fp,"nav",p.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(ri).map((e=>`\n @media (${ri[e]}) {\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:not(:first-child):not(:last-child) {\n display: none;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:first-child {\n margin-inline-end: 0;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:last-child {\n margin-inline-start: 0;\n }\n }\n `)).join(""),fo));function xp({theme:e,pageCount:t,currentPage:o,onPageChange:a=Cp,hrefBuilder:n=wp,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...s}){const d=pp({theme:e,pageCount:t,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}),g=bo(fp);return r.createElement(yp,bp({className:Gr(g&&up),"aria-label":"Pagination"},s,{theme:e}),r.createElement(ho,{display:"inline-block",theme:e,className:vp,"data-hidden-viewport-ranges":hp(i).join(" ")},d))}function wp(e){return`#${e}`}function Cp(){}function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},kp.apply(null,arguments)}function Ep(e){const t=r.useContext(k),{bg:o,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:s,...d}=e,{bg:g,backgroundColor:u,...v}=i||{},b=l||t,f=o||g||u,h={bg:o||(null==i?void 0:i.bg)||(null==i?void 0:i.backgroundColor),borderColor:n||(null==i?void 0:i.borderColor),borderWidth:a,location:c,theme:b};return r.createElement(ho,kp({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},d,{sx:{...v,"--custom-bg":Wr(`colors.${f}`)({theme:b}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${b.colors.canvas.default}, ${b.colors.canvas.default})`:void 0,position:"relative"}}),s,r.createElement(Mb,h))}xp.displayName="Pagination",Ep.displayName="PointerBox";var Bp="prc_Popover_v1ShS",Tp="prc_PopoverContent_nMzFS";function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Np.apply(null,arguments)}const Sp="primer_react_css_modules_ga",_p=p.div.attrs((({className:e,caret:r="top"})=>({className:Gr(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover__StyledPopover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),fo),Ip=So(Sp,"div",_p),Ap=r.forwardRef((function({className:e,caret:t="top",open:o,relative:a,...n},l){return bo(Sp)?r.createElement(Ip,Np({},n,{ref:l,"data-open":o?"":void 0,"data-relative":a?"":void 0,"data-caret":t,className:Gr(e,Bp)})):r.createElement(Ip,Np({},n,{className:e,caret:t,open:o,relative:a}))}));Ap.displayName="Popover";const Mp=So(Sp,"div",p.div.withConfig({displayName:"Popover__StyledPopoverContent",componentId:"sc-q9r75g-1"})(["border:1px solid ",";border-radius:",";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:",";background-color:",";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-",";margin-left:-9px;border:"," solid transparent;border-bottom-color:",";}&::after{top:-14px;margin-left:-",";border:7px solid transparent;border-bottom-color:",";}",".caret-pos--bottom &,",".caret-pos--bottom-right &,",".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-",";border-top-color:",";}&::after{bottom:-14px;border-top-color:",";}}",".caret-pos--top-right &,",".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}",".caret-pos--top-left &,",".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:",";margin-left:0;}&::after{left:calc("," + 1px);}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &,",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc(("," + 1px) * -1);}&::after{margin-top:-",";}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &{&::before{right:-",";border-left-color:",";}&::after{right:-14px;border-left-color:",";}}",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before{left:-",";border-right-color:",";}&::after{left:-14px;border-right-color:",";}}",".caret-pos--right-top &,",".caret-pos--left-top &{&::before,&::after{top:",";}}",".caret-pos--right-bottom &,",".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:",";}&::after{bottom:calc("," + 1px);}}",";"],Wr("colors.border.default"),Wr("radii.2"),Wr("space.4"),Wr("colors.canvas.overlay"),Wr("space.3"),Wr("space.2"),Wr("colors.border.default"),Wr("space.2"),Wr("colors.canvas.overlay"),_p,_p,_p,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),_p,_p,_p,_p,Wr("space.4"),Wr("space.4"),_p,_p,_p,_p,_p,_p,Wr("space.2"),Wr("space.2"),_p,_p,_p,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),_p,_p,_p,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),_p,_p,Wr("space.4"),_p,_p,Wr("space.3"),Wr("space.3"),fo)),Lp=({className:e,...t})=>bo(Sp)?r.createElement(Mp,Np({},t,{className:Gr(e,Tp)})):r.createElement(Mp,Np({},t,{className:e}));Lp.displayName="PopoverContent",Lp.displayName="Popover.Content";var Op=Object.assign(Ap,{Content:Lp}),jp="prc_ProgressBarItem_stL6O",Rp="prc_ProgressBarContainer_E-z8S";function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zp.apply(null,arguments)}const Pp=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Vp="primer_react_css_modules_ga",Dp=So(Vp,"span",p.span.withConfig({displayName:"ProgressBar__ProgressItem",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";@media (prefers-reduced-motion:no-preference){&[data-animated='true']{mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}}",";"],(e=>e.progress?`${e.progress}%`:0),(e=>Wr(`colors.${e.bg||"success.emphasis"}`)),Pp,fo)),Hp={small:"5px",large:"10px",default:"8px"},Fp=So(Vp,"span",p.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";gap:2px;"," ",";"],(e=>e.inline?"inline-flex":"flex"),Wr("colors.border.default"),Wr("radii.1"),(e=>Hp[e.barSize||"default"]),Ie,fo)),Wp=u((({progress:e,"aria-label":t,"aria-valuenow":o,"aria-valuetext":a,className:n,...l},i)=>{const c="string"==typeof e?parseInt(e,10):e,s={"aria-valuenow":null!=o?o:void 0!==c&&c>=0?Math.round(c):0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":a},d=bo(Vp),g={},u=l.bg&&l.bg.split(".");return g["--progress-width"]=e?`${e}%`:"0%",g["--progress-bg"]=u&&`var(--bgColor-${u[0]}-${u[1]})`||"var(--bgColor-success-emphasis)",r.createElement(Dp,zp({className:Gr(n,{[jp]:d})},l,{role:"progressbar","aria-label":t,ref:i,progress:e,style:d?g:void 0},s))}));Wp.displayName="ProgressBar.Item";const $p=u((({animated:e,progress:t,bg:o="success.emphasis",barSize:a="default",children:n,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,className:s,...d},g)=>{if(n&&t)throw new Error("You should pass `progress` or children, not both.");const u=r.Children.toArray(n).length,v=bo(Vp),b=v?{"data-progress-display":d.inline?"inline":"block","data-progress-bar-size":a}:{barSize:a};return r.createElement(Fp,zp({ref:g,className:Gr(s,{[Rp]:v})},b,d),u?n:r.createElement(Wp,{"data-animated":e,progress:t,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,bg:o}))}));$p.displayName="ProgressBar";const Zp=Object.assign($p,{Item:Wp});var Kp,Gp=function(e,r,t,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,t):a?a.value=t:r.set(e,t),t},qp=function(e,r,t,o){if("a"===t&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!o:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?o:"a"===t?o.call(e):o?o.value:r.get(e)};const Up="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const r=[];for(const t of e)r.push({type:"element",value:t}),r.push({type:"literal",value:", "});return r.slice(0,-1)}},Yp=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Xp={minimumIntegerDigits:2};class Qp{constructor(e,r={}){Kp.set(this,void 0);let t=String(r.style||"short");"long"!==t&&"short"!==t&&"narrow"!==t&&"digital"!==t&&(t="short");let o="digital"===t?"numeric":t;const a=r.hours||o;o="2-digit"===a?"numeric":a;const n=r.minutes||o;o="2-digit"===n?"numeric":n;const l=r.seconds||o;o="2-digit"===l?"numeric":l;const i=r.milliseconds||o;Gp(this,Kp,{locale:e,style:t,years:r.years||"digital"===t?"short":t,yearsDisplay:"always"===r.yearsDisplay?"always":"auto",months:r.months||"digital"===t?"short":t,monthsDisplay:"always"===r.monthsDisplay?"always":"auto",weeks:r.weeks||"digital"===t?"short":t,weeksDisplay:"always"===r.weeksDisplay?"always":"auto",days:r.days||"digital"===t?"short":t,daysDisplay:"always"===r.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===r.hoursDisplay||"digital"===t?"always":"auto",minutes:n,minutesDisplay:"always"===r.minutesDisplay||"digital"===t?"always":"auto",seconds:l,secondsDisplay:"always"===r.secondsDisplay||"digital"===t?"always":"auto",milliseconds:i,millisecondsDisplay:"always"===r.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return qp(this,Kp,"f")}formatToParts(e){const r=[],t=qp(this,Kp,"f"),o=t.style,a=t.locale;for(const[o,n]of Yp){const l=e[o];if("auto"===t[`${o}Display`]&&!l)continue;const i=t[o],c="2-digit"===i?Xp:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new Up(a,{type:"unit",style:"digital"===o?"short":o}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Kp=new WeakMap;const Jp=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,ey=["year","month","week","day","hour","minute","second","millisecond"];class ry{constructor(e=0,r=0,t=0,o=0,a=0,n=0,l=0,i=0){this.years=e,this.months=r,this.weeks=t,this.days=o,this.hours=a,this.minutes=n,this.seconds=l,this.milliseconds=i,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign,console.log("heyyyy")}abs(){return new ry(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(e){var r;if("string"==typeof e){const t=String(e).trim(),o=t.startsWith("-")?-1:1,a=null===(r=t.match(Jp))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*o));return a?new ry(...a):new ry}if("object"==typeof e){const{years:r,months:t,weeks:o,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new ry(r,t,o,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const t=17330976e5,o=Math.abs(ty(t,ry.from(e)).getTime()-t),a=Math.abs(ty(t,ry.from(r)).getTime()-t);return o>a?-1:o<a?1:0}toLocaleString(e,r){return new Qp(e,r).format(this)}}function ty(e,r){const t=new Date(e);return t.setFullYear(t.getFullYear()+r.years),t.setMonth(t.getMonth()+r.months),t.setDate(t.getDate()+7*r.weeks+r.days),t.setHours(t.getHours()+r.hours),t.setMinutes(t.getMinutes()+r.minutes),t.setSeconds(t.getSeconds()+r.seconds),t}function oy(e,{relativeTo:r=17330976e5}={}){if(r=new Date(r),e.blank)return e;const t=e.sign;let o=Math.abs(e.years),a=Math.abs(e.months),n=Math.abs(e.weeks),l=Math.abs(e.days),i=Math.abs(e.hours),c=Math.abs(e.minutes),s=Math.abs(e.seconds),d=Math.abs(e.milliseconds);d>=900&&(s+=Math.round(d/1e3)),(s||c||i||l||n||a||o)&&(d=0),s>=55&&(c+=Math.round(s/60)),(c||i||l||n||a||o)&&(s=0),c>=55&&(i+=Math.round(c/60)),(i||l||n||a||o)&&(c=0),l&&i>=12&&(l+=Math.round(i/24)),!l&&i>=21&&(l+=Math.round(i/24)),(l||n||a||o)&&(i=0);const g=r.getFullYear(),u=r.getMonth(),v=r.getDate();if(l>=27||o+a+l){const e=new Date(r);e.setDate(1),e.setMonth(u+a*t+1),e.setDate(0);const i=Math.max(0,v-e.getDate()),c=new Date(r);c.setFullYear(g+o*t),c.setDate(v-i),c.setMonth(u+a*t),c.setDate(v-i+l*t);const s=c.getFullYear()-r.getFullYear(),d=c.getMonth()-r.getMonth(),b=Math.abs(Math.round((Number(c)-Number(r))/864e5))+i,f=Math.abs(12*s+d);b<27?(l>=6?(n+=Math.round(l/7),l=0):l=b,a=o=0):f<11?(a=f,o=0):(a=0,o=s*t),(a||o)&&(l=0)}return o&&(a=0),n>=4&&(a+=Math.round(n/4)),(a||o)&&(n=0),l&&n&&!a&&!o&&(n+=Math.round(l/7),l=0),new ry(o*t,a*t,n*t,l*t,i*t,c*t,s*t,d*t)}var ay,ny,ly,iy,cy,sy,dy,gy,uy,vy,by,fy=function(e,r,t,o){if("a"===t&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!o:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?o:"a"===t?o.call(e):o?o.value:r.get(e)},hy=function(e,r,t,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,t):a?a.value=t:r.set(e,t),t};const my=globalThis.HTMLElement||null,py=new ry,yy=new ry(0,0,0,0,0,1);class xy extends Event{constructor(e,r,t,o){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=r,this.oldTitle=t,this.newTitle=o}}function wy(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const r=e.precision;if("second"===r)return 1e3;if("minute"===r)return 6e4}const r=Math.abs(17330976e5-e.date.getTime());return r<6e4?1e3:r<36e5?6e4:36e5}const Cy=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1,console.log("heyyyy")}observe(e){if(this.elements.has(e))return;this.elements.add(e);const r=e.date;if(r&&r.getTime()){const r=wy(e),t=17330976e5+r;t<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),r),this.time=t)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(const r of this.elements)e=Math.min(e,wy(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=17330976e5}};class ky extends my{constructor(){super(...arguments),ay.add(this),ny.set(this,!1),ly.set(this,!1),cy.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),by.set(this,null),console.log("ahhh")}static define(e="relative-time",r=customElements){return r.define(e,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return fy(this,by,"f")}set onRelativeTimeUpdated(e){fy(this,by,"f")&&this.removeEventListener("relative-time-updated",fy(this,by,"f")),hy(this,by,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("relative-time-updated",e)}get second(){const e=this.getAttribute("second");if("numeric"===e||"2-digit"===e)return e}set second(e){this.setAttribute("second",e||"")}get minute(){const e=this.getAttribute("minute");if("numeric"===e||"2-digit"===e)return e}set minute(e){this.setAttribute("minute",e||"")}get hour(){const e=this.getAttribute("hour");if("numeric"===e||"2-digit"===e)return e}set hour(e){this.setAttribute("hour",e||"")}get weekday(){const e=this.getAttribute("weekday");return"long"===e||"short"===e||"narrow"===e?e:"datetime"===this.format&&""!==e?this.formatStyle:void 0}set weekday(e){this.setAttribute("weekday",e||"")}get day(){var e;const r=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===r||"2-digit"===r)return r}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let r=this.getAttribute("month");if(""!==r)return null!=r||(r="datetime"===e?this.formatStyle:"short"),"numeric"===r||"2-digit"===r||"short"===r||"long"===r||"narrow"===r?r:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const r=this.getAttribute("year");return"numeric"===r||"2-digit"===r?r:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(e=this.date)||void 0===e?void 0:e.getUTCFullYear())?void 0:"numeric"}set year(e){this.setAttribute("year",e||"")}get timeZoneName(){const e=this.getAttribute("time-zone-name");if("long"===e||"short"===e||"shortOffset"===e||"longOffset"===e||"shortGeneric"===e||"longGeneric"===e)return e}set timeZoneName(e){this.setAttribute("time-zone-name",e||"")}get prefix(){var e;return null!==(e=this.getAttribute("prefix"))&&void 0!==e?e:"datetime"===this.format?"":"on"}set prefix(e){this.setAttribute("prefix",e)}get threshold(){const e=this.getAttribute("threshold");return e&&(r=e,Jp.test(r))?e:"P30D";var r}set threshold(e){this.setAttribute("threshold",e)}get tense(){const e=this.getAttribute("tense");return"past"===e?"past":"future"===e?"future":"auto"}set tense(e){this.setAttribute("tense",e)}get precision(){const e=this.getAttribute("precision");return ey.includes(e)?e:"micro"===this.format?"minute":"second"}set precision(e){this.setAttribute("precision",e)}get format(){const e=this.getAttribute("format");return"datetime"===e?"datetime":"relative"===e?"relative":"duration"===e?"duration":"micro"===e?"micro":"elapsed"===e?"elapsed":"auto"}set format(e){this.setAttribute("format",e)}get formatStyle(){const e=this.getAttribute("format-style");if("long"===e)return"long";if("short"===e)return"short";if("narrow"===e)return"narrow";const r=this.format;return"elapsed"===r||"micro"===r?"narrow":"datetime"===r?"short":"long"}set formatStyle(e){this.setAttribute("format-style",e)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(e){this.toggleAttribute("no-title",e)}get datetime(){return this.getAttribute("datetime")||""}set datetime(e){this.setAttribute("datetime",e)}get date(){const e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=(null==e?void 0:e.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){Cy.unobserve(this)}attributeChangedCallback(e,r,t){r!==t&&("title"===e&&hy(this,ny,null!==t&&(this.date&&fy(this,ay,"m",sy).call(this,this.date))!==t,"f"),fy(this,ly,"f")||"title"===e&&fy(this,ny,"f")||hy(this,ly,(async()=>{await Promise.resolve(),this.update(),hy(this,ly,!1,"f")})(),"f"))}update(){const e=fy(this,cy,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let t=r;const o=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!o)return void(fy(this,cy,"f").textContent=e);fy(this,ny,"f")||(t=fy(this,ay,"m",sy).call(this,o)||"",t&&!this.noTitle&&this.setAttribute("title",t));const a=function(e,r="second",t=17330976e5){const o=e.getTime()-t;if(0===o)return new ry;const a=Math.sign(o),n=Math.abs(o),l=Math.floor(n/1e3),i=Math.floor(l/60),c=Math.floor(i/60),s=Math.floor(c/24),d=Math.floor(s/30),g=Math.floor(d/12),u=ey.indexOf(r)||ey.length;return new ry(u>=0?g*a:0,u>=1?(d-12*g)*a:0,0,u>=3?(s-30*d)*a:0,u>=4?(c-24*s)*a:0,u>=5?(i-60*c)*a:0,u>=6?(l-60*i)*a:0,u>=7?(n-1e3*l)*a:0)}(o,this.precision,17330976e5),n=fy(this,ay,"m",dy).call(this,a);let l=e;l="duration"===n?fy(this,ay,"m",gy).call(this,a):"relative"===n?fy(this,ay,"m",uy).call(this,a):fy(this,ay,"m",vy).call(this,o),l?fy(this,cy,"f").textContent=l:this.shadowRoot===fy(this,cy,"f")&&this.textContent&&(fy(this,cy,"f").textContent=this.textContent),l===e&&t===r||this.dispatchEvent(new xy(e,l,r,t)),"relative"===n||"duration"===n?Cy.observe(this):Cy.unobserve(this)}}ny=new WeakMap,ly=new WeakMap,cy=new WeakMap,by=new WeakMap,ay=new WeakSet,iy=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},sy=function(e){return new Intl.DateTimeFormat(fy(this,ay,"a",iy),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},dy=function(e){const r=this.format;if("datetime"===r)return"datetime";if("duration"===r)return"duration";if("elapsed"===r)return"duration";if("micro"===r)return"duration";if(("auto"===r||"relative"===r)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const r=this.tense;if("past"===r||"future"===r)return"relative";if(1===ry.compare(e,this.threshold))return"relative"}return"datetime"},gy=function(e){const r=fy(this,ay,"a",iy),t=this.format,o=this.formatStyle,a=this.tense;let n=py;"micro"===t?(e=oy(e),n=yy,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=yy)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=n);const l=`${this.precision}sDisplay`;return e.blank?n.toLocaleString(r,{style:o,[l]:"always"}):e.abs().toLocaleString(r,{style:o})},uy=function(e){const r=new Intl.RelativeTimeFormat(fy(this,ay,"a",iy),{numeric:"auto",style:this.formatStyle}),t=this.tense;"future"===t&&1!==e.sign&&(e=py),"past"===t&&-1!==e.sign&&(e=py);const[o,a]=function(e,r){const t=oy(e,r);if(t.blank)return[0,"second"];for(const e of ey){if("millisecond"===e)continue;const r=t[`${e}s`];if(r)return[r,e]}return[0,"second"]}(e);return"second"===a&&o<10?r.format(0,"millisecond"===this.precision?"second":this.precision):r.format(o,a)},vy=function(e){const r=new Intl.DateTimeFormat(fy(this,ay,"a",iy),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${r.format(e)}`.trim()};const Ey="undefined"!=typeof globalThis?globalThis:window;console.log("ooooop");try{console.log("heyyyy"),Ey.RelativeTimeElement=ky.define()}catch(Ys){if(!(Ey.DOMException&&Ys instanceof DOMException&&"NotSupportedError"===Ys.name||Ys instanceof ReferenceError))throw Ys}function By(){return By=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},By.apply(null,arguments)}const Ty=Js(ky,"relative-time"),Ny={month:"short",day:"numeric",year:"numeric"};function Sy({date:e,datetime:t,children:o,noTitle:a,...n}){var l;return t&&(e=new Date(t)),r.createElement(Ty,By({},n,{date:e,"no-title":a?"":void 0}),o||(null===(l=e)||void 0===l?void 0:l.toLocaleDateString("en",Ny))||"")}Sy.displayName="RelativeTime";const _y="primer_react_css_modules_team",Iy={":first-child":{marginLeft:"-1px"},":last-child":{marginRight:"-1px"}},Ay={marginRight:"1px",":after":{backgroundColor:"var(--separator-color)",content:'""',position:"absolute",right:"-2px",top:2,bottom:2,width:"1px"}},My=e=>({"--segmented-control-button-inner-padding":"12px","--segmented-control-button-bg-inset":"4px","--segmented-control-outer-radius":Wr("radii.2")(e),backgroundColor:"transparent",borderColor:"transparent",borderRadius:"var(--segmented-control-outer-radius)",borderWidth:0,color:"currentColor",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",fontWeight:null!=e&&e.selected?"bold":"normal",padding:null!=e&&e.selected?0:"var(--segmented-control-button-bg-inset)",height:"100%",width:"100%",".segmentedControl-content":{alignItems:"center",backgroundColor:null!=e&&e.selected?"segmentedControl.button.bg":"transparent",borderColor:null!=e&&e.selected?"segmentedControl.button.selected.border":"transparent",borderStyle:"solid",borderWidth:1,borderRadius:null!=e&&e.selected?"var(--segmented-control-outer-radius)":"calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2)",display:"flex",height:"100%",justifyContent:"center",paddingLeft:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))",paddingRight:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))"},svg:{fill:"fg.muted"},":hover .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.hover.bg"},":active .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.active.bg"},":focus:focus-visible:not(:last-child):after":{width:0},".segmentedControl-text":{":after":{content:`"${null==e?void 0:e.children}"`,display:"block",fontWeight:"bold",height:0,overflow:"hidden",pointerEvents:"none",userSelect:"none",visibility:"hidden"}},"@media (pointer: coarse)":{":before":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}}),Ly=()=>({display:"block",position:"relative",flexGrow:1,marginTop:"-1px",marginBottom:"-1px",":not(:last-child)":Ay,":focus-within:has(:focus-visible)":{"--separator-color":"transparent"},...Iy});var Oy="prc_SegmentedControl_e7570",jy="prc_Item_7Aq6h",Ry="prc_Button_ojWXD",zy="prc_IconButton_O80Eh",Py="prc_Content_gnQ4n",Vy="prc_Text_c5gSh";function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dy.apply(null,arguments)}const Hy=So(_y,"button",p.button.withConfig({displayName:"SegmentedControlButton__SegmentedControlButtonStyled",componentId:"sc-8lkgxl-0"})(["",";",";"],Yv("-1px"),fo)),Fy=({children:e,leadingIcon:t,selected:o,sx:a=To,className:n,...l})=>{const i=bo(_y),c=i?a:tt(Ly(),a);return r.createElement(ho,{as:"li",sx:c,className:Gr(i&&jy),"data-selected":o||void 0},r.createElement(Hy,Dy({"aria-current":o,sx:i?void 0:My({selected:o,children:e}),className:Gr(i&&Ry,n),type:"button"},l),r.createElement("span",{className:Gr(i?Py:"segmentedControl-content")},t&&r.createElement(ho,{mr:1},_n.isElement(t)?t:r.createElement(t,null)),r.createElement(ho,{className:Gr(i?Vy:"segmentedControl-text"),"data-text":e},e))))};function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wy.apply(null,arguments)}Fy.displayName="SegmentedControlButton";const $y=So(_y,"button",p.button.withConfig({displayName:"SegmentedControlIconButton__SegmentedControlIconButtonStyled",componentId:"sc-oxh6a9-0"})(["",";",";"],Yv("-1px"),fo)),Zy=({"aria-label":e,icon:t,selected:o,sx:a=To,className:n,...l})=>{const i=bo(_y),c=i?a:tt({width:"32px",...Ly()},a);return r.createElement(ho,{as:"li",sx:c,className:Gr(i&&jy,n),"data-selected":o||void 0},r.createElement($y,Wy({"aria-label":e,"aria-current":o,sx:i?void 0:My({selected:o}),className:Gr(i&&Ry,i&&zy)},l),r.createElement("span",{className:Gr(i?Py:"segmentedControl-content")},_n.isElement(t)?t:r.createElement(t,null))))};function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ky.apply(null,arguments)}Zy.displayName="SegmentedControlIconButton";const Gy=So(_y,"ul",p.ul.withConfig({displayName:"SegmentedControl__SegmentedControlList",componentId:"sc-1rzig82-0"})(["",";"],fo)),qy=({"aria-label":e,"aria-labelledby":t,children:o,fullWidth:a,onChange:n,size:c,sx:s=To,variant:d="default",className:g,...u})=>{const v=l(null),{theme:b}=io(),f=void 0===n||r.Children.toArray(o).some((e=>r.isValidElement(e)&&void 0!==e.props.defaultSelected)),h=oi(d,"default"),m=oi(a,!1),p=r.Children.toArray(o).map((e=>r.isValidElement(e)&&(e.props.defaultSelected||e.props.selected))),y=p.some((e=>e))?p.indexOf(!0):0,[x,w]=i(y),C=f?x:y,k=r.isValidElement(r.Children.toArray(o)[C])?r.Children.toArray(o)[C]:void 0,E=e=>{if(r.isValidElement(e)&&e.type===Fy&&e.props.leadingIcon){if(_n.isElement(e.props.leadingIcon))return e.props.leadingIcon;{const t=e.props.leadingIcon;return r.createElement(t,null)}}if(r.isValidElement(e)&&e.type===Zy){if(!_n.isElement(e.props.icon)){const t=e.props.icon;return r.createElement(t,null)}e.props.icon}return null},B=e=>r.isValidElement(e)&&e.type===Fy?e.props.children:r.isValidElement(e)?e.props["aria-label"]:null,T=bo(_y),N=T?s:tt({backgroundColor:"segmentedControl.bg",borderRadius:2,border:"1px solid",borderColor:"var(--controlTrack-borderColor-rest, transparent)",display:(S={isFullWidth:m,size:c}).isFullWidth?"flex":"inline-flex",fontSize:"small"===S.size?0:1,height:"small"===S.size?"28px":"32px",margin:0,padding:0,width:S.isFullWidth?"100%":void 0},s);var S;return e||t||console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies"),"dropdown"===h?r.createElement(r.Fragment,null,r.createElement(Tu,null,r.createElement(Tu.Button,{"aria-label":e&&`${B(k)}, ${e}`,leadingVisual:E(k)},B(k)),r.createElement(Tu.Overlay,{"aria-labelledby":t},r.createElement(cu,{selectionVariant:"single"},r.Children.map(o,((e,t)=>{const o=E(e);return r.isValidElement(e)?r.createElement(cu.Item,{key:`segmented-control-action-btn-${t}`,selected:t===C,onSelect:r=>{f&&w(t),n&&n(t),e.props.onClick&&e.props.onClick(r)}},o," ",B(e)):null})))))):r.createElement(Gy,Ky({sx:N,"aria-label":e,"aria-labelledby":t,ref:v,className:Gr(T&&Oy,g),"data-full-width":m||void 0,"data-size":c},u),r.Children.map(o,((e,t)=>{if(!r.isValidElement(e))return null;const o={onClick:n?r=>{n(t),f&&w(t),e.props.onClick&&e.props.onClick(r)}:r=>{e.props.onClick&&e.props.onClick(r),f&&w(t)},selected:t===C,sx:{"--separator-color":t===C||t===C-1?"transparent":null==b?void 0:b.colors.border.default,...e.props.sx}};if("hideLabels"===h&&r.isValidElement(e)&&e.type===Fy){const{"aria-label":t,leadingIcon:a,children:n,...l}=e.props,{sx:i,...c}=o;if(a)return r.createElement(Zy,Ky({"aria-label":t||n,icon:a,sx:{...i,width:m?"100%":"32px"}},c,l));console.warn("A `leadingIcon` prop is required when hiding visible labels")}return r.cloneElement(e,o)})))};qy.displayName="SegmentedControl";const Uy=Object.assign(qy,{Button:Fy,IconButton:Zy});var Yy={SideNav:"prc_SideNav_aJOh-",SideNavBordered:"prc_SideNavBordered_mEO0A",SideNavLink:"prc_SideNavLink_HpDo-","SideNavVariant-normal":"prc_SideNavVariant-normal_0GVuF","SideNavVariant-lightweight":"prc_SideNavVariant-lightweight_KkMu9",SideNavLinkFull:"prc_SideNavLinkFull_HSWcY"};function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xy.apply(null,arguments)}const Qy="primer_react_css_modules_team",Jy=So(Qy,"nav",p(ho).withConfig({displayName:"SideNav__StyledNav",componentId:"sc-11f1jdr-0"})(["background-color:var(--bgColor-muted);"," ",";"],(e=>e.bordered&&C(["border-color:var(--borderColor-default);border-style:solid;border-width:var(--borderWidth-thin);border-radius:var(--borderRadius-medium);& > &{border-left:0;border-right:0;border-bottom:0;}"])),fo));function ex({as:e="nav",variant:t="normal",className:o,bordered:a,children:n,"aria-label":l,sx:i}){const c=bo(Qy),s="lightweight"===t?"lightweight":"normal",d=Gr({[Yy.SideNav]:c,[Yy.SideNavBordered]:c&&a,[Yy[`SideNavVariant-${s}`]]:c,sidenav:!c,[`variant-${s}`]:!c},o);return r.createElement(Jy,{as:e,bordered:c?void 0:a,className:d,"aria-label":l,sx:i},n)}ex.displayName="SideNav";const rx=C(["background-color:var(--bgColor-neutral-muted);text-decoration:none;"]),tx=C(["color:var(--fgColor-default);text-decoration:none;"]),ox=So(Qy,au,p(au).withConfig({displayName:"SideNav__StyledSideNavLink",componentId:"sc-11f1jdr-1"})(["position:relative;display:block;width:100%;font-size:14px;text-align:left;text-decoration:none;"," & > .sidenav{border-bottom:none;}.sidenav.variant-normal > &{color:var(--fgColor-default);padding:var(--base-size-16);border:0;border-top:var(--borderWidth-thin) solid var(--borderColor-muted);&:first-child{border-top:0;border-top-right-radius:var(--borderRadius-medium);border-top-left-radius:var(--borderRadius-medium);}&:last-child{border-bottom-right-radius:var(--borderRadius-medium);border-bottom-left-radius:var(--borderRadius-medium);}&::before{position:absolute;top:0;bottom:0;left:0;z-index:1;width:3px;pointer-events:none;content:'';}&:hover{","}&:focus{"," outline:solid 2px var(--fgColor-accent);z-index:1;}&[aria-current='page'],&[aria-selected='true']{background-color:var(--bgColor-default);&::before{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73));}}}.sidenav.variant-lightweight > &{padding:var(--base-size-4) 0;color:var(--fgColor-accent);&:hover{","}&:focus{"," outline:solid 1px var(--fgColor-accent);z-index:1;}&[aria-current='page'],&[aria-selected='true']{color:var(--fgColor-default);font-weight:var(--base-text-weight-medium);}}",";"],(e=>"full"===e.variant&&C(["display:flex;align-items:center;justify-content:space-between;"])),rx,rx,tx,tx,fo)),ax=({selected:e,to:t,variant:o,className:a,children:n,...l})=>{const i="string"==typeof t,c=bo(Qy),s=Gr({[Yy.SideNavLink]:!0,[Yy.SideNavLinkFull]:c&&"full"===o},a);return r.createElement(ox,Xy({"aria-current":i||e?"page":void 0,className:s,variant:o},l),n)};ax.displayName="SideNavLink",ax.displayName="SideNav.Link";var nx=Object.assign(ex,{Link:ax});function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lx.apply(null,arguments)}const ix={issueOpened:Hc,pullOpened:Rc,issueClosed:Vc,issueClosedNotPlanned:Kc,pullClosed:zc,pullMerged:Oc,draft:Pc,issueDraft:Dc,pullQueued:jc,unavailable:Bc},cx={issueOpened:"Issue",pullOpened:"Pull request",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",pullClosed:"Pull request",pullMerged:"Pull request",draft:"Pull request",issueDraft:"Issue",pullQueued:"Pull request",unavailable:""},sx=Te({prop:"status",variants:{issueClosed:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},issueClosedNotPlanned:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},pullClosed:{backgroundColor:"closed.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-closed-emphasis, transparent)"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},pullQueued:{backgroundColor:"attention.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-attention-emphasis, transparent)"},issueOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},pullOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},unavailable:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"}}}),dx=Te({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),gx=p.span.withConfig({displayName:"StateLabel__StateLabelBase",componentId:"sc-qthdln-0"})(["display:inline-flex;align-items:center;font-weight:",";line-height:16px;color:",";text-align:center;border-radius:",";",";",";",";"],Wr("fontWeights.bold"),Wr("colors.canvas.default"),Wr("radii.3"),sx,dx,fo);function ux({children:e,status:t,variant:o="normal",...a}){const n="small"===o?{width:"1em"}:{};return r.createElement(gx,lx({},a,{variant:o,status:t}),t&&r.createElement(vm,lx({},n,{icon:ix[t]||$c,"aria-label":cx[t],sx:{mr:1}})),e)}ux.displayName="StateLabel";var vx="prc_SubNav_rjui0",bx="prc_Body_Nw122",fx="prc_Actions_-IUp-",hx="prc_Links_5Qn65",mx="prc_Link_X843-";function px(){return px=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},px.apply(null,arguments)}const yx="primer_react_css_modules_team",xx=So(yx,"nav",p.nav.withConfig({displayName:"SubNav__StyledSubNav",componentId:"sc-1t692wx-0"})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:",";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}",";"],Wr("space.2"),fo)),wx=r.forwardRef((function({actions:e,className:t,children:o,label:a,...n},l){const i=bo(yx);return r.createElement(xx,px({ref:l,className:Gr(t,"SubNav",{[vx]:i}),"aria-label":a},n),r.createElement("div",{className:Gr("SubNav-body",{[bx]:i})},o),e&&r.createElement("div",{className:Gr("SubNav-actions",{[fx]:i})},e))}));wx.displayName="SubNav";const Cx=So(yx,"div",p.div.withConfig({displayName:"SubNav__StyledSubNavLinks",componentId:"sc-1t692wx-1"})(["display:flex;",";"],fo)),kx=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(yx);return r.createElement(Cx,px({ref:a,className:Gr(t,n&&hx)},o),e)}));kx.displayName="SubNav.Links";const Ex=So(yx,"a",p.a.attrs((e=>({className:Gr("SubNav-item",e.selected&&"selected",e.className)}))).withConfig({displayName:"SubNav__StyledSubNavLink",componentId:"sc-1t692wx-2"})(["padding-left:",";padding-right:",";font-weight:",";font-size:",";line-height:20px;min-height:34px;color:",";text-align:center;text-decoration:none;border-top:1px solid ",";border-bottom:1px solid ",";border-right:1px solid ",";display:flex;align-items:center;&:first-of-type{border-top-left-radius:",";border-bottom-left-radius:",";border-left:1px solid ",";}&:last-of-type{border-top-right-radius:",";border-bottom-right-radius:",";}&:hover,&:focus{text-decoration:none;background-color:",";transition:background-color 0.2s ease;}&.selected{color:",";background-color:",";border-color:",";}",";"],Wr("space.3"),Wr("space.3"),Wr("fontWeights.semibold"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.canvas.subtle"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),fo)),Bx=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(yx);return r.createElement(Ex,px({ref:a,className:Gr(t,n&&mx),"data-selected":o.selected},o),e)}));Bx.displayName="SubNav.Link";var Tx=Object.assign(wx,{Link:Bx,Links:kx});function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Nx.apply(null,arguments)}const Sx="80ms",_x="cubic-bezier(0.5, 1, 0.89, 1)",Ix=Te({prop:"size",variants:{small:{height:"24px",width:"48px"}}}),Ax=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"}));Ax.displayName="CircleIcon";const Mx=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"}));Mx.displayName="LineIcon";const Lx=p.button.withConfig({displayName:"ToggleSwitch__SwitchButton",componentId:"sc-e6gszy-0"})(["vertical-align:middle;cursor:pointer;user-select:none;appearance:none;text-decoration:none;padding:0;transition-property:background-color,border-color;transition-duration:",";transition-timing-function:",";border-radius:",";border-style:solid;border-width:1px;display:block;height:32px;width:64px;position:relative;overflow:hidden;",";@media (pointer:coarse){&:before{content:'';position:absolute;left:0;right:0;transform:translateY(-50%);top:50%;min-height:44px;}}@media (prefers-reduced-motion){transition:none;*{transition:none;}}&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"," "," ",""],Sx,_x,Wr("radii.2"),Yv("3px"),Wr("colors.switchTrack.hoverBg"),Wr("colors.switchTrack.activeBg"),(e=>e.disabled?C(["background-color:",";border-color:transparent;cursor:not-allowed;transition-property:none;"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["background-color:",";border-color:var(--control-checked-borderColor-rest,transparent);&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"],Wr("colors.switchTrack.checked.bg"),Wr("colors.switchTrack.checked.hoverBg"),Wr("colors.switchTrack.checked.activeBg")):C(["background-color:",";border-color:var(--controlTrack-borderColor-rest,transparent);&:active{background-color:",";}"],Wr("colors.switchTrack.bg"),Wr("colors.switchTrack.activeBg"))),fo,Ix),Ox=p.div.withConfig({displayName:"ToggleSwitch__ToggleKnob",componentId:"sc-e6gszy-1"})(["background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:calc("," - 1px);width:50%;position:absolute;top:0;bottom:0;transition-property:transform;transition-duration:",";transition-timing-function:",";transform:",";z-index:1;@media (prefers-reduced-motion){transition:none;}",""],Wr("colors.switchKnob.bg"),(e=>e.disabled?Wr("colors.switchTrack.disabledBg"):Wr("colors.switchKnob.border")),Wr("radii.2"),Sx,_x,(e=>`translateX(${e.checked?"100%":"0px"})`),(e=>e.disabled?C(["border-color:",";"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["border-color:",";"],Wr("colors.switchKnob.checked.border")):void 0)),jx={visibility:"hidden",height:0},Rx=r.forwardRef((function(e,t){const{"aria-labelledby":n,"aria-describedby":l,defaultChecked:i,disabled:c,loading:s,checked:d,onChange:g,onClick:u,size:v="medium",statusLabelPosition:b="start",sx:f,...h}=e,m=void 0!==d,[p,y]=Ut(d,g,Boolean(i)),x=!c&&!s,w=o((e=>{m||y(!p),u&&u(e)}),[u,m,p,y]);return a((()=>{g&&m&&g(Boolean(d))}),[g,d,m]),r.createElement(ho,Nx({display:"inline-flex",alignItems:"center",flexDirection:"start"===b?"row":"row-reverse",sx:f},h),s?r.createElement(Ho,{size:"small"}):null,r.createElement(kl,{color:x?"fg.default":"fg.muted",fontSize:"small"===v?0:1,mx:2,"aria-hidden":"true",sx:{position:"relative",cursor:"pointer"},onClick:w},r.createElement(ho,{textAlign:"right",sx:p?null:jx},"On"),r.createElement(ho,{textAlign:"right",sx:p?jx:null},"Off")),r.createElement(Lx,{ref:t,onClick:w,"aria-labelledby":n,"aria-describedby":l,"aria-pressed":p,checked:p,size:v,disabled:!x},r.createElement(ho,{"aria-hidden":"true",display:"flex",alignItems:"center",width:"100%",height:"100%",overflow:"hidden"},r.createElement(ho,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.checked.fg":"switchTrack.checked.disabledFg",lineHeight:"0",sx:{transform:`translateX(${p?"0":"-100%"})`,transitionProperty:"transform",transitionDuration:Sx}},r.createElement(Mx,{size:v})),r.createElement(ho,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.fg":"switchTrack.disabledFg",lineHeight:"0",sx:{transform:`translateX(${p?"100%":"0"})`,transitionProperty:"transform",transitionDuration:Sx}},r.createElement(Ax,{size:v}))),r.createElement(Ox,{"aria-hidden":"true",disabled:!x,checked:p})))}));var zx="prc_Timeline_iQjcc",Px="prc_TimelineItem_Sd-t-",Vx="prc_TimelineBadge_BqMiN",Dx="prc_TimelineBadgeWrapper_75vYD",Hx="prc_TimelineBody_WWZY0",Fx="prc_TimelineBreak_dPnDJ";function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wx.apply(null,arguments)}const $x="primer_react_css_modules_ga",Zx=So($x,"div",p.div.withConfig({displayName:"Timeline__ToggleTimeline",componentId:"sc-1nkzbnu-0"})(["display:flex;flex-direction:column;"," ",";"],(e=>e.clipSidebar&&C([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])),fo)),Kx=r.forwardRef((function({clipSidebar:e,className:t,...o},a){return bo($x)?r.createElement(Zx,Wx({},o,{className:Gr(t,zx),ref:a,"data-clip-sidebar":e?"":void 0})):r.createElement(Zx,Wx({},o,{className:t,ref:a,clipSidebar:e}))}));Kx.displayName="Timeline";const Gx=So($x,"div",p.div.attrs((e=>({className:Gr("Timeline-Item",e.className)}))).withConfig({displayName:"Timeline__ToggleTimelineItem",componentId:"sc-1nkzbnu-1"})(["display:flex;position:relative;padding:"," 0;margin-left:",";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:",";}"," ",";"],Wr("space.3"),Wr("space.3"),Wr("colors.border.muted"),(e=>e.condensed&&C(["padding-top:",";padding-bottom:0;&:last-child{padding-bottom:",";}.TimelineItem-Badge{height:16px;margin-top:",";margin-bottom:",";color:",";background-color:",";border:0;}"],Wr("space.1"),Wr("space.3"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.canvas.default"))),fo)),qx=r.forwardRef((function({condensed:e,className:t,...o},a){return bo($x)?r.createElement(Gx,Wx({},o,{className:Gr(t,Px),ref:a,"data-condensed":e?"":void 0})):r.createElement(Gx,Wx({},o,{className:t,ref:a,condensed:e}))}));qx.displayName="TimelineItem";const Ux=({sx:e,className:t,...o})=>bo($x)?e!==To?r.createElement("div",{className:Dx},r.createElement(ho,Wx({},o,{sx:e,className:Gr(t,Vx)}))):r.createElement("div",{className:Dx},r.createElement("div",Wx({},o,{className:Gr(t,Vx)}))):r.createElement(ho,{position:"relative",zIndex:1},r.createElement(ho,{display:"flex",className:"TimelineItem-Badge",flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center",sx:e},o.children));Ux.displayName="TimelineBadge",Ux.displayName="Timeline.Badge";const Yx=So($x,"div",p.div.withConfig({displayName:"Timeline__ToggleTimelineBody",componentId:"sc-1nkzbnu-2"})(["min-width:0;max-width:100%;margin-top:",";color:",";flex:auto;font-size:",";",";"],Wr("space.1"),Wr("colors.fg.muted"),Wr("fontSizes.1"),fo)),Xx=r.forwardRef((function({className:e,...t},o){return bo($x)?r.createElement(Yx,Wx({},t,{className:Gr(e,Hx),ref:o})):r.createElement(Yx,Wx({},t,{className:e,ref:o}))}));Xx.displayName="TimelineBody";const Qx=So($x,"div",p.div.withConfig({displayName:"Timeline__ToggleTimelineBreak",componentId:"sc-1nkzbnu-3"})(["position:relative;z-index:1;height:24px;margin:0;margin-bottom:-",";margin-left:0;background-color:",";border:0;border-top:"," solid ",";",";"],Wr("space.3"),Wr("colors.canvas.default"),Wr("space.1"),Wr("colors.border.default"),fo)),Jx=r.forwardRef((function({className:e,...t},o){return bo($x)?r.createElement(Qx,Wx({},t,{className:Gr(e,Fx),ref:o})):r.createElement(Qx,Wx({},t,{className:e,ref:o}))}));Jx.displayName="TimelineBreak";var ew=Object.assign(Kx,{Item:qx,Badge:Ux,Body:Xx,Break:Jx});function rw(e,r,t){return Math.min(Math.max(e,t),r)}class tw extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ow=tw;function aw(e){if("string"!=typeof e)throw new ow(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let r=e.trim();r=uw.test(e)?function(e){const r=e.toLowerCase().trim(),t=lw[function(e){let r=5381,t=e.length;for(;t;)r=33*r^e.charCodeAt(--t);return(r>>>0)%2341}(r)];if(!t)throw new ow(e);return`#${t}`}(e):e;const t=cw.exec(r);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(iw(e,2),16))),parseInt(iw(e[3]||"f",2),16)/255]}const o=sw.exec(r);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=dw.exec(r);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=gw.exec(r);if(n){const[r,t,o,a]=Array.from(n).slice(1).map(parseFloat);if(rw(0,100,t)!==t)throw new ow(e);if(rw(0,100,o)!==o)throw new ow(e);return[...bw(r,t,o),Number.isNaN(a)?1:a]}throw new ow(e)}const nw=e=>parseInt(e.replace(/_/g,""),36),lw="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,r)=>{const t=nw(r.substring(0,3)),o=nw(r.substring(3)).toString(16);let a="";for(let e=0;e<6-o.length;e++)a+="0";return e[t]=`${a}${o}`,e}),{});const iw=(e,r)=>Array.from(Array(r)).map((()=>e)).join(""),cw=new RegExp(`^#${iw("([a-f0-9])",3)}([a-f0-9])?$`,"i"),sw=new RegExp(`^#${iw("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),dw=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${iw(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),gw=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,uw=/^[a-z]+$/i,vw=e=>Math.round(255*e),bw=(e,r,t)=>{let o=t/100;if(0===r)return[o,o,o].map(vw);const a=(e%360+360)%360/60,n=(1-Math.abs(2*o-1))*(r/100),l=n*(1-Math.abs(a%2-1));let i=0,c=0,s=0;a>=0&&a<1?(i=n,c=l):a>=1&&a<2?(i=l,c=n):a>=2&&a<3?(c=n,s=l):a>=3&&a<4?(c=l,s=n):a>=4&&a<5?(i=l,s=n):a>=5&&a<6&&(i=n,s=l);const d=o-n/2;return[i+d,c+d,s+d].map(vw)};var fw="prc_IssueLabel_ZuoEW",hw="prc_RemoveButton_H4Dmg";function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mw.apply(null,arguments)}const pw={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},yw={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},xw=u(((e,o)=>{const a=bo("primer_react_css_modules_team"),{as:n,fillColor:l="#999",onRemove:i,id:c,isSelected:s,text:d,size:g=lh,hideRemoveButton:u,href:v,onClick:b,className:f,...h}=e,m={as:n,href:v,onClick:b},{resolvedColorScheme:p}=io(),y=ih(e)&&Boolean(i)&&!u,x=e=>{e.stopPropagation(),i&&i()},w=t((()=>{const[r,t,o]=aw(l),[a,n,c]=function(e){const[r,t,o,a]=aw(e).map(((e,r)=>3===r?e:e/255)),n=Math.max(r,t,o),l=Math.min(r,t,o),i=(n+l)/2;if(n===l)return[0,0,i,a];const c=n-l;return[60*(r===n?(t-o)/c+(t<o?6:0):t===n?(o-r)/c+2:(r-t)/c+4),i>.5?c/(2-n-l):c/(n+l),i,a]}(l),d=!(null!=p&&p.startsWith("dark"));return{"--label-r":String(r),"--label-g":String(t),"--label-b":String(o),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*n)),"--label-l":String(Math.round(100*c)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:u||!i?void 0:0,position:"relative",...d?pw:yw,...s?{background:d?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":yw.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+(d?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{},...ih(e)?{"&:hover":{...d?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), linear-gradient(rgb(var(--label-r),var(--label-g),var(--label-b)), rgb(var(--label-r),var(--label-g),var(--label-b)))"}:{background:"hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);"},boxShadow:"shadow.medium"}}:{}}}),[l,p,u,i,s,e]);return a?r.createElement(gh,mw({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,className:Gr(fw,f),text:d,size:g,style:w,"data-has-remove-button":!u&&!!i},y?{}:m,h,{ref:o}),r.createElement(kh,y?m:{},d),!u&&i?r.createElement(ph,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:ih(e),"data-has-multiple-action-targets":y,className:hw}):null):r.createElement(gh,mw({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,text:d,size:g,sx:w,className:f},y?{}:m,h,{ref:o}),r.createElement(kh,y?m:{},d),!u&&i?r.createElement(ph,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:ih(e),sx:y?{position:"relative",zIndex:"1"}:{}}):null)}));xw.displayName="IssueLabelToken";var ww="prc_AvatarContainer_dBasr",Cw="prc_Avatar_A1uRI",kw="prc_Token_8GtFN";function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ew.apply(null,arguments)}const Bw="primer_react_css_modules_team",Tw=So(Bw,"span",p.span.withConfig({displayName:"AvatarToken__AvatarContainer",componentId:"sc-62sih1-0"})(["--spacing:calc("," * 2);display:block;height:",";width:",";"],Wr("space.1"),(e=>`calc(${nh[e.avatarSize]} - var(--spacing))`),(e=>`calc(${nh[e.avatarSize]} - var(--spacing))`))),Nw=u((({avatarSrc:e,id:t,size:o=lh,className:a,...n},l)=>bo(Bw)?r.createElement(Nh,Ew({leadingVisual:()=>r.createElement(Tw,{avatarSize:o,className:ww,"data-size":o},r.createElement(pv,{src:e,size:parseInt(nh[o],10),className:Cw})),size:o,id:null==t?void 0:t.toString(),className:Gr(kw,a)},n,{ref:l})):r.createElement(Nh,Ew({leadingVisual:()=>r.createElement(Tw,{avatarSize:o},r.createElement(pv,{src:e,size:parseInt(nh[o],10),sx:{width:"100%",height:"100%"}})),size:o,id:null==t?void 0:t.toString(),sx:{paddingLeft:Wr("space.1")},className:a},n,{ref:l}))));Nw.displayName="AvatarToken";var Sw={TreeViewRootUlStyles:"prc_TreeViewRootUlStyles_eZtxW",TreeViewItem:"prc_TreeViewItem_ShJr0","focus-visible":"prc_focus-visible_VRVfB",TreeViewItemContainer:"prc_TreeViewItemContainer_-2Rkn",TreeViewItemSkeleton:"prc_TreeViewItemSkeleton_fqk59",TreeViewItemToggle:"prc_TreeViewItemToggle_gWUdE",TreeViewItemToggleHover:"prc_TreeViewItemToggleHover_nEgP-",TreeViewItemToggleEnd:"prc_TreeViewItemToggleEnd_t-AEB",TreeViewItemContent:"prc_TreeViewItemContent_f0r0b",TreeViewItemContentText:"prc_TreeViewItemContentText_smZM-",TreeViewItemVisual:"prc_TreeViewItemVisual_dRlGq",TreeViewItemLeadingAction:"prc_TreeViewItemLeadingAction_VXx8I",TreeViewItemLevelLine:"prc_TreeViewItemLevelLine_KPSSL",TreeViewDirectoryIcon:"prc_TreeViewDirectoryIcon_PHbeP",TreeViewVisuallyHidden:"prc_TreeViewVisuallyHidden_4-mPv",TreeViewSkeletonItemContainerStyle:"prc_TreeViewSkeletonItemContainerStyle_EB7p0",TreeItemSkeletonTextStyles:"prc_TreeItemSkeletonTextStyles_wnBY9"};function _w(e){var r,t,o;const a=e.getAttribute("aria-label"),n=e.getAttribute("aria-labelledby");return a||(n?null!==(r=null===(t=document.getElementById(n))||void 0===t?void 0:t.textContent)&&void 0!==r?r:"":null!==(o=e.textContent)&&void 0!==o?o:"")}function Iw({containerRef:e,mouseDownRef:r}){Uc({containerRef:e,bindKeys:Ot.ArrowVertical|Ot.ArrowHorizontal|Ot.HomeAndEnd|Ot.Backspace|Ot.PageUpDown,preventScroll:!0,getNextFocusable:(e,r,t)=>{var o;if(r instanceof HTMLElement){try{if(r.closest("dialog:modal"))return}catch{}return null!==(o=function(e,r){switch(`${function(e){if("treeitem"!==e.getAttribute("role"))throw new Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e)} ${r.key}`){case"open ArrowRight":return Mw(e);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return Lw(e)}switch(r.key){case"ArrowUp":return Aw(e,"previous");case"ArrowDown":return Aw(e,"next");case"Backspace":return Lw(e);case"Home":return function(e){const r=e.closest("[role=tree]"),t=null==r?void 0:r.querySelector("[role=treeitem]");return t instanceof HTMLElement?t:void 0}(e);case"End":return function(e){const r=e.closest("[role=tree]"),t=Array.from((null==r?void 0:r.querySelectorAll("[role=treeitem]"))||[]);if(0===t.length)return;let o=t.length-1,a=t[o];for(;o>0&&a instanceof HTMLElement&&null!==(n=a.parentElement)&&void 0!==n&&n.closest("[role=treeitem][aria-expanded=false]");){var n;o-=1,a=t[o]}return a instanceof HTMLElement?a:void 0}(e);case"PageUp":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const t=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===t.length)return;const o=t[0].firstElementChild,a=jw(r,o),n=Math.floor(t.indexOf(e)/a),l=t.indexOf(e)-a*n;return t[Math.max(0,(n-1)*a+l)]}(e);case"PageDown":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const t=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===t.length)return;const o=t[0].firstElementChild,a=jw(r,o),n=Math.floor(t.indexOf(e)/a),l=t.indexOf(e)-a*n;return t[Math.min(t.length-1,(n+1)*a+l)]}(e)}}(r,t))&&void 0!==o?o:r}},focusInStrategy:()=>{var t,o,a;if(r.current)return;const n=null===(t=e.current)||void 0===t?void 0:t.querySelector("[aria-current]"),l=null===(o=e.current)||void 0===o?void 0:o.querySelector('[role="treeitem"]');return n instanceof HTMLElement?n:document.activeElement instanceof HTMLElement&&null!==(a=e.current)&&void 0!==a&&a.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:l instanceof HTMLElement?l:void 0}})}function Aw(e,r){const t=e.closest("[role=tree]");if(!t)return;const o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,(e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let a=o.firstChild();for(;a!==e;)a=o.nextNode();let n="next"===r?o.nextNode():o.previousNode();for(;n instanceof HTMLElement&&null!==(l=n.parentElement)&&void 0!==l&&l.closest("[role=treeitem][aria-expanded=false]");){var l;n="next"===r?o.nextNode():o.previousNode()}return n instanceof HTMLElement?n:void 0}function Mw(e){const r=e.querySelector("[role=treeitem]");return r instanceof HTMLElement?r:void 0}function Lw(e){const r=e.closest("[role=group]"),t=null==r?void 0:r.closest("[role=treeitem]");return t instanceof HTMLElement?t:void 0}const Ow={height:32};function jw(e,r){var t,o;const a=ui(e),{height:n}=null!==(t=null==r?void 0:r.getBoundingClientRect())&&void 0!==t?t:Ow,l=null!==(o=null==a?void 0:a.clientHeight)&&void 0!==o?o:window.innerHeight;return Math.floor(l/n)}var Rw="prc_SkeletonText_o0dUS";function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zw.apply(null,arguments)}const Pw={'&[data-component="SkeletonText"]':{"--font-size":"var(--text-body-size-medium, 0.875rem)","--line-height":"var(--text-body-lineHeight-medium, 1.4285)","--leading":"calc(var(--font-size) * var(--line-height) - var(--font-size))",borderRadius:"var(--borderRadius-small, 0.1875rem)",height:"var(--font-size)",marginBlock:"calc(var(--leading) / 2)"},'&[data-in-multiline="true"]':{marginBlockEnd:"calc(var(--leading) * 2)"},'&[data-in-multiline="true"]:last-child':{maxWidth:"65%",minWidth:"50px",marginBottom:0},"@supports (margin-block: mod(1px, 1px))":{'&[data-component="SkeletonText"]':{"--leading":"mod(var(--font-size) * var(--line-height), var(--font-size))"}},'&[data-text-skeleton-size="display"], &[data-text-skeleton-size="titleLarge"]':{borderRadius:"var(--borderRadius-medium, 0.375rem)"},'&[data-text-skeleton-size="display"]':{"--font-size":"var(--text-display-size, 2.5rem)","--line-height":"var(--text-display-lineHeight, 1.4)"},'&[data-text-skeleton-size="titleLarge"]':{"--font-size":"var(--text-title-size-large, 2.5rem)","--line-height":"var(--text-title-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="titleMedium"]':{"--font-size":"var(--text-title-size-medium, 1.25rem)","--line-height":"var(--text-title-lineHeight-medium, 1.6)"},'&[data-text-skeleton-size="titleSmall"]':{"--font-size":"var(--text-title-size-small, 1rem)","--line-height":"var(--text-title-lineHeight-small, 1.5)"},'&[data-text-skeleton-size="subtitle"]':{"--font-size":"var(--text-subtitle-size, 1.25rem)","--line-height":"var(--text-subtitle-lineHeight, 1.6)"},'&[data-text-skeleton-size="bodyLarge"]':{"--font-size":"var(--text-body-size-large, 1rem)","--line-height":"var(--text-body-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="bodySmall"]':{"--font-size":"var(--text-body-size-small, 0.75rem)","--line-height":"var(--text-body-lineHeight-small, 1.6666)"}},Vw=({lines:e=1,maxWidth:t,size:o="bodyMedium",className:a,style:n,...l})=>{const i=bo(Sv);return e<2?r.createElement(Mv,zw({"data-component":"SkeletonText","data-text-skeleton-size":o,width:"100%",className:Gr(a,{[Rw]:i}),sx:i?{}:{maxWidth:t,...Pw},style:i?tt(n,{maxWidth:t}):n},l)):r.createElement(ho,{"data-component":"multilineContainer",sx:{maxWidth:t,paddingBlock:"0.1px"},style:i?tt(n,{maxWidth:t,paddingBlock:"0.1px"}):n},Array.from({length:e},((e,t)=>r.createElement(Mv,zw({key:t,"data-component":"SkeletonText","data-in-multiline":"true","data-text-skeleton-size":o,sx:i?{}:Pw,className:Gr(a,{[Rw]:i})},l)))))},Dw="primer_react_css_modules_ga",Hw=r.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map}}),Fw=r.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:""}),Ww=So(Dw,"ul",p.ul.withConfig({displayName:"TreeView__UlBox",componentId:"sc-4ex6b6-0"})(["list-style:none;padding:0;margin:0;.PRIVATE_TreeView-item{outline:none;&:focus-visible > div,&.focus-visible > div{box-shadow:inset 0 0 0 2px ",";@media (forced-colors:active){outline:2px solid HighlightText;outline-offset:-2;}}&[data-has-leading-action]{--has-leading-action:1;}}.PRIVATE_TreeView-item-container{--level:1;--toggle-width:1rem;--min-item-height:2rem;position:relative;display:grid;--leading-action-width:calc(var(--has-leading-action,0) * 1.5rem);--spacer-width:calc(calc(var(--level) - 1) * (var(--toggle-width) / 2));grid-template-columns:var(--spacer-width) var(--leading-action-width) var(--toggle-width) 1fr;grid-template-areas:'spacer leadingAction toggle content';width:100%;font-size:",";color:",";border-radius:",";cursor:pointer;&:hover{background-color:",";@media (forced-colors:active){outline:2px solid transparent;outline-offset:-2px;}}@media (pointer:coarse){--toggle-width:1.5rem;--min-item-height:2.75rem;}&:has(.PRIVATE_TreeView-item-skeleton):hover{background-color:transparent;cursor:default;@media (forced-colors:active){outline:none;}}}&[data-omit-spacer='true'] .PRIVATE_TreeView-item-container{grid-template-columns:0 0 0 1fr;}.PRIVATE_TreeView-item[aria-current='true'] > .PRIVATE_TreeView-item-container{background-color:",";&::after{content:'';position:absolute;top:calc(50% - 0.75rem);left:-",";width:0.25rem;height:1.5rem;background-color:",";border-radius:",";@media (forced-colors:active){background-color:HighlightText;}}}.PRIVATE_TreeView-item-toggle{grid-area:toggle;display:flex;justify-content:center;align-items:flex-start;padding-top:calc(var(--min-item-height) / 2 - ","px / 2);height:100%;color:",";}.PRIVATE_TreeView-item-toggle--hover:hover{background-color:",";}.PRIVATE_TreeView-item-toggle--end{border-top-left-radius:",";border-bottom-left-radius:",";}.PRIVATE_TreeView-item-content{grid-area:content;display:flex;height:100%;padding:0 ",";gap:",";line-height:var(--custom-line-height,var(--text-body-lineHeight-medium,1.4285));padding-top:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);padding-bottom:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);}.PRIVATE_TreeView-item-content-text{flex:1 1 auto;width:0;}&[data-truncate-text='true'] .PRIVATE_TreeView-item-content-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&[data-truncate-text='false'] .PRIVATE_TreeView-item-content-text{word-break:break-word;}.PRIVATE_TreeView-item-visual{display:flex;align-items:center;color:",";height:var(--custom-line-height,1.3rem);}.PRIVATE_TreeView-item-leading-action{display:flex;color:",";grid-area:leadingAction;& > button{flex-shrink:1;}}.PRIVATE_TreeView-item-level-line{width:100%;height:100%;border-right:1px solid;border-color:",";}@media (hover:hover){.PRIVATE_TreeView-item-level-line{border-color:transparent;}&:hover .PRIVATE_TreeView-item-level-line,&:focus-within .PRIVATE_TreeView-item-level-line{border-color:",";}}.PRIVATE_TreeView-directory-icon{display:grid;color:",";}.PRIVATE_VisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}",""],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.actionListItem.default.selectedBg"),Wr("space.2"),Wr("colors.accent.fg"),Wr("radii.2"),12,Wr("colors.fg.muted"),Wr("colors.treeViewItem.chevron.hoverBg"),Wr("radii.2"),Wr("radii.2"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.fg.muted"),Wr("colors.border.subtle"),Wr("colors.border.subtle"),Wr("colors.treeViewItem.directory.fill"),fo)),$w=({"aria-label":e,"aria-labelledby":t,children:n,flat:l,truncate:i=!0,className:c,style:s})=>{const d=r.useRef(null),g=r.useRef(!1),[u,v]=r.useState(""),b=r.useCallback((e=>{v(e)}),[]),f=o((()=>{g.current=!0}),[]);a((()=>{function e(){g.current=!1}return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]),Iw({containerRef:d,mouseDownRef:g}),function({containerRef:e,onFocusChange:t}){const o=r.useRef(""),a=r.useRef(0),n=r.useRef(t),{safeSetTimeout:l,safeClearTimeout:i}=zl();r.useEffect((()=>{n.current=t}),[t]);const c=r.useCallback((r=>{if(!r)return;if(!e.current)return;const t=e.current,o=Array.from(t.querySelectorAll('[role="treeitem"]')),a=o.findIndex((e=>e===document.activeElement));let l=(c=a,(i=o).map(((e,r)=>i[(c+r)%i.length])));var i,c;1===r.length&&(l=l.slice(1));const s=l.find((e=>_w(e).toLowerCase().startsWith(r.toLowerCase())));s&&n.current(s)}),[e]);r.useEffect((()=>{if(!e.current)return;const r=e.current;function t(e){!e.key||e.key.length>1||" "===e.key||e.ctrlKey||e.altKey||e.metaKey||(o.current+=e.key,c(o.current),i(a.current),a.current=l((()=>o.current=""),300),e.preventDefault(),e.stopPropagation())}return r.addEventListener("keydown",t),()=>r.removeEventListener("keydown",t)}),[e,c,i,l])}({containerRef:d,onFocusChange:e=>{e instanceof HTMLElement&&e.focus()}});const h=r.useRef(null);null===h.current&&(h.current=new Map);const m=bo(Dw);return r.createElement(Hw.Provider,{value:{announceUpdate:b,expandedStateCache:h}},r.createElement(r.Fragment,null,r.createElement(El,{role:"status","aria-live":"polite","aria-atomic":"true"},u),r.createElement(Ww,{ref:d,role:"tree","aria-label":e,"aria-labelledby":t,"data-omit-spacer":l,"data-truncate-text":i||!1,onMouseDown:f,className:Gr(c,{[Sw.TreeViewRootUlStyles]:m}),style:s},n)))};$w.displayName="Root",$w.displayName="TreeView";const Zw=r.forwardRef((({id:e,containIntrinsicSize:t,current:o=!1,defaultExpanded:a,expanded:n,onExpandedChange:l,onSelect:i,children:c,className:s,"aria-label":d,"aria-labelledby":g},u)=>{const[v,b]=ai(c,{leadingAction:rC,leadingVisual:Jw,trailingVisual:eC}),{expandedStateCache:f}=r.useContext(Hw),h=ro(),m=ro(),p=ro(),[y,x]=function({name:e="custom",defaultValue:t,value:o,onChange:a}){const[n,l]=r.useState(null!=o?o:t),i=r.useRef(null),c=r.useRef(a);r.useEffect((()=>{c.current=a})),null===i.current&&(i.current=void 0!==o);const s=r.useCallback((e=>{var r;const t="function"==typeof e?e(n):e;!1===i.current&&l(t),null===(r=c.current)||void 0===r||r.call(c,t)}),[n]);return r.useEffect((()=>{i.current,i.current}),[e,o]),!0===i.current?[o,s]:[n,s]}({name:e,defaultValue:()=>{var r,t,n;return null!==(r=null!==(t=null===(n=f.current)||void 0===n?void 0:n.get(e))&&void 0!==t?t:a)&&void 0!==r?r:o},value:null!==n&&n,onChange:l}),{level:w}=r.useContext(Fw),{hasSubTree:C,subTree:k,childrenWithoutSubTree:E}=function(e){return r.useMemo((()=>{const t=r.Children.toArray(e).find((e=>r.isValidElement(e)&&e.type===Gw));return{subTree:t,childrenWithoutSubTree:r.Children.toArray(e).filter((e=>!(r.isValidElement(e)&&e.type===Gw))),hasSubTree:Boolean(t)}}),[e])}(b),[B,T]=r.useState(!C),[N,S]=r.useState(!1),_=r.useCallback((r=>{var t;x(r),null===(t=f.current)||void 0===t||t.set(e,r)}),[e,x,f]),I=r.useCallback((e=>{_(!y),null==e||e.stopPropagation()}),[y,_]),A=r.useCallback((e=>{switch(e.key){case"Enter":case" ":i?i(e):I(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!1)}}),[i,_,I]),M=[v.leadingVisual?m:null,v.trailingVisual?p:null].filter(Boolean),L=bo(Dw);return r.createElement(Fw.Provider,{value:{itemId:e,level:w+1,isSubTreeEmpty:B,setIsSubTreeEmpty:T,isExpanded:y,setIsExpanded:_,leadingVisualId:m,trailingVisualId:p}},r.createElement("li",{className:Gr("PRIVATE_TreeView-item",s,{[Sw.TreeViewItem]:L}),ref:u,tabIndex:0,id:e,role:"treeitem","aria-label":d,"aria-labelledby":d?void 0:g||h,"aria-describedby":M.length?M.join(" "):void 0,"aria-level":w,"aria-expanded":(!B||y&&C)&&null!==n?y:void 0,"aria-current":o?"true":void 0,"aria-selected":N?"true":"false","data-has-leading-action":!!v.leadingAction||void 0,onKeyDown:A,onFocus:e=>{var r;null===(r=e.currentTarget.firstElementChild)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),S(!0),e.stopPropagation()},onBlur:()=>S(!1),onClick:e=>{i?i(e):I(e),e.stopPropagation()},onAuxClick:e=>{i&&1===e.button&&i(e),e.stopPropagation()}},r.createElement("div",{className:Gr("PRIVATE_TreeView-item-container",{[Sw.TreeViewItemContainer]:L}),style:{"--level":w,contentVisibility:t?"auto":void 0,containIntrinsicSize:t}},r.createElement("div",{style:{gridArea:"spacer",display:"flex"}},r.createElement(Kw,{level:w})),v.leadingAction,C?r.createElement("div",{className:Gr("PRIVATE_TreeView-item-toggle",i&&"PRIVATE_TreeView-item-toggle--hover",1===w&&"PRIVATE_TreeView-item-toggle--end",{[Sw.TreeViewItemToggle]:L,[Sw.TreeViewItemToggleHover]:L,[Sw.TreeViewItemToggleEnd]:L}),onClick:e=>{i&&I(e)}},y?r.createElement(Ic,{size:12}):r.createElement(Ac,{size:12})):null,r.createElement("div",{id:h,className:Gr("PRIVATE_TreeView-item-content",{[Sw.TreeViewItemContent]:L})},v.leadingVisual,r.createElement("span",{className:Gr("PRIVATE_TreeView-item-content-text",{[Sw.TreeViewItemContentText]:L})},E),v.trailingVisual)),k))})),Kw=({level:e})=>{const t=bo(Dw);return r.createElement("div",{style:{width:"100%",display:"flex"}},Array.from({length:e-1}).map(((e,o)=>r.createElement("div",{key:o,className:Gr("PRIVATE_TreeView-item-level-line",{[Sw.TreeViewItemLevelLine]:t})}))))};Kw.displayName="LevelIndicatorLines",Zw.displayName="TreeView.Item";const Gw=({count:e,state:t,children:o})=>{const{announceUpdate:a}=r.useContext(Hw),{itemId:n,isExpanded:l,isSubTreeEmpty:i,setIsSubTreeEmpty:c}=r.useContext(Fw),s=r.useRef(null),d=r.useRef(null),[g,u]=r.useState(!1),v=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e}),[e]),t.current}(t),{safeSetTimeout:b}=zl();return r.useEffect((()=>{void 0!==t&&"done"!==t||(i||o?i&&o&&c(!1):c(!0))}),[t,i,c,o]),r.useEffect((()=>{const e=document.getElementById(n);if(e)if("loading"===v&&"done"===t){var r;const t=_w(e);if(null!==(r=d.current)&&void 0!==r&&r.childElementCount?a(`${t} content loaded`):a(`${t} is empty`),g){const r=Mw(e);b(r?()=>{r.focus()}:()=>{e.focus()}),u(!1)}}else if("loading"===t){const r=_w(e);a(`${r} content loading`)}}),[g,v,t,n,a,d,b]),r.useEffect((()=>{function e(){u(!0)}function r(e){e.relatedTarget&&u(!1)}const t=s.current;if(t)return t.addEventListener("focus",e),t.addEventListener("blur",r),()=>{t.removeEventListener("focus",e),t.removeEventListener("blur",r)}}),[s,t]),l?r.createElement("ul",{role:"group",style:{listStyle:"none",padding:0,margin:0},ref:d},"loading"===t?r.createElement(Xw,{ref:s,count:e}):o,i&&"loading"!==t?r.createElement(Qw,null):null):null};Gw.displayName="SubTree",Gw.displayName="TreeView.SubTree";const qw=So(Dw,"span",p.span.attrs({className:"PRIVATE_TreeView-item-skeleton"}).withConfig({displayName:"TreeView__StyledSkeletonItemContainer",componentId:"sc-4ex6b6-1"})(["display:flex;align-items:center;column-gap:0.5rem;height:2rem;@media (pointer:coarse){height:2.75rem;}&:nth-of-type(5n + 1){--tree-item-loading-width:67%;}&:nth-of-type(5n + 2){--tree-item-loading-width:47%;}&:nth-of-type(5n + 3){--tree-item-loading-width:73%;}&:nth-of-type(5n + 4){--tree-item-loading-width:64%;}&:nth-of-type(5n + 5){--tree-item-loading-width:50%;}"])),Uw=So(Dw,Vw,p(Vw).withConfig({displayName:"TreeView__StyledSkeletonText",componentId:"sc-4ex6b6-2"})(["width:var(--tree-item-loading-width,67%);"])),Yw=()=>{const e=bo(Dw);return r.createElement(qw,{className:Gr({[Sw.TreeViewSkeletonItemContainerStyles]:e,[Sw.TreeViewItemSkeleton]:e},"PRIVATE_TreeView-item-skeleton")},r.createElement(Rv,{size:16,square:!0}),r.createElement(Uw,{className:Gr({[Sw.TreeItemSkeletonTextStyles]:e})}))};Yw.displayName="SkeletonItem";const Xw=r.forwardRef((({count:e},t)=>{const o=ro(),a=bo(Dw);return e?r.createElement(Zw,{id:o,ref:t},Array.from({length:e}).map(((e,t)=>r.createElement(Yw,{"aria-hidden":!0,key:t}))),r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:a})},"Loading ",e," items")):r.createElement(Zw,{id:o,ref:t},r.createElement(Jw,null,r.createElement(Ho,{size:"small"})),r.createElement(kl,{className:"fgColor-muted"},"Loading..."))})),Qw=r.forwardRef(((e,t)=>r.createElement(Zw,{expanded:null,id:ro(),ref:t},r.createElement(kl,{className:"fgColor-muted"},"No items found"))));const Jw=e=>{const t=bo(Dw),{isExpanded:o,leadingVisualId:a}=r.useContext(Fw),n="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:t}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[Sw.TreeViewItemVisual]:t}),"aria-hidden":!0},n))};Jw.displayName="TreeView.LeadingVisual";const eC=e=>{const t=bo(Dw),{isExpanded:o,trailingVisualId:a}=r.useContext(Fw),n="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:t}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[Sw.TreeViewItemVisual]:t}),"aria-hidden":!0},n))};eC.displayName="TreeView.TrailingVisual";const rC=e=>{const t=bo(Dw),{isExpanded:o}=r.useContext(Fw),a="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:t}),"aria-hidden":!0},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-leading-action",{[Sw.TreeViewItemLeadingAction]:t}),"aria-hidden":!0},a))};rC.displayName="TreeView.LeadingAction";const tC=()=>{const e=bo(Dw),{isExpanded:t}=r.useContext(Fw),o=t?Lc:Mc;return r.createElement("div",{className:Gr("PRIVATE_TreeView-directory-icon",{[Sw.TreeViewDirectoryIcon]:e})},r.createElement(o,null))};tC.displayName="DirectoryIcon";const oC=({title:e="Error",children:t,onRetry:o,onDismiss:a})=>{const{itemId:n,setIsExpanded:l}=r.useContext(Fw);return r.createElement("div",{onKeyDown:e=>{["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"].includes(e.key)&&e.stopPropagation()}},r.createElement(Ks,{title:e,onClose:e=>{setTimeout((()=>{const e=document.getElementById(n);null==e||e.focus()})),"confirm"===e?null==o||o():(l(!1),null==a||a())},confirmButtonContent:"Retry",cancelButtonContent:"Dismiss"},t))};oC.displayName="ErrorDialog",oC.displayName="TreeView.ErrorDialog";const aC=Object.assign($w,{Item:Zw,SubTree:Gw,LeadingAction:rC,LeadingVisual:Jw,TrailingVisual:eC,DirectoryIcon:tC,ErrorDialog:oC}),nC=d({theme:{},setChildrenWidth:()=>null,setNoIconChildrenWidth:()=>null,loadingCounters:!1,iconsVisible:!0}),lC=e=>({display:"inline-block",borderLeft:"1px solid",width:"1px",borderLeftColor:`${null==e?void 0:e.colors.border.muted}`,marginRight:1,height:"24px"}),iC={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2,'& > span[data-component="trailingVisual"]':{marginLeft:0}},cC={"& > span":{display:"none"},textDecoration:"none"},sC={position:"absolute",zIndex:1,top:"90%",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",borderRadius:"12px",backgroundColor:"canvas.overlay",listStyle:"none",minWidth:"192px",maxWidth:"640px",right:"0"},dC=(e,r)=>{if(e&&r){const{left:t}=kt(e,r,{align:"start",side:"outside-bottom"}),{right:o,...a}=sC;return{...a,left:t}}return sC};var gC="prc_UnderlineWrapper_oOh5J",uC="prc_UnderlineItemList_b23Hf",vC="prc_UnderlineItem_lJsg-",bC="prc_LoadingCounter_Ps-0Q";function fC(){return fC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fC.apply(null,arguments)}const hC="primer_react_css_modules_team",mC=So(hC,"div",p.div.withConfig({displayName:"UnderlineTabbedInterface__StyledComponentUnderlineWrapper",componentId:"sc-4ilrg0-0"})(["display:flex;padding-inline:var(--stack-padding-normal,",");justify-content:flex-start;align-items:center;min-height:var(--control-xlarge-size,48px);box-shadow:inset 0px -1px var(--borderColor-muted,",");",";"],Wr("space.3"),Wr("colors.border.muted"),fo)),pC=u((({children:e,className:t,...o},a)=>bo(hC)?r.createElement(mC,fC({className:Gr(gC,t),ref:a},o),e):r.createElement(mC,fC({className:t,ref:a},o),e))),yC=So(hC,"ul",p.ul.withConfig({displayName:"UnderlineTabbedInterface__StyledComponentUnderlineItemList",componentId:"sc-4ilrg0-1"})(["display:flex;list-style:none;white-space:nowrap;padding:0;margin:0;align-items:center;gap:","px;position:relative;"],8)),xC=u((({children:e,...t},o)=>bo(hC)?r.createElement(yC,fC({className:uC,ref:o},t),e):r.createElement(yC,fC({ref:o},t),e))),wC=So(hC,"div",p.div.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineItem",componentId:"sc-4ilrg0-2"})(["appearance:none;background-color:transparent;border:0;cursor:pointer;font:inherit;position:relative;display:inline-flex;color:",";text-align:center;text-decoration:none;line-height:var(--text-body-lineHeight-medium,1.4285);border-radius:var(--borderRadius-medium,",");font-size:var(--text-body-size-medium,",");padding-inline:var(--control-medium-paddingInline-condensed,",");padding-block:var(--control-medium-paddingBlock,6px);align-items:center;@media (hover:hover){&:hover{background-color:var(--bgColor-neutral-muted,",");transition:background 0.12s ease-out;text-decoration:none;}}&:focus:{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");&:not(:focus-visible){box-shadow:none;}}&:focus-visible{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");}[data-content]::before{content:attr(data-content);display:block;height:0;font-weight:var(--base-text-weight-semibold,",");visibility:hidden;white-space:nowrap;}[data-component='icon']{color:var(--fgColor-muted,",");align-items:center;display:inline-flex;margin-inline-end:var(--control-medium-gap,",");}[data-component='counter']{margin-inline-start:var(--control-medium-gap,",");display:flex;align-items:center;}&::after{position:absolute;right:50%;bottom:calc(50% - calc(var(--control-xlarge-size,48px) / 2 + 1px));width:100%;height:2px;content:'';background-color:transparent;border-radius:0;transform:translate(50%,-50%);}&[aria-current]:not([aria-current='false']),&[aria-selected='true']{[data-component='text']{font-weight:var(--base-text-weight-semibold,",");}&::after{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73));}}@media (forced-colors:active){&[aria-current]:not([aria-current='false']),&[aria-selected='true']{::after{background-color:LinkText;}}}",";"],Wr("colors.fg.default"),Wr("radii.2"),Wr("fontSizes.1"),Wr("space.2"),Wr("colors.neutral.subtle"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("fontWeights.semibold"),Wr("colors.fg.muted"),Wr("space.2"),Wr("space.2"),Wr("fontWeights.semibold"),fo)),CC=w(["from{opacity:1;}to{opacity:0.2;}"]),kC=So(hC,"span",p.span.withConfig({displayName:"UnderlineTabbedInterface__StyledComponentLoadingCounter",componentId:"sc-4ilrg0-3"})(["animation:"," 1.2s ease-in-out infinite alternate;background-color:var(--bgColor-neutral-muted,",");border-color:var(--borderColor-default,",");width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"],CC,Wr("colors.neutral.subtle"),Wr("colors.border.default"))),EC=()=>bo(hC)?r.createElement(kC,{className:bC}):r.createElement(kC,null);EC.displayName="LoadingCounter";const BC=u((({as:e="a",children:t,counter:o,icon:a,iconsVisible:n,loadingCounters:l,sx:i=To,...c},s)=>bo(hC)?r.createElement(wC,fC({ref:s,as:e,sx:i,className:vC},c),n&&a&&r.createElement("span",{"data-component":"icon"},_n.isElement(a)?a:r.createElement(a,null)),t&&r.createElement("span",{"data-component":"text","data-content":t},t),void 0!==o?l?r.createElement("span",{"data-component":"counter"},r.createElement(EC,null)):r.createElement("span",{"data-component":"counter"},r.createElement($o,null,o)):null):r.createElement(wC,fC({ref:s,as:e,sx:i},c),n&&a&&r.createElement("span",{"data-component":"icon"},_n.isElement(a)?a:r.createElement(a,null)),t&&r.createElement("span",{"data-component":"text","data-content":t},t),void 0!==o?l?r.createElement("span",{"data-component":"counter"},r.createElement(EC,null)):r.createElement("span",{"data-component":"counter"},r.createElement($o,null,o)):null)));function TC(){return TC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},TC.apply(null,arguments)}p.ul.withConfig({displayName:"UnderlineNav__NavigationList",componentId:"sc-1jfr31k-0"})(["",";"],fo);const NC=p.li.withConfig({displayName:"UnderlineNav__MoreMenuListItem",componentId:"sc-1jfr31k-1"})(["display:flex;align-items:center;height:","px;"],45),SC=(e,r,t=0)=>{const o=r-t;let a=e.length,n=0;for(const[r,t]of e.entries())if(n=n+t.width+8,n>o){a=r;break}return a},_C=u((({as:e="nav","aria-label":t,sx:a=To,loadingCounters:n=!1,children:c},s)=>{var d;const g=l(null),u=null!=s?s:g,v=l(null),b=l(null),f=l(null),h=r.useRef(null),m=ro(),{theme:p}=io(),[y,x]=i(!1),[w,C]=i(!0),[k,E]=i([]),[B,T]=i([]),N=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(c),[S,_]=i({items:N,menuItems:[]}),I=S.items.map((e=>{var r;return null!==(r=N.find((r=>r.key===e.key)))&&void 0!==r?r:e})),A=S.menuItems.map((e=>{var r;return null!==(r=N.find((r=>r.key===e.key)))&&void 0!==r?r:e})),M=0===S.items.length;function L(e){var r,t;return null!==(r=null===(t=B.find((r=>r.text===e)))||void 0===t?void 0:t.width)&&void 0!==r?r:0}const O=(e,r,t,o)=>{var a,n;const l=function(e,r){let t=0,o=0;for(const[a,n]of[...S.items].reverse().entries())if(t+=L(n.props.children),e<t+r){o=a;break}return o}(L(e.props.children),u.current.getBoundingClientRect().width-(null!==(a=null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect().width)&&void 0!==a?a:0)),i=S.items.length-1-l,c=[...[...S.items].slice(0,i),e],s=[...S.items].slice(i),d=[...A];d.splice(r,1,...s),o({items:c,menuItems:d},!1)};const j=o(((e,r)=>{_(e),C(r)}),[]),R=o((e=>{E((r=>[...r,e]))}),[]),z=o((e=>{T((r=>[...r,e]))}),[]),P=r.useCallback((()=>{x(!1)}),[x]),V=r.useCallback((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}),[]),D=o((e=>{e.defaultPrevented||0!==e.button||x((e=>!e))}),[]);return ut((e=>{y&&(e.preventDefault(),P(),V())}),[y]),it({onClickOutside:P,containerRef:h,ignoreClickRefs:[f]}),Zt((e=>{var r,t;const o=e[0].contentRect.width,a=null!==(r=null===(t=b.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==r?r:0;0!==o&&((e,r,t,o,a,n)=>{let l=!0;0===o.length&&n({items:t,menuItems:[]},l);const i=SC(o,e),c=SC(a,e),s=SC(a,e,r||86),d=[],g=[];if(t.length<=i)d.push(...t);else if(t.length<=c)l=!1,d.push(...t);else{l=!1;const e=1==t.length-s?s-1:s;for(const[r,o]of t.entries())if(r<e)d.push(o);else{const r=o.props["aria-current"];if(Boolean(r)&&"false"!==r&&e>0){const r=e-1,t=d.splice(r,1,o)[0];g.push(t)}else g.push(o)}}n({items:d,menuItems:g},l)})(o,a,N,k,B,j)}),u),r.createElement(nC.Provider,{value:{theme:p,setChildrenWidth:R,setNoIconChildrenWidth:z,loadingCounters:n,iconsVisible:w}},t&&r.createElement(El,{as:"h2"},`${t} navigation`),r.createElement(pC,{as:e,"aria-label":t,ref:u,sx:a},r.createElement(xC,{ref:v,role:"list"},I,A.length>0&&r.createElement(NC,{ref:b},!M&&r.createElement(ho,{sx:lC(p)}),r.createElement(On,{ref:f,sx:iC,"aria-controls":m,"aria-expanded":y,onClick:D,trailingAction:Gc},r.createElement(ho,{as:"span"},M?r.createElement(r.Fragment,null,r.createElement(El,{as:"span"},`${t}`," "),"Menu"):r.createElement(r.Fragment,null,"More",r.createElement(El,{as:"span"}," ",`${t} items`)))),r.createElement(cu,{selectionVariant:"single",ref:h,id:m,sx:null!==(d=v.current)&&void 0!==d&&d.clientWidth&&v.current.clientWidth>=192?sC:dC(h.current,v.current),style:{display:y?"block":"none"}},A.map(((e,t)=>{const{children:o,counter:a,"aria-current":l,onSelect:i,...c}=e.props;if(Boolean(l)&&"false"!==l){new MouseEvent("click");!M&&O(e,t,0,j)}return r.createElement(cu.LinkItem,TC({key:o,sx:cC,onClick:r=>{!M&&O(e,t,0,j),P(),V(),"function"==typeof i&&i(r)}},c),r.createElement(ho,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},o,n?r.createElement(EC,null):void 0!==a&&r.createElement(ho,{as:"span","data-component":"counter"},r.createElement($o,null,a))))})))))))}));function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},IC.apply(null,arguments)}_C.displayName="UnderlineNav";const AC=u((({sx:e=To,as:t="a",href:o="#",children:a,counter:n,onSelect:i,"aria-current":c,icon:s,...d},u)=>{const v=l(null),b=null!=u?u:v,{setChildrenWidth:f,setNoIconChildrenWidth:h,loadingCounters:m,iconsVisible:p}=g(nC);$t((()=>{if(b.current){const e=b.current.getBoundingClientRect(),r=Array.from(b.current.children).find((e=>"icon"===e.getAttribute("data-component"))),t=Array.from(b.current.children).find((e=>"text"===e.getAttribute("data-component"))).textContent,o=r?r.getBoundingClientRect().width+Number(getComputedStyle(r).marginRight.slice(0,-2))+Number(getComputedStyle(r).marginLeft.slice(0,-2)):0;f({text:t,width:e.width}),h({text:t,width:e.width-o})}}),[b,f,h]);const y=r.useCallback((e=>{" "!==e.key&&"Enter"!==e.key||e.defaultPrevented||"function"!=typeof i||i(e)}),[i]),x=r.useCallback((e=>{e.defaultPrevented||"function"!=typeof i||i(e)}),[i]);return r.createElement(ho,{as:"li",sx:{display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(BC,IC({ref:b,as:t,href:o,"aria-current":c,onKeyDown:y,onClick:x,counter:n,icon:s,loadingCounters:m,iconsVisible:p,sx:e},d),a))}));AC.displayName="UnderlineNavItem";const MC=Object.assign(_C,{Item:AC});var LC="prc_List_Z4LzW",OC="prc_Nav_hc-9G",jC="prc_Divider_CcBO8";function RC(){return RC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},RC.apply(null,arguments)}const zC=r.createContext({size:"medium",setChildrenWidth:()=>null}),PC=(e,r,t=0)=>{const o=r-t;let a=e.length,n=0;for(const[r,t]of e.entries())if(n+=t.width,n>o){a=r;break}return a},VC=e=>{const{size:t="medium",children:a,"aria-label":n,flush:c=!1,className:s}=e,[d,g]=i([]),u=o((e=>{g((r=>[...r,e]))}),[]),v=l(null),b=l(null),f=l(null),h=l(null),m=r.useRef(null),p=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(a),[y,x]=i({items:p,menuItems:[]}),w=y.items.map((e=>{var r;return null!==(r=p.find((r=>r.key===e.key)))&&void 0!==r?r:e})),C=y.menuItems.map((e=>{var r;return null!==(r=p.find((r=>r.key===e.key)))&&void 0!==r?r:e})),k=o((e=>{x(e)}),[]);Zt((e=>{var t,o;const a=e[0].contentRect.width,n=null!==(t=null===(o=f.current)||void 0===o?void 0:o.getBoundingClientRect().width)&&void 0!==t?t:0,l=C.length>0;0!==a&&((e,t,o,a,n,l)=>{0===a.length&&n({items:o,menuItems:[]});const i=PC(a,e),c=PC(a,e,t||86),s=[],d=[];if(o.length>=i){const e=1==o.length-c?c-1:c;for(const[t,n]of o.entries())if(t<e)s.push(n);else if("divider"===a[t].text){if(t===e-1||t===e)continue;{const e=r.createElement(cu.Divider,{key:t});d.push(e)}}else d.push(n);n({items:s,menuItems:d})}else i>o.length&&l&&n({items:o,menuItems:[]})})(a,n,p,d,k,l)}),v);const[E,B]=i(!1),T=r.useCallback((()=>{B(!1)}),[B]),N=r.useCallback((()=>{var e;null===(e=h.current)||void 0===e||e.focus()}),[]);return ut((e=>{E&&(e.preventDefault(),T(),N())}),[E]),it({onClickOutside:T,containerRef:m,ignoreClickRefs:[h]}),Uc({containerRef:b,bindKeys:Ot.ArrowHorizontal|Ot.HomeAndEnd,focusOutBehavior:"wrap"}),r.createElement(zC.Provider,{value:{size:t,setChildrenWidth:u}},r.createElement("div",{ref:v,className:Gr(s,OC),"data-flush":c},r.createElement("div",{ref:b,role:"toolbar",className:LC},w,C.length>0&&r.createElement(Tu,null,r.createElement(Tu.Anchor,null,r.createElement(Yl,{variant:"invisible","aria-label":`More ${n} items`,icon:Fc})),r.createElement(Tu.Overlay,null,r.createElement(cu,null,C.map(((e,t)=>{if(e.type===cu.Divider)return r.createElement(cu.Divider,{key:t});{const{children:t,onClick:o,icon:a,"aria-label":n}=e.props;return r.createElement(cu.Item,{key:t,onClick:e=>{T(),N(),"function"==typeof o&&o(e)}},a?r.createElement(cu.LeadingVisual,null,r.createElement(a,null)):null,n)}}))))))))};VC.displayName="ActionBar";const DC=u(((e,t)=>{const o=l(null),a=null!=t?t:o,{size:n,setChildrenWidth:i}=r.useContext(zC);return $t((()=>{const r=e["aria-label"]?e["aria-label"]:"",t=a.current.getBoundingClientRect();i({text:r,width:t.width})}),[a,i]),r.createElement(Yl,RC({ref:a,size:n},e,{variant:"invisible"}))})),HC=()=>{const e=l(null),{setChildrenWidth:t}=r.useContext(zC);return $t((()=>{const r=e.current.getBoundingClientRect();t({text:"divider",width:r.width})}),[e,t]),r.createElement("div",{ref:e,"data-component":"ActionBar.VerticalDivider","aria-hidden":"true",className:jC})};HC.displayName="VerticalDivider";const FC=Object.assign(VC,{IconButton:DC,Divider:HC});var WC="prc_PageHeader_sT1Hp",$C="prc_ContextArea_6ykSJ",ZC="prc_ParentLink_BvDS0",KC="prc_ContextBar_XQ8Q0",GC="prc_ContextAreaActions_RTJRk",qC="prc_TitleArea_jxJZy",UC="prc_LeadingAction_88LQ0",YC="prc_Breadcrumbs_3c6ig",XC="prc_LeadingVisual_7zjCx",QC="prc_Title_LKOsd",JC="prc_TrailingVisual_7Ft0D",ek="prc_TrailingAction_QOaow",rk="prc_Actions_ygtmj",tk="prc_Description_kFg8r",ok="prc_Navigation_9Uvch";function ak(){return ak=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ak.apply(null,arguments)}const nk=1,lk=2,ik=2,ck=2,sk=2,dk=2,gk=3,uk=4,vk=0,bk=1,fk=2,hk=0,mk=1,pk=2,yk={narrow:!1,regular:!0,wide:!0},xk={narrow:!0,regular:!1,wide:!1},wk="primer_react_css_modules_team",Ck=r.forwardRef((({children:e,className:t,sx:o={},as:n="div","aria-label":l,role:i},c)=>{const s=bo(wk),d={display:"grid",gridTemplateColumns:"auto auto auto auto 1fr",gridTemplateAreas:"\n 'context-area context-area context-area context-area context-area'\n 'leading-action breadcrumbs title-area trailing-action actions'\n 'description description description description description'\n 'navigation navigation navigation navigation navigation'\n ",'&:has([data-component="TitleArea"][data-size-variant="large"])':{fontSize:"var(--custom-font-size, var(--text-title-size-large, 2rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))"},'&:has([data-component="TitleArea"][data-size-variant="medium"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-semibold, 600))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'&:has([data-component="TitleArea"][data-size-variant="subtitle"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'[data-component="PH_LeadingAction"], [data-component="PH_TrailingAction"],[data-component="PH_Actions"], [data-component="PH_LeadingVisual"], [data-component="PH_TrailingVisual"]':{height:"calc(var(--title-line-height) * 1em)"}},g=ct(c);return a((function(){}),[e,g]),r.createElement(ho,{ref:g,as:n,className:Gr(s&&WC,t),sx:s?o:tt(d,o),"aria-label":l,role:i},e)})),kk=({children:e,className:t,hidden:o=yk,sx:a={}})=>{const n=bo(wk),l={gridRow:nk,gridArea:"context-area",display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:"0.5rem",gap:"0.5rem",...Tv(o,"display",(e=>e?"none":"flex")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"};return r.createElement(ho,ak({className:Gr(n&&$C,t),sx:n?a:tt(l,a)},zk(n,o)),e)};kk.displayName="ContextArea";const Ek=r.forwardRef((({children:e,className:t,sx:o={},href:a,"aria-label":n,as:l="a",hidden:i=yk},c)=>{const s=bo(wk);return r.createElement(r.Fragment,null,r.createElement(au,ak({ref:c,as:l,"aria-label":n,muted:!0,className:Gr(s&&ZC,t),sx:s?o:tt({display:"flex",alignItems:"center",order:hk,gap:"0.5rem",...Tv(i,"display",(e=>e?"none":"flex"))},o)},zk(s,i),{href:a}),r.createElement(Nc,null),r.createElement(ho,null,e)))}));Ek.displayName="ParentLink";const Bk=({children:e,className:t,sx:o={},hidden:a=yk})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&KC,t),sx:n?o:tt({display:"flex",order:mk,...Tv(a,"display",(e=>e?"none":"flex"))},o)},zk(n,a)),e)};Bk.displayName="ContextBar";const Tk=({children:e,className:t,sx:o={},hidden:a=yk})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&GC,t)},zk(n,a),{sx:n?o:tt({display:"flex",flexDirection:"row",order:pk,alignItems:"center",gap:"0.5rem",flexGrow:"1",justifyContent:"right",...Tv(a,"display",(e=>e?"none":"flex"))},o)},zk(n,a)),e)};Tk.displayName="ContextAreaActions";const Nk=r.forwardRef((({children:e,className:t,sx:o={},hidden:a=!1,variant:n="medium"},l)=>{const i=bo(wk),c=ct(l),s=oi(n,"medium");return r.createElement(ho,ak({className:Gr(i&&qC,t),ref:c,"data-component":"TitleArea","data-size-variant":s,sx:i?o:tt({gridRow:ck,gridArea:"title-area",display:"flex",gap:"0.5rem",...Tv(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"flex-start"},o)},zk(i,a)),e)}));Nk.displayName="TitleArea";const Sk=({children:e,className:t,sx:o={},hidden:a=xk})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&UC,t),"data-component":"PH_LeadingAction",sx:n?o:tt({gridRow:lk,gridArea:"leading-action",paddingRight:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Sk.displayName="LeadingAction";const _k=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&YC,t),"data-component":"PH_Breadcrumbs",sx:n?o:tt({gridRow:ik,gridArea:"breadcrumbs",paddingRight:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},o)},zk(n,a)),e)};_k.displayName="Breadcrumbs";const Ik=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&XC,t),"data-component":"PH_LeadingVisual",sx:n?o:tt({display:"flex",order:vk,...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Ik.displayName="LeadingVisual";const Ak=({children:e,className:t,sx:o={},hidden:a=!1,as:n="h2"})=>{const l=bo(wk),i={},{fontSize:c,lineHeight:s,fontWeight:d}=o;return c&&(i["--custom-font-size"]=c),s&&(i["--custom-line-height"]=s),d&&(i["--custom-font-weight"]=d),r.createElement(Ud,ak({className:Gr(l&&QC,t),"data-component":"PH_Title","data-hidden":a,as:n,style:i,sx:l?o:tt({display:"flex",order:bk,...Tv(a,"display",(e=>e?"none":"block")),fontSize:"inherit",fontWeight:"inherit"},o)},zk(l,a)),e)};Ak.displayName="Title";const Mk=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&JC,t),"data-component":"PH_TrailingVisual",sx:n?o:tt({display:"flex",order:fk,...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Mk.displayName="TrailingVisual";const Lk=({children:e,className:t,sx:o={},hidden:a=xk})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&ek,t),"data-component":"PH_TrailingAction",sx:n?o:tt({gridRow:sk,gridArea:"trailing-action",paddingLeft:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Lk.displayName="TrailingAction";const Ok=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&rk,t),"data-component":"PH_Actions",sx:n?o:tt({gridRow:dk,gridArea:"actions",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),flexDirection:"row",paddingLeft:"0.5rem",gap:"0.5rem",minWidth:"max-content",justifyContent:"right",alignItems:"center"},o),style:l},zk(n,a)),e)};Ok.displayName="Actions";const jk=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&tk,t),sx:n?o:tt({gridRow:gk,gridArea:"description",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"center",paddingTop:"0.5rem",gap:"0.5rem",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},o)},zk(n,a)),e)};jk.displayName="Description";const Rk=({children:e,className:t,sx:o={},hidden:a=!1,as:n,"aria-label":l,"aria-labelledby":i})=>{const c=bo(wk);return r.createElement(ho,ak({as:n,"aria-label":"nav"===n?l:void 0,"aria-labelledby":"nav"===n?i:void 0,className:Gr(c&&ok,t),sx:c?o:tt({gridRow:uk,gridArea:"navigation",paddingTop:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"block")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},o)},zk(c,a)),e)};function zk(e,r){if(!e)return{};if(ti(r)){const e=r,t="narrow"in e?{"data-hidden-narrow":e.narrow||void 0}:{},o="regular"in e?{"data-hidden-regular":e.regular||void 0}:{},a="wide"in e?{"data-hidden-wide":e.wide||void 0}:{};return Ev(e)?{"data-hidden-all":e.narrow||void 0}:Bv(e)?{...t,...o}:{...t,...o,...a}}return{"data-hidden-all":r||void 0}}Rk.displayName="Navigation";const Pk=Object.assign(Ck,{ContextArea:kk,ParentLink:Ek,ContextBar:Bk,TitleArea:Nk,ContextAreaActions:Tk,LeadingAction:Sk,Breadcrumbs:_k,LeadingVisual:Ik,Title:Ak,TrailingVisual:Mk,TrailingAction:Lk,Actions:Ok,Description:jk,Navigation:Rk});Pk.displayName="PageHeader";export{FC as ActionBar,cu as ActionList,Tu as ActionMenu,pu as AnchoredOverlay,bv as Autocomplete,pv as Avatar,Dv as AvatarPair,eb as AvatarStack,Nw as AvatarToken,Eo as BaseStyles,ho as Box,lb as BranchName,Cb as Breadcrumb,wb as Breadcrumbs,On as Button,Mn as ButtonBase,Bb as ButtonGroup,Mb as Caret,Fb as Checkbox,gm as CheckboxGroup,mm as CircleBadge,Ob as CircleOcticon,Ks as ConfirmationDialog,$o as CounterLabel,Cm as Details,Ls as Dialog,Tm as Flash,cm as FormControl,Pm as Header,Ud as Heading,Yl as IconButton,xw as IssueLabelToken,Hm as Label,Gm as LabelGroup,au as Link,Ql as LinkButton,dp as NavList,hu as Overlay,Pk as PageHeader,nc as PageLayout,xp as Pagination,Ep as PointerBox,Op as Popover,es as Portal,Zp as ProgressBar,Zd as Radio,Hd as RadioGroup,Sy as RelativeTime,Uy as SegmentedControl,Jb as Select,eh as SelectPanel,nx as SideNav,Ho as Spinner,uc as SplitPageLayout,Cd as Stack,ux as StateLabel,Tx as SubNav,kl as Text,Ju as TextInput,Lh as TextInputWithTokens,Ph as Textarea,lo as ThemeProvider,ew as Timeline,Rx as ToggleSwitch,Nh as Token,Gl as Tooltip,aC as TreeView,Vg as Truncate,MC as UnderlineNav,Lo as VisuallyHidden,Js as createComponent,tt as merge,Jc as registerPortalRoot,fo as sx,A as theme,Wr as themeGet,co as useColorSchemeVar,qs as useConfirm,vc as useDetails,hc as useFocusTrap,Uc as useFocusZone,Pb as useFormControlForwardedProps,$t as useIsomorphicLayoutEffect,ut as useOnEscapePress,it as useOnOutsideClick,xt as useOpenAndCloseFocus,Gt as useOverlay,ct as useProvidedRefOrCreate,eo as useRefObjectAsForwardedRef,Zt as useResizeObserver,oi as useResponsiveValue,zl as useSafeTimeout,io as useTheme};
12
+ */const Us=new Set(["children","localName","ref","style","className"]),Ys=new WeakMap,Xs=(e,r,t,o,a)=>{const n=null==a?void 0:a[r];void 0===n||t===o?null==t&&r in HTMLElement.prototype?e.removeAttribute(r):e[r]=t:((e,r,t)=>{let o=Ys.get(e);void 0===o&&Ys.set(e,o=new Map);let a=o.get(r);void 0!==t?void 0===a?(o.set(r,a={handleEvent:t}),e.addEventListener(r,a)):a.handleEvent=t:void 0!==a&&(o.delete(r),e.removeEventListener(r,a))})(e,n,t)};const Qs=e=>e[0].toUpperCase()+e.slice(1).replace(/(-\w)/g,(e=>e[1].toUpperCase())),Js=(e,t,o=void 0)=>{const a=Object.assign(Object.assign(p(function(e=window.React,r,t,o,a){let n,l,i;{const r=e;({tagName:l,elementClass:i,events:o,displayName:a}=r),n=r.react}const c=n.Component,s=n.createElement,d=new Set(Object.keys(null!=o?o:{}));class g extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(const r in this.i)Xs(this.o,r,this.props[r],e?e[r]:void 0,o)}componentDidMount(){var e;this.t(),null===(e=this.o)||void 0===e||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){const{_$Gl:e,...r}=this.props;this.h!==e&&(this.u=r=>{null!==e&&((e,r)=>{"function"==typeof e?e(r):e.current=r})(e,r),this.o=r,this.h=e}),this.i={};const t={ref:this.u};for(const[e,o]of Object.entries(r))Us.has(e)?t["className"===e?"class":e]=o:d.has(e)||e in i.prototype?this.i[e]=o:t[e]=o;return t.suppressHydrationWarning=!0,s(l,t)}}g.displayName=null!=a?a:i.name;const u=n.forwardRef(((e,r)=>s(g,{...e,_$Gl:r},null==e?void 0:e.children)));return u.displayName=g.displayName,u}({tagName:t,elementClass:e,react:r,events:o})),{displayName:Qs(t)})(fo),{displayName:Qs(t)});return a},ed=w(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),rd=p.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&C(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],ed))),td=({show:e,children:t})=>{const[o,n]=i(e);a((()=>{e&&n(!0)}),[e]);return o?r.createElement(ho,{height:e?"auto":0,overflow:"hidden"},r.createElement(rd,{show:e,onAnimationEnd:()=>{e||n(!1)}},t)):null},od=r.createContext({});var ad="prc_Body_cNQoa",nd="prc_GroupFieldset_0NZzG",ld="prc_GroupLegend_HW4-c",id="prc_CheckboxOrRadioGroupCaption_9GgyY",cd="prc_RadioGroupLabel_anQ3U",sd="prc_GroupLabelChildren_j5sBI";const dd="primer_react_css_modules_ga",gd=({className:e,children:t,sx:o})=>{const{disabled:a,captionId:n}=r.useContext(od);return bo(dd)?o?r.createElement(kl,{className:Gr(e,id),id:n,sx:o},t):r.createElement("span",{className:Gr(e,id),id:n},t):r.createElement(kl,{color:a?"fg.muted":"fg.subtle",fontSize:1,id:n,sx:o,className:e},t)};function ud(e,r){if(null!=r)return"object"==typeof r?Object.fromEntries(Object.entries(r).map((([r,t])=>vd(`data-${e}-${r}`,t)))):Object.fromEntries([vd(`data-${e}`,r)])}function vd(e,r){return[e,r]}gd.displayName="CheckboxOrRadioGroupCaption";var bd="prc_Stack_WJVsK",fd="prc_StackItem_CweWT";function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},hd.apply(null,arguments)}const md="primer_react_css_modules_ga",pd=So(md,"div",p.div.withConfig({displayName:"Stack__StyledStack",componentId:"sc-x3xa2i-0"})(["display:flex;flex-flow:column;align-items:stretch;align-content:flex-start;gap:var(--stack-gap,var(--stack-gap-normal,1rem));&[data-padding='none'],&[data-padding-narrow='none']{padding:0;}&[data-padding='condensed'],&[data-padding-narrow='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding='normal'],&[data-padding-narrow='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding='spacious'],&[data-padding-narrow='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction='horizontal'],&[data-direction-narrow='horizontal']{flex-flow:row;}&[data-direction='vertical'],&[data-direction-narrow='vertical']{flex-flow:column;}&[data-gap='none'],&[data-gap-narrow='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap='condensed'],&[data-gap-narrow='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap='normal'],&[data-gap-narrow='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap='spacious'],&[data-gap-narrow='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align='start'],&[data-align-narrow='start']{align-items:flex-start;}&[data-align='center'],&[data-align-narrow='center']{align-items:center;}&[data-align='end'],&[data-align-narrow='end']{align-items:flex-end;}&[data-align='baseline'],&[data-align-narrow='baseline']{align-items:baseline;}&[data-justify='start'],&[data-justify-narrow='start']{justify-content:flex-start;}&[data-justify='center'],&[data-justify-narrow='center']{justify-content:center;}&[data-justify='end'],&[data-justify-narrow='end']{justify-content:flex-end;}&[data-justify='space-between'],&[data-justify-narrow='space-between']{justify-content:space-between;}&[data-justify='space-evenly'],&[data-justify-narrow='space-evenly']{justify-content:space-evenly;}&[data-wrap='wrap'],&[data-wrap-narrow='wrap']{flex-wrap:wrap;}&[data-wrap='nowrap'],&[data-wrap-narrow='nowrap']{flex-wrap:nowrap;}@media (min-width:48rem){&[data-padding-regular='none']{padding:0;}&[data-padding-regular='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-regular='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-regular='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-regular='horizontal']{flex-flow:row;}&[data-direction-regular='vertical']{flex-flow:column;}&[data-gap-regular='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-regular='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-regular='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-regular='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-regular='start']{align-items:flex-start;}&[data-align-regular='center']{align-items:center;}&[data-align-regular='end']{align-items:flex-end;}&[data-align-regular='baseline']{align-items:baseline;}&[data-justify-regular='start']{justify-content:flex-start;}&[data-justify-regular='center']{justify-content:center;}&[data-justify-regular='end']{justify-content:flex-end;}&[data-justify-regular='space-between']{justify-content:space-between;}&[data-justify-regular='space-evenly']{justify-content:space-evenly;}&[data-wrap-regular='wrap']{flex-wrap:wrap;}&[data-wrap-regular='nowrap']{flex-wrap:nowrap;}}@media (min-width:87.5rem){&[data-padding-wide='none']{padding:0;}&[data-padding-wide='condensed']{padding:var(--stack-padding-condensed,8px);}&[data-padding-wide='normal']{padding:var(--stack-padding-normal,16px);}&[data-padding-wide='spacious']{padding:var(--stack-padding-spacious,24px);}&[data-direction-wide='horizontal']{flex-flow:row;}&[data-direction-wide='vertical']{flex-flow:column;}&[data-gap-wide='none']{--stack-gap:var(--stack-gap-none,0);}&[data-gap-wide='condensed']{--stack-gap:var(--stack-gap-condensed,0.5rem);}&[data-gap-wide='normal']{--stack-gap:var(--stack-gap-normal,1rem);}&[data-gap-wide='spacious']{--stack-gap:var(--stack-gap-spacious,1.5rem);}&[data-align-wide='start']{align-items:flex-start;}&[data-align-wide='center']{align-items:center;}&[data-align-wide='end']{align-items:flex-end;}&[data-align-wide='baseline']{align-items:baseline;}&[data-justify-wide='start']{justify-content:flex-start;}&[data-justify-wide='center']{justify-content:center;}&[data-justify-wide='end']{justify-content:flex-end;}&[data-justify-wide='space-between']{justify-content:space-between;}&[data-justify-wide='space-evenly']{justify-content:space-evenly;}&[data-wrap-wide='wrap']{flex-wrap:wrap;}&[data-wrap-wide='nowrap']{flex-wrap:nowrap;}}"]));function yd({as:e,children:t,align:o="stretch",direction:a="vertical",gap:n,justify:l="start",padding:i="none",wrap:c="nowrap",className:s,...d}){const g=null!=e?e:"div",u=bo(md);return r.createElement(pd,hd({},d,{as:g,className:Gr(s,{[bd]:u})},ud("gap",n),ud("direction",a),ud("align",o),ud("wrap",c),ud("justify",l),ud("padding",i)),t)}yd.displayName="Stack";const xd=So(md,"div",p.div.withConfig({displayName:"Stack__StyledStackItem",componentId:"sc-x3xa2i-1"})(["flex:0 1 auto;min-inline-size:0;&[data-grow='true'],&[data-grow-narrow='true']{flex-grow:1;}@media (min-width:48rem){&[data-grow-regular='true']{flex-grow:1;}&[data-grow-regular='false']{flex-grow:0;}}@media (min-width:87.5rem){&[data-grow-wide='true']{flex-grow:1;}&[data-grow-wide='false']{flex-grow:0;}}"]));function wd({as:e,children:t,grow:o,className:a,...n}){const l=null!=e?e:"div",i=bo(md);return r.createElement(xd,hd({},n,{as:l,className:Gr(a,{[fd]:i})},ud("grow",o)),t)}wd.displayName="StackItem";const Cd=Object.assign(yd,{Item:wd}),kd=({children:e,className:t,visuallyHidden:o=!1,sx:a})=>{const{required:n,disabled:l}=r.useContext(od);return bo(dd)?a?r.createElement(El,{className:Gr(t,cd),isVisible:!o,title:n?"required field":void 0,"data-label-disabled":l?"":void 0,sx:a},n?r.createElement(Cd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:sd},e),r.createElement("span",null,"*")):e):r.createElement(El,{className:Gr(t,cd),isVisible:!o,title:n?"required field":void 0,"data-label-disabled":l?"":void 0},n?r.createElement(Cd,{direction:"horizontal",gap:"none"},r.createElement("div",{className:sd},e),r.createElement("span",null,"*")):e):r.createElement(El,{className:t,isVisible:!o,title:n?"required field":void 0,sx:{display:"block",color:l?"fg.muted":void 0,fontSize:1,fontWeight:"bold",...a}},n?r.createElement(ho,{display:"flex",as:"span"},r.createElement(ho,{mr:1},e),r.createElement("span",null,"*")):e)};kd.displayName="CheckboxOrRadioGroupLabel";const Ed="primer_react_css_modules_team";var Bd="prc_InputValidation_GjS0D",Td="prc_ValidationIcon_Kdbbr",Nd="prc_ValidationText_jjsBp";const Sd={success:_c,error:Tc},_d=({children:e,id:t,validationStatus:o,sx:a})=>{const n=bo(Ed),l=o?Sd[o]:void 0,i=16/12;return r.createElement(Id,{className:Gr({[Bd]:n}),"data-validation-status":o,sx:a},l?r.createElement(Ad,{"aria-hidden":"true",className:Gr({[Td]:n}),style:{"--inputValidation-iconSize":16}},r.createElement(l,{size:12,fill:"currentColor"})):null,r.createElement(Md,{id:t,className:Gr({[Nd]:n}),style:{"--inputValidation-lineHeight":i}},e))};_d.displayName="InputValidation";const Id=p(kl).withConfig({displayName:"InputValidation__StyledInputValidation",componentId:"sc-1b199hv-0"})(["color:var(--inputValidation-fgColor);display:flex;font-size:var(--text-body-size-small);font-weight:600;& :where(a){color:currentColor;text-dectoration:underline;}&:where([data-validation-status='success']){--inputValidation-fgColor:var(--fgColor-success);}&:where([data-validation-status='error']){--inputValidation-fgColor:var(--fgColor-danger);}",""],fo),Ad=p.span.withConfig({displayName:"InputValidation__StyledValidationIcon",componentId:"sc-1b199hv-1"})(["align-items:center;display:flex;margin-inline-end:var(--base-size-4);min-height:var(--inputValidation-iconSize);"]),Md=p.span.withConfig({displayName:"InputValidation__StyledValidationText",componentId:"sc-1b199hv-2"})(["line-height:var(--inputValidation-lineHeight);"]),Ld=({children:e,variant:t,sx:o})=>{const{validationMessageId:a=""}=r.useContext(od);return r.createElement(_d,{validationStatus:t,id:a,sx:o},e)};function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Od.apply(null,arguments)}Ld.displayName="CheckboxOrRadioGroupValidation";const jd=So(dd,"div",p.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Wr("space.2"))),Rd=({"aria-labelledby":e,children:t,disabled:o=!1,id:a,required:n=!1,className:l,sx:i})=>{const[c,s]=ai(t,{caption:gd,label:kd,validation:Ld}),d=r.Children.toArray(t).find((e=>r.isValidElement(e)&&e.type===kd)),g=r.Children.toArray(t).find((e=>r.isValidElement(e)&&e.type===Ld?e:null)),u=r.Children.toArray(t).find((e=>r.isValidElement(e)&&e.type===gd?e:null)),v=ro(a),b=g?`${v}-validationMessage`:void 0,f=u?`${v}-caption`:void 0;d||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const h=r.isValidElement(d)&&!d.props.visuallyHidden;return bo(dd)?i?r.createElement(od.Provider,{value:{disabled:o,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ho,Od({className:Gr(l,nd),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:o},{sx:i}),d?r.createElement("legend",{className:ld,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(El,null,c.validation.props.children)):c.caption,r.createElement(jd,Od({className:ad},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement(td,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(od.Provider,{value:{disabled:o,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement("fieldset",Od({className:Gr(l,nd),"data-validation":g?"":void 0},d&&{as:"fieldset",disabled:o}),d?r.createElement("legend",{className:ld,"data-legend-visible":h?"":void 0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(El,null,c.validation.props.children)):c.caption,r.createElement(jd,Od({className:ad},!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"}),r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement(td,{"aria-hidden":Boolean(d),show:!0},c.validation))):r.createElement(od.Provider,{value:{disabled:o,required:n,captionId:f,validationMessageId:b}},r.createElement("div",null,r.createElement(ho,Od({border:"none",margin:0,mb:g?2:void 0,padding:0},d&&{as:"fieldset",disabled:o},{className:l,sx:i}),d?r.createElement(ho,{as:"legend",mb:h?2:void 0,padding:0},c.label,c.caption,r.isValidElement(c.validation)&&c.validation.props.children&&r.createElement(El,null,c.validation.props.children)):c.caption,r.createElement(jd,!d&&{"aria-labelledby":e,"aria-describedby":[b,f].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(s).filter((e=>r.isValidElement(e))))),g&&r.createElement(td,{"aria-hidden":Boolean(d),show:!0},c.validation)))};Rd.displayName="CheckboxOrRadioGroup";var zd=Object.assign(Rd,{Caption:gd,Label:kd,Validation:Ld});function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pd.apply(null,arguments)}const Vd=d(null),Dd=({children:e,disabled:t,onChange:o,name:a,...n})=>{const[l,i]=qt(null);return r.createElement(Vd.Provider,{value:{disabled:t,name:a,onChange:e=>{o&&((e=>{const{value:r,checked:t}=e.currentTarget;t&&i(r)})(e),o(l.current,e))}}},r.createElement(zd,Pd({disabled:t},n),e))};Dd.displayName="RadioGroup";var Hd=Object.assign(Dd,{Caption:gd,Label:kd,Validation:Ld}),Fd="prc_Radio_Ly4MR",Wd="prc_Input_mxggT";function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$d.apply(null,arguments)}const Zd=r.forwardRef((({checked:e,disabled:t,name:o,onChange:a,sx:n=To,required:l,validationStatus:i,value:c,className:s,...d},u)=>{const v=g(Vd),b=e=>{(null==v?void 0:v.onChange)&&v.onChange(e),a&&a(e)},f=o||(null==v?void 0:v.name);return f||console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop"),n!==To?r.createElement(ho,$d({as:"input",sx:n,type:"radio",value:c,name:f,ref:u,disabled:t,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===i?"true":"false",onChange:b,className:Gr(s,Wd,Fd)},d)):r.createElement("input",$d({type:"radio",value:c,name:f,ref:u,disabled:t,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===i?"true":"false",onChange:b,className:Gr(s,Wd,Fd)},d))}));Zd.displayName="Radio";const Kd=r.createContext({});var Gd="prc_Heading_6CmGO";function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qd.apply(null,arguments)}const Ud=u((({as:e="h2",className:t,variant:o,...a},n)=>{const l=r.useRef(null);return eo(n,l),a.sx?r.createElement(ho,qd({as:e,className:Gr(t,Gd),"data-variant":o},a,{ref:l})):r.createElement(e,qd({className:Gr(t,Gd),"data-variant":o},a,{ref:l}))}));Ud.displayName="Heading";const Yd=r.createContext({}),Xd=(e,r,t)=>r?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:t?{color:"fg.muted",iconColor:"fg.muted",annotationColor:"fg.muted"}:"danger"===e?{color:"danger.fg",iconColor:"danger.fg",annotationColor:"fg.muted",hoverColor:"actionListItem.danger.hoverText"}:{color:"fg.default",iconColor:"fg.muted",annotationColor:"fg.muted",hoverColor:"fg.default"},Qd=r.createContext({});var Jd="prc_ActionListHeader_lEr8v";const eg="primer_react_css_modules_staff";function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rg.apply(null,arguments)}const tg=u((({as:e,size:t,children:o,sx:a=To,visuallyHidden:n=!1,className:l,...i},c)=>{var s,d,g;const u=r.useRef(null);eo(c,u);const v=bo(eg),{headingId:b,variant:f}=r.useContext(Qd),{container:h}=r.useContext(Kd);"ActionMenu"===h&&Rn(!1);const m={marginBottom:2,marginX:"full"===f?2:3};return r.createElement(El,{isVisible:!n},v?a!==To?r.createElement(Ud,rg({as:e,variant:t,ref:u,id:null!==(s=i.id)&&void 0!==s?s:b,className:Gr(l,Jd),"data-list-variant":f,sx:a},i),o):r.createElement(Ud,rg({as:e,variant:t,ref:u,id:null!==(d=i.id)&&void 0!==d?d:b,className:Gr(l,Jd),"data-list-variant":f},i),o):r.createElement(Ud,rg({as:e,variant:t,ref:u,id:null!==(g=i.id)&&void 0!==g?g:b,sx:tt(m,a),className:l},i),o))}));tg.displayName="ActionList.Heading";var og="prc_ActionList_X4RiC",ag="prc_ActionListItem_uq6I7",ng="prc_ActionListSubContent_lP9xj",lg="prc_Divider_rsZFG",ig="prc_TrailingAction_RmUk1",cg="prc_TrailingVisual_XocgV",sg="prc_ItemLabel_TmBhn",dg="prc_InactiveWarning_YRMKV",gg="prc_ActionListContent_sg9-x",ug="prc_Spacer_dydlX",vg="prc_MultiSelectCheckbox_nK6PJ",bg="prc_SingleSelectCheckmark_Vqn87",fg="prc_ExpandIcon_SKUGP",hg="prc_SubGroup_24eK2",mg="prc_LeadingAction_Oy04M",pg="prc_LeadingVisual_dxXxW",yg="prc_ItemDescriptionWrap_VJA7h",xg="prc_Description_G0lJ3",wg="prc_VisualWrap_rfjV-",Cg="prc_TrailingActionButton_i2wnc",kg="prc_InactiveButtonWrap_T6Jfa",Eg="prc_InactiveButtonReset_3lIQX";function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bg.apply(null,arguments)}const Tg=p.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(fo),Ng=r.forwardRef((({variant:e="inset",selectionVariant:t,showDividers:o=!1,role:a,sx:n=To,className:l,...i},c)=>{var s;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[g,u]=ai(i.children,{heading:tg}),v=ro(),{listRole:b,listLabelledBy:f,selectionVariant:h,enableFocusZone:m}=r.useContext(Kd),p=g.heading?null!==(s=g.heading.props.id)&&void 0!==s?s:v:f,y=a||b,x=ct(c);let w=!1;void 0!==m?w=m:y&&(w=["menu","menubar","listbox"].includes(y)),Uc({disabled:!w,containerRef:x,bindKeys:Ot.ArrowVertical|Ot.HomeAndEnd|Ot.PageUpDown,focusOutBehavior:"menu"===y?"wrap":void 0});const C=bo(eg);return r.createElement(Qd.Provider,{value:{variant:e,selectionVariant:t||h,showDividers:o,role:y,headingId:v}},g.heading,C?n!==To?r.createElement(Tg,Bg({sx:tt(d,n),className:Gr(og,l),role:y,"aria-labelledby":p,ref:x,"data-dividers":o,"data-variant":e},i),u):r.createElement("ul",Bg({className:Gr(og,l),role:y,"aria-labelledby":p,ref:x,"data-dividers":o,"data-variant":e},i),u):r.createElement(Tg,Bg({sx:tt(d,n),role:y,"aria-labelledby":p},i,{ref:x,className:l}),u))}));Ng.displayName="ActionList";var Sg="prc_Group_fXpF9",_g="prc_GroupHeadingWrap_pfbd9",Ig="prc_GroupHeading_eahp0";function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ag.apply(null,arguments)}const Mg=({as:e="h3",className:t,children:o,sx:a=To,id:n,...l})=>r.createElement(ho,Ag({as:e,className:t,sx:a,id:n},l),o);Mg.displayName="Heading";const Lg=({as:e="div",children:t,className:o,...a})=>r.createElement(e,{...a,className:o},t),Og=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),jg=({title:e,variant:t="subtle",auxiliaryText:o,selectionVariant:a,role:n,sx:l=To,...i})=>{var c;const s=bo(eg),d=ro(),{role:g}=r.useContext(Qd),[u,v]=ai(i.children,{groupHeading:Rg});let b;var f,h,m;u.groupHeading&&(b=null!==(f=u.groupHeading.props.id)&&void 0!==f?f:d);return e&&(b=d),s?l!==To?r.createElement(ho,Ag({as:"li",className:Sg,role:g?"none":void 0,sx:l},i),r.createElement(Og.Provider,{value:{selectionVariant:a,groupHeadingId:b}},e&&!u.groupHeading?r.createElement(Rg,{variant:t,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?r.cloneElement(u.groupHeading):null,r.createElement("ul",{"aria-labelledby":g?void 0:b,"aria-label":g?null!=e?e:null===(m=u.groupHeading)||void 0===m?void 0:m.props.children:void 0,role:n||g&&"group"},u.groupHeading?v:i.children))):r.createElement("li",Ag({className:Sg,role:g?"none":void 0},i),r.createElement(Og.Provider,{value:{selectionVariant:a,groupHeadingId:b}},e&&!u.groupHeading?r.createElement(Rg,{variant:t,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?r.cloneElement(u.groupHeading):null,r.createElement("ul",{"aria-labelledby":g?void 0:b,"aria-label":g?null!=e?e:null===(h=u.groupHeading)||void 0===h?void 0:h.props.children:void 0,role:n||g&&"group"},u.groupHeading?v:i.children))):r.createElement(ho,Ag({as:"li",role:g?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Og.Provider,{value:{selectionVariant:a,groupHeadingId:b}},e&&!u.groupHeading?r.createElement(Rg,{variant:t,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?r.cloneElement(u.groupHeading):null,r.createElement(ho,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":g?void 0:b,"aria-label":g?null!=e?e:null===(c=u.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:n||g&&"group"},u.groupHeading?v:i.children)))};jg.displayName="Group";const Rg=({as:e,variant:t="subtle",_internalBackwardCompatibleTitle:o,auxiliaryText:a,children:n,className:l,sx:i=To,headingWrapElement:c="div",...s})=>{const{role:d}=r.useContext(Qd),{groupHeadingId:g}=r.useContext(Og),u=void 0!==d&&"list"!==d&&void 0!==n&&void 0!==e;return(void 0===d||"list"===d)&&void 0!==n&&void 0===e&&Rn(!1),u&&Rn(!1),r.createElement(r.Fragment,null,d&&"list"!==d?r.createElement(Lg,Ag({role:"presentation",className:_g,"aria-hidden":"true","data-variant":t,"data-component":"GroupHeadingWrap",as:c},s),r.createElement("span",{className:Gr(l,Ig),id:g},null!=o?o:n),a&&r.createElement("div",{className:xg},a)):r.createElement(Lg,{className:_g,"data-variant":t,as:c,"data-component":"GroupHeadingWrap"},i!==To?r.createElement(Mg,Ag({className:Gr(l,Ig),as:e||"h3",id:g,sx:i},s),null!=o?o:n):r.createElement(Mg,Ag({className:Gr(l,Ig),as:e||"h3",id:g},s),null!=o?o:n),a&&r.createElement("div",{className:xg},a)))};function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zg.apply(null,arguments)}const Pg=p.div.withConfig({displayName:"Truncate__StyledTruncate",componentId:"sc-23o1d2-0"})(["display:",";overflow:hidden;text-overflow:ellipsis;vertical-align:",";white-space:nowrap;"," "," ",";"],(e=>e.inline?"inline-block":"inherit"),(e=>e.inline?"top":"initial"),Oe,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),fo),Vg=r.forwardRef((function({as:e,expandable:t=!1,inline:o=!1,maxWidth:a=125,...n},l){return r.createElement(Pg,zg({ref:l,as:e,expandable:t,inline:o,maxWidth:a},n))}));const Dg=({variant:e="inline",sx:t=To,className:o,truncate:a,...n})=>{const l={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:"inline"!==e||a?0:"auto",minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &[data-component="ActionList.Description"]':{color:"inherit"},'li[data-variant="danger"]:hover &[data-component="ActionList.Description"], li[data-variant="danger"]:active &[data-component="ActionList.Description"]':{color:"inherit"}},{blockDescriptionId:i,inlineDescriptionId:c}=r.useContext(Yd);return bo(eg)?t!==To?"block"!==e&&a?r.createElement(Vg,{id:c,className:o,sx:tt(l,t),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description"},n.children):r.createElement(ho,{as:"span",sx:tt(l,t),id:"block"===e?i:c,className:o,"data-component":"ActionList.Description"},n.children):"block"!==e&&a?r.createElement(Vg,{id:c,className:Gr(o,xg),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description","data-truncate":a},n.children):r.createElement("span",{className:Gr(o,xg),"data-component":"ActionList.Description",id:"block"===e?i:c},n.children):"block"!==e&&a?r.createElement(Vg,{id:c,className:o,sx:tt(l,t),title:n.children,inline:!0,maxWidth:"100%","data-component":"ActionList.Description"},n.children):r.createElement(ho,{as:"span",sx:tt(l,t),id:"block"===e?i:c,className:o,"data-component":"ActionList.Description"},n.children)};function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hg.apply(null,arguments)}const Fg=({sx:e=To,className:t,...o})=>e!==To?r.createElement(ho,Hg({as:"span",className:Gr(t,wg),sx:e},o)):r.createElement("span",Hg({className:Gr(t,wg)},o));Fg.displayName="VisualContainer";const Wg=({sx:e=To,...t})=>r.createElement(ho,Hg({as:"span",sx:tt({height:"20px",maxWidth:"20px",display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2,color:"fg.muted"},e)},t));Wg.displayName="LeadingVisualContainer";const $g=({sx:e=To,className:t,...o})=>{const{variant:a,disabled:n,inactive:l}=r.useContext(Yd);return bo(eg)?r.createElement(Fg,Hg({className:Gr(t,pg),sx:e},o),o.children):r.createElement(Wg,Hg({className:t,sx:tt({color:Xd(a,n,l).iconColor,svg:{fontSize:0},'[data-variant="danger"]:not([aria-disabled]):not([data-inactive]):hover &, [data-variant="danger"]:active &':{color:Xd(a,n,l).hoverColor}},e)},o),o.children)};$g.displayName="LeadingVisual";const Zg=({sx:e=To,className:t,...o})=>{const{variant:a,disabled:n,inactive:l,trailingVisualId:i}=r.useContext(Yd);return bo(eg)?e!==To?r.createElement(Fg,Hg({className:Gr(t,cg),sx:e,id:i},o),o.children):r.createElement(Fg,Hg({className:Gr(t,cg),id:i},o),o.children):r.createElement(ho,Hg({id:i,as:"span",className:t,sx:tt({height:"20px",flexShrink:0,color:Xd(a,n,l).annotationColor,marginLeft:2,fontWeight:"initial",display:"grid",alignContent:"center",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:Xd(a,n,l).hoverColor}},e)},o),o.children)};Zg.displayName="TrailingVisual";const Kg=({children:e,labelId:t,loading:o,inactiveText:a,itemHasLeadingVisual:n,position:l,className:i})=>{const c="leading"===l?$g:Zg;return o||a?n&&"trailing"===l||!n&&"leading"===l?e:a?r.createElement("span",{className:kg},r.createElement(Gl,{text:a,type:"label"},r.createElement("button",{type:"button",className:Eg,"aria-describedby":t},r.createElement(c,null,r.createElement(Bc,null))))):r.createElement(c,{className:i},r.createElement(Ho,{size:"small"})):e},Gg=({selected:e,className:t})=>{const{selectionVariant:o,role:a}=r.useContext(Qd),{selectionVariant:n}=r.useContext(Og),l=bo(eg);let i;if(i=void 0!==n?n:o,!i){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===i||"menu"===a)return l?r.createElement(Fg,{className:t},r.createElement(Sc,{className:bg})):r.createElement(Wg,{"data-component":"ActionList.Selection",sx:{minWidth:"16px"}},e&&r.createElement(Sc,null));return l?r.createElement(Fg,{className:t},r.createElement("div",{className:vg})):r.createElement(Wg,{"data-component":"ActionList.Selection",sx:{minWidth:"16px"}},r.createElement(ho,{sx:{borderColor:e?"var(--control-checked-borderColor-rest)":"var(--control-borderColor-emphasis)",borderStyle:"solid",borderWidth:"1",borderRadius:"1",cursor:"pointer",display:"grid",height:"var(--base-size-16, 16px)",margin:"0",placeContent:"center",width:"var(--base-size-16, 16px)",backgroundColor:e?"var(--control-checked-bgColor-rest)":"canvas.default",transition:e?"background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1)":"background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms","::before":{width:"var(--base-size-16, 16px)",height:"var(--base-size-16, 16px)",visibility:e?"visible":"hidden",content:'""',backgroundColor:"fg.onEmphasis",transition:e?"visibility 0s linear 0s":"visibility 0s linear 230ms",clipPath:"inset(var(--base-size-16, 16px) 0 0 0)",maskImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')",maskSize:"75%",maskRepeat:"no-repeat",maskPosition:"center",animation:e?"checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms":"checkmarkOut 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards","@keyframes checkmarkIn":{from:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},"@keyframes checkmarkOut":{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"}}},"@media (forced-colors: active)":{borderWidth:e?"8px":"1px"}},"data-component":"ActionList.Checkbox"}))};function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qg.apply(null,arguments)}Gg.displayName="Selection";const Ug=u((({as:e="button",icon:t,label:o,href:a=null,className:n,...l},i)=>bo(eg)?r.createElement("span",{className:Gr(n,ig)},t?r.createElement(Yl,qg({as:e,"aria-label":o,icon:t,variant:"invisible",tooltipDirection:"w",href:a,ref:i,className:Cg},l)):r.createElement(On,qg({variant:"invisible",as:e,href:a,ref:i,className:Cg},l),o)):r.createElement(ho,{as:"span","data-component":"ActionList.TrailingAction",sx:{flexShrink:0}},t?r.createElement(Yl,qg({as:e,"aria-label":o,icon:t,variant:"invisible",tooltipDirection:"w",href:a,ref:i},l)):r.createElement(On,qg({variant:"invisible",as:e,href:a,ref:i},l),o))));function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Yg.apply(null,arguments)}Ug.displayName="ActionList.TrailingAction";const Xg=p.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(fo),Qg=({children:e})=>r.createElement(r.Fragment,null,e);Qg.displayName="ActionList.SubItem";const Jg=r.forwardRef((({children:e,style:t,...o},a)=>r.createElement("button",Yg({type:"button",ref:a,style:t},o),e))),eu=r.forwardRef((({children:e,...t},o)=>r.createElement("div",Yg({ref:o},t),e))),ru=r.forwardRef((({variant:e="default",disabled:t=!1,inactiveText:o,selected:a,active:n=!1,onSelect:l,sx:i=To,id:c,role:s,loading:d,_PrivateItemWrapper:g,className:u,...v},b)=>{var f,h,m;const p=bo(eg),y={leadingVisual:$g,trailingVisual:Zg,trailingAction:Ug,subItem:Qg},[x,w]=ai(v.children,p?{...y,description:Dg}:{...y,blockDescription:[Dg,e=>"block"===e.variant],inlineDescription:[Dg,e=>"block"!==e.variant]}),C={blockDescription:void 0,inlineDescription:void 0,description:void 0,...x},{container:k,afterSelect:E,selectionAttribute:B,defaultTrailingVisual:T}=r.useContext(Kd),N=T?r.createElement(Zg,null,T):null,S=null!==(f=C.trailingVisual)&&void 0!==f?f:N,{variant:_,role:I,showDividers:A,selectionVariant:M}=r.useContext(Qd),{selectionVariant:L}=r.useContext(Og),O=Boolean(o),j=O&&void 0===k,R=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[l]),z=L||M;let P;"ActionMenu"===k?P="single"===z?"menuitemradio":"multiple"===z?"menuitemcheckbox":"menuitem":"SelectPanel"===k&&"listbox"===I&&void 0!==z&&(P="option");const V=s||P,D="ActionMenu"===k||"SelectPanel"===k;let H;C.trailingAction&&D&&Rn(!1),"menuitemradio"===V||"menuitemcheckbox"===V?H="aria-checked":"option"===V&&(H="aria-selected");const F=B||H,W="option"===s||"menuitem"===s||"menuitemradio"===s||"menuitemcheckbox"===s,$=I&&["listbox","menu","list"].includes(I)||O||W||!p,Z=!$&&!g,{theme:K}=io(),G={fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"var(--borderColor-accent-emphasis)",borderRadius:2}},q={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:"16px",minHeight:5,marginX:"inset"===_?2:0,borderRadius:2,transition:"background 33.333ms linear",color:Xd(e,t,O||d).color,cursor:"pointer","&[data-loading]":{cursor:"default"},"&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--control-bgColor-disabled, rgba(175, 184, 193, 0.2))",borderColor:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"},'[data-component="ActionList.Selection"]':{color:"primer.fg.disabled"}},appearance:"none",background:"unset",border:"unset",width:"inset"===_?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible, &[data-is-active-descendant]":{outline:"solid 1px transparent !important"}},"@media (hover: hover) and (pointer: fine)":{"&:hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:Xd(e,t,O).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==K?void 0:K.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:"0 0 0 2px var(--focus-outlineColor)"},"&:active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:Xd(e,t,O).hoverColor}},'[data-component="ActionList.Item--DividerContainer"]':{position:"relative"},'[data-component="ActionList.Item--DividerContainer"]::before':{content:'" "',display:"block",position:"absolute",width:"100%",top:"-7px",border:"0 solid",borderTopWidth:A?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==K?void 0:K.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]):not([data-loading]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...n?G:{},"&[data-is-active-descendant]":{...G,fontWeight:"normal"}},U=r.useCallback((e=>{t||O||d||R(e,E)}),[R,t,O,E,d]),Y=r.useCallback((e=>{t||O||d||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),R(e,E))}),[R,t,d,O,E]),X=ro(c),Q=`${X}--label`,J=`${X}--inline-description`,ee=`${X}--block-description`,re=`${X}--trailing-visual`,te=O&&!j?`${X}--warning-message`:void 0;let oe=r.Fragment;oe=p?$?eu:Jg:r.Fragment;const ae=g||oe,ne=F&&V&&["menuitemradio","menuitemcheckbox","option"].includes(V),le={onClick:U,onKeyPress:Z?void 0:Y,"aria-disabled":!!t||void 0,"data-inactive":!!O||void 0,"data-loading":!(!d||O)||void 0,tabIndex:t||j?void 0:0,"aria-labelledby":`${Q} ${C.trailingVisual?re:""} ${C.inlineDescription?J:""}`,"aria-describedby":[C.blockDescription?ee:void 0,null!=te?te:void 0].filter(String).join(" ").trim()||void 0,...ne&&{[F]:a},role:V,id:X},ie=g?{role:V?"none":void 0,...v}:$&&{...le,...v,ref:b}||{},ce=g?le:!$&&{...le,...v,ref:b},se=null!==(h=null===(m=C.description)||void 0===m?void 0:m.props.variant)&&void 0!==h?h:"inline";return p?i!==To?r.createElement(Yd.Provider,{value:{variant:e,disabled:t,inactive:Boolean(o),inlineDescriptionId:J,blockDescriptionId:ee,trailingVisualId:re}},r.createElement(Xg,Yg({},ie,{sx:tt(q,i),ref:$?b:null,"data-variant":"danger"===e?e:void 0,"data-active":!!n||void 0,"data-inactive":!!o||void 0,"data-has-subitem":!!C.subItem||void 0,className:Gr(ag,u)}),r.createElement(ae,Yg({},ce,{className:gg}),r.createElement("span",{className:ug}),r.createElement(Gg,{selected:a,className:mg}),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"leading"},C.leadingVisual),r.createElement("span",{className:ng},r.createElement(Zo,{if:!!C.description,className:yg,"data-description-variant":se},r.createElement("span",{id:Q,className:sg},w,!0===d&&r.createElement(El,null,"Loading")),C.description),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"trailing"},S),O&&k?r.createElement("span",{className:dg,id:te},o):null)),!O&&!d&&!D&&Boolean(C.trailingAction)&&C.trailingAction,C.subItem)):r.createElement(Yd.Provider,{value:{variant:e,disabled:t,inactive:Boolean(o),inlineDescriptionId:J,blockDescriptionId:ee,trailingVisualId:re}},r.createElement("li",Yg({},ie,{ref:$?b:null,"data-variant":"danger"===e?e:void 0,"data-active":!!n||void 0,"data-inactive":!!o||void 0,"data-has-subitem":!!C.subItem||void 0,className:Gr(ag,u)}),r.createElement(ae,Yg({},ce,{className:gg}),r.createElement("span",{className:ug}),r.createElement(Gg,{selected:a,className:mg}),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"leading"},C.leadingVisual),r.createElement("span",{className:ng},r.createElement(Zo,{if:!!C.description,className:yg,"data-description-variant":se},r.createElement("span",{id:Q,className:sg},w,!0===d&&r.createElement(El,null,"Loading")),C.description),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"trailing"},S),O&&k?r.createElement("span",{className:dg,id:te},o):null)),!O&&!d&&!D&&Boolean(C.trailingAction)&&C.trailingAction,C.subItem)):r.createElement(Yd.Provider,{value:{variant:e,disabled:t,inactive:Boolean(o),inlineDescriptionId:J,blockDescriptionId:ee,trailingVisualId:re}},r.createElement(Xg,Yg({ref:$?b:null,className:u,sx:tt(q,i),"data-variant":"danger"===e?e:void 0},ie),r.createElement(ae,ce,r.createElement(Gg,{selected:a}),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"leading"},C.leadingVisual),r.createElement(ho,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Zo,{if:Boolean(S||(j||d)&&!C.leadingVisual),sx:{display:"flex",flexGrow:1}},r.createElement(Zo,{if:!!C.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(ho,{as:"span",id:Q,sx:{flexGrow:C.inlineDescription?0:1,fontWeight:C.inlineDescription||C.blockDescription||n?"bold":"normal",marginBlockEnd:C.blockDescription?"4px":void 0,wordBreak:C.inlineDescription?"normal":"break-word",lineHeight:"20px"}},w,!0===d&&r.createElement(El,null,"Loading")),C.inlineDescription),r.createElement(Kg,{inactiveText:j?o:void 0,itemHasLeadingVisual:Boolean(C.leadingVisual),labelId:Q,loading:d,position:"trailing"},S)),O&&k?r.createElement(ho,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:te},o):null,C.blockDescription)),!O&&!d&&!D&&Boolean(C.trailingAction)&&C.trailingAction))}));ru.displayName="ActionList.Item";var tu="prc_Link_85e08";function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ou.apply(null,arguments)}const au=u((({as:e="a",className:t,inline:o,underline:a,hoverColor:n,...l},i)=>{const c=r.useRef(null);return eo(i,c),l.sx?r.createElement(ho,ou({as:e,className:Gr(t,tu),"data-muted":l.muted,"data-inline":o,"data-underline":a,"data-hover-color":n},l,{ref:c})):r.createElement(e,ou({className:Gr(t,tu),"data-muted":l.muted,"data-inline":o,"data-underline":a,"data-hover-color":n},l,{ref:c}))}));function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nu.apply(null,arguments)}au.displayName="Link";const lu=r.forwardRef((({sx:e=To,active:t,inactiveText:o,variant:a,as:n,className:l,...i},c)=>{const s={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return bo(eg)?r.createElement(ru,{className:l,active:t,inactiveText:o,"data-inactive":!!o||void 0,variant:a,_PrivateItemWrapper:({children:e,onClick:t,...a})=>o?r.createElement("span",a,e):r.createElement(au,nu({as:n},a,i,{onClick:e=>{t&&t(e),i.onClick&&i.onClick(e)},ref:c}),e)},i.children):r.createElement(ru,{className:l,active:t,sx:{paddingY:0,paddingX:0},inactiveText:o,"data-inactive":!!o||void 0,_PrivateItemWrapper:({children:t,onClick:a,...l})=>o?r.createElement(ho,nu({sx:tt(s,e)},l),t):r.createElement(au,nu({as:n,sx:tt(s,e)},l,i,{onClick:e=>{a&&a(e),i.onClick&&i.onClick(e)},ref:c}),t)},i.children)})),iu=({sx:e=To,className:t})=>bo(eg)?e!==To?r.createElement(ho,{className:Gr(t,lg),as:"li","aria-hidden":"true",sx:e,"data-component":"ActionList.Divider"}):r.createElement("li",{className:Gr(t,lg),"aria-hidden":"true","data-component":"ActionList.Divider"}):r.createElement(ho,{as:"li","aria-hidden":"true",sx:tt({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Wr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),className:t,"data-component":"ActionList.Divider"});iu.displayName="Divider";const cu=Object.assign(Ng,{Group:jg,Item:ru,LinkItem:lu,Divider:iu,Description:Dg,LeadingVisual:$g,TrailingVisual:Zg,Heading:tg,GroupHeading:Rg,TrailingAction:Ug});var su="prc_Overlay_dVyJl";function du(){return du=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},du.apply(null,arguments)}const gu="primer_react_css_modules_team",uu={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},vu={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const bu=So(gu,"div",p.div.withConfig({displayName:"Overlay__StyledOverlay",componentId:"sc-51280t-0"})(["background-color:",";box-shadow:",";position:absolute;min-width:192px;max-width:",";height:",";max-height:",";width:",";border-radius:12px;overflow:",";animation:overlay-appear ","ms ",";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}@media (forced-colors:active){outline:solid 1px transparent;}&[data-reflow-container='true']{max-width:calc(100vw - 2rem);}",";"],Wr("colors.canvas.overlay"),Wr("shadows.overlay.shadow"),(e=>e.maxWidth&&vu[e.maxWidth]),(e=>uu[e.height||"auto"]),(e=>e.maxHeight&&uu[e.maxHeight]),(e=>vu[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Wr("animation.easeOutCubic"),fo)),fu=r.forwardRef((({visibility:e,height:t,width:o,top:a,left:n,right:l,bottom:i,position:c,style:s={},className:d,maxHeight:g,maxWidth:u,...v},b)=>bo(gu)?r.createElement(bu,du({},v,{ref:b,style:{left:n,right:l,top:a,bottom:i,position:c,...s},[`data-width-${o}`]:"",[`data-max-width-${u}`]:u?"":void 0,[`data-height-${t}`]:"",[`data-max-height-${g}`]:g?"":void 0,[`data-visibility-${e}`]:"",className:Gr(d,su)})):r.createElement(bu,du({height:t,width:o,maxHeight:g,maxWidth:u},v,{ref:b,style:{left:n,right:l,top:a,bottom:i,position:c,"--styled-overlay-visibility":e,...s},className:d})))),hu=r.forwardRef((({anchorSide:e,height:t="auto",ignoreClickRefs:o,initialFocusRef:n,left:i,onClickOutside:c,onEscape:s,portalContainerName:d,preventOverflow:g=!0,preventFocusOnOpen:u,returnFocusRef:v,right:b,role:f="none",visibility:h="visible",width:m="auto",...p},y)=>{const x=l(null);eo(y,x);const{theme:w}=io(),C=parseInt(Wr("space.2")(w).replace("px","")),k=Wr("animation.easeOutCubic")(w);Gt({overlayRef:x,returnFocusRef:v,onEscape:s,ignoreClickRefs:o,onClickOutside:c,initialFocusRef:n,preventFocusOnOpen:u}),a((()=>{var e;"initial"===t&&null!==(e=x.current)&&void 0!==e&&e.clientHeight&&(x.current.style.height=`${x.current.clientHeight}px`)}),[t]),$t((()=>{var r;const{x:t,y:o}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(e);(t||o)&&null!==(r=x.current)&&void 0!==r&&r.animate&&"hidden"!==h&&x.current.animate({transform:[`translate(${C*t}px, ${C*o}px)`,"translate(0, 0)"]},{duration:200,easing:k})}),[e,C,k,h]);const E=void 0===i&&void 0===b?0:i,B=bo("primer_react_overlay_overflow");return r.createElement(es,{containerName:d},r.createElement(fu,du({role:f,width:m,"data-reflow-container":!(!B&&g)||void 0,ref:x,left:E,right:b,height:t,visibility:h},p)))}));function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mu.apply(null,arguments)}const pu=({renderAnchor:e,anchorRef:t,anchorId:n,children:l,open:i,onOpen:c,onClose:s,height:d,width:g,overlayProps:u,focusTrapSettings:v,focusZoneSettings:b,side:f="outside-bottom",align:h="start",alignmentOffset:m,anchorOffset:p,className:y,preventOverflow:x=!0})=>{const w=ct(t),[C,k]=qt(),E=ro(n),B=o((()=>null==s?void 0:s("click-outside")),[s]),T=o((()=>null==s?void 0:s("escape")),[s]),N=o((e=>{e.defaultPrevented||!i&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press",e),e.preventDefault())}),[i,c]),S=o((e=>{e.defaultPrevented||0!==e.button||(i?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[i,c,s]),{position:_}=Kt({anchorElementRef:w,floatingElementRef:C,side:f,align:h,alignmentOffset:m,anchorOffset:p},[C.current]);return a((()=>{!i&&C.current&&k(null)}),[i,C,k]),Uc({containerRef:C,disabled:!i||!_,...b}),hc({containerRef:C,disabled:!i||!_,...v}),r.createElement(r.Fragment,null,e&&e({ref:w,id:E,"aria-haspopup":"true","aria-expanded":i,tabIndex:0,onClick:S,onKeyDown:N}),i?r.createElement(hu,mu({returnFocusRef:w,onClickOutside:B,ignoreClickRefs:[w],onEscape:T,ref:k,role:"none",visibility:_?"visible":"hidden",height:d,width:g,top:(null==_?void 0:_.top)||0,left:(null==_?void 0:_.left)||0,anchorSide:null==_?void 0:_.anchorSide,className:y,preventOverflow:x},u),l):null)};function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yu.apply(null,arguments)}pu.displayName="AnchoredOverlay";const xu=r.createContext({renderAnchor:null,open:!1}),wu=(e,r)=>{const t={...e};if("function"==typeof r.onClick){const o=e.onClick,a=e=>{var t;null===(t=r.onClick)||void 0===t||t.call(r,e),null==o||o(e)};t.onClick=a}if("function"==typeof r.onKeyDown){const o=e.onKeyDown,a=e=>{var t;null===(t=r.onKeyDown)||void 0===t||t.call(r,e),null==o||o(e)};t.onKeyDown=a}return t},Cu=({anchorRef:e,open:t,onOpenChange:o,children:a})=>{const n=g(xu),[l,i]=Ut(t,o,!1),c=r.useCallback((()=>i(!0)),[i]),s=r.useCallback((e=>{var r;switch(i(!1),e){case"tab":case"item-select":null===(r=n.onClose)||void 0===r||r.call(n,e)}}),[i,n]),d=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===Eu||e.type===ku))),u=r.isValidElement(d)?d.props.id:void 0,v=ct(e),b=ro(u);let f=null;const h=r.Children.map(a,(e=>{if(e.type===Gl){const t=e.props.children;return t.type===Eu&&(f=o=>{const a=r.cloneElement(t,wu({...o},t.props));return r.cloneElement(e,{children:a,ref:v})}),null}if(e.type===ku){const t=e.props.children;return void 0!==t&&t.type===Gl?null!==t.props.children&&(f=o=>{const a=t.props.children,n=r.cloneElement(a,wu({...o},a.props)),l=r.cloneElement(t,{children:n});return r.cloneElement(e,{children:l,ref:v})}):f=t=>r.cloneElement(e,t),null}return e.type===Eu?(f=t=>r.cloneElement(e,wu(t,e.props)),null):e}));return r.createElement(xu.Provider,{value:{anchorRef:v,renderAnchor:f,anchorId:b,open:l,onOpen:c,onClose:s,isSubmenu:void 0!==n.isSubmenu}},h)};Cu.displayName="Menu";const ku=r.forwardRef((({children:e,...a},n)=>{const{onOpen:l,isSubmenu:i}=r.useContext(xu),c=o((e=>{i&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==l||l("anchor-key-press"))}),[i,l]),s=g(Kd),d=t((()=>i?{...s,defaultTrailingVisual:r.createElement(Ac,null),afterSelect:()=>null==l?void 0:l("anchor-click")}:s),[i,l,s]);return r.createElement(Kd.Provider,{value:d},r.cloneElement(e,{...a,ref:n,onClick:r=>{var t,o,n;null===(t=(o=e.props).onClick)||void 0===t||t.call(o,r),null===(n=a.onClick)||void 0===n||n.call(a,r)},onKeyDown:r=>{var t,o,n;null===(t=(o=e.props).onKeyDown)||void 0===t||t.call(o,r),c(r),null===(n=a.onKeyDown)||void 0===n||n.call(a,r)}}))})),Eu=r.forwardRef((({...e},t)=>r.createElement(ku,{ref:t},r.createElement(On,yu({type:"button",trailingAction:Gc},e))))),Bu=({children:e,align:t="start",side:o,"aria-labelledby":n,...l})=>{const{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,isSubmenu:b=!1}=r.useContext(xu),f=r.useRef(null);Yt(g,v,f,c,b);const[h,m]=i(null);return a((()=>{if(null!=c&&c.current){const e=c.current.getAttribute("aria-labelledby");e&&m(e)}}),[c]),r.createElement(pu,{anchorRef:c,renderAnchor:s,anchorId:d,open:g,onOpen:u,onClose:v,align:t,side:null!=o?o:b?"outside-right":"outside-bottom",overlayProps:l,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:f},r.createElement(Kd.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:n||h||d,selectionAttribute:"aria-checked",afterSelect:()=>null==v?void 0:v("item-select"),enableFocusZone:!1}},e)))};Bu.displayName="Overlay",Cu.displayName="ActionMenu";const Tu=Object.assign(Cu,{Button:Eu,Anchor:ku,Overlay:Bu,Divider:iu}),Nu=d(null);var Su="prc_Spinner_Azb7p",_u="prc_SpinnerLeading_s-LyA",Iu="prc_SpinnerHidden_GG1PJ",Au="prc_SpinnerVisible_w5g8l",Mu="prc_Input_Ic-y8";function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lu.apply(null,arguments)}const Ou="primer_react_css_modules_ga",ju=So(Ou,"input",p.input.withConfig({displayName:"UnstyledTextInput__ToggledUnstyledTextInput",componentId:"sc-14ypya-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}",";"],fo)),Ru=r.forwardRef((function({className:e,...t},o){const a=bo(Ou);return r.createElement(ju,Lu({ref:o},t,{className:Gr(e,a&&Mu)}))}));function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zu.apply(null,arguments)}Ru.displayName="UnstyledTextInput";const Pu=({children:e,hasLoadingIndicator:t,showLoadingIndicator:o,visualPosition:a,id:n})=>{const l=bo(Ou),i="leading"===a;if(!e&&!t||i&&!e&&!o)return null;if(!t)return r.createElement("span",{className:"TextInput-icon",id:n,"aria-hidden":"true"},e);const c=l?{className:Gr(o?Iu:Au)}:{sx:{visibility:o?"hidden":"visible"}},s=l?{className:Gr(o?Au:Iu,e&&Su,e&&i&&_u)}:{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:o?"visible":"hidden",...i?{left:0}:{right:0}}:{visibility:o?"visible":"hidden"}};return r.createElement("span",{className:"TextInput-icon"},r.createElement(ho,{display:"flex",position:"relative",id:n},e&&r.createElement(ho,c,e),r.createElement(Ho,zu({srText:null},s,{size:e?void 0:"small"}))))};Pu.displayName="TextInputInnerVisualSlot";var Vu="prc_TextInputBaseWrapper_ueK9q",Du="prc_TextInputWrapper_i1ofR";function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hu.apply(null,arguments)}const Fu=So(Ou,"span",p.span.withConfig({displayName:"TextInputWrapper__StyledTextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:var(--base-size-20);color:",";vertical-align:middle;background-color:",";border:1px solid var(--control-borderColor-rest,",");border-radius:",";outline:none;box-shadow:",";display:inline-flex;align-items:stretch;min-height:var(--base-size-32);overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action]):focus-within){border-color:",";outline:2px solid ",";outline-offset:-1px;}> textarea{padding:var(--base-size-12);}&:where([data-contrast]){background-color:",";}&:where([data-disabled]){color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}}&:where([data-monospace]){font-family:",";}&:where([data-validation='error']){border-color:",";&:where([data-trailing-action][data-focused]),&:where(:not([data-trailing-action])):focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}}&:where([data-validation='success']){border-color:",";}&:where([data-block]){width:100%;display:flex;align-self:stretch;}@media (min-width:","){font-size:var(--text-body-size-medium);}--inner-action-size:var(--base-size-24);&:where([data-size='small']){--inner-action-size:var(--base-size-20);min-height:var(--base-size-28);padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:var(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-size='large']){--inner-action-size:var(--base-size-28);height:var(--base-size-40);padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);}&:where([data-variant='small']){min-height:28px;padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:(--text-body-size-small);line-height:var(--base-size-20);}&:where([data-variant='large']){padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);font-size:var(--text-title-size-medium);}&{"," "," "," ","}"],Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.canvas.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("shadows.primer.shadow.inset"),Wr("colors.fg.muted"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.canvas.inset"),Wr("colors.primer.fg.disabled"),Wr("colors.input.disabledBg"),Wr("colors.border.default"),Wr("fonts.mono"),Wr("colors.danger.emphasis"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("colors.success.emphasis"),Wr("breakpoints.1"),Ie,Me,Oe,fo)),Wu=r.forwardRef((function({className:e,style:t,variant:o,size:a,isInputFocused:n,hasTrailingAction:l,validationStatus:i,disabled:c,contrast:s,monospace:d,block:g,width:u,minWidth:v,maxWidth:b,...f},h){const m=bo(Ou),p=m?{}:{width:u,minWidth:v,maxWidth:b};return r.createElement(Fu,Hu({ref:h,className:Gr(e,m&&Vu),"data-block":g||void 0,"data-contrast":s||void 0,"data-disabled":c||void 0,"data-focused":n||void 0,"data-monospace":d||void 0,"data-size":a||void 0,"data-trailing-action":l||void 0,"data-validation":i||void 0,"data-variant":o||void 0,style:m&&"string"==typeof u?{width:u,...t}:t},p,f))}));Wu.displayName="TextInputBaseWrapper";const $u=So(Ou,Wu,p(Wu).withConfig({displayName:"TextInputWrapper__StyledTextInputWrapper",componentId:"sc-1mqhpbi-1"})(["background-repeat:no-repeat;background-position:right 8px center;& > :not(:last-child){margin-right:",";}.TextInput-icon,.TextInput-action{align-self:center;color:",";flex-shrink:0;}padding-right:0;padding-left:0;> input,> select{padding-right:0;padding-left:0;}&:where([data-leading-visual]){padding-left:var(--base-size-12);}&:where([data-trailing-visual]:not([data-trailing-action])){padding-right:var(--base-size-12);}&:where(:not([data-leading-visual])) > input,&:where(:not([data-leading-visual])) > select{padding-left:var(--base-size-12);}&:where(:not([data-trailing-visual]):not([data-trailing-action])) > input,&:where(:not([data-trailing-visual]):not([data-trailing-action])) > select{padding-right:var(--base-size-12);}&{","}"],Wr("space.2"),Wr("colors.fg.muted"),fo)),Zu=r.forwardRef((function({className:e,hasLeadingVisual:t,hasTrailingVisual:o,...a},n){return bo(Ou)?r.createElement(Wu,Hu({ref:n,className:Gr(e,Du),"data-leading-visual":t||void 0,"data-trailing-visual":o||void 0},a)):r.createElement($u,Hu({ref:n,className:e,"data-leading-visual":t||void 0,"data-trailing-visual":o||void 0},a))}));var Ku="prc_Invisible_uIWry";function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gu.apply(null,arguments)}const qu={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",backgroundColor:"transparent",color:"fg.subtle","&:hover, &:focus":{color:"fg.default"},'&[data-component="IconButton"]':{width:"var(--inner-action-size)",height:"var(--inner-action-size)"},"@media (pointer: coarse)":{":after":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}},Uu=({"aria-label":e,children:t,tooltipDirection:o})=>r.createElement(r.Fragment,null,e?r.createElement(Gl,{text:e,direction:o,sx:{display:"inline-block"}},t):t),Yu=u((({"aria-label":e,"aria-labelledby":t,tooltipDirection:o,children:a,icon:n,sx:l,className:i,variant:c="invisible",...s},d)=>{const g=bo(Ou)?{className:Gr("invisible"===c&&Ku,i),sx:l||{}}:{className:i,sx:"invisible"===c?tt(qu,l||{}):l||{}};(n&&!e||!a&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology");const u=e?{"aria-label":e}:t?{"aria-labelledby":t}:{"aria-label":""};return r.createElement(ho,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},n&&!a&&e?r.createElement(Yl,Gu({},u,{tooltipDirection:null!=o?o:"s",variant:c,type:"button",icon:n,size:"small"},g,s,{ref:d})):r.createElement(Uu,{"aria-label":e},r.createElement(On,Gu({variant:c,type:"button"},g,s,{ref:d}),a)))}));function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xu.apply(null,arguments)}const Qu=r.forwardRef((({icon:e,leadingVisual:t,trailingVisual:a,trailingAction:n,block:l,className:c,contrast:d,disabled:g,loading:u,loaderPosition:v="auto",loaderText:b="Loading",monospace:f,validationStatus:h,sx:m,size:p,onFocus:y,onBlur:x,width:w,minWidth:C,maxWidth:k,variant:E,type:B="text",required:T,...N},S)=>{const[_,I]=i(!1),A=ct(S),M=Gr(c,"TextInput-wrapper"),L=u&&("leading"===v||Boolean(t&&"trailing"!==v)),O=u&&("trailing"===v||Boolean("auto"===v&&!t)),j=s(),R=s(),z=s(),P=Gr(N["aria-describedby"],t&&j,a&&R,u&&z)||void 0,V=o((e=>{I(!0),y&&y(e)}),[y]),D=o((e=>{I(!1),x&&x(e)}),[x]);return r.createElement(Zu,{block:l,className:M,validationStatus:h,contrast:d,disabled:g,monospace:f,sx:m,size:p,width:w,minWidth:C,maxWidth:k,variant:E,hasLeadingVisual:Boolean(t||L),hasTrailingVisual:Boolean(a||O),hasTrailingAction:Boolean(n),isInputFocused:_,onClick:()=>{var e;null===(e=A.current)||void 0===e||e.focus()},"aria-busy":Boolean(u)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pu,{visualPosition:"leading",showLoadingIndicator:L,hasLoadingIndicator:"boolean"==typeof u,id:j,"data-testid":"text-input-leading-visual"},"string"!=typeof t&&_n.isValidElementType(t)?r.createElement(t,null):t),r.createElement(Ru,Xu({ref:A,disabled:g,onFocus:V,onBlur:D,type:B,"aria-required":T,"aria-invalid":"error"===h?"true":void 0},N,{"aria-describedby":P,"data-component":"input"})),u&&r.createElement(El,{id:z},b),r.createElement(Pu,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof u,id:R,"data-testid":"text-input-trailing-visual"},"string"!=typeof a&&_n.isValidElementType(a)?r.createElement(a,null):a),n)}));Qu.displayName="TextInput";var Ju=Object.assign(Qu,{Action:Yu});function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ev.apply(null,arguments)}const rv=new Set(["ArrowUp","ArrowDown"]),tv=r.forwardRef((({as:e=Ju,onFocus:t,onBlur:n,onChange:l,onKeyDown:c,onKeyUp:s,onKeyPress:d,value:u,openOnFocus:v=!1,...b},f)=>{const h=g(Nu);if(null===h)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:m,autocompleteSuggestion:p="",id:y,inputRef:x,inputValue:w="",isMenuDirectlyActivated:C,setInputValue:k,setShowMenu:E,showMenu:B}=h;eo(f,x);const[T,N]=i(!0),{safeSetTimeout:S}=zl(),_=o((e=>{n&&n(e),S((()=>{document.activeElement!==x.current&&E(!1)}),0)}),[n,E,x,S]),I=o((e=>{var r;c&&c(e),"Backspace"===e.key&&N(!1),"Escape"===e.key&&null!==(r=x.current)&&void 0!==r&&r.value&&(k(""),x.current.value=""),B||!rv.has(e.key)||e.altKey||E(!0)}),[x,k,N,c,B,E]),A=o((e=>{s&&s(e),"Backspace"===e.key&&N(!0)}),[N,s]),M=o((e=>{if(d&&d(e),B&&"Enter"===e.key&&m.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);m.current.dispatchEvent(r)}}),[m,B,d]);return a((()=>{x.current&&(p||(x.current.value=w),T&&p&&(w||C)&&(x.current.value=p,0===p.toLowerCase().indexOf(w.toLowerCase())&&x.current.setSelectionRange(w.length,p.length)))}),[p,w,x,C]),a((()=>{k(void 0!==u?u.toString():"")}),[u,k]),r.createElement(e,ev({onFocus:e=>{null==t||t(e),v&&E(!0)},onBlur:_,onChange:e=>{l&&l(e),k(e.currentTarget.value),B||E(!0)},onKeyDown:I,onKeyPress:M,onKeyUp:A,ref:x,"aria-controls":`${y}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-owns":`${y}-listbox`,autoComplete:"off",id:y},b))}));tv.displayName="AutocompleteInput";var ov="prc_SpinnerWrapper_OvHpT",av="prc_EmptyStateWrapper_tAx1w";function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nv.apply(null,arguments)}const lv={startMargin:0,endMargin:8};function iv(e){const o=g(Nu);if(null===o)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:c,inputRef:s,inputValue:d="",scrollContainerRef:u,setAutocompleteSuggestion:v,setShowMenu:b,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:m,showMenu:p}=o,{items:y,selectedItemIds:x,sortOnCloseFn:w,emptyStateText:C="No selectable options",addNewItem:k,loading:E,selectionVariant:B="single",filterFn:T,"aria-labelledby":N,onOpenChange:S,onSelectedChange:_,customScrollContainerRef:I}=e,A=l(null),M=l([]),[L,O]=i(),[j,R]=i(y.map((({id:e})=>e))),z=ro(c),P=t((()=>y.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===B?x.includes(e.id):void 0,onAction:e=>{const r=x.filter((r=>r!==e.id)),t=x.includes(e.id)?r:[...r,e.id];var o,a;((_||(o=f,function(e){const{text:r=""}=Array.isArray(e)?e.slice(-1)[0]:e;o(r)}))(t.map((e=>function(e,r){return r.find((r=>r.id===e))}(e,y)))),"multiple"===B)?(f(""),v("")):(b(!1),null===(a=s.current)||void 0===a||a.setSelectionRange(s.current.value.length,s.current.value.length))}})))),[L,y,x,s,_,B,v,f,b]),V=t((()=>j.reduce(((e,r,t)=>(e[r]=t,e)),{})),[j]),D=t((()=>{return P.filter(T||(e=d,function(r,t){var o;return Boolean(null===(o=r.text)||void 0===o?void 0:o.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>V[e.id]-V[r.id]));var e}),[P,V,T,d]),H=t((()=>[...D,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===B?x.includes(k.id):void 0,leadingVisual:()=>r.createElement(Wc,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===B&&(f(""),v(""))}}]:[]]),[D,k,v,B,f,z,L,x]);if(r.useEffect((()=>{M.current=H})),Uc({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:s,onActiveDescendantChanged:(e,r,t)=>{if(n.current=e||null,e){const r=M.current.find((r=>{var t;return r.id===(null===(t=e.closest("li"))||void 0===t?void 0:t.getAttribute("data-id"))}));O(r),h(t)}e&&I&&I.current&&t?Wt(e,I.current,lv):e&&u.current&&t&&Wt(e,u.current,lv)}},[E]),a((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(d)&&!x.includes(L.id)?v(L.text):v("")}),[L,d,x,v]),a((()=>{const e=[...j].sort(w||(r=e=>((e,r)=>r.includes(e))(e,x),(e,t)=>r(e)===r(t)?0:r(e)?-1:1));var r;const t=e.length===j.length&&e.every(((e,r)=>e===j[r]));!1!==p||t||R(e),S&&S(Boolean(p))}),[p,S,x,w,j]),a((()=>{x.length&&m(x.length)}),[x,m]),"single"===B&&x.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');const F=bo("primer_react_css_modules_team");return r.createElement(El,{isVisible:p},E?F?r.createElement(ho,{className:ov},r.createElement(Ho,null)):r.createElement(ho,{p:3,display:"flex",justifyContent:"center"},r.createElement(Ho,null)):r.createElement("div",{ref:A},H.length?r.createElement(cu,{selectionVariant:B,role:"listbox",id:`${c}-listbox`,"aria-labelledby":N},H.map((e=>{const{id:t,onAction:o,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(cu.Item,nv({key:t,onSelect:()=>o(e)},c,{id:t,"data-id":t}),l&&r.createElement(cu.LeadingVisual,null,_n.isElement(l)?l:r.createElement(l,null)),null!=a?a:n,i&&r.createElement(cu.TrailingVisual,null,_n.isElement(i)?i:r.createElement(i,null)))}))):!1!==C&&null!==C?F?r.createElement(ho,{className:av},C):r.createElement(ho,{p:3},C):null))}iv.displayName="AutocompleteMenu",iv.displayName="AutocompleteMenu";var cv="prc_Overlay_4kapX";function sv(){return sv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sv.apply(null,arguments)}function dv({menuAnchorRef:e,overlayProps:t,children:a,...n}){const l=g(Nu);if(null===l)throw new Error("AutocompleteContext returned null values");const i={...t,...n},{inputRef:c,scrollContainerRef:s,selectedItemLength:d,setShowMenu:u,showMenu:v=!1}=l,{floatingElementRef:b,position:f}=Kt({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,d]);eo(s,b);const h=o((()=>{u(!1)}),[u]),m=bo("primer_react_css_modules_team");return"undefined"==typeof window?null:v?r.createElement(hu,sv({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:b,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:m?void 0:{overflow:"auto"},className:m?cv:void 0},i),a):r.createElement(El,{"aria-hidden":"true"},a)}dv.displayName="AutocompleteOverlay";const gv={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},uv=(e,r)=>{const{type:t,payload:o}=r;switch(t){case"inputValue":return{...e,inputValue:o};case"showMenu":return{...e,showMenu:o};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:o};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:o};case"selectedItemLength":return{...e,selectedItemLength:o};default:return e}},vv=({children:e,id:t})=>{const a=l(null),n=l(null),i=l(null),[c,s]=h(uv,gv),{inputValue:d,showMenu:g,autocompleteSuggestion:u,isMenuDirectlyActivated:v,selectedItemLength:b}=c,f=o((e=>{s({type:"inputValue",payload:e})}),[]),m=o((e=>{s({type:"showMenu",payload:e})}),[]),p=o((e=>{s({type:"autocompleteSuggestion",payload:e})}),[]),y=o((e=>{s({type:"isMenuDirectlyActivated",payload:e})}),[]),x=o((e=>{s({type:"selectedItemLength",payload:e})}),[]),w=ro(t);return r.createElement(Nu.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:u,id:w,inputRef:i,inputValue:d,isMenuDirectlyActivated:v,scrollContainerRef:n,selectedItemLength:b,setAutocompleteSuggestion:p,setInputValue:f,setIsMenuDirectlyActivated:y,setShowMenu:m,setSelectedItemLength:x,showMenu:g}},e)};vv.displayName="Autocomplete";var bv=Object.assign(vv,{Context:Nu,Input:tv,Menu:iv,Overlay:dv}),fv="prc_Avatar_ZRS-m";function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},hv.apply(null,arguments)}const mv=20,pv=r.forwardRef((function({alt:e="",size:t=20,square:o=!1,sx:a=To,className:n,...l},i){const c=ti(t),s={};if(c)for(const[e,r]of Object.entries(t))s[`--avatarSize-${e}`]=`${r}px`;else s["--avatarSize-regular"]=`${t}px`;return a!==To?r.createElement(ho,hv({as:"img","data-component":"Avatar",className:Gr(n,fv),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":o?"":void 0,width:c?void 0:t,height:c?void 0:t,style:s,sx:a},l)):r.createElement("img",hv({"data-component":"Avatar",className:Gr(n,fv),ref:i,alt:e,"data-responsive":c?"":void 0,"data-square":o?"":void 0,width:c?void 0:t,height:c?void 0:t,style:s},l))}));const yv={xsmall:{width:"320px"},small:{width:A.breakpoints[0]},medium:{width:A.breakpoints[1]},large:{width:A.breakpoints[2]},xlarge:{width:A.breakpoints[3]},xxlarge:{width:"1400px"}};function xv(e){return`@media screen and (min-width: ${e})`}const wv=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(yv.medium.width),Cv=xv(yv.medium.width),kv=xv(yv.xxlarge.width);function Ev(e){if("narrow"in e&&"regular"in e&&"wide"in e){const r=Object.values(e);return r.every((e=>e===r[0]))}return!1}function Bv(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}function Tv(e,r,t){if(ti(e)){const o=e,a="narrow"in o?{[wv]:{[r]:t(o.narrow)}}:{},n="regular"in o?{[Cv]:{[r]:t(o.regular)}}:{},l="wide"in o?{[kv]:{[r]:t(o.wide)}}:{};return Ev(o)?{[r]:t(o.narrow)}:Bv(o)?{...a,...n}:{...a,...n,...l}}return{[r]:t(e)}}var Nv="prc_SkeletonBox_HR9PH";const Sv="primer_react_css_modules_ga";function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_v.apply(null,arguments)}const Iv=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Av=So(Sv,"div",p.div.withConfig({displayName:"SkeletonBox__StyledSkeletonBox",componentId:"sc-ovy911-0"})(["animation:",";display:block;background-color:var(--bgColor-muted,",");border-radius:3px;height:",";width:",";@media (prefers-reduced-motion:no-preference){mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}",";"],Iv,Wr("colors.canvas.subtle"),(e=>e.height||"1rem"),(e=>e.width),Iv,fo)),Mv=r.forwardRef((function({height:e,width:t,className:o,style:a,...n},l){const i=bo(Sv);return r.createElement(Av,_v({height:i?void 0:e,width:i?void 0:t,className:Gr(o,{[Nv]:i}),style:i?tt(a,{height:e,width:t}):a},n,{ref:l}))}));var Lv="prc_SkeletonAvatar_TYNvX";function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ov.apply(null,arguments)}const jv={'&[data-component="SkeletonAvatar"]':{borderRadius:"50%",boxShadow:`0 0 0 1px ${Wr("colors.avatar.border")}`,display:"inline-block",lineHeight:Wr("lineHeights.condensedUltra"),height:"var(--avatar-size)",width:"var(--avatar-size)"},"&[data-square]":{borderRadius:"clamp(4px, var(--avatar-size) - 24px, 6px)"}},Rv=({size:e=20,square:t,className:o,style:a,...n})=>{const l=ti(e),i={},c=bo(Sv),s=l?{...Tv(e,"--avatar-size",(e=>`${e||mv}px`)),...jv}:{"--avatar-size":`${e}px`,...jv};if(c)if(l)for(const[r,t]of Object.entries(e))i[`--avatarSize-${r}`]=`${t}px`;else i["--avatarSize-regular"]=`${e}px`;return r.createElement(Mv,Ov({sx:c?void 0:s,className:Gr(o,{[Lv]:c})},n,{"data-component":"SkeletonAvatar","data-responsive":l?"":void 0,"data-square":t?"":void 0,style:tt(a,c?i:{})}))};Rv.displayName="SkeletonAvatar";var zv="prc_AvatarPair_Av0UV",Pv="prc_AvatarChild_icdQd";function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vv.apply(null,arguments)}const Dv=({children:e,className:t,...o})=>{const a=r.Children.map(e,((e,t)=>r.isValidElement(e)?0===t?r.cloneElement(e,{size:40}):e.type===Rv?r.createElement(Rv,Vv({},e.props,{size:20})):r.createElement(pv,Vv({className:Gr(e.props.className,Pv)},e.props,{size:20})):e));return r.createElement("div",Vv({className:Gr(t,zv)},o),a)};Dv.displayName="AvatarPair",Dv.displayName="AvatarPair";var Hv="prc_AvatarStack_N-r3C",Fv="prc_AvatarItem_nS1mt",Wv="prc_AvatarStackBody_mSyoJ";const $v={disabled:"[disabled]",hidden:"[hidden]",inert:"[inert]",negativeTabIndex:'[tabindex="-1"]'},Zv=["a[href]","button","summary","select","input:not([type=hidden])","textarea",'[tabindex="0"]',"audio[controls]","video[controls]","[contenteditable]"].map((e=>`${e}:not(${Object.values($v).join("):not(")})`));function Kv(e,r){if(!e||Gv(e))return!1;const t=qv(e,[e]);return Boolean(t)}function Gv(e){const r=getComputedStyle(e),t=e.matches("[disabled], [hidden], [inert]"),o="none"===r.display||"hidden"===r.visibility;return t||o}function qv(e,r){if(!e)return;const t=r.find((r=>r===e)),o=Gv(e);if(e.matches(Zv.join(", "))&&!t&&!o)return e;for(const t of e.children){if(qv(t,r))return!0}}const Uv=C(["box-shadow:none;outline:2px solid ",";"],Wr("colors.accent.fg")),Yv=e=>C(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],Uv,void 0===e?"2px":e,Uv,void 0===e?"2px":e),Xv="primer_react_css_modules_team",Qv=So(Xv,"span",p.span.withConfig({displayName:"AvatarStack__AvatarStackWrapper",componentId:"sc-4pdg6v-0"})(["--avatar-border-width:1px;--avatar-two-margin:calc(var(--avatar-stack-size) * -0.55);--avatar-three-margin:calc(var(--avatar-stack-size) * -0.85);display:flex;position:relative;height:var(--avatar-stack-size);min-width:var(--avatar-stack-size);.pc-AvatarStackBody{display:flex;position:absolute;","}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);position:relative;overflow:hidden;display:flex;&:is(img){box-shadow:0 0 0 var(--avatar-border-width) ",";}&:first-child{margin-left:0;z-index:10;}&:nth-child(n + 2){margin-left:var(--avatar-two-margin);z-index:9;}&:nth-child(n + 3){margin-left:var(--avatar-three-margin);opacity:","%;z-index:8;}&:nth-child(n + 4){opacity:","%;z-index:7;}&:nth-child(n + 5){opacity:","%;z-index:6;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}&.pc-AvatarStack--two{min-width:calc( var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width) );}&.pc-AvatarStack--three{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) ) );}&.pc-AvatarStack--three-plus{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) * 2 ) );}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;&:first-child{margin-right:0;}&:nth-child(n + 2){margin-right:var(--avatar-two-margin);}&:nth-child(n + 3){margin-right:var(--avatar-three-margin);}}.pc-AvatarStackBody{flex-direction:row-reverse;&:not(.pc-AvatarStack--disableExpand):hover,&:not(.pc-AvatarStack--disableExpand):focus-within{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover,.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):focus-within{width:auto;.pc-AvatarItem{margin-left:",";opacity:100%;visibility:visible;"," transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;"," &:first-child{margin-left:0;}}}.pc-AvatarStack--disableExpand{position:relative;}",";"],Yv("1px"),(e=>1===e.count?Wr("colors.avatar.border"):Wr("colors.canvas.default")),55,40,25,Wr("space.1"),Wr("space.1"),(e=>1===e.count?"":`box-shadow: inset 0 0 0 4px ${Wr("colors.canvas.default")};`),Yv("1px"),fo)),Jv=({disableExpand:e,hasInteractiveChildren:t,stackContainer:o,children:a})=>{const n=Gr("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":e});return bo(Xv)?r.createElement("div",{"data-disable-expand":e?"":void 0,className:Gr(n,Wv),tabIndex:t||e?void 0:0,ref:o},a):r.createElement(ho,{className:n,tabIndex:t||e?void 0:0,ref:o},a)};Jv.displayName="AvatarStackBody";const eb=({children:e,alignRight:t,disableExpand:o,size:n,className:c,sx:s=To})=>{const d=bo(Xv),[g,u]=i(!1),v=l(null),b=r.Children.count(e),f=Gr({"pc-AvatarStack--two":2===b,"pc-AvatarStack--three":3===b,"pc-AvatarStack--three-plus":b>3,"pc-AvatarStack--right":t},c),h=(()=>{const t={narrow:[],regular:[],wide:[]};return r.Children.toArray(e).reduce(((e,o)=>{if(!r.isValidElement(o))return e;for(const r of Object.keys(t))ti(o.props.size)?t[r].push(o.props.size[r]||mv):t[r].push(o.props.size||mv),e[r]=Math.min(...t[r]);return e}),{narrow:mv,regular:mv,wide:mv})})();a((()=>{if(v.current){const e=()=>{u(Kv(v.current))},r=new MutationObserver(e);return r.observe(v.current,{childList:!0}),e(),()=>{r.disconnect()}}}),[]);const m=()=>n?ti(n)?d?{"--stackSize-narrow":`${n.narrow||mv}px`,"--stackSize-regular":`${n.regular||mv}px`,"--stackSize-wide":`${n.wide||mv}px`}:Tv(n,"--avatar-stack-size",(e=>`${e||mv}px`)):{"--avatar-stack-size":`${n}px`}:d?{"--stackSize-narrow":`${h.narrow}px`,"--stackSize-regular":`${h.regular}px`,"--stackSize-wide":`${h.wide}px`}:Tv(h,"--avatar-stack-size",(e=>`${e}px`)),p=tt(!d&&m(),s);return r.createElement(Qv,{count:d?void 0:b,"data-avatar-count":d?b>3?"3+":b:void 0,"data-align-right":d&&t?"":void 0,"data-responsive":!d||n&&!ti(n)?void 0:"",className:Gr(f,{[Hv]:d}),style:d?m():void 0,sx:p},r.createElement(Jv,{disableExpand:o,hasInteractiveChildren:g,stackContainer:v}," ",((e,t)=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Gr(e.props.className,"pc-AvatarItem",{[Fv]:t})}):e)))(e,d)))};eb.displayName="AvatarStack";var rb="prc_BranchName_jFtg-";function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tb.apply(null,arguments)}const ob=p.a.withConfig({displayName:"BranchName__StyledBranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:var(--text-body-size-small,",");font-family:var(--fontStack-monospace,",");color:var(--fgColor-link,",");background-color:var(--bgColor-accent-muted,",");border-radius:var(--borderRadius-medium,",");text-decoration:none;&:is(:not(a)){color:var(--fgColor-muted);}",";"],Wr("fontSizes.0"),Wr("fonts.mono"),Wr("colors.accent.fg"),Wr("colors.accent.subtle"),Wr("radii.2"),fo);function ab(e,t){const{as:o="a",className:a,children:n,sx:l,...i}=e;return bo("primer_react_css_modules_ga")?l?r.createElement(ho,tb({},i,{ref:t,as:o,className:Gr(a,rb),sx:l}),n):r.createElement(o,tb({},i,{ref:t,className:Gr(a,rb)}),n):r.createElement(ob,tb({},i,{as:o,ref:t,className:a,sx:l}),n)}ab.displayName="BranchName";const nb=r.forwardRef;ab.displayName="BranchName";var lb=nb(ab),ib="prc_BreadcrumbsBase_6gqOz",cb="prc_BreadcrumbsList_K7eeK",sb="prc_ItemWrapper_Mfwuj",db="prc_Item_7BKO-",gb="prc_ItemSelected_9ZYcW";function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ub.apply(null,arguments)}const vb="selected",bb="primer_react_css_modules_ga",fb=So(bb,"li",p.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{font-size:",";content:'';display:inline-block;height:0.8em;margin:0 0.5em;border-right:0.1em solid;border-color:",";transform:rotate(15deg) translateY(0.0625em);}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Wr("fontSizes.1"),Wr("colors.fg.muted"))),hb=So(bb,"nav",p.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],fo)),mb=({children:e})=>bo(bb)?r.createElement("ol",{className:cb},e):r.createElement(ho,{as:"ol",my:0,pl:0},e);function pb({className:e,children:t,sx:o}){const a=bo(bb),n=r.Children.map(t,(e=>r.createElement(fb,{className:Gr({[sb]:a})},e)));return r.createElement(hb,{className:Gr(e,{[ib]:a}),"aria-label":"Breadcrumbs",sx:o},r.createElement(mb,null,n))}mb.displayName="BreadcrumbsList",pb.displayName="Breadcrumbs";const yb=So(bb,"a",p.a.withConfig({displayName:"Breadcrumbs__StyledBreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover,&:focus{text-decoration:underline;}&.selected{color:",";pointer-events:none;}&.selected:focus{text-decoration:none;}",";"],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),fo)),xb=r.forwardRef((({selected:e,className:t,...o},a)=>{const n=bo(bb);return r.createElement(yb,ub({className:Gr(t,{[vb]:e,[db]:n,[gb]:n&&e}),"aria-current":e?"page":null,ref:a},o))}));pb.displayName="Breadcrumbs",xb.displayName="Breadcrumbs.Item";var wb=Object.assign(pb,{Item:xb});const Cb=Object.assign(pb,{Item:xb});var kb="prc_ButtonGroup_vcMeG";function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Eb.apply(null,arguments)}const Bb=r.forwardRef((function({children:e,className:t,role:o,sx:a,...n},l){const i=r.Children.map(e,((e,t)=>r.createElement("div",{key:t},e))),c=ct(l);return Uc({containerRef:c,disabled:"toolbar"!==o,bindKeys:Ot.ArrowHorizontal,focusOutBehavior:"wrap"}),a!==To?r.createElement(ho,Eb({as:"div",className:Gr(t,kb),role:o},n,{sx:a,ref:c}),i):r.createElement("div",Eb({ref:c,className:Gr(t,kb),role:o},n),i)}));Bb.displayName="ButtonGroup";const Tb={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Nb={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Sb(e,r,t){const o=Tb[e].toLowerCase(),a=Nb[e].toLowerCase();return{[o]:"100%",[r||a]:r?t:"50%"}}const _b=Pr({prop:"bg",key:"colors"}),Ib=Pr({prop:"borderColor",key:"colors"}),Ab=Pr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Mb(e){var t;const o=r.useContext(k),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(t=e.theme)&&void 0!==t?t:o},{bg:n}=_b(a),{borderColor:l}=Ib(a),{borderWidth:i}=Ab(a),{size:c=8,location:s="bottom"}=e,[d,g]=function(e){const[r,t]=e.split("-");return[r,t]}(s),u=Nb[d],v=[-c,0],b=[0,c],f=[c,0],h=`M${v}L${b}L${f}L${v}Z`,m=`M${v}L${b}L${f}`,p={top:`translate(${[c,2*c]}) rotate(180)`,right:`translate(${[0,c]}) rotate(-90)`,bottom:`translate(${[c,0]})`,left:`translate(${[2*c,c]}) rotate(90)`}[d];return r.createElement("svg",{width:2*c,height:2*c,style:{pointerEvents:"none",position:"absolute",...Sb(d,g,c),[`margin${u}`]:g?null:-c},role:"presentation"},r.createElement("g",{transform:p},r.createElement("path",{d:h,fill:null==o?void 0:o.colors.canvas.default}),r.createElement("path",{d:h,fill:n}),r.createElement("path",{d:m,fill:"none",stroke:l,strokeWidth:i})))}function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lb.apply(null,arguments)}function Ob(e){const{size:t=32,as:o,icon:a,bg:n,"aria-label":l,...i}=e;return r.createElement(ho,{as:o,bg:n,overflow:"hidden",borderWidth:0,size:t,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},r.createElement(ho,Lb({display:"flex",as:o,size:t},i,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:t,"aria-label":l})))}Mb.displayName="Caret",Mb.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Ob.displayName="CircleOcticon";const jb=d(null),Rb=jb.Provider;function zb(){var e;return null!==(e=g(jb))&&void 0!==e?e:{}}function Pb(e){const r=g(jb);return r?{disabled:r.disabled,id:r.id,required:r.required,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const Vb=d({});var Db="prc_Checkbox_gIwWX";function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hb.apply(null,arguments)}const Fb=r.forwardRef((({checked:e,className:t,defaultChecked:o,indeterminate:n,disabled:l,onChange:i,sx:c,required:s,validationStatus:d,value:u,...v},b)=>{const f=ct(b),h=g(Vb),m={type:"checkbox",disabled:l,ref:f,checked:!n&&e,defaultChecked:o,required:s,"aria-required":s?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{h.onChange&&h.onChange(e),i&&i(e)},value:u,name:u,...v};return $t((()=>{f.current&&(f.current.indeterminate=n||!1)}),[n,e,f]),a((()=>{const{current:e}=f;e&&(n?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),c?r.createElement(ho,Hb({as:"input"},m,{className:Gr(t,Wd,Db),sx:c})):r.createElement("input",Hb({},m,{className:Gr(t,Wd,Db)}))}));Fb.displayName="Checkbox";var Wb={Select:"prc_Select_F7Flx",TextInputWrapper:"prc_TextInputWrapper_eBxmL",disabled:"prc_disabled_qvF9B",ArrowIndicator:"prc_ArrowIndicator_vtddB"};function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$b.apply(null,arguments)}const Zb="primer_react_css_modules_ga",Kb=So(Zb,"select",p.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-124jcjr-0"})(["appearance:none;border-radius:inherit;border:0;color:currentColor;font-size:inherit;outline:none;width:100%;background-color:inherit;margin-top:1px;margin-left:1px;margin-bottom:1px;&:disabled{background-color:transparent;}@media screen and (forced-colors:active){&:disabled{background-color:-moz-combobox;}}"])),Gb=({className:e})=>r.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},r.createElement("path",{d:"m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z"}));Gb.displayName="ArrowIndicatorSVG";const qb=p(Gb).withConfig({displayName:"Select__StyledArrowIndicatorSVG",componentId:"sc-124jcjr-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),Ub=({className:e})=>bo(Zb)?r.createElement(Gb,{className:Gr(Wb.ArrowIndicator,e)}):r.createElement(qb,null);Ub.displayName="ArrowIndicator";const Yb=r.forwardRef((({block:e,children:t,contrast:o,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,...s},d)=>bo(Zb)?r.createElement(Zu,{block:e,contrast:o,disabled:a,size:l,validationStatus:c,className:Wb.TextInputWrapper,sx:s.sx},r.createElement(Kb,$b({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0,className:Gr(Wb.Select,a&&Wb.Disabled)},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),t),r.createElement(Ub,{className:Wb.ArrowIndicator})):r.createElement(Zu,{sx:{overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},block:e,contrast:o,disabled:a,size:l,validationStatus:c},r.createElement(Kb,$b({ref:d,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),t),r.createElement(Ub,null)))),Xb=e=>r.createElement("option",e);Xb.displayName="Option";const Qb=e=>r.createElement("optgroup",e);Qb.displayName="OptGroup";var Jb=Object.assign(Yb,{Option:Xb,OptGroup:Qb});function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ef.apply(null,arguments)}const rf=p.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-cjezay-0"})(["{}padding:6px ",";font-size:",";font-weight:",";color:",";"," ",""],Wr("space.3"),Wr("fontSizes.0"),Wr("fontWeights.bold"),Wr("colors.fg.muted"),(({variant:e})=>"filled"===e&&C(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Wr("colors.canvas.subtle"),Wr("space.2"),Wr("colors.neutral.muted"),Wr("colors.neutral.muted"))),fo);function tf({variant:e="subtle",title:t,auxiliaryText:o,children:a,...n}){return r.createElement(rf,ef({role:"heading",variant:e},n),t,o&&r.createElement("span",null,o))}tf.displayName="Header";const of=p.div.withConfig({displayName:"Group__StyledGroup",componentId:"sc-1s2aw76-0"})(["",""],fo);function af({header:e,items:t,...o}){return r.createElement(of,o,e&&r.createElement(tf,e),t)}af.displayName="Group";const nf=p.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1s7tlfq-0"})(["height:1px;background:",";margin-top:calc("," - 1px);margin-bottom:",";"],Wr("colors.border.muted"),Wr("space.2"),Wr("space.2"));function lf(){return r.createElement(nf,null)}function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},cf.apply(null,arguments)}lf.displayName="Divider",lf.renderItem=lf;const sf=(e="default",r)=>r?{color:Wr("colors.primer.fg.disabled"),iconColor:Wr("colors.primer.fg.disabled"),annotationColor:Wr("colors.primer.fg.disabled"),hoverCursor:"default"}:"danger"===e?{color:Wr("colors.danger.fg"),iconColor:Wr("colors.danger.fg"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.danger.hoverBg"),focusBg:Wr("colors.actionListItem.danger.activeBg"),hoverText:Wr("colors.actionListItem.danger.hoverText")}:{color:Wr("colors.fg.default"),iconColor:Wr("colors.fg.muted"),annotationColor:Wr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Wr("colors.actionListItem.default.hoverBg"),focusBg:Wr("colors.actionListItem.default.activeBg")},df=p.div.withConfig({displayName:"Item__DividedContent",componentId:"sc-y6iv6t-0"})(["display:flex;min-width:0;position:relative;flex-grow:1;"]),gf=p.div.withConfig({displayName:"Item__MainContent",componentId:"sc-y6iv6t-1"})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]),uf=p.div.withConfig({displayName:"Item__StyledItem",componentId:"sc-y6iv6t-2"})(["padding:6px ",";display:flex;border-radius:",";color:",";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,"," );color:",";cursor:",";}}:not(:first-of-type):not("," + &):not("," + &){margin-top:",";","::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ",";border-top-width:",";}}&:hover ","::before,:hover + * ","::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ","::before,:focus + * ","::before,&[","] ","::before,[","] + & ","::before{border-color:transparent !important;}&[","='","']{background:",";}&[","='","']{background:",";}&:focus{background:",";outline:none;}&:active{background:",";}",""],Wr("space.2"),Wr("radii.2"),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).color),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverText),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverCursor),nf,rf,(({showDivider:e})=>e?"1px":"0"),df,Wr("colors.border.muted"),(({showDivider:e})=>e?"1px":"0"),df,df,df,df,Pt,df,Pt,df,Pt,Vt,(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).focusBg),Pt,Dt,(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).focusBg),(({variant:e,item:r})=>sf(e,null==r?void 0:r.disabled).focusBg),fo),vf=p.span.withConfig({displayName:"Item__TextContainer",componentId:"sc-y6iv6t-3"})([""]),bf=p.div.withConfig({displayName:"Item__BaseVisualContainer",componentId:"sc-y6iv6t-4"})(["height:20px;width:",";margin-right:",";display:flex;justify-content:center;align-items:center;flex-shrink:0;"],Wr("space.3"),Wr("space.2")),ff=p(bf).withConfig({displayName:"Item__ColoredVisualContainer",componentId:"sc-y6iv6t-5"})(["svg{fill:",";font-size:",";}"],(({variant:e,disabled:r})=>sf(e,r).iconColor),Wr("fontSizes.0")),hf=p(ff).withConfig({displayName:"Item__LeadingVisualContainer",componentId:"sc-y6iv6t-6"})(["display:flex;flex-direction:column;justify-content:center;"]),mf=p(ff).withConfig({displayName:"Item__TrailingContent",componentId:"sc-y6iv6t-7"})(["color:",";margin-left:",";margin-right:0;width:auto;div:nth-child(2){margin-left:",";}"],(({variant:e,disabled:r})=>sf(e,r).annotationColor),Wr("space.2"),Wr("space.2")),pf=p.span.withConfig({displayName:"Item__DescriptionContainer",componentId:"sc-y6iv6t-8"})(["color:",";font-size:",";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"],Wr("colors.fg.muted"),Wr("fontSizes.0")),yf=p.svg.withConfig({displayName:"Item__MultiSelectIcon",componentId:"sc-y6iv6t-9"})(["rect{fill:",";stroke:",";shape-rendering:auto;}path{fill:",";boxshadow:",";opacity:",";}"],(({selected:e})=>Wr(e?"colors.accent.fg":"colors.canvas.default")),(({selected:e})=>Wr(e?"colors.accent.fg":"colors.border.default")),Wr("colors.fg.onEmphasis"),Wr("shadow.small"),(({selected:e})=>e?1:0)),xf=r.forwardRef(((e,t)=>{const{as:a,text:n,description:l,descriptionVariant:i="inline",selected:c,selectionVariant:s,leadingVisual:d,trailingIcon:g,trailingVisual:u,trailingText:v,variant:b="default",showDivider:f,disabled:h,onAction:m,onKeyPress:p,children:y,onClick:x,id:w,...C}=e,k=ro(),E=ro(),B=o((r=>{h||(null==p||p(r),!r.defaultPrevented&&[" ","Enter"].includes(r.key)&&(null==m||m(e,r)))}),[m,h,e,p]),T=o((r=>{h||(null==x||x(r),r.defaultPrevented||null==m||m(e,r))}),[m,h,e,x]),{theme:N}=io();return r.createElement(uf,cf({ref:t,as:a,tabIndex:h?void 0:-1,variant:b,showDivider:f,"aria-selected":c,"aria-labelledby":n?k:void 0,"aria-describedby":l?E:void 0},C,{"data-id":w,onKeyPress:B,onClick:T}),!!c===c&&r.createElement(bf,null,"multiple"===s?r.createElement(r.Fragment,null,r.createElement(yf,{selected:c,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r.createElement("rect",{x:"2",y:"2",width:"12",height:"12",rx:"4"}),r.createElement("path",{fillRule:"evenodd",strokeWidth:"0",d:"M4.03231 8.69862C3.84775 8.20646 4.49385 7.77554 4.95539 7.77554C5.41693 7.77554 6.80154 9.85246 6.80154 9.85246C6.80154 9.85246 10.2631 4.314 10.4938 4.08323C10.7246 3.85246 11.8785 4.08323 11.4169 5.00631C11.0081 5.82388 7.26308 11.4678 7.26308 11.4678C7.26308 11.4678 6.80154 12.1602 6.34 11.4678C5.87846 10.7755 4.21687 9.19077 4.03231 8.69862Z"}))):c&&r.createElement(Sc,{fill:null==N?void 0:N.colors.fg.default})),d&&r.createElement(hf,{variant:b,disabled:h},r.createElement(d,null)),r.createElement(df,null,r.createElement(gf,{style:{"--main-content-flex-direction":"inline"===i?"row":"column"}},y,n?r.createElement(vf,{id:k},n):null,l?r.createElement(pf,{id:E,style:{"--description-container-margin-left":"inline"===i?Wr("space.2")(N):0,"--description-container-flex-basis":"inline"===i?0:"auto"}},"block"===i?l:r.createElement(Vg,{title:l,inline:!0,maxWidth:"100%"},l)):null),u?r.createElement(mf,{variant:b,disabled:h},"string"!=typeof u&&_n.isValidElementType(u)?r.createElement(u,null):u):g||v?r.createElement(mf,{variant:b,disabled:h},v,g&&r.createElement(g,null)):null))}));function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wf.apply(null,arguments)}xf.displayName="ActionList.Item";const Cf=p.div.withConfig({displayName:"List__StyledList",componentId:"sc-hkz3q0-0"})(["font-size:",";line-height:20px;&[","],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:",";}"],Wr("fontSizes.1"),Ht,Wr("colors.border.muted"));const kf=r.forwardRef(((e,t)=>{const{firstGroupStyle:o,lastGroupStyle:a,headerStyle:n,itemStyle:l}=function(e="inset"){return"full"===e?{headerStyle:{paddingX:Wr("space.2")},itemStyle:{borderRadius:0}}:{firstGroupStyle:{marginTop:Wr("space.2")},lastGroupStyle:{marginBottom:Wr("space.2")},itemStyle:{marginX:Wr("space.2")}}}(e.variant),i=(t,o,a)=>{var n,i,c;const s="renderItem"in t&&t.renderItem||e.renderItem||xf,d=null!==(n=null!==(i="key"in t?t.key:void 0)&&void 0!==i?i:null===(c=t.id)||void 0===c?void 0:c.toString())&&void 0!==n?n:a.toString();return r.createElement(s,wf({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},t,{key:d,sx:{...l,...t.sx},item:o}))};let c=[];if(function(e){return"groupMetadata"in e}(e)){const r=e.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const t of e.items){var s,d,g;const e=r.get(t.groupId),o=null!==(s=null==e||null===(d=e.items)||void 0===d?void 0:d.length)&&void 0!==s?s:0;r.set(t.groupId,{...e,items:[...null!==(g=null==e?void 0:e.items)&&void 0!==g?g:[],i({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...t},t,o)]})}c=[...r.values()]}else c=[{items:e.items.map(((e,r)=>i(e,e,r))),groupId:"0"}];return r.createElement(Cf,wf({},e,{ref:t}),c.map((({header:t,...l},i)=>{const s="filled"===(null==t?void 0:t.variant),d=i>0&&!s;return r.createElement(r.Fragment,{key:l.groupId},d?r.createElement(lf,{key:`${l.groupId}-divider`}):null,(t=>{var o;const a=(null!==(o="renderGroup"in t&&t.renderGroup)&&void 0!==o?o:e.renderGroup)||af;return r.createElement(a,wf({},t,{key:t.groupId}))})({sx:{...0===i&&o,...i===c.length-1&&a,...i>0&&!d&&{mt:2}},...t&&{header:{...t,sx:{...n,...t.sx}}},...l}))})))}));kf.displayName="ActionList";const Ef=Object.assign(kf,{Group:af,Item:xf,Divider:lf});function Bf(e){a((()=>{const r=e.current;if(!r)return;const t=r.scrollTop,o=r.scrollHeight,a=t<Math.min(1,o)?t+1:t-1;r.scrollTop=a,r.scrollTop=t}),[e])}function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tf.apply(null,arguments)}const Nf={startMargin:0,endMargin:8},Sf=p.div.withConfig({displayName:"FilteredActionListWithDeprecatedActionList__StyledHeader",componentId:"sc-o1spcd-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function _f({loading:e=!1,placeholderText:t,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,className:u,...v}){const[b,f]=Ut(n,void 0,""),h=o((e=>{const r=e.target.value;i(r,e),f(r)}),[i,f]),m=l(null),p=l(null),y=ct(d),x=l(),w=ro(),C=ro(),k=o((e=>{if("Enter"===e.key&&x.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);x.current.dispatchEvent(r)}}),[x]);return Uc({containerRef:p,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:y,onActiveDescendantChanged:(e,r,t)=>{x.current=e,e&&m.current&&t&&Wt(e,m.current,Nf)}},[e]),a((()=>{x.current&&m.current&&Wt(x.current,m.current,{...Nf,behavior:"auto"})}),[c]),Bf(m),r.createElement(ho,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:u,"data-testid":"filtered-action-list"},r.createElement(Sf,null,r.createElement(Ju,Tf({ref:y,block:!0,width:"auto",color:"fg.default",value:b,onChange:h,onKeyPress:k,placeholder:t,"aria-label":t,"aria-controls":w,"aria-describedby":C},s))),r.createElement(Lo,{id:C},"Items will be filtered as you type"),r.createElement(ho,{ref:m,overflow:"auto"},e?r.createElement(ho,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Ho,null)):r.createElement(Ef,Tf({ref:p,items:c},v,{role:"listbox",id:w}))))}_f.displayName="FilteredActionList",_f.displayName="FilteredActionList";const If=(e,r)=>{const t=e.current,o=null==t?void 0:t.querySelector("[data-is-active-descendant]");if(!t||null==o||!o.textContent)return;const a=t.querySelectorAll('[role="option"]'),n=Array.from(a).indexOf(o),l=r[n];return{index:n,text:null==l?void 0:l.text,selected:null==l?void 0:l.selected}},Af=(e,r,t)=>{const o=document.querySelector("live-region");a((function(){const a=()=>{window.requestAnimationFrame((()=>{const t=If(r,e);if(!t)return;const{index:a,text:n,selected:l}=t;Ka(["Focus on filter text box and list of items",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:o||void 0})}))},n=t.current;return null==n||n.addEventListener("focus",a),()=>null==n?void 0:n.removeEventListener("focus",a)}),[r,t,e,o]);const n=(()=>{const e=l(!0);return a((()=>{e.current=!1}),[]),e.current})();a((function(){n||(null==o||o.clear(),0!==e.length?window.requestAnimationFrame((()=>{const t=If(r,e);if(!t)return;const{index:a,text:n,selected:l}=t;Ka(["List updated",`Focused item: ${n}`,""+(l?"selected":"not selected"),`${a+1} of ${e.length}`].join(", "),{delayMs:500,from:o||void 0})})):Ka("No matching items.",{delayMs:500}))}),[n,e,r,o])};function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mf.apply(null,arguments)}const Lf={startMargin:0,endMargin:8},Of=p.div.withConfig({displayName:"FilteredActionListWithModernActionList__StyledHeader",componentId:"sc-1d2kw5v-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Wr("colors.border.default"));function jf({loading:e=!1,placeholderText:t,filterValue:n,onFilterChange:i,items:c,textInputProps:s,inputRef:d,sx:g,groupMetadata:u,showItemDividers:v,className:b,...f}){const[h,m]=Ut(n,void 0,""),p=o((e=>{const r=e.target.value;i(r,e),m(r)}),[i,m]),y=l(null),x=l(null),w=ct(d),C=l(),k=ro(),E=ro(),B=o((e=>{if("Enter"===e.key&&C.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);C.current.dispatchEvent(r)}}),[C]);return Uc({containerRef:x,bindKeys:Ot.ArrowVertical|Ot.PageUpDown,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:w,onActiveDescendantChanged:(e,r,t)=>{C.current=e,e&&y.current&&t&&Wt(e,y.current,Lf)}},[e]),a((()=>{C.current&&y.current&&Wt(C.current,y.current,{...Lf,behavior:"auto"})}),[c]),Bf(y),Af(c,x,w),r.createElement(ho,{display:"flex",flexDirection:"column",overflow:"hidden",sx:g,className:b,"data-testid":"filtered-action-list"},r.createElement(Of,null,r.createElement(Ju,Mf({ref:w,block:!0,width:"auto",color:"fg.default",value:h,onChange:p,onKeyPress:B,placeholder:t,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":k,"aria-label":t,"aria-describedby":E},s))),r.createElement(Lo,{id:E},"Items will be filtered as you type"),r.createElement(ho,{ref:y,overflow:"auto"},e?r.createElement(ho,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Ho,null)):r.createElement(cu,Mf({ref:x,showDividers:v},f,{role:"listbox",id:k}),null!=u&&u.length?u.map(((e,t)=>{var o,a;return r.createElement(cu.Group,{key:t},r.createElement(cu.GroupHeading,{variant:null!==(o=e.header)&&void 0!==o&&o.variant?e.header.variant:void 0},null!==(a=e.header)&&void 0!==a&&a.title?e.header.title:`Group ${e.groupId}`),function(e){const r=[];for(const t of c)t.groupId===e&&r.push(t);return r}(e.groupId).map(((e,t)=>r.createElement(Rf,Mf({key:t},e,{renderItem:f.renderItem})))))})):c.map(((e,t)=>r.createElement(Rf,Mf({key:t},e,{renderItem:f.renderItem})))))))}function Rf(e){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:t,description:o,descriptionVariant:a,text:n,trailingVisual:l,leadingVisual:i,trailingText:c,trailingIcon:s,onAction:d,children:g,...u}=e;return r.createElement(cu.Item,Mf({role:"option",onSelect:r=>{"function"==typeof d&&d(e,r)},"data-id":t},u),i?r.createElement(cu.LeadingVisual,null,r.createElement(i,null)):null,g,n,o?r.createElement(cu.Description,{variant:a},o):null,l?r.createElement(cu.TrailingVisual,null,"string"!=typeof l&&_n.isValidElementType(l)?r.createElement(l,null):l):s||c?r.createElement(cu.TrailingVisual,null,c,s&&r.createElement(s,null)):null)}function zf(e){return bo("primer_react_select_panel_with_modern_action_list")?r.createElement(jf,e):r.createElement(_f,e)}jf.displayName="FilteredActionList",Rf.displayName="MappedActionListItem",jf.displayName="FilteredActionList",zf.displayName="FilteredActionList";const Pf=r.createContext(null);function Vf(){const e=r.useContext(Pf);if(!e)throw new Error("useLiveRegion() must be used within a <LiveRegion>");return e}function Df({children:e}){const[t,o]=r.useState(""),a=r.useMemo((()=>({announce:o,message:t})),[t]);return r.createElement(Pf.Provider,{value:a},e)}function Hf(){const e=Vf();return r.createElement(Lo,{role:"status","aria-live":"polite","aria-atomic":!0},e.message)}function Ff({value:e}){const t=Vf(),o=r.useRef(t),a=r.useRef(!1);return r.useEffect((()=>{o.current=t}),[t]),r.useEffect((()=>{if(!0!==a.current)return;const r=setTimeout((()=>{o.current.announce(e)}),750);return()=>{clearTimeout(r)}}),[e]),r.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),null}Df.displayName="LiveRegion",Hf.displayName="LiveRegionOutlet";var Wf="prc_Wrapper_43Iz8",$f="prc_Content_rbAGw",Zf="prc_Title_-CZN1",Kf="prc_Subtitle_tMSzu",Gf="prc_Footer_78rgp",qf="prc_FilteredActionList_wzS7m";function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Uf.apply(null,arguments)}function Yf(e){return Array.isArray(e)}const Xf={disabled:!0},Qf=(e,r)=>void 0!==e.id?e.id===r.id:e===r,Jf=(e,r)=>e.some((e=>Qf(e,r)));function eh({open:e,onOpenChange:a,renderAnchor:n=e=>{const{children:t,...o}=e;return r.createElement(On,Uf({trailingAction:Gc},o),t)},anchorRef:l,placeholder:i,placeholderText:c="Filter items",inputLabel:s=c,selected:d,title:g=(Yf(d)?"Select items":"Select an item"),subtitle:u,onSelectedChange:v,filterValue:b,onFilterChange:f,items:h,footer:m,textInputProps:p,overlayProps:y,sx:x,className:w,id:C,...k}){const E=ro(),B=ro(),[T,N]=Ut(b,void 0,""),S=o(((e,r)=>{f(e,r),N(e)}),[f,N]),_=bo("primer_react_css_modules_team"),I=ct(l),A=o((e=>a(!0,e)),[a]),M=o((e=>{a(!1,e)}),[a]),L=t((()=>{if(null===n)return null;const e=Array.isArray(d)?d:[...d?[d]:[]];return r=>n({...r,children:e.length?e.map((e=>e.text)).join(", "):i})}),[i,n,d]),O=t((()=>h.map((e=>{const r=Yf(d)?Jf(d,e):d===e;return{...e,role:"option",selected:"selected"in e&&void 0===e.selected?void 0:r,onAction:(r,t)=>{var o;if(null===(o=e.onAction)||void 0===o||o.call(e,r,t),t.defaultPrevented)return;if(Yf(d)){const r=d.filter((r=>!Qf(r,e))),t=Jf(d,e)?r:[...r,e];return void v(t)}v(e===d?void 0:e),M("selection")}}}))),[M,v,h,d]),j=r.useRef(null),R={initialFocusRef:j},z=t((()=>({sx:{m:2},contrast:!0,leadingVisual:Zc,"aria-label":s,...p})),[s,p]),P=bo("primer_react_select_panel_with_modern_action_list");return r.createElement(Df,null,r.createElement(pu,{renderAnchor:L,anchorRef:I,open:e,onOpen:A,onClose:M,overlayProps:{role:"dialog","aria-labelledby":E,"aria-describedby":u?B:void 0,...y},focusTrapSettings:R,focusZoneSettings:Xf,anchorId:C},r.createElement(Hf,null),P?null:r.createElement(Ff,{value:""===T?"Showing all items":h.length<=0?"No matching items":`${h.length} matching ${1===h.length?"item":"items"}`}),r.createElement(ho,{sx:_?void 0:{display:"flex",flexDirection:"column",height:"inherit",maxHeight:"inherit"},className:_?Wf:void 0},r.createElement(ho,{sx:_?void 0:{pt:2,px:3},className:_?$f:void 0},r.createElement(Ud,{as:"h1",id:E,sx:_?void 0:{fontSize:1},className:_?Zf:void 0},g),u?r.createElement(ho,{id:B,sx:_?void 0:{fontSize:0,color:"fg.muted"},className:_?Kf:void 0},u):null),r.createElement(zf,Uf({filterValue:T,onFilterChange:S,placeholderText:c},k,{role:"listbox","aria-labelledby":k["aria-label"]?void 0:E,"aria-multiselectable":Yf(d)?"true":"false",selectionVariant:Yf(d)?"multiple":"single",items:O,textInputProps:z,inputRef:j,sx:_?x:{...x,height:"inherit",maxHeight:"inherit"},className:_?Gr(w,qf):w})),m&&r.createElement(ho,{sx:_?void 0:{display:"flex",borderTop:"1px solid",borderColor:"border.default",padding:2},className:_?Gf:void 0},m))))}eh.displayName="SelectPanel",eh.displayName="SelectPanel";var rh=G(be,Q,X,U,J,oe,ne,ie,re,fe,Ne,Se,_e),th=new RegExp("^("+rh.propNames.join("|")+")$"),oh="prc_TokenBase_PfQzJ";function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ah.apply(null,arguments)}const nh={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},lh="medium",ih=({as:e="span",onClick:r,onFocus:t,tabIndex:o=-1,disabled:a})=>!a&&Boolean(t||r||o>-1||["a","button"].includes(e)),ch=Te({prop:"size",variants:{small:{fontSize:0,height:nh.small,lineHeight:nh.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:nh.medium,lineHeight:nh.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:nh.large,lineHeight:nh.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:nh.xlarge,lineHeight:nh.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),sh="primer_react_css_modules_team",dh=So(sh,"span",p.span.withConfig({displayName:"TokenBase__StyledTokenBase",componentId:"sc-1ju9l7y-0"})(["align-items:center;border-radius:999px;cursor:",";display:inline-flex;font-weight:",";font-family:inherit;text-decoration:none;position:relative;white-space:nowrap;"," ",""],(e=>ih(e)?"pointer":"auto"),Wr("fontWeights.bold"),ch,fo)),gh=r.forwardRef((({onRemove:e,onKeyDown:t,id:o,className:a,size:n=lh,...l},i)=>bo(sh)?r.createElement(dh,ah({onKeyDown:r=>{t&&t(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},className:Gr(oh,a),"data-cursor-is-interactive":ih(l),"data-size":n,id:null==o?void 0:o.toString()},l,{ref:i})):r.createElement(dh,ah({onKeyDown:r=>{t&&t(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},className:a,id:null==o?void 0:o.toString(),size:n},l,{ref:i}))));var uh="prc_TokenButton_F4Y8h";function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vh.apply(null,arguments)}const bh="primer_react_css_modules_team",fh=Te({prop:"size",variants:{small:{height:nh.small,width:nh.small},medium:{height:nh.medium,width:nh.medium},large:{height:nh.large,width:nh.large},xlarge:{height:nh.xlarge,width:nh.xlarge}}}),hh=e=>.75*parseInt(nh[e||lh],10),mh=So(bh,"span",p.span.withConfig({displayName:"_RemoveTokenButton__StyledTokenButton",componentId:"sc-urhpr1-0"})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:",";align-self:baseline;border:0;border-radius:999px;"," &:hover,&:focus{background-color:",";}&:active{background-color:",";}"," ",""],(e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`),(e=>{switch(e.size){case"large":case"xlarge":return C(["margin-left:",";"],Wr("space.2"));default:return C(["margin-left:",";"],Wr("space.1"))}}),Wr("colors.neutral.muted"),Wr("colors.neutral.subtle"),fh,fo)),ph=({"aria-label":e,isParentInteractive:t,size:o=lh,className:a,...n})=>{delete n.children;const l=bo(bh);return r.createElement(mh,vh({as:t?"span":"button",tabIndex:t?-1:void 0,"aria-label":t?e:"Remove token",size:o,"data-size":o,className:Gr(l&&uh,a),style:l?{transform:`translate(${n.borderOffset}px, -${n.borderOffset}px)`}:{}},n),r.createElement(qc,{size:hh(o)}))};ph.displayName="RemoveTokenButton";var yh="prc_TokenTextContainer_-rlDJ";function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},xh.apply(null,arguments)}const wh="primer_react_css_modules_team",Ch=So(wh,"span",p("span").withConfig({displayName:"_TokenTextContainer__StyledTokenTextContainer",componentId:"sc-6l9eri-0"})(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;line-height:normal;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex='0']){cursor:pointer;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}}"])),kh=({children:e,...t})=>{const o=bo(wh);return r.createElement(Ch,xh({className:Gr(o&&yh)},t),e)};kh.displayName="TokenTextContainer";var Eh="prc_Token_L2-At";function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bh.apply(null,arguments)}const Th=({children:e,size:t})=>r.createElement(ho,{sx:{flexShrink:0,lineHeight:0,marginRight:t&&["large","xlarge"].includes(t)?2:1}},e);Th.displayName="LeadingVisualContainer";const Nh=u(((e,t)=>{const o=bo("primer_react_css_modules_team"),{as:a,onRemove:n,id:l,leadingVisual:i,text:c,size:s=lh,hideRemoveButton:d,href:g,onClick:u,sx:v=To,className:b,style:f,...h}=e,m=ih(e)&&Boolean(n)&&!d,p=e=>{e.stopPropagation(),n&&n()},y={as:a,href:g,onClick:u},x=tt({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!d&&n?0:void 0,...ih(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},v);return o?r.createElement(gh,Bh({onRemove:n,id:null==l?void 0:l.toString(),className:Gr(b,Eh),text:c,size:s,sx:v,"data-is-selected":e.isSelected,"data-is-remove-btn":!(d||!n)},m?{}:y,h,{ref:t,style:{borderWidth:"1px",...f}}),i?r.createElement(Th,{size:s},r.createElement(i,null)):null,r.createElement(kh,m?y:{},c,n&&r.createElement(El,null," (press backspace or delete to remove)")),!d&&n?r.createElement(ph,{borderOffset:1,onClick:p,size:s,isParentInteractive:ih(e),"aria-hidden":m?"true":"false"}):null):r.createElement(gh,Bh({onRemove:n,id:null==l?void 0:l.toString(),text:c,size:s,sx:x,className:b},m?{}:y,h,{ref:t,style:f}),i?r.createElement(Th,{size:s},r.createElement(i,null)):null,r.createElement(kh,m?y:{},c,n&&r.createElement(El,null," (press backspace or delete to remove)")),!d&&n?r.createElement(ph,{borderOffset:1,onClick:p,size:s,isParentInteractive:ih(e),"aria-hidden":m?"true":"false"}):null)}));Nh.displayName="Token";var Sh="prc_TextInputWrapper_kj1cB",_h="prc_UnstyledTextInput_F582M";function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ih.apply(null,arguments)}const Ah={small:0,medium:1,large:1,xlarge:2};function Mh({icon:e,leadingVisual:t,trailingVisual:o,loading:a,loaderPosition:n="auto",contrast:c,className:s,block:d,disabled:g,sx:u,tokens:v,onTokenRemove:b,tokenComponent:f=Nh,preventTokenWrapping:h=!1,size:m="xlarge",hideTokenRemoveButtons:p=!1,maxHeight:y,width:x,minWidth:w,maxWidth:C,validationStatus:k,variant:E,visibleTokenCount:B,style:T,...N},S){const{onBlur:_,onFocus:I,onKeyDown:A,...M}=function(e){var r={};for(var t in e)th.test(t)||(r[t]=e[t]);return r}(N),L=l(null);eo(S,L);const[O,j]=i(),[R,z]=i(Boolean(B)),{containerRef:P}=Uc({focusOutBehavior:"wrap",bindKeys:Ot.ArrowHorizontal|Ot.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!O&&0!==O)return;let t=O+1;return"next"===e&&(t+=1),"previous"===e&&(t-=1),t>v.length||t<1?L.current||void 0:null===(r=P.current)||void 0===r?void 0:r.children[t]}},[O]),V=e=>{b(e),setTimeout((()=>{var e,r;const t=null===(e=P.current)||void 0===e?void 0:e.children[O||0],o=t&&ft(t)?t:Array.from((null===(r=P.current)||void 0===r?void 0:r.children)||[]).find((e=>ft(e)));var a;o?o.focus():null===(a=L.current)||void 0===a||a.focus()}),0)},D=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!B||z(!0)}),0)},H=e=>{var r;"Escape"===e.key&&(null===(r=L.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},W=R?v.slice(0,B):v,$=a&&("leading"===n||Boolean(t&&"trailing"!==n)),Z=a&&("trailing"===n||"auto"===n&&!t),K=bo(Ou),G=r.useMemo((()=>K?{className:Gr(s,Sh),style:y?{maxHeight:y,...T}:T,sx:u}:{className:s,style:T,sx:{paddingLeft:"12px",py:"6px",...d?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...u}}),[d,s,K,y,h,T,u]);return r.createElement(Zu,Ih({block:d,contrast:c,disabled:g,hasLeadingVisual:Boolean(t||$),hasTrailingVisual:Boolean(o||Z),width:x,minWidth:w,maxWidth:C,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[m],validationStatus:k,variant:E,onClick:()=>{var e;null===(e=L.current)||void 0===e||e.focus()},"data-token-wrapping":Boolean(h||y)||void 0},G),e&&!t&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Pu,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:$},"string"!=typeof t&&_n.isValidElementType(t)?r.createElement(t,null):t),r.createElement(ho,{ref:P,display:"flex",sx:{alignItems:"center",flexWrap:h?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},r.createElement(ho,{sx:{order:1,flexGrow:1}},r.createElement(Ru,Ih({ref:L,disabled:g,onFocus:e=>{I&&I(e),j(void 0),B&&z(!1)},onBlur:e=>{_&&_(e),setTimeout((()=>{var e;null!==(e=P.current)&&void 0!==e&&e.contains(document.activeElement)||!B||z(!0)}),0)},onKeyDown:e=>{var r;if(A&&A(e),null!==(r=L.current)&&void 0!==r&&r.value)return;const t=v[v.length-1];"Backspace"===e.key&&t&&(V(t.id),L.current&&(L.current.value=`${t.text} `),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.select()}),0))},type:"text",sx:K?void 0:{height:"100%"},className:K?_h:void 0,"aria-invalid":"error"===k?"true":"false"},M))),W.map((({id:e,...t},o)=>{return r.createElement(f,Ih({disabled:g,key:e,onFocus:(a=o,()=>{g||j(a)}),onBlur:D,onKeyUp:H,onClick:F,isSelected:O===o,onRemove:()=>{V(e)},hideRemoveButton:g||p,size:m,tabIndex:0},t));var a})),R&&v.length-W.length?r.createElement(kl,{color:"fg.muted",fontSize:Ah[m]},"+",v.length-W.length):null),r.createElement(Pu,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:Z},"string"!=typeof o&&_n.isValidElementType(o)?r.createElement(o,null):o))}Mh.displayName="TextInputWithTokensInnerComponent";const Lh=r.forwardRef(Mh);Lh.displayName="TextInputWithTokens";var Oh="prc_TextArea_13q4j";function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jh.apply(null,arguments)}const Rh="primer_react_css_modules_ga",zh=So(Rh,"textarea",p.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-1lf8it-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;resize:both;&:focus{outline:0;}"," "," ",";"],(e=>e.resize&&C(["resize:",";"],e.resize)),(e=>e.disabled&&C(["resize:none;"])),fo)),Ph=r.forwardRef((({value:e,disabled:t,sx:o,required:a,validationStatus:n,rows:l=7,cols:i=30,resize:c="both",block:s,contrast:d,className:g,...u},v)=>{const b=bo(Rh);return r.createElement(Wu,{sx:o,validationStatus:n,disabled:t,block:s,contrast:d,className:g},r.createElement(zh,jh({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:v,disabled:t,rows:l,cols:i,className:Gr(b&&Oh,g)},u)))}));Ph.displayName="Textarea";var Vh="prc_Caption_tfuKU";function Dh({id:e,children:t,sx:o}){const a=bo(Ed),{captionId:n,disabled:l}=zb();return r.createElement(Hh,{id:null!=e?e:n,className:Gr({[Vh]:a}),"data-control-disabled":l?"":void 0,sx:o},t)}Dh.displayName="FormControlCaption";const Hh=So(Ed,kl,p(kl).withConfig({displayName:"FormControlCaption__StyledCaption",componentId:"sc-u5w2b2-0"})(["color:var(--fgColor-muted);display:block;font-size:var(--text-body-size-small);&:where([data-control-disabled]){color:var(--control-fgColor-disabled);}",""],fo));var Fh="prc_Label_bE-kK",Wh="prc_RequiredText_ztJvt";function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$h.apply(null,arguments)}function Zh({children:e,disabled:t,htmlFor:o,id:a,required:n,requiredText:l,requiredIndicator:i,visuallyHidden:c,sx:s,as:d="label",className:g,...u}){const v=bo(Ed);return r.createElement(Kh,$h({as:d,"data-control-disabled":t?"":void 0,"data-visually-hidden":c?"":void 0,htmlFor:o,id:a,className:Gr(g,{[Fh]:v}),sx:s},u),n||l?r.createElement(Gh,{className:Gr({[Wh]:v})},r.createElement("span",null,e),r.createElement("span",{"aria-hidden":!i||void 0},null!=l?l:"*")):e)}Zh.displayName="InputLabel";const Kh=So(Ed,"label",p.label.withConfig({displayName:"InputLabel__StyledLabel",componentId:"sc-l3hcqt-0"})(["align-self:flex-start;display:block;color:var(--fgColor-default);cursor:pointer;font-weight:600;font-size:var(--text-body-size-medium);&:where([data-control-disabled]){color:var(--fgColor-muted);cursor:not-allowed;}&:where([data-visually-hidden]){border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}",""],fo)),Gh=So(Ed,"span",p.span.withConfig({displayName:"InputLabel__StyledRequiredText",componentId:"sc-l3hcqt-1"})(["display:flex;column-gap:var(--base-size-4);"])),qh=({as:e,children:t,htmlFor:o,id:a,visuallyHidden:n,requiredIndicator:l=!0,requiredText:i,sx:c,className:s,...d})=>{const{disabled:g,id:u,required:v}=zb(),b="legend"===e||"span"===e?{as:e,id:a,className:s,visuallyHidden:n,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d}:{as:e,id:a,className:s,visuallyHidden:n,htmlFor:o||u,required:v,requiredText:i,requiredIndicator:l,disabled:g,sx:c,...d};return r.createElement(Zh,b,t)};qh.displayName="FormControlLabel";const Uh=({children:e,sx:t})=>{const{disabled:o,captionId:a}=zb();return r.createElement(Yh,{"data-control-disabled":o?"":void 0,"data-has-caption":a?"":void 0,sx:t},e)};Uh.displayName="FormControlLeadingVisual";const Yh=p.div.withConfig({displayName:"FormControlLeadingVisual__StyledLeadingVisual",componentId:"sc-1c26i0t-0"})(["--leadingVisual-size:",";color:var(--fgColor-default);margin-inline-start:",";&:where([data-control-disabled]){color:var(--fgColor-muted);}& > *{min-width:var(--leadingVisual-size);min-height:var(--leadingVisual-size);fill:currentColor;}&:where([data-has-caption]){--leadingVisual-size:",";}",""],Wr("fontSizes.2"),Wr("space.2"),Wr("fontSizes.4"),fo),Xh=({children:e,variant:t,sx:o,id:a})=>{const{validationMessageId:n}=zb();return r.createElement(_d,{validationStatus:t,id:a||n||"",sx:o},e)};Xh.displayName="FormControlValidation";var Qh="prc_ControlHorizontalLayout_GkYZF",Jh="prc_ControlVerticalLayout_wOp8f",em="prc_ControlChoiceInputs_VxfAy",rm="prc_LabelContainer_lwQsw",tm="prc_LeadingVisual_fEyC5";const om=r.forwardRef((({children:e,disabled:t,layout:o="vertical",id:a,required:n,sx:l,className:i},c)=>{var s,d;const u=bo(Ed),[v,b]=ai(e,{caption:Dh,label:qh,leadingVisual:Uh,validation:Xh}),f=[bv,Fb,Zd,Jb,Ju,Lh,Ph,eh],h=g(od).disabled||t,m=ro(a),p=v.validation?`${m}-validationMessage`:void 0,y=v.caption?`${m}-caption`:void 0,x=null===(s=v.validation)||void 0===s?void 0:s.props.variant,w=b.find((e=>f.some((t=>r.isValidElement(e)&&e.type===t)))),C=(r.isValidElement(w)&&w.props,r.isValidElement(w)&&(w.type===Fb||w.type===Zd)),k=r.isValidElement(w)&&w.type===Zd;v.label||console.error(`The input field with the id ${m} MUST have a FormControl.Label child.\n\nIf you want to hide the label, pass the 'visuallyHidden' prop to the FormControl.Label component.`);const E=null===(d=v.label)||void 0===d?void 0:d.props.visuallyHidden;return r.createElement(Rb,{value:{captionId:y,disabled:h,id:m,required:n,validationMessageId:p}},C||"horizontal"===o?r.createElement(am,{ref:c,"data-has-leading-visual":v.leadingVisual?"":void 0,sx:l,className:Gr(i,{[Qh]:u})},r.createElement(nm,{className:em},r.isValidElement(w)?r.cloneElement(w,{id:m,disabled:h,required:n&&!k,"aria-describedby":y}):null,b.filter((e=>r.isValidElement(e)&&![Fb,Zd].some((r=>e.type===r))))),v.leadingVisual?r.createElement(im,{className:Gr({[tm]:u}),"data-disabled":h?"":void 0,"data-has-caption":v.caption?"":void 0},v.leadingVisual):null,r.createElement(lm,{className:rm},v.label,v.caption)):r.createElement(ho,{ref:c,"data-has-label":E?void 0:"",display:"flex",flexDirection:"column",alignItems:"flex-start",sx:u?l:{...E?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l},className:Gr(i,{[Jh]:u})},v.label,r.isValidElement(w)&&r.cloneElement(w,Object.assign({id:m,required:n,disabled:h,validationStatus:x,"aria-describedby":[p,y].filter(Boolean).join(" ")},w.props)),b.filter((e=>r.isValidElement(e)&&!f.some((r=>e.type===r)))),v.validation?r.createElement(td,{show:!0},v.validation):null,v.caption))})),am=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledHorizontalLayout",componentId:"sc-1t6d2k4-0"})(["display:flex;&:where([data-has-leading-visual]){align-items:center;}",""],fo)),nm=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledChoiceInputs",componentId:"sc-1t6d2k4-1"})(["> input{margin-left:0;margin-right:0;}"])),lm=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledLabelContainer",componentId:"sc-1t6d2k4-2"})(["> *{padding-left:var(--stack-gap-condensed);}> label{font-weight:var(--base-text-weight-normal);}"])),im=So(Ed,"div",p.div.withConfig({displayName:"FormControl__StyledLeadingVisual",componentId:"sc-1t6d2k4-3"})(["color:var(--fgColor-default);margin-left:var(--base-size-8);&:where([data-disabled]){color:var(--fgColor-muted);}> *{fill:currentColor;min-width:var(--text-body-size-large);min-height:var(--text-body-size-large);}> *:where([data-has-caption]){min-width:var(--base-size-24);min-height:var(--base-size-24);}"]));var cm=Object.assign(om,{Caption:Dh,Label:qh,LeadingVisual:Uh,Validation:Xh});function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sm.apply(null,arguments)}const dm=({children:e,disabled:t,onChange:o,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===cm)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Fb)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=qt(l);return r.createElement(Vb.Provider,{value:{disabled:t,onChange:e=>{o&&((e=>{const{value:r,checked:t}=e.currentTarget;c(t?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),o(i.current||[],e))}}},r.createElement(zd,sm({disabled:t},a),e))};dm.displayName="CheckboxGroup";var gm=Object.assign(dm,{Caption:gd,Label:kd,Validation:Ld});function um(){return um=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},um.apply(null,arguments)}const vm=p(r.forwardRef(((e,t)=>{const{icon:o,...a}=e;return r.createElement(o,um({},a,{ref:t}))}))).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>fo({sx:{color:e,...r}})));const bm={small:56,medium:96,large:128},fm=p.div.withConfig({displayName:"CircleBadge",componentId:"sc-nywehb-0"})(["display:",";align-items:center;justify-content:center;background-color:",";border-radius:50%;box-shadow:",";",";",";"],(({inline:e=!1})=>e?"inline-flex":"flex"),Wr("colors.canvas.default"),Wr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const t=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:bm[r];return{width:t,height:t}}),fo),hm=p(vm).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);hm.displayName="CircleBadge.Icon";var mm=Object.assign(fm,{Icon:hm}),pm="prc_Details_XJobb";function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ym.apply(null,arguments)}const xm=r.forwardRef((({className:e,children:t,sx:n=To,...l},c)=>{const s=r.useRef(null),d=function(...e){return o((r=>{for(const t of e)"function"==typeof t?t(r):t&&(t.current=r)}),e)}(c,s),[g,u]=i(!1);return a((()=>{const{current:e}=s;if(!e)return;const r=()=>{const r=e.querySelector("summary:not([data-default-summary])");u(!!r)};r();const t=new MutationObserver((()=>{r()}));return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect()}}),[]),n!==To?r.createElement(ho,ym({as:"details",className:Gr(e,pm)},l,{sx:n,ref:d}),!g&&r.createElement(Cm.Summary,{"data-default-summary":!0},"See Details"),t):r.createElement("details",ym({className:Gr(e,pm)},l,{ref:d}),!g&&r.createElement(Cm.Summary,{"data-default-summary":!0},"See Details"),t)}));function wm({as:e,children:t,...o}){const a=null!=e?e:"summary";return r.createElement(a,ym({as:"summary"===a?null:"summary"},o),t)}xm.displayName="Details",wm.displayName="Summary",wm.displayName="Summary";const Cm=Object.assign(xm,{Summary:wm});function km(){return km=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},km.apply(null,arguments)}const Em=Te({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),Bm=p.div.withConfig({displayName:"Flash__StyledFlash",componentId:"sc-hzrzfc-0"})(["position:relative;color:",";padding:",";border-style:solid;border-width:",";border-radius:",";margin-top:",";p:last-child{margin-bottom:0;}svg{margin-right:",";}",";",";"],Wr("colors.fg.default"),Wr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Wr("radii.2")),(e=>e.full?"-1px":"0"),Wr("space.2"),Em,fo),Tm=r.forwardRef((function({as:e,variant:t="default",...o},a){return r.createElement(Bm,km({ref:a,as:e,variant:t},o))}));var Nm="prc_Header_RoCS8",Sm="prc_HeaderItem_0wRcu",_m="prc_HeaderLink_2Q6pd";function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Im.apply(null,arguments)}const Am="primer_react_css_modules_ga",Mm=So(Am,"header",p.header.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;overflow:auto;",";"],Wr("space.3"),Wr("fontSizes.1"),Wr("lineHeights.default"),Wr("colors.header.text"),Wr("colors.header.bg"),fo)),Lm=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(Am);return r.createElement(Mm,Im({ref:a,className:Gr(t,{[Nm]:n})},o),e)}));Lm.displayName="Header";const Om=So(Am,"div",p.div.withConfig({displayName:"Header__StyledHeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Wr("space.3"),(({full:e})=>e&&C(["flex:auto;"])),fo)),jm=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(Am);return r.createElement(Om,Im({ref:a,className:Gr(t,n&&Sm),"data-full":o.full},o),e)}));jm.displayName="Header.Item";const Rm=So(Am,"a",p.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__StyledHeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Wr("fontWeights.bold"),Wr("colors.header.logo"),Wr("colors.header.text"),fo)),zm=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(Am);return r.createElement(Rm,Im({ref:a,className:Gr(t,n&&_m)},o),e)}));zm.displayName="Header.Link";var Pm=Object.assign(Lm,{Link:zm,Item:jm}),Vm="prc_Label_-LG6X";function Dm(){return Dm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dm.apply(null,arguments)}const Hm=r.forwardRef((function({as:e,size:t="small",variant:o="default",className:a,...n},l){const i=e||"span";return n.sx?r.createElement(ho,Dm({as:i,className:Gr(a,Vm),"data-size":t,"data-variant":o,ref:l},n)):r.createElement(i,Dm({className:Gr(a,Vm),"data-size":t,"data-variant":o},n))}));function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fm.apply(null,arguments)}const Wm=p.div.withConfig({displayName:"LabelGroup__StyledLabelGroupContainer",componentId:"sc-6tqg8q-0"})(["display:flex;flex-wrap:nowrap;gap:",";line-height:1;max-width:100%;overflow:hidden;&[data-overflow='inline']{flex-wrap:wrap;}&[data-list]{padding-inline-start:0;margin-block-start:0;margin-block-end:0;list-style-type:none;}",";"],Wr("space.1"),fo),$m=p.div.withConfig({displayName:"LabelGroup__ItemWrapper",componentId:"sc-6tqg8q-1"})(["display:flex;align-items:center;min-height:28px;&.ItemWrapper--hidden{order:9999;pointer-events:none;visibility:hidden;}"]),Zm=({collapseButtonRef:e,collapseInlineExpandedChildren:t,expandButtonRef:o,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l})=>n?r.createElement(On,{ref:e,onClick:t,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(On,{ref:o,variant:"invisible",size:"small",onClick:l},r.createElement(El,null,"Show +",a.length," more"),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,Km=({children:e,closeOverflowOverlay:t,expandButtonRef:o,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c})=>a.length?r.createElement(pu,{open:n,onOpen:l,onClose:t,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:o,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>r.createElement(On,Fm({variant:"invisible",size:"small"},e,{ref:o}),r.createElement(El,null,"Show +",a.length," more"),r.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},r.createElement(ho,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},r.createElement(ho,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),r.createElement(Yl,{onClick:t,icon:qc,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,Gm=({children:e,visibleChildCount:t,overflowStyle:o="overlay",sx:a,as:n="ul"})=>{const l=r.useRef(null),i=r.useRef(null),c=r.useRef(void 0),[s,d]=r.useState({}),[g,u]=r.useState(!1),[v,b]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:f}=io(),h=parseInt(Wr("space.2")(f),10),m=Object.keys(s).filter((e=>!s[e])),p=m.length&&"overlay"===o?((e,r,t)=>{var o;return t+e.right-((null===(o=r.current)||void 0===o?void 0:o.getBoundingClientRect().left)||0)})(v,l,h):void 0,y=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===v.width&&r.right===v.right||b(r),y.current=e}}),[v]),x=r.useCallback((e=>{var r;const t=(null===(r=l.current)||void 0===r?void 0:r.children)||[],o={};for(const r of t){const t=r.getAttribute("data-index");t&&(o[t]=parseInt(t,10)<e)}d(o)}),[]),w=r.useCallback((()=>u(!0)),[u]),C=r.useCallback((()=>{u(!1)}),[u]),k=r.useCallback((()=>{u(!1),t&&"number"==typeof t&&x(t),setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),10)}),[y,x,t]),E=r.useCallback((()=>{d({}),u(!0)}),[d,u]);r.useEffect((()=>{if(t&&!g){if("auto"===t){const r=new IntersectionObserver((e=>{const r={};for(const t of e){const e=t.target.getAttribute("data-index");e&&(r[e]=t.isIntersecting)}d((e=>({...e,...r})))}),{root:l.current,rootMargin:`0px -${v.width}px 0px 0px`,threshold:1});for(const t of(null===(e=l.current)||void 0===e?void 0:e.children)||[]){var e;t.getAttribute("data-index")&&r.observe(t)}return()=>r.disconnect()}x(t)}}),[v,t,x,g]),r.useEffect((()=>{"overlay"!==o&&m.length&&(c.current=parseInt(m[0],10))}),[m,o,g]),r.useEffect((()=>{if("overlay"===o)return;const e=document.querySelector(`[data-index="${c.current}"]`),r=e?bt(e):null;var t;g&&(r?r.focus():null===(t=i.current)||void 0===t||t.focus())}),[o,g]);const B="ul"===n||"ol"===n,T=B?"li":r.Fragment;return t?r.createElement(Wm,{ref:l,"data-overflow":"inline"===o&&g?"inline":void 0,"data-list":B||void 0,sx:a,as:n},r.Children.map(e,((e,t)=>r.createElement($m,{"data-index":t,className:m.includes(t.toString())?"ItemWrapper--hidden":void 0,as:B?"li":"span",key:t},e))),r.createElement(T,null,"inline"===o?r.createElement(Zm,{collapseButtonRef:i,collapseInlineExpandedChildren:k,expandButtonRef:y,hiddenItemIds:m,isOverflowShown:g,showAllTokensInline:E,totalLength:r.Children.toArray(e).length}):r.createElement(Km,{closeOverflowOverlay:C,expandButtonRef:y,hiddenItemIds:m,isOverflowShown:g,openOverflowOverlay:w,overlayPaddingPx:h,overlayWidth:p,totalLength:r.Children.toArray(e).length},e))):r.createElement(Wm,{"data-overflow":"inline","data-list":B||void 0,sx:a,as:n},B?r.Children.map(e,((e,t)=>r.createElement("li",{key:t},e))):e)};function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qm.apply(null,arguments)}Gm.displayName="LabelGroup";const Um=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:1,fontWeight:e>0?"normal":null}),Ym=So("primer_react_css_modules_team","nav",p.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(fo)),Xm=r.forwardRef((({children:e,...t},o)=>r.createElement(Ym,qm({},t,{ref:o}),r.createElement(Kd.Provider,{value:{container:"NavList"}},r.createElement(cu,null,e)))));Xm.displayName="NavList";const Qm=r.forwardRef((({"aria-current":e,children:t,defaultOpen:o,sx:a=To,...n},l)=>{const i=bo("primer_react_css_modules_team"),{depth:c}=r.useContext(rp),s=r.Children.toArray(t).find((e=>m(e)&&e.type===tp)),d=r.Children.toArray(t).filter((e=>!m(e)||e.type!==tp&&e.type!==lp));return!m(s)&&o&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),s&&m(s)?r.createElement(ep,{subNav:s,depth:c,defaultOpen:o,sx:a,style:{"--subitem-depth":c}},d):r.createElement(cu.LinkItem,qm({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:i?void 0:tt(Um(c),a),style:{"--subitem-depth":c}},n),t)}));Qm.displayName="NavList.Item";const Jm=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function ep({children:e,subNav:t,depth:o,defaultOpen:a,style:n={},sx:l=To}){var i;const c=ro(),s=ro(),[d,g]=r.useState(null!==(i=a||null)&&void 0!==i&&i),u=r.useRef(null),[v,b]=r.useState(!1);$t((()=>{if(u.current){u.current.querySelector("[aria-current]:not([aria-current=false])")&&(b(!0),g(!0))}}),[t,c]);return bo("primer_react_css_modules_team")?l!==To?r.createElement(Jm.Provider,{value:{buttonId:c,subNavId:s,isOpen:d}},r.createElement(cu.Item,{id:c,"aria-expanded":d,"aria-controls":s,active:!d&&v,onClick:()=>g((e=>!e)),style:n,sx:l},e,r.createElement(cu.TrailingVisual,null,r.createElement(Ic,{className:fg})),r.createElement(Qg,null,r.cloneElement(t,{ref:u})))):r.createElement(Jm.Provider,{value:{buttonId:c,subNavId:s,isOpen:d}},r.createElement(cu.Item,{id:c,"aria-expanded":d,"aria-controls":s,active:!d&&v,onClick:()=>g((e=>!e)),style:n},e,r.createElement(cu.TrailingVisual,null,r.createElement(Ic,{className:fg})),r.createElement(Qg,null,r.cloneElement(t,{ref:u})))):r.createElement(Jm.Provider,{value:{buttonId:c,subNavId:s,isOpen:d}},r.createElement(ho,{as:"li","aria-labelledby":c,sx:{listStyle:"none"}},r.createElement(cu.Item,{as:"button",id:c,"aria-expanded":d,"aria-controls":s,active:!d&&v,onClick:()=>g((e=>!e)),sx:tt({...Um(o),fontWeight:v?"bold":null},l)},e,r.createElement(cu.TrailingVisual,null,r.createElement(vm,{icon:Ic,sx:{transform:d?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:u},t)))}ep.displayName="ItemWithSubNav";const rp=r.createContext({depth:0}),tp=r.forwardRef((({children:e,sx:t=To},o)=>{const{buttonId:a,subNavId:n,isOpen:l}=r.useContext(Jm),{depth:i}=r.useContext(rp),c=bo("primer_react_css_modules_team");return a&&n||console.error("NavList.SubNav must be a child of a NavList.Item"),i>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):c?t!==To?r.createElement(rp.Provider,{value:{depth:i+1}},r.createElement(ho,{as:"ul",id:n,"aria-labelledby":a,className:hg,ref:o,sx:t},e)):r.createElement(rp.Provider,{value:{depth:i+1}},r.createElement("ul",{className:hg,id:n,"aria-labelledby":a,ref:o},e)):r.createElement(rp.Provider,{value:{depth:i+1}},r.createElement(ho,{as:"ul",id:n,"aria-labelledby":a,sx:tt({padding:0,margin:0,display:l?"block":"none"},t)},e))}));tp.displayName="NavList.SubNav";const op=cu.LeadingVisual;op.displayName="NavList.LeadingVisual";const ap=cu.TrailingVisual;ap.displayName="NavList.TrailingVisual";const np=cu.Divider;np.displayName="NavList.Divider";const lp=cu.TrailingAction;lp.displayName="NavList.TrailingAction";const ip={},cp=({title:e,children:t,sx:o=ip,...a})=>bo("primer_react_css_modules_team")?o!==ip?r.createElement(ho,{sx:o,as:"li","data-component":"ActionList.Group"},e?r.createElement(cu.GroupHeading,null,e):null,t):r.createElement(r.Fragment,null,r.createElement(cu.Divider,null),r.createElement(cu.Group,a,e?r.createElement(cu.GroupHeading,{as:"h3","data-component":"ActionList.GroupHeading"},e):null,t)):r.createElement(r.Fragment,null,r.createElement(cu.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(cu.Group,qm({},a,{sx:tt(o,{':has([data-component="GroupHeadingWrap"] + ul > [data-component="GroupHeadingWrap"])':{'& > [data-component="GroupHeadingWrap"]':{display:"none"}}})}),e?r.createElement(cu.GroupHeading,{as:"h3","data-component":"ActionList.GroupHeading"},e):null,t));cp.displayName="NavList.Group";const sp=({as:e="h3",sx:t=To,...o})=>r.createElement(cu.GroupHeading,qm({as:e,sx:tt({"> a {":{color:"var(--fgColor-default)",textDecoration:"inherit",":hover":{textDecoration:"underline"}}},t),"data-component":"NavList.GroupHeading",headingWrapElement:"li"},o));sp.displayName="GroupHeading";const dp=Object.assign(Xm,{Item:Qm,SubNav:tp,LeadingVisual:op,TrailingVisual:ap,TrailingAction:lp,Divider:np,Group:cp,GroupHeading:sp});var gp="prc_Page_yoEQf",up="prc_PaginationContainer_yNDPO",vp="prc_TablePaginationSteps_RRjtg";function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bp.apply(null,arguments)}const fp="primer_react_css_modules_team",hp=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(ri),mp=So(fp,"a",p.a.withConfig({displayName:"Pagination__Page",componentId:"sc-cp45c9-0"})(["display:inline-block;min-width:32px;height:32px;padding:0.5rem calc((2rem - 1.25rem) / 2);font-style:normal;line-height:1;color:",";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:",";&:last-child{margin-right:0;}background-color:transparent;border-radius:",";transition:background-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;background-color:",";outline:0;transition-duration:0.1s;}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-current]:focus-visible{outline:2px solid ",";outline-offset:-2px;box-shadow:inset 0 0 0 3px ",";}&[aria-disabled],&[aria-disabled]:hover{margin:0 2px;&:first-child{margin-right:6px;}}&[aria-disabled],&[aria-disabled]:hover,&[role='presentation'],&[role='presentation']:hover{color:",";cursor:default;background-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:",";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:",";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"],Wr("colors.fg.default"),Wr("space.1"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.accent.emphasis"),Wr("colors.border.muted"),Wr("colors.accent.fg"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),Wr("colors.fg.onEmphasis"),Wr("colors.primer.fg.disabled"),Wr("space.1"),Wr("space.1")));function pp({theme:e,pageCount:t,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}){const s=r.useCallback((e=>r=>a(r,e)),[a]),d=bo(fp),g=r.useMemo((()=>function(e,r,t,o,a){const n=[];if(t){const t=[],l=r=>{r>=1&&r<=e&&t.push(r)};let i=r-a,c=r+a;if(i<1&&c>e)i=1,c=e;else if(i<1)for(;i<1;)i++,c++;else if(c>e)for(;c>e;)i--,c--;for(let r=1;r<=o;r++){const t=e-(r-1);r>=i?c++:l(r),t<=c?i--:l(t)}for(let e=i;e<=c;e++)l(e);const s=t.slice().sort(((e,r)=>e-r)).filter(((e,r,t)=>!r||e!==t[r-1]));for(let e=0;e<s.length;e++){const t=s[e],o=t===r,a=t-s[e-1],l=-1!=t-s[e+1];0===e?(1!==t&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:t,selected:o,precedesBreak:l})):1===a?n.push({type:"NUM",num:t,selected:o,precedesBreak:l}):(n.push({type:"BREAK",num:t-1}),n.push({type:"NUM",num:t,selected:o,precedesBreak:!1}))}const d=n[n.length-1];"NUM"===d.type&&d.num!==e&&n.push({type:"BREAK",num:e})}const l={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,l]}(t,o,!!i,l,c)),[t,o,i,l,c]),u=r.useMemo((()=>g.map((t=>{const{props:o,key:a,content:l}=function(e,r,t){const o={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(o,{"aria-hidden":"true"}):Object.assign(o,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:t});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(o,{"aria-hidden":"true"}):Object.assign(o,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:t});break;case"NUM":n=`page-${e.num}`,a=String(e.num),Object.assign(o,{href:r(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:t,"aria-current":e.selected?"page":void 0});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(o,{as:"span",role:"presentation"})}return{props:o,key:n,content:a}}(t,n,s(t.num));return r.createElement(mp,bp({},o,{key:a,theme:e,className:Gr(d&&gp)}),l)}))),[g,n,s,e,d]);return u}const yp=So(fp,"nav",p.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(ri).map((e=>`\n @media (${ri[e]}) {\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:not(:first-child):not(:last-child) {\n display: none;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:first-child {\n margin-inline-end: 0;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:last-child {\n margin-inline-start: 0;\n }\n }\n `)).join(""),fo));function xp({theme:e,pageCount:t,currentPage:o,onPageChange:a=Cp,hrefBuilder:n=wp,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...s}){const d=pp({theme:e,pageCount:t,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}),g=bo(fp);return r.createElement(yp,bp({className:Gr(g&&up),"aria-label":"Pagination"},s,{theme:e}),r.createElement(ho,{display:"inline-block",theme:e,className:vp,"data-hidden-viewport-ranges":hp(i).join(" ")},d))}function wp(e){return`#${e}`}function Cp(){}function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},kp.apply(null,arguments)}function Ep(e){const t=r.useContext(k),{bg:o,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:s,...d}=e,{bg:g,backgroundColor:u,...v}=i||{},b=l||t,f=o||g||u,h={bg:o||(null==i?void 0:i.bg)||(null==i?void 0:i.backgroundColor),borderColor:n||(null==i?void 0:i.borderColor),borderWidth:a,location:c,theme:b};return r.createElement(ho,kp({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},d,{sx:{...v,"--custom-bg":Wr(`colors.${f}`)({theme:b}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${b.colors.canvas.default}, ${b.colors.canvas.default})`:void 0,position:"relative"}}),s,r.createElement(Mb,h))}xp.displayName="Pagination",Ep.displayName="PointerBox";var Bp="prc_Popover_v1ShS",Tp="prc_PopoverContent_nMzFS";function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Np.apply(null,arguments)}const Sp="primer_react_css_modules_ga",_p=p.div.attrs((({className:e,caret:r="top"})=>({className:Gr(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover__StyledPopover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),fo),Ip=So(Sp,"div",_p),Ap=r.forwardRef((function({className:e,caret:t="top",open:o,relative:a,...n},l){return bo(Sp)?r.createElement(Ip,Np({},n,{ref:l,"data-open":o?"":void 0,"data-relative":a?"":void 0,"data-caret":t,className:Gr(e,Bp)})):r.createElement(Ip,Np({},n,{className:e,caret:t,open:o,relative:a}))}));Ap.displayName="Popover";const Mp=So(Sp,"div",p.div.withConfig({displayName:"Popover__StyledPopoverContent",componentId:"sc-q9r75g-1"})(["border:1px solid ",";border-radius:",";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:",";background-color:",";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-",";margin-left:-9px;border:"," solid transparent;border-bottom-color:",";}&::after{top:-14px;margin-left:-",";border:7px solid transparent;border-bottom-color:",";}",".caret-pos--bottom &,",".caret-pos--bottom-right &,",".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-",";border-top-color:",";}&::after{bottom:-14px;border-top-color:",";}}",".caret-pos--top-right &,",".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}",".caret-pos--top-left &,",".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:",";margin-left:0;}&::after{left:calc("," + 1px);}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &,",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc(("," + 1px) * -1);}&::after{margin-top:-",";}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &{&::before{right:-",";border-left-color:",";}&::after{right:-14px;border-left-color:",";}}",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before{left:-",";border-right-color:",";}&::after{left:-14px;border-right-color:",";}}",".caret-pos--right-top &,",".caret-pos--left-top &{&::before,&::after{top:",";}}",".caret-pos--right-bottom &,",".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:",";}&::after{bottom:calc("," + 1px);}}",";"],Wr("colors.border.default"),Wr("radii.2"),Wr("space.4"),Wr("colors.canvas.overlay"),Wr("space.3"),Wr("space.2"),Wr("colors.border.default"),Wr("space.2"),Wr("colors.canvas.overlay"),_p,_p,_p,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),_p,_p,_p,_p,Wr("space.4"),Wr("space.4"),_p,_p,_p,_p,_p,_p,Wr("space.2"),Wr("space.2"),_p,_p,_p,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),_p,_p,_p,Wr("space.3"),Wr("colors.border.default"),Wr("colors.canvas.overlay"),_p,_p,Wr("space.4"),_p,_p,Wr("space.3"),Wr("space.3"),fo)),Lp=({className:e,...t})=>bo(Sp)?r.createElement(Mp,Np({},t,{className:Gr(e,Tp)})):r.createElement(Mp,Np({},t,{className:e}));Lp.displayName="PopoverContent",Lp.displayName="Popover.Content";var Op=Object.assign(Ap,{Content:Lp}),jp="prc_ProgressBarItem_stL6O",Rp="prc_ProgressBarContainer_E-z8S";function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zp.apply(null,arguments)}const Pp=w(["from{mask-position:200%;}to{mask-position:0%;}"]),Vp="primer_react_css_modules_ga",Dp=So(Vp,"span",p.span.withConfig({displayName:"ProgressBar__ProgressItem",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";@media (prefers-reduced-motion:no-preference){&[data-animated='true']{mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}}",";"],(e=>e.progress?`${e.progress}%`:0),(e=>Wr(`colors.${e.bg||"success.emphasis"}`)),Pp,fo)),Hp={small:"5px",large:"10px",default:"8px"},Fp=So(Vp,"span",p.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";gap:2px;"," ",";"],(e=>e.inline?"inline-flex":"flex"),Wr("colors.border.default"),Wr("radii.1"),(e=>Hp[e.barSize||"default"]),Ie,fo)),Wp=u((({progress:e,"aria-label":t,"aria-valuenow":o,"aria-valuetext":a,className:n,...l},i)=>{const c="string"==typeof e?parseInt(e,10):e,s={"aria-valuenow":null!=o?o:void 0!==c&&c>=0?Math.round(c):0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":a},d=bo(Vp),g={},u=l.bg&&l.bg.split(".");return g["--progress-width"]=e?`${e}%`:"0%",g["--progress-bg"]=u&&`var(--bgColor-${u[0]}-${u[1]})`||"var(--bgColor-success-emphasis)",r.createElement(Dp,zp({className:Gr(n,{[jp]:d})},l,{role:"progressbar","aria-label":t,ref:i,progress:e,style:d?g:void 0},s))}));Wp.displayName="ProgressBar.Item";const $p=u((({animated:e,progress:t,bg:o="success.emphasis",barSize:a="default",children:n,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,className:s,...d},g)=>{if(n&&t)throw new Error("You should pass `progress` or children, not both.");const u=r.Children.toArray(n).length,v=bo(Vp),b=v?{"data-progress-display":d.inline?"inline":"block","data-progress-bar-size":a}:{barSize:a};return r.createElement(Fp,zp({ref:g,className:Gr(s,{[Rp]:v})},b,d),u?n:r.createElement(Wp,{"data-animated":e,progress:t,"aria-label":l,"aria-valuenow":i,"aria-valuetext":c,bg:o}))}));$p.displayName="ProgressBar";const Zp=Object.assign($p,{Item:Wp});var Kp,Gp=function(e,r,t,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,t):a?a.value=t:r.set(e,t),t},qp=function(e,r,t,o){if("a"===t&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!o:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?o:"a"===t?o.call(e):o?o.value:r.get(e)};const Up="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const r=[];for(const t of e)r.push({type:"element",value:t}),r.push({type:"literal",value:", "});return r.slice(0,-1)}},Yp=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Xp={minimumIntegerDigits:2};class Qp{constructor(e,r={}){Kp.set(this,void 0);let t=String(r.style||"short");"long"!==t&&"short"!==t&&"narrow"!==t&&"digital"!==t&&(t="short");let o="digital"===t?"numeric":t;const a=r.hours||o;o="2-digit"===a?"numeric":a;const n=r.minutes||o;o="2-digit"===n?"numeric":n;const l=r.seconds||o;o="2-digit"===l?"numeric":l;const i=r.milliseconds||o;Gp(this,Kp,{locale:e,style:t,years:r.years||"digital"===t?"short":t,yearsDisplay:"always"===r.yearsDisplay?"always":"auto",months:r.months||"digital"===t?"short":t,monthsDisplay:"always"===r.monthsDisplay?"always":"auto",weeks:r.weeks||"digital"===t?"short":t,weeksDisplay:"always"===r.weeksDisplay?"always":"auto",days:r.days||"digital"===t?"short":t,daysDisplay:"always"===r.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===r.hoursDisplay||"digital"===t?"always":"auto",minutes:n,minutesDisplay:"always"===r.minutesDisplay||"digital"===t?"always":"auto",seconds:l,secondsDisplay:"always"===r.secondsDisplay||"digital"===t?"always":"auto",milliseconds:i,millisecondsDisplay:"always"===r.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return qp(this,Kp,"f")}formatToParts(e){const r=[],t=qp(this,Kp,"f"),o=t.style,a=t.locale;for(const[o,n]of Yp){const l=e[o];if("auto"===t[`${o}Display`]&&!l)continue;const i=t[o],c="2-digit"===i?Xp:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new Up(a,{type:"unit",style:"digital"===o?"short":o}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Kp=new WeakMap;const Jp=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,ey=["year","month","week","day","hour","minute","second","millisecond"];class ry{constructor(e=0,r=0,t=0,o=0,a=0,n=0,l=0,i=0){this.years=e,this.months=r,this.weeks=t,this.days=o,this.hours=a,this.minutes=n,this.seconds=l,this.milliseconds=i,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new ry(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(e){var r;if("string"==typeof e){const t=String(e).trim(),o=t.startsWith("-")?-1:1,a=null===(r=t.match(Jp))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*o));return a?new ry(...a):new ry}if("object"==typeof e){const{years:r,months:t,weeks:o,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new ry(r,t,o,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const t=Date.now(),o=Math.abs(ty(t,ry.from(e)).getTime()-t),a=Math.abs(ty(t,ry.from(r)).getTime()-t);return o>a?-1:o<a?1:0}toLocaleString(e,r){return new Qp(e,r).format(this)}}function ty(e,r){const t=new Date(e);return t.setFullYear(t.getFullYear()+r.years),t.setMonth(t.getMonth()+r.months),t.setDate(t.getDate()+7*r.weeks+r.days),t.setHours(t.getHours()+r.hours),t.setMinutes(t.getMinutes()+r.minutes),t.setSeconds(t.getSeconds()+r.seconds),t}function oy(e,{relativeTo:r=Date.now()}={}){if(r=new Date(r),e.blank)return e;const t=e.sign;let o=Math.abs(e.years),a=Math.abs(e.months),n=Math.abs(e.weeks),l=Math.abs(e.days),i=Math.abs(e.hours),c=Math.abs(e.minutes),s=Math.abs(e.seconds),d=Math.abs(e.milliseconds);d>=900&&(s+=Math.round(d/1e3)),(s||c||i||l||n||a||o)&&(d=0),s>=55&&(c+=Math.round(s/60)),(c||i||l||n||a||o)&&(s=0),c>=55&&(i+=Math.round(c/60)),(i||l||n||a||o)&&(c=0),l&&i>=12&&(l+=Math.round(i/24)),!l&&i>=21&&(l+=Math.round(i/24)),(l||n||a||o)&&(i=0);const g=r.getFullYear(),u=r.getMonth(),v=r.getDate();if(l>=27||o+a+l){const e=new Date(r);e.setDate(1),e.setMonth(u+a*t+1),e.setDate(0);const i=Math.max(0,v-e.getDate()),c=new Date(r);c.setFullYear(g+o*t),c.setDate(v-i),c.setMonth(u+a*t),c.setDate(v-i+l*t);const s=c.getFullYear()-r.getFullYear(),d=c.getMonth()-r.getMonth(),b=Math.abs(Math.round((Number(c)-Number(r))/864e5))+i,f=Math.abs(12*s+d);b<27?(l>=6?(n+=Math.round(l/7),l=0):l=b,a=o=0):f<11?(a=f,o=0):(a=0,o=s*t),(a||o)&&(l=0)}return o&&(a=0),n>=4&&(a+=Math.round(n/4)),(a||o)&&(n=0),l&&n&&!a&&!o&&(n+=Math.round(l/7),l=0),new ry(o*t,a*t,n*t,l*t,i*t,c*t,s*t,d*t)}var ay,ny,ly,iy,cy,sy,dy,gy,uy,vy,by,fy=function(e,r,t,o){if("a"===t&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!o:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?o:"a"===t?o.call(e):o?o.value:r.get(e)},hy=function(e,r,t,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,t):a?a.value=t:r.set(e,t),t};const my=globalThis.HTMLElement||null,py=new ry,yy=new ry(0,0,0,0,0,1);class xy extends Event{constructor(e,r,t,o){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=r,this.oldTitle=t,this.newTitle=o}}function wy(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const r=e.precision;if("second"===r)return 1e3;if("minute"===r)return 6e4}const r=Math.abs(Date.now()-e.date.getTime());return r<6e4?1e3:r<36e5?6e4:36e5}const Cy=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);const r=e.date;if(r&&r.getTime()){const r=wy(e),t=Date.now()+r;t<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),r),this.time=t)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(const r of this.elements)e=Math.min(e,wy(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class ky extends my{constructor(){super(...arguments),ay.add(this),ny.set(this,!1),ly.set(this,!1),cy.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),by.set(this,null)}static define(e="relative-time",r=customElements){return r.define(e,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return fy(this,by,"f")}set onRelativeTimeUpdated(e){fy(this,by,"f")&&this.removeEventListener("relative-time-updated",fy(this,by,"f")),hy(this,by,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("relative-time-updated",e)}get second(){const e=this.getAttribute("second");if("numeric"===e||"2-digit"===e)return e}set second(e){this.setAttribute("second",e||"")}get minute(){const e=this.getAttribute("minute");if("numeric"===e||"2-digit"===e)return e}set minute(e){this.setAttribute("minute",e||"")}get hour(){const e=this.getAttribute("hour");if("numeric"===e||"2-digit"===e)return e}set hour(e){this.setAttribute("hour",e||"")}get weekday(){const e=this.getAttribute("weekday");return"long"===e||"short"===e||"narrow"===e?e:"datetime"===this.format&&""!==e?this.formatStyle:void 0}set weekday(e){this.setAttribute("weekday",e||"")}get day(){var e;const r=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===r||"2-digit"===r)return r}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let r=this.getAttribute("month");if(""!==r)return null!=r||(r="datetime"===e?this.formatStyle:"short"),"numeric"===r||"2-digit"===r||"short"===r||"long"===r||"narrow"===r?r:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const r=this.getAttribute("year");return"numeric"===r||"2-digit"===r?r:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(e=this.date)||void 0===e?void 0:e.getUTCFullYear())?void 0:"numeric"}set year(e){this.setAttribute("year",e||"")}get timeZoneName(){const e=this.getAttribute("time-zone-name");if("long"===e||"short"===e||"shortOffset"===e||"longOffset"===e||"shortGeneric"===e||"longGeneric"===e)return e}set timeZoneName(e){this.setAttribute("time-zone-name",e||"")}get prefix(){var e;return null!==(e=this.getAttribute("prefix"))&&void 0!==e?e:"datetime"===this.format?"":"on"}set prefix(e){this.setAttribute("prefix",e)}get threshold(){const e=this.getAttribute("threshold");return e&&(r=e,Jp.test(r))?e:"P30D";var r}set threshold(e){this.setAttribute("threshold",e)}get tense(){const e=this.getAttribute("tense");return"past"===e?"past":"future"===e?"future":"auto"}set tense(e){this.setAttribute("tense",e)}get precision(){const e=this.getAttribute("precision");return ey.includes(e)?e:"micro"===this.format?"minute":"second"}set precision(e){this.setAttribute("precision",e)}get format(){const e=this.getAttribute("format");return"datetime"===e?"datetime":"relative"===e?"relative":"duration"===e?"duration":"micro"===e?"micro":"elapsed"===e?"elapsed":"auto"}set format(e){this.setAttribute("format",e)}get formatStyle(){const e=this.getAttribute("format-style");if("long"===e)return"long";if("short"===e)return"short";if("narrow"===e)return"narrow";const r=this.format;return"elapsed"===r||"micro"===r?"narrow":"datetime"===r?"short":"long"}set formatStyle(e){this.setAttribute("format-style",e)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(e){this.toggleAttribute("no-title",e)}get datetime(){return this.getAttribute("datetime")||""}set datetime(e){this.setAttribute("datetime",e)}get date(){const e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=(null==e?void 0:e.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){Cy.unobserve(this)}attributeChangedCallback(e,r,t){r!==t&&("title"===e&&hy(this,ny,null!==t&&(this.date&&fy(this,ay,"m",sy).call(this,this.date))!==t,"f"),fy(this,ly,"f")||"title"===e&&fy(this,ny,"f")||hy(this,ly,(async()=>{await Promise.resolve(),this.update(),hy(this,ly,!1,"f")})(),"f"))}update(){const e=fy(this,cy,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let t=r;const o=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!o)return void(fy(this,cy,"f").textContent=e);const a=Date.now();fy(this,ny,"f")||(t=fy(this,ay,"m",sy).call(this,o)||"",t&&!this.noTitle&&this.setAttribute("title",t));const n=function(e,r="second",t=Date.now()){const o=e.getTime()-t;if(0===o)return new ry;const a=Math.sign(o),n=Math.abs(o),l=Math.floor(n/1e3),i=Math.floor(l/60),c=Math.floor(i/60),s=Math.floor(c/24),d=Math.floor(s/30),g=Math.floor(d/12),u=ey.indexOf(r)||ey.length;return new ry(u>=0?g*a:0,u>=1?(d-12*g)*a:0,0,u>=3?(s-30*d)*a:0,u>=4?(c-24*s)*a:0,u>=5?(i-60*c)*a:0,u>=6?(l-60*i)*a:0,u>=7?(n-1e3*l)*a:0)}(o,this.precision,a),l=fy(this,ay,"m",dy).call(this,n);let i=e;i="duration"===l?fy(this,ay,"m",gy).call(this,n):"relative"===l?fy(this,ay,"m",uy).call(this,n):fy(this,ay,"m",vy).call(this,o),i?fy(this,cy,"f").textContent=i:this.shadowRoot===fy(this,cy,"f")&&this.textContent&&(fy(this,cy,"f").textContent=this.textContent),i===e&&t===r||this.dispatchEvent(new xy(e,i,r,t)),"relative"===l||"duration"===l?Cy.observe(this):Cy.unobserve(this)}}ny=new WeakMap,ly=new WeakMap,cy=new WeakMap,by=new WeakMap,ay=new WeakSet,iy=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},sy=function(e){return new Intl.DateTimeFormat(fy(this,ay,"a",iy),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},dy=function(e){const r=this.format;if("datetime"===r)return"datetime";if("duration"===r)return"duration";if("elapsed"===r)return"duration";if("micro"===r)return"duration";if(("auto"===r||"relative"===r)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const r=this.tense;if("past"===r||"future"===r)return"relative";if(1===ry.compare(e,this.threshold))return"relative"}return"datetime"},gy=function(e){const r=fy(this,ay,"a",iy),t=this.format,o=this.formatStyle,a=this.tense;let n=py;"micro"===t?(e=oy(e),n=yy,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=yy)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=n);const l=`${this.precision}sDisplay`;return e.blank?n.toLocaleString(r,{style:o,[l]:"always"}):e.abs().toLocaleString(r,{style:o})},uy=function(e){const r=new Intl.RelativeTimeFormat(fy(this,ay,"a",iy),{numeric:"auto",style:this.formatStyle}),t=this.tense;"future"===t&&1!==e.sign&&(e=py),"past"===t&&-1!==e.sign&&(e=py);const[o,a]=function(e,r){const t=oy(e,r);if(t.blank)return[0,"second"];for(const e of ey){if("millisecond"===e)continue;const r=t[`${e}s`];if(r)return[r,e]}return[0,"second"]}(e);return"second"===a&&o<10?r.format(0,"millisecond"===this.precision?"second":this.precision):r.format(o,a)},vy=function(e){const r=new Intl.DateTimeFormat(fy(this,ay,"a",iy),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${r.format(e)}`.trim()};const Ey="undefined"!=typeof globalThis?globalThis:window;try{Ey.RelativeTimeElement=ky.define()}catch(Ys){if(!(Ey.DOMException&&Ys instanceof DOMException&&"NotSupportedError"===Ys.name||Ys instanceof ReferenceError))throw Ys}function By(){return By=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},By.apply(null,arguments)}const Ty=Js(ky,"relative-time"),Ny={month:"short",day:"numeric",year:"numeric"};function Sy({date:e,datetime:t,children:o,noTitle:a,...n}){var l;return t&&(e=new Date(t)),r.createElement(Ty,By({},n,{date:e,"no-title":a?"":void 0}),o||(null===(l=e)||void 0===l?void 0:l.toLocaleDateString("en",Ny))||"")}Sy.displayName="RelativeTime";const _y="primer_react_css_modules_team",Iy={":first-child":{marginLeft:"-1px"},":last-child":{marginRight:"-1px"}},Ay={marginRight:"1px",":after":{backgroundColor:"var(--separator-color)",content:'""',position:"absolute",right:"-2px",top:2,bottom:2,width:"1px"}},My=e=>({"--segmented-control-button-inner-padding":"12px","--segmented-control-button-bg-inset":"4px","--segmented-control-outer-radius":Wr("radii.2")(e),backgroundColor:"transparent",borderColor:"transparent",borderRadius:"var(--segmented-control-outer-radius)",borderWidth:0,color:"currentColor",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",fontWeight:null!=e&&e.selected?"bold":"normal",padding:null!=e&&e.selected?0:"var(--segmented-control-button-bg-inset)",height:"100%",width:"100%",".segmentedControl-content":{alignItems:"center",backgroundColor:null!=e&&e.selected?"segmentedControl.button.bg":"transparent",borderColor:null!=e&&e.selected?"segmentedControl.button.selected.border":"transparent",borderStyle:"solid",borderWidth:1,borderRadius:null!=e&&e.selected?"var(--segmented-control-outer-radius)":"calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2)",display:"flex",height:"100%",justifyContent:"center",paddingLeft:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))",paddingRight:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))"},svg:{fill:"fg.muted"},":hover .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.hover.bg"},":active .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.active.bg"},":focus:focus-visible:not(:last-child):after":{width:0},".segmentedControl-text":{":after":{content:`"${null==e?void 0:e.children}"`,display:"block",fontWeight:"bold",height:0,overflow:"hidden",pointerEvents:"none",userSelect:"none",visibility:"hidden"}},"@media (pointer: coarse)":{":before":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}}),Ly=()=>({display:"block",position:"relative",flexGrow:1,marginTop:"-1px",marginBottom:"-1px",":not(:last-child)":Ay,":focus-within:has(:focus-visible)":{"--separator-color":"transparent"},...Iy});var Oy="prc_SegmentedControl_e7570",jy="prc_Item_7Aq6h",Ry="prc_Button_ojWXD",zy="prc_IconButton_O80Eh",Py="prc_Content_gnQ4n",Vy="prc_Text_c5gSh";function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dy.apply(null,arguments)}const Hy=So(_y,"button",p.button.withConfig({displayName:"SegmentedControlButton__SegmentedControlButtonStyled",componentId:"sc-8lkgxl-0"})(["",";",";"],Yv("-1px"),fo)),Fy=({children:e,leadingIcon:t,selected:o,sx:a=To,className:n,...l})=>{const i=bo(_y),c=i?a:tt(Ly(),a);return r.createElement(ho,{as:"li",sx:c,className:Gr(i&&jy),"data-selected":o||void 0},r.createElement(Hy,Dy({"aria-current":o,sx:i?void 0:My({selected:o,children:e}),className:Gr(i&&Ry,n),type:"button"},l),r.createElement("span",{className:Gr(i?Py:"segmentedControl-content")},t&&r.createElement(ho,{mr:1},_n.isElement(t)?t:r.createElement(t,null)),r.createElement(ho,{className:Gr(i?Vy:"segmentedControl-text"),"data-text":e},e))))};function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wy.apply(null,arguments)}Fy.displayName="SegmentedControlButton";const $y=So(_y,"button",p.button.withConfig({displayName:"SegmentedControlIconButton__SegmentedControlIconButtonStyled",componentId:"sc-oxh6a9-0"})(["",";",";"],Yv("-1px"),fo)),Zy=({"aria-label":e,icon:t,selected:o,sx:a=To,className:n,...l})=>{const i=bo(_y),c=i?a:tt({width:"32px",...Ly()},a);return r.createElement(ho,{as:"li",sx:c,className:Gr(i&&jy,n),"data-selected":o||void 0},r.createElement($y,Wy({"aria-label":e,"aria-current":o,sx:i?void 0:My({selected:o}),className:Gr(i&&Ry,i&&zy)},l),r.createElement("span",{className:Gr(i?Py:"segmentedControl-content")},_n.isElement(t)?t:r.createElement(t,null))))};function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ky.apply(null,arguments)}Zy.displayName="SegmentedControlIconButton";const Gy=So(_y,"ul",p.ul.withConfig({displayName:"SegmentedControl__SegmentedControlList",componentId:"sc-1rzig82-0"})(["",";"],fo)),qy=({"aria-label":e,"aria-labelledby":t,children:o,fullWidth:a,onChange:n,size:c,sx:s=To,variant:d="default",className:g,...u})=>{const v=l(null),{theme:b}=io(),f=void 0===n||r.Children.toArray(o).some((e=>r.isValidElement(e)&&void 0!==e.props.defaultSelected)),h=oi(d,"default"),m=oi(a,!1),p=r.Children.toArray(o).map((e=>r.isValidElement(e)&&(e.props.defaultSelected||e.props.selected))),y=p.some((e=>e))?p.indexOf(!0):0,[x,w]=i(y),C=f?x:y,k=r.isValidElement(r.Children.toArray(o)[C])?r.Children.toArray(o)[C]:void 0,E=e=>{if(r.isValidElement(e)&&e.type===Fy&&e.props.leadingIcon){if(_n.isElement(e.props.leadingIcon))return e.props.leadingIcon;{const t=e.props.leadingIcon;return r.createElement(t,null)}}if(r.isValidElement(e)&&e.type===Zy){if(!_n.isElement(e.props.icon)){const t=e.props.icon;return r.createElement(t,null)}e.props.icon}return null},B=e=>r.isValidElement(e)&&e.type===Fy?e.props.children:r.isValidElement(e)?e.props["aria-label"]:null,T=bo(_y),N=T?s:tt({backgroundColor:"segmentedControl.bg",borderRadius:2,border:"1px solid",borderColor:"var(--controlTrack-borderColor-rest, transparent)",display:(S={isFullWidth:m,size:c}).isFullWidth?"flex":"inline-flex",fontSize:"small"===S.size?0:1,height:"small"===S.size?"28px":"32px",margin:0,padding:0,width:S.isFullWidth?"100%":void 0},s);var S;return e||t||console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies"),"dropdown"===h?r.createElement(r.Fragment,null,r.createElement(Tu,null,r.createElement(Tu.Button,{"aria-label":e&&`${B(k)}, ${e}`,leadingVisual:E(k)},B(k)),r.createElement(Tu.Overlay,{"aria-labelledby":t},r.createElement(cu,{selectionVariant:"single"},r.Children.map(o,((e,t)=>{const o=E(e);return r.isValidElement(e)?r.createElement(cu.Item,{key:`segmented-control-action-btn-${t}`,selected:t===C,onSelect:r=>{f&&w(t),n&&n(t),e.props.onClick&&e.props.onClick(r)}},o," ",B(e)):null})))))):r.createElement(Gy,Ky({sx:N,"aria-label":e,"aria-labelledby":t,ref:v,className:Gr(T&&Oy,g),"data-full-width":m||void 0,"data-size":c},u),r.Children.map(o,((e,t)=>{if(!r.isValidElement(e))return null;const o={onClick:n?r=>{n(t),f&&w(t),e.props.onClick&&e.props.onClick(r)}:r=>{e.props.onClick&&e.props.onClick(r),f&&w(t)},selected:t===C,sx:{"--separator-color":t===C||t===C-1?"transparent":null==b?void 0:b.colors.border.default,...e.props.sx}};if("hideLabels"===h&&r.isValidElement(e)&&e.type===Fy){const{"aria-label":t,leadingIcon:a,children:n,...l}=e.props,{sx:i,...c}=o;if(a)return r.createElement(Zy,Ky({"aria-label":t||n,icon:a,sx:{...i,width:m?"100%":"32px"}},c,l));console.warn("A `leadingIcon` prop is required when hiding visible labels")}return r.cloneElement(e,o)})))};qy.displayName="SegmentedControl";const Uy=Object.assign(qy,{Button:Fy,IconButton:Zy});var Yy={SideNav:"prc_SideNav_aJOh-",SideNavBordered:"prc_SideNavBordered_mEO0A",SideNavLink:"prc_SideNavLink_HpDo-","SideNavVariant-normal":"prc_SideNavVariant-normal_0GVuF","SideNavVariant-lightweight":"prc_SideNavVariant-lightweight_KkMu9",SideNavLinkFull:"prc_SideNavLinkFull_HSWcY"};function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xy.apply(null,arguments)}const Qy="primer_react_css_modules_team",Jy=So(Qy,"nav",p(ho).withConfig({displayName:"SideNav__StyledNav",componentId:"sc-11f1jdr-0"})(["background-color:var(--bgColor-muted);"," ",";"],(e=>e.bordered&&C(["border-color:var(--borderColor-default);border-style:solid;border-width:var(--borderWidth-thin);border-radius:var(--borderRadius-medium);& > &{border-left:0;border-right:0;border-bottom:0;}"])),fo));function ex({as:e="nav",variant:t="normal",className:o,bordered:a,children:n,"aria-label":l,sx:i}){const c=bo(Qy),s="lightweight"===t?"lightweight":"normal",d=Gr({[Yy.SideNav]:c,[Yy.SideNavBordered]:c&&a,[Yy[`SideNavVariant-${s}`]]:c,sidenav:!c,[`variant-${s}`]:!c},o);return r.createElement(Jy,{as:e,bordered:c?void 0:a,className:d,"aria-label":l,sx:i},n)}ex.displayName="SideNav";const rx=C(["background-color:var(--bgColor-neutral-muted);text-decoration:none;"]),tx=C(["color:var(--fgColor-default);text-decoration:none;"]),ox=So(Qy,au,p(au).withConfig({displayName:"SideNav__StyledSideNavLink",componentId:"sc-11f1jdr-1"})(["position:relative;display:block;width:100%;font-size:14px;text-align:left;text-decoration:none;"," & > .sidenav{border-bottom:none;}.sidenav.variant-normal > &{color:var(--fgColor-default);padding:var(--base-size-16);border:0;border-top:var(--borderWidth-thin) solid var(--borderColor-muted);&:first-child{border-top:0;border-top-right-radius:var(--borderRadius-medium);border-top-left-radius:var(--borderRadius-medium);}&:last-child{border-bottom-right-radius:var(--borderRadius-medium);border-bottom-left-radius:var(--borderRadius-medium);}&::before{position:absolute;top:0;bottom:0;left:0;z-index:1;width:3px;pointer-events:none;content:'';}&:hover{","}&:focus{"," outline:solid 2px var(--fgColor-accent);z-index:1;}&[aria-current='page'],&[aria-selected='true']{background-color:var(--bgColor-default);&::before{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73));}}}.sidenav.variant-lightweight > &{padding:var(--base-size-4) 0;color:var(--fgColor-accent);&:hover{","}&:focus{"," outline:solid 1px var(--fgColor-accent);z-index:1;}&[aria-current='page'],&[aria-selected='true']{color:var(--fgColor-default);font-weight:var(--base-text-weight-medium);}}",";"],(e=>"full"===e.variant&&C(["display:flex;align-items:center;justify-content:space-between;"])),rx,rx,tx,tx,fo)),ax=({selected:e,to:t,variant:o,className:a,children:n,...l})=>{const i="string"==typeof t,c=bo(Qy),s=Gr({[Yy.SideNavLink]:!0,[Yy.SideNavLinkFull]:c&&"full"===o},a);return r.createElement(ox,Xy({"aria-current":i||e?"page":void 0,className:s,variant:o},l),n)};ax.displayName="SideNavLink",ax.displayName="SideNav.Link";var nx=Object.assign(ex,{Link:ax});function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lx.apply(null,arguments)}const ix={issueOpened:Hc,pullOpened:Rc,issueClosed:Vc,issueClosedNotPlanned:Kc,pullClosed:zc,pullMerged:Oc,draft:Pc,issueDraft:Dc,pullQueued:jc,unavailable:Bc},cx={issueOpened:"Issue",pullOpened:"Pull request",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",pullClosed:"Pull request",pullMerged:"Pull request",draft:"Pull request",issueDraft:"Issue",pullQueued:"Pull request",unavailable:""},sx=Te({prop:"status",variants:{issueClosed:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},issueClosedNotPlanned:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},pullClosed:{backgroundColor:"closed.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-closed-emphasis, transparent)"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-done-emphasis, transparent)"},pullQueued:{backgroundColor:"attention.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-attention-emphasis, transparent)"},issueOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},pullOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-open-emphasis, transparent)"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"},unavailable:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis",boxShadow:"var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent)"}}}),dx=Te({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),gx=p.span.withConfig({displayName:"StateLabel__StateLabelBase",componentId:"sc-qthdln-0"})(["display:inline-flex;align-items:center;font-weight:",";line-height:16px;color:",";text-align:center;border-radius:",";",";",";",";"],Wr("fontWeights.bold"),Wr("colors.canvas.default"),Wr("radii.3"),sx,dx,fo);function ux({children:e,status:t,variant:o="normal",...a}){const n="small"===o?{width:"1em"}:{};return r.createElement(gx,lx({},a,{variant:o,status:t}),t&&r.createElement(vm,lx({},n,{icon:ix[t]||$c,"aria-label":cx[t],sx:{mr:1}})),e)}ux.displayName="StateLabel";var vx="prc_SubNav_rjui0",bx="prc_Body_Nw122",fx="prc_Actions_-IUp-",hx="prc_Links_5Qn65",mx="prc_Link_X843-";function px(){return px=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},px.apply(null,arguments)}const yx="primer_react_css_modules_team",xx=So(yx,"nav",p.nav.withConfig({displayName:"SubNav__StyledSubNav",componentId:"sc-1t692wx-0"})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:",";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}",";"],Wr("space.2"),fo)),wx=r.forwardRef((function({actions:e,className:t,children:o,label:a,...n},l){const i=bo(yx);return r.createElement(xx,px({ref:l,className:Gr(t,"SubNav",{[vx]:i}),"aria-label":a},n),r.createElement("div",{className:Gr("SubNav-body",{[bx]:i})},o),e&&r.createElement("div",{className:Gr("SubNav-actions",{[fx]:i})},e))}));wx.displayName="SubNav";const Cx=So(yx,"div",p.div.withConfig({displayName:"SubNav__StyledSubNavLinks",componentId:"sc-1t692wx-1"})(["display:flex;",";"],fo)),kx=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(yx);return r.createElement(Cx,px({ref:a,className:Gr(t,n&&hx)},o),e)}));kx.displayName="SubNav.Links";const Ex=So(yx,"a",p.a.attrs((e=>({className:Gr("SubNav-item",e.selected&&"selected",e.className)}))).withConfig({displayName:"SubNav__StyledSubNavLink",componentId:"sc-1t692wx-2"})(["padding-left:",";padding-right:",";font-weight:",";font-size:",";line-height:20px;min-height:34px;color:",";text-align:center;text-decoration:none;border-top:1px solid ",";border-bottom:1px solid ",";border-right:1px solid ",";display:flex;align-items:center;&:first-of-type{border-top-left-radius:",";border-bottom-left-radius:",";border-left:1px solid ",";}&:last-of-type{border-top-right-radius:",";border-bottom-right-radius:",";}&:hover,&:focus{text-decoration:none;background-color:",";transition:background-color 0.2s ease;}&.selected{color:",";background-color:",";border-color:",";}",";"],Wr("space.3"),Wr("space.3"),Wr("fontWeights.semibold"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.border.default"),Wr("radii.2"),Wr("radii.2"),Wr("colors.canvas.subtle"),Wr("colors.fg.onEmphasis"),Wr("colors.accent.emphasis"),Wr("colors.accent.emphasis"),fo)),Bx=r.forwardRef((function({children:e,className:t,...o},a){const n=bo(yx);return r.createElement(Ex,px({ref:a,className:Gr(t,n&&mx),"data-selected":o.selected},o),e)}));Bx.displayName="SubNav.Link";var Tx=Object.assign(wx,{Link:Bx,Links:kx});function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Nx.apply(null,arguments)}const Sx="80ms",_x="cubic-bezier(0.5, 1, 0.89, 1)",Ix=Te({prop:"size",variants:{small:{height:"24px",width:"48px"}}}),Ax=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"}));Ax.displayName="CircleIcon";const Mx=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"}));Mx.displayName="LineIcon";const Lx=p.button.withConfig({displayName:"ToggleSwitch__SwitchButton",componentId:"sc-e6gszy-0"})(["vertical-align:middle;cursor:pointer;user-select:none;appearance:none;text-decoration:none;padding:0;transition-property:background-color,border-color;transition-duration:",";transition-timing-function:",";border-radius:",";border-style:solid;border-width:1px;display:block;height:32px;width:64px;position:relative;overflow:hidden;",";@media (pointer:coarse){&:before{content:'';position:absolute;left:0;right:0;transform:translateY(-50%);top:50%;min-height:44px;}}@media (prefers-reduced-motion){transition:none;*{transition:none;}}&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"," "," ",""],Sx,_x,Wr("radii.2"),Yv("3px"),Wr("colors.switchTrack.hoverBg"),Wr("colors.switchTrack.activeBg"),(e=>e.disabled?C(["background-color:",";border-color:transparent;cursor:not-allowed;transition-property:none;"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["background-color:",";border-color:var(--control-checked-borderColor-rest,transparent);&:hover:not(:disabled),&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"],Wr("colors.switchTrack.checked.bg"),Wr("colors.switchTrack.checked.hoverBg"),Wr("colors.switchTrack.checked.activeBg")):C(["background-color:",";border-color:var(--controlTrack-borderColor-rest,transparent);&:active{background-color:",";}"],Wr("colors.switchTrack.bg"),Wr("colors.switchTrack.activeBg"))),fo,Ix),Ox=p.div.withConfig({displayName:"ToggleSwitch__ToggleKnob",componentId:"sc-e6gszy-1"})(["background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:calc("," - 1px);width:50%;position:absolute;top:0;bottom:0;transition-property:transform;transition-duration:",";transition-timing-function:",";transform:",";z-index:1;@media (prefers-reduced-motion){transition:none;}",""],Wr("colors.switchKnob.bg"),(e=>e.disabled?Wr("colors.switchTrack.disabledBg"):Wr("colors.switchKnob.border")),Wr("radii.2"),Sx,_x,(e=>`translateX(${e.checked?"100%":"0px"})`),(e=>e.disabled?C(["border-color:",";"],Wr("colors.switchTrack.disabledBg")):e.checked?C(["border-color:",";"],Wr("colors.switchKnob.checked.border")):void 0)),jx={visibility:"hidden",height:0},Rx=r.forwardRef((function(e,t){const{"aria-labelledby":n,"aria-describedby":l,defaultChecked:i,disabled:c,loading:s,checked:d,onChange:g,onClick:u,size:v="medium",statusLabelPosition:b="start",sx:f,...h}=e,m=void 0!==d,[p,y]=Ut(d,g,Boolean(i)),x=!c&&!s,w=o((e=>{m||y(!p),u&&u(e)}),[u,m,p,y]);return a((()=>{g&&m&&g(Boolean(d))}),[g,d,m]),r.createElement(ho,Nx({display:"inline-flex",alignItems:"center",flexDirection:"start"===b?"row":"row-reverse",sx:f},h),s?r.createElement(Ho,{size:"small"}):null,r.createElement(kl,{color:x?"fg.default":"fg.muted",fontSize:"small"===v?0:1,mx:2,"aria-hidden":"true",sx:{position:"relative",cursor:"pointer"},onClick:w},r.createElement(ho,{textAlign:"right",sx:p?null:jx},"On"),r.createElement(ho,{textAlign:"right",sx:p?jx:null},"Off")),r.createElement(Lx,{ref:t,onClick:w,"aria-labelledby":n,"aria-describedby":l,"aria-pressed":p,checked:p,size:v,disabled:!x},r.createElement(ho,{"aria-hidden":"true",display:"flex",alignItems:"center",width:"100%",height:"100%",overflow:"hidden"},r.createElement(ho,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.checked.fg":"switchTrack.checked.disabledFg",lineHeight:"0",sx:{transform:`translateX(${p?"0":"-100%"})`,transitionProperty:"transform",transitionDuration:Sx}},r.createElement(Mx,{size:v})),r.createElement(ho,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.fg":"switchTrack.disabledFg",lineHeight:"0",sx:{transform:`translateX(${p?"100%":"0"})`,transitionProperty:"transform",transitionDuration:Sx}},r.createElement(Ax,{size:v}))),r.createElement(Ox,{"aria-hidden":"true",disabled:!x,checked:p})))}));var zx="prc_Timeline_iQjcc",Px="prc_TimelineItem_Sd-t-",Vx="prc_TimelineBadge_BqMiN",Dx="prc_TimelineBadgeWrapper_75vYD",Hx="prc_TimelineBody_WWZY0",Fx="prc_TimelineBreak_dPnDJ";function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wx.apply(null,arguments)}const $x="primer_react_css_modules_ga",Zx=So($x,"div",p.div.withConfig({displayName:"Timeline__ToggleTimeline",componentId:"sc-1nkzbnu-0"})(["display:flex;flex-direction:column;"," ",";"],(e=>e.clipSidebar&&C([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])),fo)),Kx=r.forwardRef((function({clipSidebar:e,className:t,...o},a){return bo($x)?r.createElement(Zx,Wx({},o,{className:Gr(t,zx),ref:a,"data-clip-sidebar":e?"":void 0})):r.createElement(Zx,Wx({},o,{className:t,ref:a,clipSidebar:e}))}));Kx.displayName="Timeline";const Gx=So($x,"div",p.div.attrs((e=>({className:Gr("Timeline-Item",e.className)}))).withConfig({displayName:"Timeline__ToggleTimelineItem",componentId:"sc-1nkzbnu-1"})(["display:flex;position:relative;padding:"," 0;margin-left:",";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:",";}"," ",";"],Wr("space.3"),Wr("space.3"),Wr("colors.border.muted"),(e=>e.condensed&&C(["padding-top:",";padding-bottom:0;&:last-child{padding-bottom:",";}.TimelineItem-Badge{height:16px;margin-top:",";margin-bottom:",";color:",";background-color:",";border:0;}"],Wr("space.1"),Wr("space.3"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.canvas.default"))),fo)),qx=r.forwardRef((function({condensed:e,className:t,...o},a){return bo($x)?r.createElement(Gx,Wx({},o,{className:Gr(t,Px),ref:a,"data-condensed":e?"":void 0})):r.createElement(Gx,Wx({},o,{className:t,ref:a,condensed:e}))}));qx.displayName="TimelineItem";const Ux=({sx:e,className:t,...o})=>bo($x)?e!==To?r.createElement("div",{className:Dx},r.createElement(ho,Wx({},o,{sx:e,className:Gr(t,Vx)}))):r.createElement("div",{className:Dx},r.createElement("div",Wx({},o,{className:Gr(t,Vx)}))):r.createElement(ho,{position:"relative",zIndex:1},r.createElement(ho,{display:"flex",className:"TimelineItem-Badge",flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center",sx:e},o.children));Ux.displayName="TimelineBadge",Ux.displayName="Timeline.Badge";const Yx=So($x,"div",p.div.withConfig({displayName:"Timeline__ToggleTimelineBody",componentId:"sc-1nkzbnu-2"})(["min-width:0;max-width:100%;margin-top:",";color:",";flex:auto;font-size:",";",";"],Wr("space.1"),Wr("colors.fg.muted"),Wr("fontSizes.1"),fo)),Xx=r.forwardRef((function({className:e,...t},o){return bo($x)?r.createElement(Yx,Wx({},t,{className:Gr(e,Hx),ref:o})):r.createElement(Yx,Wx({},t,{className:e,ref:o}))}));Xx.displayName="TimelineBody";const Qx=So($x,"div",p.div.withConfig({displayName:"Timeline__ToggleTimelineBreak",componentId:"sc-1nkzbnu-3"})(["position:relative;z-index:1;height:24px;margin:0;margin-bottom:-",";margin-left:0;background-color:",";border:0;border-top:"," solid ",";",";"],Wr("space.3"),Wr("colors.canvas.default"),Wr("space.1"),Wr("colors.border.default"),fo)),Jx=r.forwardRef((function({className:e,...t},o){return bo($x)?r.createElement(Qx,Wx({},t,{className:Gr(e,Fx),ref:o})):r.createElement(Qx,Wx({},t,{className:e,ref:o}))}));Jx.displayName="TimelineBreak";var ew=Object.assign(Kx,{Item:qx,Badge:Ux,Body:Xx,Break:Jx});function rw(e,r,t){return Math.min(Math.max(e,t),r)}class tw extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ow=tw;function aw(e){if("string"!=typeof e)throw new ow(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let r=e.trim();r=uw.test(e)?function(e){const r=e.toLowerCase().trim(),t=lw[function(e){let r=5381,t=e.length;for(;t;)r=33*r^e.charCodeAt(--t);return(r>>>0)%2341}(r)];if(!t)throw new ow(e);return`#${t}`}(e):e;const t=cw.exec(r);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(iw(e,2),16))),parseInt(iw(e[3]||"f",2),16)/255]}const o=sw.exec(r);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=dw.exec(r);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=gw.exec(r);if(n){const[r,t,o,a]=Array.from(n).slice(1).map(parseFloat);if(rw(0,100,t)!==t)throw new ow(e);if(rw(0,100,o)!==o)throw new ow(e);return[...bw(r,t,o),Number.isNaN(a)?1:a]}throw new ow(e)}const nw=e=>parseInt(e.replace(/_/g,""),36),lw="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,r)=>{const t=nw(r.substring(0,3)),o=nw(r.substring(3)).toString(16);let a="";for(let e=0;e<6-o.length;e++)a+="0";return e[t]=`${a}${o}`,e}),{});const iw=(e,r)=>Array.from(Array(r)).map((()=>e)).join(""),cw=new RegExp(`^#${iw("([a-f0-9])",3)}([a-f0-9])?$`,"i"),sw=new RegExp(`^#${iw("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),dw=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${iw(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),gw=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,uw=/^[a-z]+$/i,vw=e=>Math.round(255*e),bw=(e,r,t)=>{let o=t/100;if(0===r)return[o,o,o].map(vw);const a=(e%360+360)%360/60,n=(1-Math.abs(2*o-1))*(r/100),l=n*(1-Math.abs(a%2-1));let i=0,c=0,s=0;a>=0&&a<1?(i=n,c=l):a>=1&&a<2?(i=l,c=n):a>=2&&a<3?(c=n,s=l):a>=3&&a<4?(c=l,s=n):a>=4&&a<5?(i=l,s=n):a>=5&&a<6&&(i=n,s=l);const d=o-n/2;return[i+d,c+d,s+d].map(vw)};var fw="prc_IssueLabel_ZuoEW",hw="prc_RemoveButton_H4Dmg";function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mw.apply(null,arguments)}const pw={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},yw={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},xw=u(((e,o)=>{const a=bo("primer_react_css_modules_team"),{as:n,fillColor:l="#999",onRemove:i,id:c,isSelected:s,text:d,size:g=lh,hideRemoveButton:u,href:v,onClick:b,className:f,...h}=e,m={as:n,href:v,onClick:b},{resolvedColorScheme:p}=io(),y=ih(e)&&Boolean(i)&&!u,x=e=>{e.stopPropagation(),i&&i()},w=t((()=>{const[r,t,o]=aw(l),[a,n,c]=function(e){const[r,t,o,a]=aw(e).map(((e,r)=>3===r?e:e/255)),n=Math.max(r,t,o),l=Math.min(r,t,o),i=(n+l)/2;if(n===l)return[0,0,i,a];const c=n-l;return[60*(r===n?(t-o)/c+(t<o?6:0):t===n?(o-r)/c+2:(r-t)/c+4),i>.5?c/(2-n-l):c/(n+l),i,a]}(l),d=!(null!=p&&p.startsWith("dark"));return{"--label-r":String(r),"--label-g":String(t),"--label-b":String(o),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*n)),"--label-l":String(Math.round(100*c)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:u||!i?void 0:0,position:"relative",...d?pw:yw,...s?{background:d?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":yw.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+(d?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{},...ih(e)?{"&:hover":{...d?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), linear-gradient(rgb(var(--label-r),var(--label-g),var(--label-b)), rgb(var(--label-r),var(--label-g),var(--label-b)))"}:{background:"hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);"},boxShadow:"shadow.medium"}}:{}}}),[l,p,u,i,s,e]);return a?r.createElement(gh,mw({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,className:Gr(fw,f),text:d,size:g,style:w,"data-has-remove-button":!u&&!!i},y?{}:m,h,{ref:o}),r.createElement(kh,y?m:{},d),!u&&i?r.createElement(ph,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:ih(e),"data-has-multiple-action-targets":y,className:hw}):null):r.createElement(gh,mw({onRemove:i,id:null==c?void 0:c.toString(),isSelected:s,text:d,size:g,sx:w,className:f},y?{}:m,h,{ref:o}),r.createElement(kh,y?m:{},d),!u&&i?r.createElement(ph,{borderOffset:1,onClick:x,size:g,"aria-hidden":y?"true":"false",isParentInteractive:ih(e),sx:y?{position:"relative",zIndex:"1"}:{}}):null)}));xw.displayName="IssueLabelToken";var ww="prc_AvatarContainer_dBasr",Cw="prc_Avatar_A1uRI",kw="prc_Token_8GtFN";function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ew.apply(null,arguments)}const Bw="primer_react_css_modules_team",Tw=So(Bw,"span",p.span.withConfig({displayName:"AvatarToken__AvatarContainer",componentId:"sc-62sih1-0"})(["--spacing:calc("," * 2);display:block;height:",";width:",";"],Wr("space.1"),(e=>`calc(${nh[e.avatarSize]} - var(--spacing))`),(e=>`calc(${nh[e.avatarSize]} - var(--spacing))`))),Nw=u((({avatarSrc:e,id:t,size:o=lh,className:a,...n},l)=>bo(Bw)?r.createElement(Nh,Ew({leadingVisual:()=>r.createElement(Tw,{avatarSize:o,className:ww,"data-size":o},r.createElement(pv,{src:e,size:parseInt(nh[o],10),className:Cw})),size:o,id:null==t?void 0:t.toString(),className:Gr(kw,a)},n,{ref:l})):r.createElement(Nh,Ew({leadingVisual:()=>r.createElement(Tw,{avatarSize:o},r.createElement(pv,{src:e,size:parseInt(nh[o],10),sx:{width:"100%",height:"100%"}})),size:o,id:null==t?void 0:t.toString(),sx:{paddingLeft:Wr("space.1")},className:a},n,{ref:l}))));Nw.displayName="AvatarToken";var Sw={TreeViewRootUlStyles:"prc_TreeViewRootUlStyles_eZtxW",TreeViewItem:"prc_TreeViewItem_ShJr0","focus-visible":"prc_focus-visible_VRVfB",TreeViewItemContainer:"prc_TreeViewItemContainer_-2Rkn",TreeViewItemSkeleton:"prc_TreeViewItemSkeleton_fqk59",TreeViewItemToggle:"prc_TreeViewItemToggle_gWUdE",TreeViewItemToggleHover:"prc_TreeViewItemToggleHover_nEgP-",TreeViewItemToggleEnd:"prc_TreeViewItemToggleEnd_t-AEB",TreeViewItemContent:"prc_TreeViewItemContent_f0r0b",TreeViewItemContentText:"prc_TreeViewItemContentText_smZM-",TreeViewItemVisual:"prc_TreeViewItemVisual_dRlGq",TreeViewItemLeadingAction:"prc_TreeViewItemLeadingAction_VXx8I",TreeViewItemLevelLine:"prc_TreeViewItemLevelLine_KPSSL",TreeViewDirectoryIcon:"prc_TreeViewDirectoryIcon_PHbeP",TreeViewVisuallyHidden:"prc_TreeViewVisuallyHidden_4-mPv",TreeViewSkeletonItemContainerStyle:"prc_TreeViewSkeletonItemContainerStyle_EB7p0",TreeItemSkeletonTextStyles:"prc_TreeItemSkeletonTextStyles_wnBY9"};function _w(e){var r,t,o;const a=e.getAttribute("aria-label"),n=e.getAttribute("aria-labelledby");return a||(n?null!==(r=null===(t=document.getElementById(n))||void 0===t?void 0:t.textContent)&&void 0!==r?r:"":null!==(o=e.textContent)&&void 0!==o?o:"")}function Iw({containerRef:e,mouseDownRef:r}){Uc({containerRef:e,bindKeys:Ot.ArrowVertical|Ot.ArrowHorizontal|Ot.HomeAndEnd|Ot.Backspace|Ot.PageUpDown,preventScroll:!0,getNextFocusable:(e,r,t)=>{var o;if(r instanceof HTMLElement){try{if(r.closest("dialog:modal"))return}catch{}return null!==(o=function(e,r){switch(`${function(e){if("treeitem"!==e.getAttribute("role"))throw new Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e)} ${r.key}`){case"open ArrowRight":return Mw(e);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return Lw(e)}switch(r.key){case"ArrowUp":return Aw(e,"previous");case"ArrowDown":return Aw(e,"next");case"Backspace":return Lw(e);case"Home":return function(e){const r=e.closest("[role=tree]"),t=null==r?void 0:r.querySelector("[role=treeitem]");return t instanceof HTMLElement?t:void 0}(e);case"End":return function(e){const r=e.closest("[role=tree]"),t=Array.from((null==r?void 0:r.querySelectorAll("[role=treeitem]"))||[]);if(0===t.length)return;let o=t.length-1,a=t[o];for(;o>0&&a instanceof HTMLElement&&null!==(n=a.parentElement)&&void 0!==n&&n.closest("[role=treeitem][aria-expanded=false]");){var n;o-=1,a=t[o]}return a instanceof HTMLElement?a:void 0}(e);case"PageUp":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const t=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===t.length)return;const o=t[0].firstElementChild,a=jw(r,o),n=Math.floor(t.indexOf(e)/a),l=t.indexOf(e)-a*n;return t[Math.max(0,(n-1)*a+l)]}(e);case"PageDown":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const t=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===t.length)return;const o=t[0].firstElementChild,a=jw(r,o),n=Math.floor(t.indexOf(e)/a),l=t.indexOf(e)-a*n;return t[Math.min(t.length-1,(n+1)*a+l)]}(e)}}(r,t))&&void 0!==o?o:r}},focusInStrategy:()=>{var t,o,a;if(r.current)return;const n=null===(t=e.current)||void 0===t?void 0:t.querySelector("[aria-current]"),l=null===(o=e.current)||void 0===o?void 0:o.querySelector('[role="treeitem"]');return n instanceof HTMLElement?n:document.activeElement instanceof HTMLElement&&null!==(a=e.current)&&void 0!==a&&a.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:l instanceof HTMLElement?l:void 0}})}function Aw(e,r){const t=e.closest("[role=tree]");if(!t)return;const o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,(e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let a=o.firstChild();for(;a!==e;)a=o.nextNode();let n="next"===r?o.nextNode():o.previousNode();for(;n instanceof HTMLElement&&null!==(l=n.parentElement)&&void 0!==l&&l.closest("[role=treeitem][aria-expanded=false]");){var l;n="next"===r?o.nextNode():o.previousNode()}return n instanceof HTMLElement?n:void 0}function Mw(e){const r=e.querySelector("[role=treeitem]");return r instanceof HTMLElement?r:void 0}function Lw(e){const r=e.closest("[role=group]"),t=null==r?void 0:r.closest("[role=treeitem]");return t instanceof HTMLElement?t:void 0}const Ow={height:32};function jw(e,r){var t,o;const a=ui(e),{height:n}=null!==(t=null==r?void 0:r.getBoundingClientRect())&&void 0!==t?t:Ow,l=null!==(o=null==a?void 0:a.clientHeight)&&void 0!==o?o:window.innerHeight;return Math.floor(l/n)}var Rw="prc_SkeletonText_o0dUS";function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zw.apply(null,arguments)}const Pw={'&[data-component="SkeletonText"]':{"--font-size":"var(--text-body-size-medium, 0.875rem)","--line-height":"var(--text-body-lineHeight-medium, 1.4285)","--leading":"calc(var(--font-size) * var(--line-height) - var(--font-size))",borderRadius:"var(--borderRadius-small, 0.1875rem)",height:"var(--font-size)",marginBlock:"calc(var(--leading) / 2)"},'&[data-in-multiline="true"]':{marginBlockEnd:"calc(var(--leading) * 2)"},'&[data-in-multiline="true"]:last-child':{maxWidth:"65%",minWidth:"50px",marginBottom:0},"@supports (margin-block: mod(1px, 1px))":{'&[data-component="SkeletonText"]':{"--leading":"mod(var(--font-size) * var(--line-height), var(--font-size))"}},'&[data-text-skeleton-size="display"], &[data-text-skeleton-size="titleLarge"]':{borderRadius:"var(--borderRadius-medium, 0.375rem)"},'&[data-text-skeleton-size="display"]':{"--font-size":"var(--text-display-size, 2.5rem)","--line-height":"var(--text-display-lineHeight, 1.4)"},'&[data-text-skeleton-size="titleLarge"]':{"--font-size":"var(--text-title-size-large, 2.5rem)","--line-height":"var(--text-title-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="titleMedium"]':{"--font-size":"var(--text-title-size-medium, 1.25rem)","--line-height":"var(--text-title-lineHeight-medium, 1.6)"},'&[data-text-skeleton-size="titleSmall"]':{"--font-size":"var(--text-title-size-small, 1rem)","--line-height":"var(--text-title-lineHeight-small, 1.5)"},'&[data-text-skeleton-size="subtitle"]':{"--font-size":"var(--text-subtitle-size, 1.25rem)","--line-height":"var(--text-subtitle-lineHeight, 1.6)"},'&[data-text-skeleton-size="bodyLarge"]':{"--font-size":"var(--text-body-size-large, 1rem)","--line-height":"var(--text-body-lineHeight-large, 1.5)"},'&[data-text-skeleton-size="bodySmall"]':{"--font-size":"var(--text-body-size-small, 0.75rem)","--line-height":"var(--text-body-lineHeight-small, 1.6666)"}},Vw=({lines:e=1,maxWidth:t,size:o="bodyMedium",className:a,style:n,...l})=>{const i=bo(Sv);return e<2?r.createElement(Mv,zw({"data-component":"SkeletonText","data-text-skeleton-size":o,width:"100%",className:Gr(a,{[Rw]:i}),sx:i?{}:{maxWidth:t,...Pw},style:i?tt(n,{maxWidth:t}):n},l)):r.createElement(ho,{"data-component":"multilineContainer",sx:{maxWidth:t,paddingBlock:"0.1px"},style:i?tt(n,{maxWidth:t,paddingBlock:"0.1px"}):n},Array.from({length:e},((e,t)=>r.createElement(Mv,zw({key:t,"data-component":"SkeletonText","data-in-multiline":"true","data-text-skeleton-size":o,sx:i?{}:Pw,className:Gr(a,{[Rw]:i})},l)))))},Dw="primer_react_css_modules_ga",Hw=r.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map}}),Fw=r.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:""}),Ww=So(Dw,"ul",p.ul.withConfig({displayName:"TreeView__UlBox",componentId:"sc-4ex6b6-0"})(["list-style:none;padding:0;margin:0;.PRIVATE_TreeView-item{outline:none;&:focus-visible > div,&.focus-visible > div{box-shadow:inset 0 0 0 2px ",";@media (forced-colors:active){outline:2px solid HighlightText;outline-offset:-2;}}&[data-has-leading-action]{--has-leading-action:1;}}.PRIVATE_TreeView-item-container{--level:1;--toggle-width:1rem;--min-item-height:2rem;position:relative;display:grid;--leading-action-width:calc(var(--has-leading-action,0) * 1.5rem);--spacer-width:calc(calc(var(--level) - 1) * (var(--toggle-width) / 2));grid-template-columns:var(--spacer-width) var(--leading-action-width) var(--toggle-width) 1fr;grid-template-areas:'spacer leadingAction toggle content';width:100%;font-size:",";color:",";border-radius:",";cursor:pointer;&:hover{background-color:",";@media (forced-colors:active){outline:2px solid transparent;outline-offset:-2px;}}@media (pointer:coarse){--toggle-width:1.5rem;--min-item-height:2.75rem;}&:has(.PRIVATE_TreeView-item-skeleton):hover{background-color:transparent;cursor:default;@media (forced-colors:active){outline:none;}}}&[data-omit-spacer='true'] .PRIVATE_TreeView-item-container{grid-template-columns:0 0 0 1fr;}.PRIVATE_TreeView-item[aria-current='true'] > .PRIVATE_TreeView-item-container{background-color:",";&::after{content:'';position:absolute;top:calc(50% - 0.75rem);left:-",";width:0.25rem;height:1.5rem;background-color:",";border-radius:",";@media (forced-colors:active){background-color:HighlightText;}}}.PRIVATE_TreeView-item-toggle{grid-area:toggle;display:flex;justify-content:center;align-items:flex-start;padding-top:calc(var(--min-item-height) / 2 - ","px / 2);height:100%;color:",";}.PRIVATE_TreeView-item-toggle--hover:hover{background-color:",";}.PRIVATE_TreeView-item-toggle--end{border-top-left-radius:",";border-bottom-left-radius:",";}.PRIVATE_TreeView-item-content{grid-area:content;display:flex;height:100%;padding:0 ",";gap:",";line-height:var(--custom-line-height,var(--text-body-lineHeight-medium,1.4285));padding-top:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);padding-bottom:calc((var(--min-item-height) - var(--custom-line-height,1.3rem)) / 2);}.PRIVATE_TreeView-item-content-text{flex:1 1 auto;width:0;}&[data-truncate-text='true'] .PRIVATE_TreeView-item-content-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&[data-truncate-text='false'] .PRIVATE_TreeView-item-content-text{word-break:break-word;}.PRIVATE_TreeView-item-visual{display:flex;align-items:center;color:",";height:var(--custom-line-height,1.3rem);}.PRIVATE_TreeView-item-leading-action{display:flex;color:",";grid-area:leadingAction;& > button{flex-shrink:1;}}.PRIVATE_TreeView-item-level-line{width:100%;height:100%;border-right:1px solid;border-color:",";}@media (hover:hover){.PRIVATE_TreeView-item-level-line{border-color:transparent;}&:hover .PRIVATE_TreeView-item-level-line,&:focus-within .PRIVATE_TreeView-item-level-line{border-color:",";}}.PRIVATE_TreeView-directory-icon{display:grid;color:",";}.PRIVATE_VisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}",""],Wr("colors.accent.fg"),Wr("fontSizes.1"),Wr("colors.fg.default"),Wr("radii.2"),Wr("colors.actionListItem.default.hoverBg"),Wr("colors.actionListItem.default.selectedBg"),Wr("space.2"),Wr("colors.accent.fg"),Wr("radii.2"),12,Wr("colors.fg.muted"),Wr("colors.treeViewItem.chevron.hoverBg"),Wr("radii.2"),Wr("radii.2"),Wr("space.2"),Wr("space.2"),Wr("colors.fg.muted"),Wr("colors.fg.muted"),Wr("colors.border.subtle"),Wr("colors.border.subtle"),Wr("colors.treeViewItem.directory.fill"),fo)),$w=({"aria-label":e,"aria-labelledby":t,children:n,flat:l,truncate:i=!0,className:c,style:s})=>{const d=r.useRef(null),g=r.useRef(!1),[u,v]=r.useState(""),b=r.useCallback((e=>{v(e)}),[]),f=o((()=>{g.current=!0}),[]);a((()=>{function e(){g.current=!1}return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]),Iw({containerRef:d,mouseDownRef:g}),function({containerRef:e,onFocusChange:t}){const o=r.useRef(""),a=r.useRef(0),n=r.useRef(t),{safeSetTimeout:l,safeClearTimeout:i}=zl();r.useEffect((()=>{n.current=t}),[t]);const c=r.useCallback((r=>{if(!r)return;if(!e.current)return;const t=e.current,o=Array.from(t.querySelectorAll('[role="treeitem"]')),a=o.findIndex((e=>e===document.activeElement));let l=(c=a,(i=o).map(((e,r)=>i[(c+r)%i.length])));var i,c;1===r.length&&(l=l.slice(1));const s=l.find((e=>_w(e).toLowerCase().startsWith(r.toLowerCase())));s&&n.current(s)}),[e]);r.useEffect((()=>{if(!e.current)return;const r=e.current;function t(e){!e.key||e.key.length>1||" "===e.key||e.ctrlKey||e.altKey||e.metaKey||(o.current+=e.key,c(o.current),i(a.current),a.current=l((()=>o.current=""),300),e.preventDefault(),e.stopPropagation())}return r.addEventListener("keydown",t),()=>r.removeEventListener("keydown",t)}),[e,c,i,l])}({containerRef:d,onFocusChange:e=>{e instanceof HTMLElement&&e.focus()}});const h=r.useRef(null);null===h.current&&(h.current=new Map);const m=bo(Dw);return r.createElement(Hw.Provider,{value:{announceUpdate:b,expandedStateCache:h}},r.createElement(r.Fragment,null,r.createElement(El,{role:"status","aria-live":"polite","aria-atomic":"true"},u),r.createElement(Ww,{ref:d,role:"tree","aria-label":e,"aria-labelledby":t,"data-omit-spacer":l,"data-truncate-text":i||!1,onMouseDown:f,className:Gr(c,{[Sw.TreeViewRootUlStyles]:m}),style:s},n)))};$w.displayName="Root",$w.displayName="TreeView";const Zw=r.forwardRef((({id:e,containIntrinsicSize:t,current:o=!1,defaultExpanded:a,expanded:n,onExpandedChange:l,onSelect:i,children:c,className:s,"aria-label":d,"aria-labelledby":g},u)=>{const[v,b]=ai(c,{leadingAction:rC,leadingVisual:Jw,trailingVisual:eC}),{expandedStateCache:f}=r.useContext(Hw),h=ro(),m=ro(),p=ro(),[y,x]=function({name:e="custom",defaultValue:t,value:o,onChange:a}){const[n,l]=r.useState(null!=o?o:t),i=r.useRef(null),c=r.useRef(a);r.useEffect((()=>{c.current=a})),null===i.current&&(i.current=void 0!==o);const s=r.useCallback((e=>{var r;const t="function"==typeof e?e(n):e;!1===i.current&&l(t),null===(r=c.current)||void 0===r||r.call(c,t)}),[n]);return r.useEffect((()=>{i.current,i.current}),[e,o]),!0===i.current?[o,s]:[n,s]}({name:e,defaultValue:()=>{var r,t,n;return null!==(r=null!==(t=null===(n=f.current)||void 0===n?void 0:n.get(e))&&void 0!==t?t:a)&&void 0!==r?r:o},value:null!==n&&n,onChange:l}),{level:w}=r.useContext(Fw),{hasSubTree:C,subTree:k,childrenWithoutSubTree:E}=function(e){return r.useMemo((()=>{const t=r.Children.toArray(e).find((e=>r.isValidElement(e)&&e.type===Gw));return{subTree:t,childrenWithoutSubTree:r.Children.toArray(e).filter((e=>!(r.isValidElement(e)&&e.type===Gw))),hasSubTree:Boolean(t)}}),[e])}(b),[B,T]=r.useState(!C),[N,S]=r.useState(!1),_=r.useCallback((r=>{var t;x(r),null===(t=f.current)||void 0===t||t.set(e,r)}),[e,x,f]),I=r.useCallback((e=>{_(!y),null==e||e.stopPropagation()}),[y,_]),A=r.useCallback((e=>{switch(e.key){case"Enter":case" ":i?i(e):I(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),_(!1)}}),[i,_,I]),M=[v.leadingVisual?m:null,v.trailingVisual?p:null].filter(Boolean),L=bo(Dw);return r.createElement(Fw.Provider,{value:{itemId:e,level:w+1,isSubTreeEmpty:B,setIsSubTreeEmpty:T,isExpanded:y,setIsExpanded:_,leadingVisualId:m,trailingVisualId:p}},r.createElement("li",{className:Gr("PRIVATE_TreeView-item",s,{[Sw.TreeViewItem]:L}),ref:u,tabIndex:0,id:e,role:"treeitem","aria-label":d,"aria-labelledby":d?void 0:g||h,"aria-describedby":M.length?M.join(" "):void 0,"aria-level":w,"aria-expanded":(!B||y&&C)&&null!==n?y:void 0,"aria-current":o?"true":void 0,"aria-selected":N?"true":"false","data-has-leading-action":!!v.leadingAction||void 0,onKeyDown:A,onFocus:e=>{var r;null===(r=e.currentTarget.firstElementChild)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),S(!0),e.stopPropagation()},onBlur:()=>S(!1),onClick:e=>{i?i(e):I(e),e.stopPropagation()},onAuxClick:e=>{i&&1===e.button&&i(e),e.stopPropagation()}},r.createElement("div",{className:Gr("PRIVATE_TreeView-item-container",{[Sw.TreeViewItemContainer]:L}),style:{"--level":w,contentVisibility:t?"auto":void 0,containIntrinsicSize:t}},r.createElement("div",{style:{gridArea:"spacer",display:"flex"}},r.createElement(Kw,{level:w})),v.leadingAction,C?r.createElement("div",{className:Gr("PRIVATE_TreeView-item-toggle",i&&"PRIVATE_TreeView-item-toggle--hover",1===w&&"PRIVATE_TreeView-item-toggle--end",{[Sw.TreeViewItemToggle]:L,[Sw.TreeViewItemToggleHover]:L,[Sw.TreeViewItemToggleEnd]:L}),onClick:e=>{i&&I(e)}},y?r.createElement(Ic,{size:12}):r.createElement(Ac,{size:12})):null,r.createElement("div",{id:h,className:Gr("PRIVATE_TreeView-item-content",{[Sw.TreeViewItemContent]:L})},v.leadingVisual,r.createElement("span",{className:Gr("PRIVATE_TreeView-item-content-text",{[Sw.TreeViewItemContentText]:L})},E),v.trailingVisual)),k))})),Kw=({level:e})=>{const t=bo(Dw);return r.createElement("div",{style:{width:"100%",display:"flex"}},Array.from({length:e-1}).map(((e,o)=>r.createElement("div",{key:o,className:Gr("PRIVATE_TreeView-item-level-line",{[Sw.TreeViewItemLevelLine]:t})}))))};Kw.displayName="LevelIndicatorLines",Zw.displayName="TreeView.Item";const Gw=({count:e,state:t,children:o})=>{const{announceUpdate:a}=r.useContext(Hw),{itemId:n,isExpanded:l,isSubTreeEmpty:i,setIsSubTreeEmpty:c}=r.useContext(Fw),s=r.useRef(null),d=r.useRef(null),[g,u]=r.useState(!1),v=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e}),[e]),t.current}(t),{safeSetTimeout:b}=zl();return r.useEffect((()=>{void 0!==t&&"done"!==t||(i||o?i&&o&&c(!1):c(!0))}),[t,i,c,o]),r.useEffect((()=>{const e=document.getElementById(n);if(e)if("loading"===v&&"done"===t){var r;const t=_w(e);if(null!==(r=d.current)&&void 0!==r&&r.childElementCount?a(`${t} content loaded`):a(`${t} is empty`),g){const r=Mw(e);b(r?()=>{r.focus()}:()=>{e.focus()}),u(!1)}}else if("loading"===t){const r=_w(e);a(`${r} content loading`)}}),[g,v,t,n,a,d,b]),r.useEffect((()=>{function e(){u(!0)}function r(e){e.relatedTarget&&u(!1)}const t=s.current;if(t)return t.addEventListener("focus",e),t.addEventListener("blur",r),()=>{t.removeEventListener("focus",e),t.removeEventListener("blur",r)}}),[s,t]),l?r.createElement("ul",{role:"group",style:{listStyle:"none",padding:0,margin:0},ref:d},"loading"===t?r.createElement(Xw,{ref:s,count:e}):o,i&&"loading"!==t?r.createElement(Qw,null):null):null};Gw.displayName="SubTree",Gw.displayName="TreeView.SubTree";const qw=So(Dw,"span",p.span.attrs({className:"PRIVATE_TreeView-item-skeleton"}).withConfig({displayName:"TreeView__StyledSkeletonItemContainer",componentId:"sc-4ex6b6-1"})(["display:flex;align-items:center;column-gap:0.5rem;height:2rem;@media (pointer:coarse){height:2.75rem;}&:nth-of-type(5n + 1){--tree-item-loading-width:67%;}&:nth-of-type(5n + 2){--tree-item-loading-width:47%;}&:nth-of-type(5n + 3){--tree-item-loading-width:73%;}&:nth-of-type(5n + 4){--tree-item-loading-width:64%;}&:nth-of-type(5n + 5){--tree-item-loading-width:50%;}"])),Uw=So(Dw,Vw,p(Vw).withConfig({displayName:"TreeView__StyledSkeletonText",componentId:"sc-4ex6b6-2"})(["width:var(--tree-item-loading-width,67%);"])),Yw=()=>{const e=bo(Dw);return r.createElement(qw,{className:Gr({[Sw.TreeViewSkeletonItemContainerStyles]:e,[Sw.TreeViewItemSkeleton]:e},"PRIVATE_TreeView-item-skeleton")},r.createElement(Rv,{size:16,square:!0}),r.createElement(Uw,{className:Gr({[Sw.TreeItemSkeletonTextStyles]:e})}))};Yw.displayName="SkeletonItem";const Xw=r.forwardRef((({count:e},t)=>{const o=ro(),a=bo(Dw);return e?r.createElement(Zw,{id:o,ref:t},Array.from({length:e}).map(((e,t)=>r.createElement(Yw,{"aria-hidden":!0,key:t}))),r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:a})},"Loading ",e," items")):r.createElement(Zw,{id:o,ref:t},r.createElement(Jw,null,r.createElement(Ho,{size:"small"})),r.createElement(kl,{className:"fgColor-muted"},"Loading..."))})),Qw=r.forwardRef(((e,t)=>r.createElement(Zw,{expanded:null,id:ro(),ref:t},r.createElement(kl,{className:"fgColor-muted"},"No items found"))));const Jw=e=>{const t=bo(Dw),{isExpanded:o,leadingVisualId:a}=r.useContext(Fw),n="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:t}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[Sw.TreeViewItemVisual]:t}),"aria-hidden":!0},n))};Jw.displayName="TreeView.LeadingVisual";const eC=e=>{const t=bo(Dw),{isExpanded:o,trailingVisualId:a}=r.useContext(Fw),n="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:t}),"aria-hidden":!0,id:a},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-visual",{[Sw.TreeViewItemVisual]:t}),"aria-hidden":!0},n))};eC.displayName="TreeView.TrailingVisual";const rC=e=>{const t=bo(Dw),{isExpanded:o}=r.useContext(Fw),a="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:Gr("PRIVATE_VisuallyHidden",{[Sw.TreeViewVisuallyHidden]:t}),"aria-hidden":!0},e.label),r.createElement("div",{className:Gr("PRIVATE_TreeView-item-leading-action",{[Sw.TreeViewItemLeadingAction]:t}),"aria-hidden":!0},a))};rC.displayName="TreeView.LeadingAction";const tC=()=>{const e=bo(Dw),{isExpanded:t}=r.useContext(Fw),o=t?Lc:Mc;return r.createElement("div",{className:Gr("PRIVATE_TreeView-directory-icon",{[Sw.TreeViewDirectoryIcon]:e})},r.createElement(o,null))};tC.displayName="DirectoryIcon";const oC=({title:e="Error",children:t,onRetry:o,onDismiss:a})=>{const{itemId:n,setIsExpanded:l}=r.useContext(Fw);return r.createElement("div",{onKeyDown:e=>{["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"].includes(e.key)&&e.stopPropagation()}},r.createElement(Ks,{title:e,onClose:e=>{setTimeout((()=>{const e=document.getElementById(n);null==e||e.focus()})),"confirm"===e?null==o||o():(l(!1),null==a||a())},confirmButtonContent:"Retry",cancelButtonContent:"Dismiss"},t))};oC.displayName="ErrorDialog",oC.displayName="TreeView.ErrorDialog";const aC=Object.assign($w,{Item:Zw,SubTree:Gw,LeadingAction:rC,LeadingVisual:Jw,TrailingVisual:eC,DirectoryIcon:tC,ErrorDialog:oC}),nC=d({theme:{},setChildrenWidth:()=>null,setNoIconChildrenWidth:()=>null,loadingCounters:!1,iconsVisible:!0}),lC=e=>({display:"inline-block",borderLeft:"1px solid",width:"1px",borderLeftColor:`${null==e?void 0:e.colors.border.muted}`,marginRight:1,height:"24px"}),iC={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2,'& > span[data-component="trailingVisual"]':{marginLeft:0}},cC={"& > span":{display:"none"},textDecoration:"none"},sC={position:"absolute",zIndex:1,top:"90%",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",borderRadius:"12px",backgroundColor:"canvas.overlay",listStyle:"none",minWidth:"192px",maxWidth:"640px",right:"0"},dC=(e,r)=>{if(e&&r){const{left:t}=kt(e,r,{align:"start",side:"outside-bottom"}),{right:o,...a}=sC;return{...a,left:t}}return sC};var gC="prc_UnderlineWrapper_oOh5J",uC="prc_UnderlineItemList_b23Hf",vC="prc_UnderlineItem_lJsg-",bC="prc_LoadingCounter_Ps-0Q";function fC(){return fC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fC.apply(null,arguments)}const hC="primer_react_css_modules_team",mC=So(hC,"div",p.div.withConfig({displayName:"UnderlineTabbedInterface__StyledComponentUnderlineWrapper",componentId:"sc-4ilrg0-0"})(["display:flex;padding-inline:var(--stack-padding-normal,",");justify-content:flex-start;align-items:center;min-height:var(--control-xlarge-size,48px);box-shadow:inset 0px -1px var(--borderColor-muted,",");",";"],Wr("space.3"),Wr("colors.border.muted"),fo)),pC=u((({children:e,className:t,...o},a)=>bo(hC)?r.createElement(mC,fC({className:Gr(gC,t),ref:a},o),e):r.createElement(mC,fC({className:t,ref:a},o),e))),yC=So(hC,"ul",p.ul.withConfig({displayName:"UnderlineTabbedInterface__StyledComponentUnderlineItemList",componentId:"sc-4ilrg0-1"})(["display:flex;list-style:none;white-space:nowrap;padding:0;margin:0;align-items:center;gap:","px;position:relative;"],8)),xC=u((({children:e,...t},o)=>bo(hC)?r.createElement(yC,fC({className:uC,ref:o},t),e):r.createElement(yC,fC({ref:o},t),e))),wC=So(hC,"div",p.div.withConfig({displayName:"UnderlineTabbedInterface__StyledUnderlineItem",componentId:"sc-4ilrg0-2"})(["appearance:none;background-color:transparent;border:0;cursor:pointer;font:inherit;position:relative;display:inline-flex;color:",";text-align:center;text-decoration:none;line-height:var(--text-body-lineHeight-medium,1.4285);border-radius:var(--borderRadius-medium,",");font-size:var(--text-body-size-medium,",");padding-inline:var(--control-medium-paddingInline-condensed,",");padding-block:var(--control-medium-paddingBlock,6px);align-items:center;@media (hover:hover){&:hover{background-color:var(--bgColor-neutral-muted,",");transition:background 0.12s ease-out;text-decoration:none;}}&:focus:{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");&:not(:focus-visible){box-shadow:none;}}&:focus-visible{outline:2px solid transparent;box-shadow:inset 0 0 0 2px var(--fgColor-accent,",");}[data-content]::before{content:attr(data-content);display:block;height:0;font-weight:var(--base-text-weight-semibold,",");visibility:hidden;white-space:nowrap;}[data-component='icon']{color:var(--fgColor-muted,",");align-items:center;display:inline-flex;margin-inline-end:var(--control-medium-gap,",");}[data-component='counter']{margin-inline-start:var(--control-medium-gap,",");display:flex;align-items:center;}&::after{position:absolute;right:50%;bottom:calc(50% - calc(var(--control-xlarge-size,48px) / 2 + 1px));width:100%;height:2px;content:'';background-color:transparent;border-radius:0;transform:translate(50%,-50%);}&[aria-current]:not([aria-current='false']),&[aria-selected='true']{[data-component='text']{font-weight:var(--base-text-weight-semibold,",");}&::after{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73));}}@media (forced-colors:active){&[aria-current]:not([aria-current='false']),&[aria-selected='true']{::after{background-color:LinkText;}}}",";"],Wr("colors.fg.default"),Wr("radii.2"),Wr("fontSizes.1"),Wr("space.2"),Wr("colors.neutral.subtle"),Wr("colors.accent.fg"),Wr("colors.accent.fg"),Wr("fontWeights.semibold"),Wr("colors.fg.muted"),Wr("space.2"),Wr("space.2"),Wr("fontWeights.semibold"),fo)),CC=w(["from{opacity:1;}to{opacity:0.2;}"]),kC=So(hC,"span",p.span.withConfig({displayName:"UnderlineTabbedInterface__StyledComponentLoadingCounter",componentId:"sc-4ilrg0-3"})(["animation:"," 1.2s ease-in-out infinite alternate;background-color:var(--bgColor-neutral-muted,",");border-color:var(--borderColor-default,",");width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"],CC,Wr("colors.neutral.subtle"),Wr("colors.border.default"))),EC=()=>bo(hC)?r.createElement(kC,{className:bC}):r.createElement(kC,null);EC.displayName="LoadingCounter";const BC=u((({as:e="a",children:t,counter:o,icon:a,iconsVisible:n,loadingCounters:l,sx:i=To,...c},s)=>bo(hC)?r.createElement(wC,fC({ref:s,as:e,sx:i,className:vC},c),n&&a&&r.createElement("span",{"data-component":"icon"},_n.isElement(a)?a:r.createElement(a,null)),t&&r.createElement("span",{"data-component":"text","data-content":t},t),void 0!==o?l?r.createElement("span",{"data-component":"counter"},r.createElement(EC,null)):r.createElement("span",{"data-component":"counter"},r.createElement($o,null,o)):null):r.createElement(wC,fC({ref:s,as:e,sx:i},c),n&&a&&r.createElement("span",{"data-component":"icon"},_n.isElement(a)?a:r.createElement(a,null)),t&&r.createElement("span",{"data-component":"text","data-content":t},t),void 0!==o?l?r.createElement("span",{"data-component":"counter"},r.createElement(EC,null)):r.createElement("span",{"data-component":"counter"},r.createElement($o,null,o)):null)));function TC(){return TC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},TC.apply(null,arguments)}p.ul.withConfig({displayName:"UnderlineNav__NavigationList",componentId:"sc-1jfr31k-0"})(["",";"],fo);const NC=p.li.withConfig({displayName:"UnderlineNav__MoreMenuListItem",componentId:"sc-1jfr31k-1"})(["display:flex;align-items:center;height:","px;"],45),SC=(e,r,t=0)=>{const o=r-t;let a=e.length,n=0;for(const[r,t]of e.entries())if(n=n+t.width+8,n>o){a=r;break}return a},_C=u((({as:e="nav","aria-label":t,sx:a=To,loadingCounters:n=!1,children:c},s)=>{var d;const g=l(null),u=null!=s?s:g,v=l(null),b=l(null),f=l(null),h=r.useRef(null),m=ro(),{theme:p}=io(),[y,x]=i(!1),[w,C]=i(!0),[k,E]=i([]),[B,T]=i([]),N=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(c),[S,_]=i({items:N,menuItems:[]}),I=S.items.map((e=>{var r;return null!==(r=N.find((r=>r.key===e.key)))&&void 0!==r?r:e})),A=S.menuItems.map((e=>{var r;return null!==(r=N.find((r=>r.key===e.key)))&&void 0!==r?r:e})),M=0===S.items.length;function L(e){var r,t;return null!==(r=null===(t=B.find((r=>r.text===e)))||void 0===t?void 0:t.width)&&void 0!==r?r:0}const O=(e,r,t,o)=>{var a,n;const l=function(e,r){let t=0,o=0;for(const[a,n]of[...S.items].reverse().entries())if(t+=L(n.props.children),e<t+r){o=a;break}return o}(L(e.props.children),u.current.getBoundingClientRect().width-(null!==(a=null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect().width)&&void 0!==a?a:0)),i=S.items.length-1-l,c=[...[...S.items].slice(0,i),e],s=[...S.items].slice(i),d=[...A];d.splice(r,1,...s),o({items:c,menuItems:d},!1)};const j=o(((e,r)=>{_(e),C(r)}),[]),R=o((e=>{E((r=>[...r,e]))}),[]),z=o((e=>{T((r=>[...r,e]))}),[]),P=r.useCallback((()=>{x(!1)}),[x]),V=r.useCallback((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}),[]),D=o((e=>{e.defaultPrevented||0!==e.button||x((e=>!e))}),[]);return ut((e=>{y&&(e.preventDefault(),P(),V())}),[y]),it({onClickOutside:P,containerRef:h,ignoreClickRefs:[f]}),Zt((e=>{var r,t;const o=e[0].contentRect.width,a=null!==(r=null===(t=b.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==r?r:0;0!==o&&((e,r,t,o,a,n)=>{let l=!0;0===o.length&&n({items:t,menuItems:[]},l);const i=SC(o,e),c=SC(a,e),s=SC(a,e,r||86),d=[],g=[];if(t.length<=i)d.push(...t);else if(t.length<=c)l=!1,d.push(...t);else{l=!1;const e=1==t.length-s?s-1:s;for(const[r,o]of t.entries())if(r<e)d.push(o);else{const r=o.props["aria-current"];if(Boolean(r)&&"false"!==r&&e>0){const r=e-1,t=d.splice(r,1,o)[0];g.push(t)}else g.push(o)}}n({items:d,menuItems:g},l)})(o,a,N,k,B,j)}),u),r.createElement(nC.Provider,{value:{theme:p,setChildrenWidth:R,setNoIconChildrenWidth:z,loadingCounters:n,iconsVisible:w}},t&&r.createElement(El,{as:"h2"},`${t} navigation`),r.createElement(pC,{as:e,"aria-label":t,ref:u,sx:a},r.createElement(xC,{ref:v,role:"list"},I,A.length>0&&r.createElement(NC,{ref:b},!M&&r.createElement(ho,{sx:lC(p)}),r.createElement(On,{ref:f,sx:iC,"aria-controls":m,"aria-expanded":y,onClick:D,trailingAction:Gc},r.createElement(ho,{as:"span"},M?r.createElement(r.Fragment,null,r.createElement(El,{as:"span"},`${t}`," "),"Menu"):r.createElement(r.Fragment,null,"More",r.createElement(El,{as:"span"}," ",`${t} items`)))),r.createElement(cu,{selectionVariant:"single",ref:h,id:m,sx:null!==(d=v.current)&&void 0!==d&&d.clientWidth&&v.current.clientWidth>=192?sC:dC(h.current,v.current),style:{display:y?"block":"none"}},A.map(((e,t)=>{const{children:o,counter:a,"aria-current":l,onSelect:i,...c}=e.props;if(Boolean(l)&&"false"!==l){new MouseEvent("click");!M&&O(e,t,0,j)}return r.createElement(cu.LinkItem,TC({key:o,sx:cC,onClick:r=>{!M&&O(e,t,0,j),P(),V(),"function"==typeof i&&i(r)}},c),r.createElement(ho,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},o,n?r.createElement(EC,null):void 0!==a&&r.createElement(ho,{as:"span","data-component":"counter"},r.createElement($o,null,a))))})))))))}));function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},IC.apply(null,arguments)}_C.displayName="UnderlineNav";const AC=u((({sx:e=To,as:t="a",href:o="#",children:a,counter:n,onSelect:i,"aria-current":c,icon:s,...d},u)=>{const v=l(null),b=null!=u?u:v,{setChildrenWidth:f,setNoIconChildrenWidth:h,loadingCounters:m,iconsVisible:p}=g(nC);$t((()=>{if(b.current){const e=b.current.getBoundingClientRect(),r=Array.from(b.current.children).find((e=>"icon"===e.getAttribute("data-component"))),t=Array.from(b.current.children).find((e=>"text"===e.getAttribute("data-component"))).textContent,o=r?r.getBoundingClientRect().width+Number(getComputedStyle(r).marginRight.slice(0,-2))+Number(getComputedStyle(r).marginLeft.slice(0,-2)):0;f({text:t,width:e.width}),h({text:t,width:e.width-o})}}),[b,f,h]);const y=r.useCallback((e=>{" "!==e.key&&"Enter"!==e.key||e.defaultPrevented||"function"!=typeof i||i(e)}),[i]),x=r.useCallback((e=>{e.defaultPrevented||"function"!=typeof i||i(e)}),[i]);return r.createElement(ho,{as:"li",sx:{display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(BC,IC({ref:b,as:t,href:o,"aria-current":c,onKeyDown:y,onClick:x,counter:n,icon:s,loadingCounters:m,iconsVisible:p,sx:e},d),a))}));AC.displayName="UnderlineNavItem";const MC=Object.assign(_C,{Item:AC});var LC="prc_List_Z4LzW",OC="prc_Nav_hc-9G",jC="prc_Divider_CcBO8";function RC(){return RC=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},RC.apply(null,arguments)}const zC=r.createContext({size:"medium",setChildrenWidth:()=>null}),PC=(e,r,t=0)=>{const o=r-t;let a=e.length,n=0;for(const[r,t]of e.entries())if(n+=t.width,n>o){a=r;break}return a},VC=e=>{const{size:t="medium",children:a,"aria-label":n,flush:c=!1,className:s}=e,[d,g]=i([]),u=o((e=>{g((r=>[...r,e]))}),[]),v=l(null),b=l(null),f=l(null),h=l(null),m=r.useRef(null),p=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(a),[y,x]=i({items:p,menuItems:[]}),w=y.items.map((e=>{var r;return null!==(r=p.find((r=>r.key===e.key)))&&void 0!==r?r:e})),C=y.menuItems.map((e=>{var r;return null!==(r=p.find((r=>r.key===e.key)))&&void 0!==r?r:e})),k=o((e=>{x(e)}),[]);Zt((e=>{var t,o;const a=e[0].contentRect.width,n=null!==(t=null===(o=f.current)||void 0===o?void 0:o.getBoundingClientRect().width)&&void 0!==t?t:0,l=C.length>0;0!==a&&((e,t,o,a,n,l)=>{0===a.length&&n({items:o,menuItems:[]});const i=PC(a,e),c=PC(a,e,t||86),s=[],d=[];if(o.length>=i){const e=1==o.length-c?c-1:c;for(const[t,n]of o.entries())if(t<e)s.push(n);else if("divider"===a[t].text){if(t===e-1||t===e)continue;{const e=r.createElement(cu.Divider,{key:t});d.push(e)}}else d.push(n);n({items:s,menuItems:d})}else i>o.length&&l&&n({items:o,menuItems:[]})})(a,n,p,d,k,l)}),v);const[E,B]=i(!1),T=r.useCallback((()=>{B(!1)}),[B]),N=r.useCallback((()=>{var e;null===(e=h.current)||void 0===e||e.focus()}),[]);return ut((e=>{E&&(e.preventDefault(),T(),N())}),[E]),it({onClickOutside:T,containerRef:m,ignoreClickRefs:[h]}),Uc({containerRef:b,bindKeys:Ot.ArrowHorizontal|Ot.HomeAndEnd,focusOutBehavior:"wrap"}),r.createElement(zC.Provider,{value:{size:t,setChildrenWidth:u}},r.createElement("div",{ref:v,className:Gr(s,OC),"data-flush":c},r.createElement("div",{ref:b,role:"toolbar",className:LC},w,C.length>0&&r.createElement(Tu,null,r.createElement(Tu.Anchor,null,r.createElement(Yl,{variant:"invisible","aria-label":`More ${n} items`,icon:Fc})),r.createElement(Tu.Overlay,null,r.createElement(cu,null,C.map(((e,t)=>{if(e.type===cu.Divider)return r.createElement(cu.Divider,{key:t});{const{children:t,onClick:o,icon:a,"aria-label":n}=e.props;return r.createElement(cu.Item,{key:t,onClick:e=>{T(),N(),"function"==typeof o&&o(e)}},a?r.createElement(cu.LeadingVisual,null,r.createElement(a,null)):null,n)}}))))))))};VC.displayName="ActionBar";const DC=u(((e,t)=>{const o=l(null),a=null!=t?t:o,{size:n,setChildrenWidth:i}=r.useContext(zC);return $t((()=>{const r=e["aria-label"]?e["aria-label"]:"",t=a.current.getBoundingClientRect();i({text:r,width:t.width})}),[a,i]),r.createElement(Yl,RC({ref:a,size:n},e,{variant:"invisible"}))})),HC=()=>{const e=l(null),{setChildrenWidth:t}=r.useContext(zC);return $t((()=>{const r=e.current.getBoundingClientRect();t({text:"divider",width:r.width})}),[e,t]),r.createElement("div",{ref:e,"data-component":"ActionBar.VerticalDivider","aria-hidden":"true",className:jC})};HC.displayName="VerticalDivider";const FC=Object.assign(VC,{IconButton:DC,Divider:HC});var WC="prc_PageHeader_sT1Hp",$C="prc_ContextArea_6ykSJ",ZC="prc_ParentLink_BvDS0",KC="prc_ContextBar_XQ8Q0",GC="prc_ContextAreaActions_RTJRk",qC="prc_TitleArea_jxJZy",UC="prc_LeadingAction_88LQ0",YC="prc_Breadcrumbs_3c6ig",XC="prc_LeadingVisual_7zjCx",QC="prc_Title_LKOsd",JC="prc_TrailingVisual_7Ft0D",ek="prc_TrailingAction_QOaow",rk="prc_Actions_ygtmj",tk="prc_Description_kFg8r",ok="prc_Navigation_9Uvch";function ak(){return ak=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ak.apply(null,arguments)}const nk=1,lk=2,ik=2,ck=2,sk=2,dk=2,gk=3,uk=4,vk=0,bk=1,fk=2,hk=0,mk=1,pk=2,yk={narrow:!1,regular:!0,wide:!0},xk={narrow:!0,regular:!1,wide:!1},wk="primer_react_css_modules_team",Ck=r.forwardRef((({children:e,className:t,sx:o={},as:n="div","aria-label":l,role:i},c)=>{const s=bo(wk),d={display:"grid",gridTemplateColumns:"auto auto auto auto 1fr",gridTemplateAreas:"\n 'context-area context-area context-area context-area context-area'\n 'leading-action breadcrumbs title-area trailing-action actions'\n 'description description description description description'\n 'navigation navigation navigation navigation navigation'\n ",'&:has([data-component="TitleArea"][data-size-variant="large"])':{fontSize:"var(--custom-font-size, var(--text-title-size-large, 2rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-large, 1.5))"},'&:has([data-component="TitleArea"][data-size-variant="medium"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-semibold, 600))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'&:has([data-component="TitleArea"][data-size-variant="subtitle"])':{fontSize:"var(--custom-font-size, var(--text-title-size-medium, 1.25rem))",lineHeight:"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))",fontWeight:"var(--custom-font-weight, var(--base-text-weight-normal, 400))","--title-line-height":"var(--custom-line-height, var(--text-title-lineHeight-medium, 1.6))"},'[data-component="PH_LeadingAction"], [data-component="PH_TrailingAction"],[data-component="PH_Actions"], [data-component="PH_LeadingVisual"], [data-component="PH_TrailingVisual"]':{height:"calc(var(--title-line-height) * 1em)"}},g=ct(c);return a((function(){}),[e,g]),r.createElement(ho,{ref:g,as:n,className:Gr(s&&WC,t),sx:s?o:tt(d,o),"aria-label":l,role:i},e)})),kk=({children:e,className:t,hidden:o=yk,sx:a={}})=>{const n=bo(wk),l={gridRow:nk,gridArea:"context-area",display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:"0.5rem",gap:"0.5rem",...Tv(o,"display",(e=>e?"none":"flex")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"};return r.createElement(ho,ak({className:Gr(n&&$C,t),sx:n?a:tt(l,a)},zk(n,o)),e)};kk.displayName="ContextArea";const Ek=r.forwardRef((({children:e,className:t,sx:o={},href:a,"aria-label":n,as:l="a",hidden:i=yk},c)=>{const s=bo(wk);return r.createElement(r.Fragment,null,r.createElement(au,ak({ref:c,as:l,"aria-label":n,muted:!0,className:Gr(s&&ZC,t),sx:s?o:tt({display:"flex",alignItems:"center",order:hk,gap:"0.5rem",...Tv(i,"display",(e=>e?"none":"flex"))},o)},zk(s,i),{href:a}),r.createElement(Nc,null),r.createElement(ho,null,e)))}));Ek.displayName="ParentLink";const Bk=({children:e,className:t,sx:o={},hidden:a=yk})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&KC,t),sx:n?o:tt({display:"flex",order:mk,...Tv(a,"display",(e=>e?"none":"flex"))},o)},zk(n,a)),e)};Bk.displayName="ContextBar";const Tk=({children:e,className:t,sx:o={},hidden:a=yk})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&GC,t)},zk(n,a),{sx:n?o:tt({display:"flex",flexDirection:"row",order:pk,alignItems:"center",gap:"0.5rem",flexGrow:"1",justifyContent:"right",...Tv(a,"display",(e=>e?"none":"flex"))},o)},zk(n,a)),e)};Tk.displayName="ContextAreaActions";const Nk=r.forwardRef((({children:e,className:t,sx:o={},hidden:a=!1,variant:n="medium"},l)=>{const i=bo(wk),c=ct(l),s=oi(n,"medium");return r.createElement(ho,ak({className:Gr(i&&qC,t),ref:c,"data-component":"TitleArea","data-size-variant":s,sx:i?o:tt({gridRow:ck,gridArea:"title-area",display:"flex",gap:"0.5rem",...Tv(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"flex-start"},o)},zk(i,a)),e)}));Nk.displayName="TitleArea";const Sk=({children:e,className:t,sx:o={},hidden:a=xk})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&UC,t),"data-component":"PH_LeadingAction",sx:n?o:tt({gridRow:lk,gridArea:"leading-action",paddingRight:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Sk.displayName="LeadingAction";const _k=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&YC,t),"data-component":"PH_Breadcrumbs",sx:n?o:tt({gridRow:ik,gridArea:"breadcrumbs",paddingRight:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},o)},zk(n,a)),e)};_k.displayName="Breadcrumbs";const Ik=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&XC,t),"data-component":"PH_LeadingVisual",sx:n?o:tt({display:"flex",order:vk,...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Ik.displayName="LeadingVisual";const Ak=({children:e,className:t,sx:o={},hidden:a=!1,as:n="h2"})=>{const l=bo(wk),i={},{fontSize:c,lineHeight:s,fontWeight:d}=o;return c&&(i["--custom-font-size"]=c),s&&(i["--custom-line-height"]=s),d&&(i["--custom-font-weight"]=d),r.createElement(Ud,ak({className:Gr(l&&QC,t),"data-component":"PH_Title","data-hidden":a,as:n,style:i,sx:l?o:tt({display:"flex",order:bk,...Tv(a,"display",(e=>e?"none":"block")),fontSize:"inherit",fontWeight:"inherit"},o)},zk(l,a)),e)};Ak.displayName="Title";const Mk=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&JC,t),"data-component":"PH_TrailingVisual",sx:n?o:tt({display:"flex",order:fk,...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Mk.displayName="TrailingVisual";const Lk=({children:e,className:t,sx:o={},hidden:a=xk})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&ek,t),"data-component":"PH_TrailingAction",sx:n?o:tt({gridRow:sk,gridArea:"trailing-action",paddingLeft:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),alignItems:"center"},o),style:l},zk(n,a)),e)};Lk.displayName="TrailingAction";const Ok=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk),l={},{height:i}=o;return i&&(l["--custom-height"]=i),r.createElement(ho,ak({className:Gr(n&&rk,t),"data-component":"PH_Actions",sx:n?o:tt({gridRow:dk,gridArea:"actions",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),flexDirection:"row",paddingLeft:"0.5rem",gap:"0.5rem",minWidth:"max-content",justifyContent:"right",alignItems:"center"},o),style:l},zk(n,a)),e)};Ok.displayName="Actions";const jk=({children:e,className:t,sx:o={},hidden:a=!1})=>{const n=bo(wk);return r.createElement(ho,ak({className:Gr(n&&tk,t),sx:n?o:tt({gridRow:gk,gridArea:"description",display:"flex",...Tv(a,"display",(e=>e?"none":"flex")),flexDirection:"row",alignItems:"center",paddingTop:"0.5rem",gap:"0.5rem",fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},o)},zk(n,a)),e)};jk.displayName="Description";const Rk=({children:e,className:t,sx:o={},hidden:a=!1,as:n,"aria-label":l,"aria-labelledby":i})=>{const c=bo(wk);return r.createElement(ho,ak({as:n,"aria-label":"nav"===n?l:void 0,"aria-labelledby":"nav"===n?i:void 0,className:Gr(c&&ok,t),sx:c?o:tt({gridRow:uk,gridArea:"navigation",paddingTop:"0.5rem",display:"flex",...Tv(a,"display",(e=>e?"none":"block")),fontWeight:"initial",lineHeight:"var(--text-body-lineHeight-medium, 1.4285)",fontSize:"var(--text-body-size-medium, 0.875rem)"},o)},zk(c,a)),e)};function zk(e,r){if(!e)return{};if(ti(r)){const e=r,t="narrow"in e?{"data-hidden-narrow":e.narrow||void 0}:{},o="regular"in e?{"data-hidden-regular":e.regular||void 0}:{},a="wide"in e?{"data-hidden-wide":e.wide||void 0}:{};return Ev(e)?{"data-hidden-all":e.narrow||void 0}:Bv(e)?{...t,...o}:{...t,...o,...a}}return{"data-hidden-all":r||void 0}}Rk.displayName="Navigation";const Pk=Object.assign(Ck,{ContextArea:kk,ParentLink:Ek,ContextBar:Bk,TitleArea:Nk,ContextAreaActions:Tk,LeadingAction:Sk,Breadcrumbs:_k,LeadingVisual:Ik,Title:Ak,TrailingVisual:Mk,TrailingAction:Lk,Actions:Ok,Description:jk,Navigation:Rk});Pk.displayName="PageHeader";export{FC as ActionBar,cu as ActionList,Tu as ActionMenu,pu as AnchoredOverlay,bv as Autocomplete,pv as Avatar,Dv as AvatarPair,eb as AvatarStack,Nw as AvatarToken,Eo as BaseStyles,ho as Box,lb as BranchName,Cb as Breadcrumb,wb as Breadcrumbs,On as Button,Mn as ButtonBase,Bb as ButtonGroup,Mb as Caret,Fb as Checkbox,gm as CheckboxGroup,mm as CircleBadge,Ob as CircleOcticon,Ks as ConfirmationDialog,$o as CounterLabel,Cm as Details,Ls as Dialog,Tm as Flash,cm as FormControl,Pm as Header,Ud as Heading,Yl as IconButton,xw as IssueLabelToken,Hm as Label,Gm as LabelGroup,au as Link,Ql as LinkButton,dp as NavList,hu as Overlay,Pk as PageHeader,nc as PageLayout,xp as Pagination,Ep as PointerBox,Op as Popover,es as Portal,Zp as ProgressBar,Zd as Radio,Hd as RadioGroup,Sy as RelativeTime,Uy as SegmentedControl,Jb as Select,eh as SelectPanel,nx as SideNav,Ho as Spinner,uc as SplitPageLayout,Cd as Stack,ux as StateLabel,Tx as SubNav,kl as Text,Ju as TextInput,Lh as TextInputWithTokens,Ph as Textarea,lo as ThemeProvider,ew as Timeline,Rx as ToggleSwitch,Nh as Token,Gl as Tooltip,aC as TreeView,Vg as Truncate,MC as UnderlineNav,Lo as VisuallyHidden,Js as createComponent,tt as merge,Jc as registerPortalRoot,fo as sx,A as theme,Wr as themeGet,co as useColorSchemeVar,qs as useConfirm,vc as useDetails,hc as useFocusTrap,Uc as useFocusZone,Pb as useFormControlForwardedProps,$t as useIsomorphicLayoutEffect,ut as useOnEscapePress,it as useOnOutsideClick,xt as useOpenAndCloseFocus,Gt as useOverlay,ct as useProvidedRefOrCreate,eo as useRefObjectAsForwardedRef,Zt as useResizeObserver,oi as useResponsiveValue,zl as useSafeTimeout,io as useTheme};
13
13
  //# sourceMappingURL=browser.esm.js.map