@primer/react 36.3.0 → 36.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import*as e from"react";import t,{useImperativeHandle as r,forwardRef as n,useMe
|
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var xe=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))he.call(r,i)&&(a[i]=r[i]);if(me){n=me(r);for(var l=0;l<n.length;l++)ve.call(r,n[l])&&(a[n[l]]=r[n[l]])}}return a},ye=E(xe),we=function(e,t){var r=ye({},e,t);for(var n in e){var a;e[n]&&"object"==typeof t[n]&&ye(r,((a={})[n]=ye(e[n],t[n]),a))}return r},Be={breakpoints:[40,52,64].map((function(e){return e+"em"}))},ke=function(e){return"@media screen and (min-width: "+e+")"},Ee=function(e,t){return Te(t,e,e)},Te=function(e,t,r,n,a){for(t=t&&t.split?t.split("."):[t],n=0;n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},Ce=function e(t){var r={},n=function(e){var n,a,o={},i=!1,l=e.theme&&e.theme.disableStyledSystemCache;for(var d in e)if(t[d]){var s=t[d],c=e[d],f=Te(e.theme,s.scale,s.defaults);if("object"!=typeof c)ye(o,s(c,f,e));else{if(r.breakpoints=!l&&r.breakpoints||Te(e.theme,"breakpoints",Be.breakpoints),Array.isArray(c)){r.media=!l&&r.media||[null].concat(r.breakpoints.map(ke)),o=we(o,Se(r.media,s,f,c,e));continue}null!==c&&(o=we(o,Ie(r.breakpoints,s,f,c,e)),i=!0)}}return i&&(n=o,a={},Object.keys(n).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){a[e]=n[e]})),o=a),o};n.config=t,n.propNames=Object.keys(t),n.cache=r;var a=Object.keys(t).filter((function(e){return"config"!==e}));return a.length>1&&a.forEach((function(r){var a;n[r]=e(((a={})[r]=t[r],a))})),n},Se=function(e,t,r,n,a){var o={};return n.slice(0,e.length).forEach((function(n,i){var l,d=e[i],s=t(n,r,a);d?ye(o,((l={})[d]=ye({},o[d],s),l)):ye(o,s)})),o},Ie=function(e,t,r,n,a){var o={};for(var i in n){var l=e[i],d=t(n[i],r,a);if(l){var s,c=ke(l);ye(o,((s={})[c]=ye({},o[c],d),s))}else ye(o,d)}return o},Oe=function(e){var t=e.properties,r=e.property,n=e.scale,a=e.transform,o=void 0===a?Ee:a,i=e.defaultScale;t=t||[r];var l=function(e,r,n){var a={},i=o(e,r,n);if(null!==i)return t.forEach((function(e){a[e]=i})),a};return l.scale=n,l.defaults=i,l},Ne=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(r){var n=e[r];t[r]=!0!==n?"function"!=typeof n?Oe(n):n:Oe({property:r,scale:r})})),Ce(t)},Ae=function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){t&&t.config&&ye(e,t.config)})),Ce(e)},Me={width:{property:"width",scale:"sizes",transform:function(e,t){return Te(t,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},Le=Ne(Me),je={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};je.bg=je.backgroundColor;var Re=Ne(je),De=Ne({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),ze=Ne({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),_e={space:[0,4,8,16,32,64,128,256,512]},Pe=Ne({gridGap:{property:"gridGap",scale:"space",defaultScale:_e.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:_e.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:_e.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),He={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};He.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},He.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},He.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},He.borderBottomColor={property:"borderBottomColor",scale:"colors"},He.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},He.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},He.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},He.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},He.borderLeftColor={property:"borderLeftColor",scale:"colors"},He.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},He.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},He.borderRightColor={property:"borderRightColor",scale:"colors"},He.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var Fe=Ne(He),Ve={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Ve.bgImage=Ve.backgroundImage,Ve.bgSize=Ve.backgroundSize,Ve.bgPosition=Ve.backgroundPosition,Ve.bgRepeat=Ve.backgroundRepeat;var We=Ne(Ve),$e={space:[0,4,8,16,32,64,128,256,512]},Ze=Ne({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:$e.space},right:{property:"right",scale:"space",defaultScale:$e.space},bottom:{property:"bottom",scale:"space",defaultScale:$e.space},left:{property:"left",scale:"space",defaultScale:$e.space}}),Ge={space:[0,4,8,16,32,64,128,256,512]},Ue=function(e){return"number"==typeof e&&!isNaN(e)},qe=function(e,t){if(!Ue(e))return Te(t,e,e);var r=e<0,n=Math.abs(e),a=Te(t,n,n);return Ue(a)?a*(r?-1:1):r?"-"+a:a},Ke={};Ke.margin={margin:{property:"margin",scale:"space",transform:qe,defaultScale:Ge.space},marginTop:{property:"marginTop",scale:"space",transform:qe,defaultScale:Ge.space},marginRight:{property:"marginRight",scale:"space",transform:qe,defaultScale:Ge.space},marginBottom:{property:"marginBottom",scale:"space",transform:qe,defaultScale:Ge.space},marginLeft:{property:"marginLeft",scale:"space",transform:qe,defaultScale:Ge.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:qe,defaultScale:Ge.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:qe,defaultScale:Ge.space}},Ke.margin.m=Ke.margin.margin,Ke.margin.mt=Ke.margin.marginTop,Ke.margin.mr=Ke.margin.marginRight,Ke.margin.mb=Ke.margin.marginBottom,Ke.margin.ml=Ke.margin.marginLeft,Ke.margin.mx=Ke.margin.marginX,Ke.margin.my=Ke.margin.marginY,Ke.padding={padding:{property:"padding",scale:"space",defaultScale:Ge.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:Ge.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:Ge.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:Ge.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:Ge.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:Ge.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:Ge.space}},Ke.padding.p=Ke.padding.padding,Ke.padding.pt=Ke.padding.paddingTop,Ke.padding.pr=Ke.padding.paddingRight,Ke.padding.pb=Ke.padding.paddingBottom,Ke.padding.pl=Ke.padding.paddingLeft,Ke.padding.px=Ke.padding.paddingX,Ke.padding.py=Ke.padding.paddingY;var Ye=Ne(Ke.margin),Xe=Ne(Ke.padding),Je=Ae(Ye,Xe),Qe=Ne({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(this,arguments)}var tt=function(e,t,r,n,a){for(t=t&&t.split?t.split("."):[t],n=0;n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},rt=[40,52,64].map((function(e){return e+"em"})),nt={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},at={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},ot={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},it={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},lt=function(e,t){if("number"!=typeof t||t>=0)return tt(e,t,t);var r=Math.abs(t),n=tt(e,r,r);return"string"==typeof n?"-"+n:-1*n},dt=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var r;return et({},e,((r={})[t]=lt,r))}),{}),st=function e(t){return function(r){void 0===r&&(r={});var n=et({},nt,{},r.theme||r),a={},o=function(e){return function(t){var r={},n=tt(t,"breakpoints",rt),a=[null].concat(n.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var o in e){var i="function"==typeof e[o]?e[o](t):e[o];if(null!=i)if(Array.isArray(i))for(var l=0;l<i.slice(0,a.length).length;l++){var d=a[l];d?(r[d]=r[d]||{},null!=i[l]&&(r[d][o]=i[l])):r[o]=i[l]}else r[o]=i}return r}}("function"==typeof t?t(n):t)(n);for(var i in o){var l=o[i],d="function"==typeof l?l(n):l;if("variant"!==i)if(d&&"object"==typeof d)a[i]=e(d)(n);else{var s=tt(at,i,i),c=tt(it,s),f=tt(n,c,tt(n,s,{})),u=tt(dt,s,tt)(f,d,d);if(ot[s])for(var g=ot[s],p=0;p<g.length;p++)a[g[p]]=u;else a[s]=u}else a=et({},a,{},e(tt(n,d))(n))}return a}},ct=function(e){var t,r,n=e.scale,a=e.prop,o=void 0===a?"variant":a,i=e.variants,l=void 0===i?{}:i,d=e.key;r=Object.keys(l).length?function(e,t,r){return st(Te(t,e,null))(r.theme)}:function(e,t){return Te(t,e,null)},r.scale=n||d,r.defaults=l;var s=((t={})[o]=r,t);return Ce(s)},ft=ct({key:"buttons"}),ut=ct({key:"textStyles",prop:"textStyle"}),gt=ct({key:"colorStyles",prop:"colors"}),pt=Le.width,bt=Le.height,mt=Le.minWidth,ht=Le.minHeight,vt=Le.maxWidth,xt=Le.maxHeight,yt=Le.size,wt=Le.verticalAlign,Bt=Le.display,kt=Le.overflow,Et=Le.overflowX,Tt=Le.overflowY,Ct=Re.opacity,St=De.fontSize,It=De.fontFamily,Ot=De.fontWeight,Nt=De.lineHeight,At=De.textAlign,Mt=De.fontStyle,Lt=De.letterSpacing,jt=ze.alignItems,Rt=ze.alignContent,Dt=ze.justifyItems,zt=ze.justifyContent,_t=ze.flexWrap,Pt=ze.flexDirection,Ht=ze.flex,Ft=ze.flexGrow,Vt=ze.flexShrink,Wt=ze.flexBasis,$t=ze.justifySelf,Zt=ze.alignSelf,Gt=ze.order,Ut=Pe.gridGap,qt=Pe.gridColumnGap,Kt=Pe.gridRowGap,Yt=Pe.gridColumn,Xt=Pe.gridRow,Jt=Pe.gridAutoFlow,Qt=Pe.gridAutoColumns,er=Pe.gridAutoRows,tr=Pe.gridTemplateColumns,rr=Pe.gridTemplateRows,nr=Pe.gridTemplateAreas,ar=Pe.gridArea,or=Fe.borderWidth,ir=Fe.borderStyle,lr=Fe.borderColor,dr=Fe.borderTop,sr=Fe.borderRight,cr=Fe.borderBottom,fr=Fe.borderLeft,ur=Fe.borderRadius,gr=We.backgroundImage,pr=We.backgroundSize,br=We.backgroundPosition,mr=We.backgroundRepeat,hr=Ze.zIndex,vr=Ze.top,xr=Ze.right,yr=Ze.bottom,wr=Ze.left,Br=function(e){var t=e.prop,r=e.cssProperty,n=e.alias,a=e.key,o=e.transformValue,i=e.scale,l=e.properties,d={};return d[t]=Oe({properties:l,property:r||t,scale:a,defaultScale:i,transform:o}),n&&(d[n]=d[t]),Ce(d)},kr=Object.freeze({__proto__:null,alignContent:Rt,alignItems:jt,alignSelf:Zt,background:We,backgroundImage:gr,backgroundPosition:br,backgroundRepeat:mr,backgroundSize:pr,border:Fe,borderBottom:cr,borderColor:lr,borderLeft:fr,borderRadius:ur,borderRight:sr,borderStyle:ir,borderTop:dr,borderWidth:or,borders:Fe,bottom:yr,boxShadow:Qe,buttonStyle:ft,color:Re,colorStyle:gt,compose:Ae,createParser:Ce,createStyleFunction:Oe,display:Bt,flex:Ht,flexBasis:Wt,flexDirection:Pt,flexGrow:Ft,flexShrink:Vt,flexWrap:_t,flexbox:ze,fontFamily:It,fontSize:St,fontStyle:Mt,fontWeight:Ot,get:Te,grid:Pe,gridArea:ar,gridAutoColumns:Qt,gridAutoFlow:Jt,gridAutoRows:er,gridColumn:Yt,gridColumnGap:qt,gridGap:Ut,gridRow:Xt,gridRowGap:Kt,gridTemplateAreas:nr,gridTemplateColumns:tr,gridTemplateRows:rr,height:bt,justifyContent:zt,justifyItems:Dt,justifySelf:$t,layout:Le,left:wr,letterSpacing:Lt,lineHeight:Nt,margin:Ye,maxHeight:xt,maxWidth:vt,minHeight:ht,minWidth:mt,opacity:Ct,order:Gt,overflow:kt,overflowX:Et,overflowY:Tt,padding:Xe,position:Ze,right:xr,shadow:Qe,size:yt,space:Je,style:Br,system:Ne,textAlign:At,textShadow:Qe,textStyle:ut,top:vr,typography:De,variant:ct,verticalAlign:wt,width:pt,zIndex:hr});const{get:Er,compose:Tr,system:Cr}=kr,Sr=e=>{return t=e,void 0===(r=Er(be,e))&&(r=null),function(e){return Te(e.theme,t,r)};var t,r},Ir=Tr(Je,Re,Bt),Or=Tr(De,Cr({whiteSpace:{property:"whiteSpace"}}));Tr(Fe,Qe);var Nr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ar}(e)}(e)};var Ar="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Mr(e,t){return!1!==t.clone&&t.isMergeableObject(e)?zr((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Lr(e,t,r){return e.concat(t).map((function(e){return Mr(e,r)}))}function jr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Rr(e,t){try{return t in e}catch(e){return!1}}function Dr(e,t,r){var n={};return r.isMergeableObject(e)&&jr(e).forEach((function(t){n[t]=Mr(e[t],r)})),jr(t).forEach((function(a){(function(e,t){return Rr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Rr(e,a)&&r.isMergeableObject(t[a])?n[a]=function(e,t){if(!t.customMerge)return zr;var r=t.customMerge(e);return"function"==typeof r?r:zr}(a,r)(e[a],t[a],r):n[a]=Mr(t[a],r))})),n}function zr(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Lr,r.isMergeableObject=r.isMergeableObject||Nr,r.cloneUnlessOtherwiseSpecified=Mr;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Dr(e,t,r):Mr(t,r)}zr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return zr(e,r,t)}),{})};var _r=E(zr);const Pr="light",Hr="dark",Fr=t.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),Vr=({children:e,...r})=>{var n,a,o,i,l,d,s,c;const{theme:f,colorMode:u,dayScheme:g,nightScheme:p}=Wr(),b=null!==(n=null!==(a=r.theme)&&void 0!==a?a:f)&&void 0!==n?n:be,{resolvedServerColorMode:h}=(()=>{try{var e;const t=null===(e=document.getElementById("__PRIMER_DATA__"))||void 0===e?void 0:e.textContent;if(t)return JSON.parse(t)}catch(e){}return{}})(),v=t.useRef(h),[x,y]=t.useState(null!==(o=null!==(i=r.colorMode)&&void 0!==i?i:u)&&void 0!==o?o:"day"),[B,k]=t.useState(null!==(l=null!==(d=r.dayScheme)&&void 0!==d?d:g)&&void 0!==l?l:Pr),[E,T]=t.useState(null!==(s=null!==(c=r.nightScheme)&&void 0!==c?c:p)&&void 0!==s?s:Hr),C=function(){const[e,r]=t.useState(Zr);return t.useEffect((()=>{var e,t;const n=null===(e=window)||void 0===e||null===(t=e.matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)");function a(e){const t=e.matches;r(t?"night":"day")}if(n){if(void 0!==n.addEventListener)return n.addEventListener("change",a),function(){n.removeEventListener("change",a)};if(void 0!==n.addListener)return n.addListener(a),function(){n.removeListener(a)}}}),[]),e}(),S=v.current||Gr(x,C),I=function(e,t,r){switch(e){case"day":case"light":return t;case"dark":case"night":return r}}(S,B,E),{resolvedTheme:O,resolvedColorScheme:N}=t.useMemo((()=>function(e,t){if(!e.colorSchemes)return{resolvedTheme:e,resolvedColorScheme:void 0};if(!e.colorSchemes[t]){console.error(`\`${t}\` scheme not defined in \`theme.colorSchemes\``);const r=Object.keys(e.colorSchemes)[0];return{resolvedTheme:_r(e,e.colorSchemes[r]),resolvedColorScheme:r}}return{resolvedTheme:_r(e,e.colorSchemes[t]),resolvedColorScheme:t}}(b,I)),[b,I]);return t.useEffect((function(){const e=Gr(x,C);v.current&&(v.current!==e&&window.setTimeout((()=>{w.flushSync((()=>{y(e)})),y(x)})),v.current=null)}),[x,C]),t.useEffect((()=>{var e,t;y(null!==(e=null!==(t=r.colorMode)&&void 0!==t?t:u)&&void 0!==e?e:"day")}),[r.colorMode,u]),t.useEffect((()=>{var e,t;k(null!==(e=null!==(t=r.dayScheme)&&void 0!==t?t:g)&&void 0!==e?e:Pr)}),[r.dayScheme,g]),t.useEffect((()=>{var e,t;T(null!==(e=null!==(t=r.nightScheme)&&void 0!==t?t:p)&&void 0!==e?e:Hr)}),[r.nightScheme,p]),t.createElement(Fr.Provider,{value:{theme:O,colorScheme:I,colorMode:x,resolvedColorMode:S,resolvedColorScheme:N,dayScheme:B,nightScheme:E,setColorMode:y,setDayScheme:k,setNightScheme:T}},t.createElement(m,{theme:O},e,r.preventSSRMismatch?t.createElement("script",{type:"application/json",id:"__PRIMER_DATA__",dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:S})}}):null))};function Wr(){return t.useContext(Fr)}function $r(e,t){var r;const{colorScheme:n=""}=Wr();return null!==(r=e[n])&&void 0!==r?r:t}function Zr(){var e,t,r;return"undefined"!=typeof window&&null!==(e=(t=window).matchMedia)&&void 0!==e&&null!==(r=e.call(t,"(prefers-color-scheme: dark)"))&&void 0!==r&&r.matches?"night":"day"}function Gr(e,t){return"auto"===e?t:e}Vr.displayName="ThemeProvider";var Ur=Vr;function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}!function(){function e(e){var t=!0,r=!1,n=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function i(e){var t=e.type,r=e.tagName;return!("INPUT"!==r||!a[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}function l(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function d(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function s(r){r.metaKey||r.altKey||r.ctrlKey||(o(e.activeElement)&&l(e.activeElement),t=!0)}function c(e){t=!1}function f(e){o(e.target)&&(t||i(e.target))&&l(e.target)}function u(e){o(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(n),n=window.setTimeout((function(){r=!1}),100),d(e.target))}function g(e){"hidden"===document.visibilityState&&(r&&(t=!0),p())}function p(){document.addEventListener("mousemove",m),document.addEventListener("mousedown",m),document.addEventListener("mouseup",m),document.addEventListener("pointermove",m),document.addEventListener("pointerdown",m),document.addEventListener("pointerup",m),document.addEventListener("touchmove",m),document.addEventListener("touchstart",m),document.addEventListener("touchend",m)}function b(){document.removeEventListener("mousemove",m),document.removeEventListener("mousedown",m),document.removeEventListener("mouseup",m),document.removeEventListener("pointermove",m),document.removeEventListener("pointerdown",m),document.removeEventListener("pointerup",m),document.removeEventListener("touchmove",m),document.removeEventListener("touchstart",m),document.removeEventListener("touchend",m)}function m(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,b())}document.addEventListener("keydown",s,!0),document.addEventListener("mousedown",c,!0),document.addEventListener("pointerdown",c,!0),document.addEventListener("touchstart",c,!0),document.addEventListener("visibilitychange",g,!0),p(),e.addEventListener("focus",f,!0),e.addEventListener("blur",u,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}();const Kr=h(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}input{color-scheme:",';}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}'],(e=>e.colorScheme)),Yr=b.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Or,Ir);function Xr(e){const{children:r,color:n="fg.default",fontFamily:a="normal",lineHeight:o="default",...i}=e,{colorScheme:l,dayScheme:d,nightScheme:s}=Wr();return t.createElement(Yr,qr({},i,{color:n,fontFamily:a,lineHeight:o,"data-portal-root":!0,"data-color-mode":null!=l&&l.includes("dark")?"dark":"light","data-light-theme":d,"data-dark-theme":s}),t.createElement(Kr,{colorScheme:null!=l&&l.includes("dark")?"dark":"light"}),r)}Xr.displayName="BaseStyles";var Jr=e=>st(e.sx);var Qr=b.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(Je,Re,De,Le,ze,Pe,We,Fe,Ze,Qe,Jr);const en=v(["box-shadow:none;outline:2px solid ",";"],Sr("colors.accent.fg"));var tn=e=>v(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],en,void 0===e?"2px":e,en,void 0===e?"2px":e);const rn=b.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],tn("-2px"),Jr),nn=(e="default",t)=>({default:{color:"btn.text",backgroundColor:"btn.bg",boxShadow:`${null==t?void 0:t.shadows.btn.shadow}, ${null==t?void 0:t.shadows.btn.insetShadow}`,"&:hover:not([disabled])":{backgroundColor:"btn.hoverBg",borderColor:`var(--button-default-borderColor-hover, ${null==t?void 0:t.colors.btn.hoverBorder})`},"&:active:not([disabled])":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==t?void 0:t.colors.btn.activeBorder})`},"&:disabled":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==t?void 0:t.colors.btn.activeBorder})`},'[data-component="leadingVisual"], [data-component="trailingVisual"], [data-component="trailingAction"]':{color:`var(--button-color, ${null==t?void 0:t.colors.fg.muted})`}},primary:{color:"btn.primary.text",backgroundColor:"btn.primary.bg",borderColor:"btn.primary.border",boxShadow:`${null==t?void 0:t.shadows.btn.primary.shadow}`,"&:hover:not([disabled])":{color:"btn.primary.hoverText",backgroundColor:"btn.primary.hoverBg"},"&:focus:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:focus-visible:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:active:not([disabled])":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.primary.selectedShadow}`},"&:disabled":{color:"btn.primary.disabledText",backgroundColor:"btn.primary.disabledBg","[data-component=ButtonCounter]":{color:"inherit"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.primary.counterBg",color:"btn.primary.text"},"&[aria-expanded=true]":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.primary.selectedShadow}`}},danger:{color:"btn.danger.text",backgroundColor:"btn.bg",boxShadow:`${null==t?void 0:t.shadows.btn.shadow}`,"&:hover:not([disabled])":{color:"btn.danger.hoverText",backgroundColor:"btn.danger.hoverBg",borderColor:"btn.danger.hoverBorder",boxShadow:`${null==t?void 0:t.shadows.btn.danger.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.danger.hoverCounterBg",color:"btn.danger.hoverCounterFg"}},"&:active:not([disabled])":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"},"&:disabled":{color:"btn.danger.disabledText",backgroundColor:"btn.danger.disabledBg",borderColor:"btn.danger.disabledBorder","[data-component=ButtonCounter]":{color:"btn.danger.disabledCounterFg",backgroundColor:"btn.danger.disabledCounterBg"}},"[data-component=ButtonCounter]":{color:"btn.danger.counterFg",backgroundColor:"btn.danger.counterBg"},"&[aria-expanded=true]":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"}},invisible:{color:"btn.text",backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none","&:hover:not([disabled])":{backgroundColor:"actionListItem.default.hoverBg"},"&:active:not([disabled])":{backgroundColor:"actionListItem.default.activeBg"},"&:disabled":{color:"primer.fg.disabled",'[data-component=ButtonCounter], [data-component="leadingVisual"], [data-component="trailingAction"]':{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"actionListItem.default.selectedBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"},'[data-component="trailingAction"]':{color:"fg.muted"},'[data-component="leadingVisual"]':{color:"fg.muted"},"&[data-no-visuals]":{color:"accent.fg"},'&:has([data-component="ButtonCounter"])':{color:"btn.text"},"&:disabled[data-no-visuals]":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}}},outline:{color:"btn.outline.text",boxShadow:`${null==t?void 0:t.shadows.btn.shadow}`,borderColor:`var(--button-default-borderColor-rest, ${null==t?void 0:t.colors.btn.border})`,backgroundColor:"btn.bg","&:hover:not([disabled])":{color:"btn.outline.hoverText",backgroundColor:"btn.outline.hoverBg",borderColor:`${null==t?void 0:t.colors.btn.outline.hoverBorder}`,boxShadow:`${null==t?void 0:t.shadows.btn.outline.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.hoverCounterBg",color:"btn.outline.hoverCounterFg"}},"&:active:not([disabled])":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.outline.selectedShadow}`,borderColor:`${null==t?void 0:t.colors.btn.outline.selectedBorder}`},"&:disabled":{color:"btn.outline.disabledText",backgroundColor:"btn.outline.disabledBg",borderColor:"btn.border","[data-component=ButtonCounter]":{backgroundColor:"btn.outline.disabledCounterBg",color:"btn.outline.disabledCounterFg"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.counterBg",color:"btn.outline.counterFg"},"&[aria-expanded=true]":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.outline.selectedShadow}`,borderColor:`var(--button-default-borderColor-active, ${null==t?void 0:t.colors.btn.outline.selectedBorder})`}}}[e]),an=e=>({borderRadius:"2",border:"1px solid",borderColor:`var(--button-default-borderColor-rest, ${null==e?void 0:e.colors.btn.border})`,fontFamily:"inherit",fontWeight:"semibold",fontSize:"1",cursor:"pointer",appearance:"none",userSelect:"none",textDecoration:"none",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px",padding:"0 12px",gap:"8px",minWidth:"max-content",transition:"80ms cubic-bezier(0.65, 0, 0.35, 1)",transitionProperty:"color, fill, background-color, border-color","&[href]":{display:"inline-flex","&:hover":{textDecoration:"none"}},"&:hover":{transitionDuration:"80ms"},"&:active":{transition:"none"},"&:disabled":{cursor:"not-allowed",boxShadow:"none"},"@media (forced-colors: active)":{"&:focus":{outline:"solid 1px transparent"}},"[data-component=ButtonCounter]":{fontSize:"0"},"&[data-component=IconButton]":{display:"inline-grid",padding:"unset",placeContent:"center",width:"32px",minWidth:"unset"},'&[data-size="small"]':{padding:"0 8px",height:"28px",gap:"4px",fontSize:"0",'[data-component="text"]':{lineHeight:"calc(20 / 12)"},"[data-component=ButtonCounter]":{fontSize:"0"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"4px"},"&[data-component=IconButton]":{width:"28px",padding:"unset"}},'&[data-size="large"]':{padding:"0 16px",height:"40px",gap:"8px",'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"},"&[data-component=IconButton]":{width:"40px",padding:"unset"}}}),on=e=>({...an(e),'&[data-block="block"]':{width:"100%"},'[data-component="leadingVisual"]':{gridArea:"leadingVisual"},'[data-component="text"]':{gridArea:"text",lineHeight:"calc(20/14)",whiteSpace:"nowrap"},'[data-component="trailingVisual"]':{gridArea:"trailingVisual"},'[data-component="trailingAction"]':{marginRight:"-4px"},'[data-component="buttonContent"]':{flex:"1 0 auto",display:"grid",gridTemplateAreas:'"leadingVisual text trailingVisual"',gridTemplateColumns:"min-content minmax(0, auto) min-content",alignItems:"center",alignContent:"center"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"}}),ln=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"});function dn(e,t){r(e,(()=>t.current))}const sn={};var cn=b.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?Jr:"\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n "));function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fn.apply(this,arguments)}const un=n((({scheme:e="secondary",sx:r=sn,children:n,...a},o)=>t.createElement(t.Fragment,null,t.createElement(Qr,fn({"aria-hidden":"true",sx:_r({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},r)},a,{as:"span",ref:o}),n),t.createElement(cn,null," (",n,")"))));un.displayName="CounterLabel";var gn=un;function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pn.apply(this,arguments)}const bn=n((({children:e,as:r="button",sx:n=sn,...o},i)=>{const{leadingVisual:l,trailingVisual:d,trailingAction:s,count:c,icon:f,variant:u="default",size:g="medium",alignContent:p="center",block:b=!1,...m}=o,h=t.useRef(null);dn(i,h);const{theme:v}=Wr(),x=a((()=>_r.all([on(v),nn(u,v)])),[v,u]),y=a((()=>_r(x,n)),[x,n]),w={display:"flex",pointerEvents:"none"};return t.createElement(rn,pn({as:r,sx:y},m,{ref:h,"data-block":b?"block":null,"data-size":"small"===g||"large"===g?g:void 0,"data-no-visuals":!(l||d||s)||void 0}),f?t.createElement(f,null):t.createElement(t.Fragment,null,t.createElement(Qr,{as:"span","data-component":"buttonContent",sx:ln(p)},l&&t.createElement(Qr,{as:"span","data-component":"leadingVisual",sx:{...w}},t.createElement(l,null)),e&&t.createElement("span",{"data-component":"text"},e),void 0===c||d?d?t.createElement(Qr,{as:"span","data-component":"trailingVisual",sx:{...w}},t.createElement(d,null)):null:t.createElement(Qr,{as:"span","data-component":"trailingVisual",sx:{...w}},t.createElement(gn,{"data-component":"ButtonCounter"},c))),s&&t.createElement(Qr,{as:"span","data-component":"trailingAction",sx:{...w}},t.createElement(s,null))))}));function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mn.apply(this,arguments)}const hn=n((({children:e,sx:r=sn,...n},a)=>{const{block:o,size:i,leadingVisual:l,trailingVisual:d,trailingAction:s}=n;let c=r;const f={};if(null!==r&&Object.keys(r).length>0){c=vn({block:o,size:i,leadingVisual:l,trailingVisual:d,trailingAction:s},r);const{color:e}=r;e&&(f["--button-color"]=e)}return t.createElement(bn,mn({ref:a,as:"button",sx:c,style:f,type:"button"},n),e)}));function vn(e,t){const r=e.size&&"medium"!==e.size?`[data-size="${e.size}"]`:"",n=e.block?'[data-block="block"]':"",a=e.leadingVisual||e.trailingVisual||e.trailingAction?"":"[data-no-visuals]",o={};return t?(o[`&${r}${n}${a}`]=t,o):o}function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xn.apply(this,arguments)}hn.displayName="Button";const yn=n((({sx:e=sn,icon:r,...n},a)=>{let o=e;const{size:i}=n;return null!==e&&Object.keys(e).length>0&&(o=vn({size:i},e)),t.createElement(bn,xn({icon:r,"data-component":"IconButton",sx:o,type:"button"},n,{ref:a}))}));function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wn.apply(this,arguments)}const Bn=n((({children:e,as:r="a",sx:n=sn,...a},o)=>t.createElement(bn,wn({as:r,ref:o,sx:n},a),e))),kn={prefix:String(Math.round(1e10*Math.random())),current:0},En=t.createContext(kn);function Tn(e){let r=o(En),n=In(r===kn),i=a((()=>({prefix:r===kn?"":`${r.prefix}-${n}`,current:0})),[r,n]);return t.createElement(En.Provider,{value:i},e.children)}let Cn=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Sn=new WeakMap;function In(e=!1){let r=o(En),n=i(null);if(null===n.current&&!e){var a,l;let e=null===(a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(l=a.ReactCurrentOwner)||void 0===l?void 0:l.current;if(e){let t=Sn.get(e);null==t?Sn.set(e,{id:r.current,state:e.memoizedState}):e.memoizedState!==t.state&&(r.current=t.id,Sn.delete(e))}n.current=++r.current}return n.current}function On(e){let t=o(En);t!==kn||Cn||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=In(!!e);return e||`react-aria${t.prefix}-${r}`}const Nn=e.useId;function An(e){return void 0!==Nn?e||Nn():On(e)}const Mn=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ln(e,r){const n=o(jn),[a,i]=t.useState((()=>void 0!==n[e]?n[e]:void 0!==r?r:!!Mn&&window.matchMedia(e).matches));return l((()=>{void 0!==n[e]&&i(n[e])}),[n,e]),l((()=>{if(void 0!==n[e])return;function t(e){i(e.matches)}const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",t):r.addListener(t),i(r.matches),()=>{r.addEventListener?r.removeEventListener("change",t):r.removeListener(t)}}),[n,e]),a}const jn=d({}),Rn={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function Dn(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function zn(e,t){const r=Ln(Rn.narrow,!1),n=Ln(Rn.regular,!1),a=Ln(Rn.wide,!1);if(Dn(e)){const o=e;return r&&"narrow"in o?o.narrow:a&&"wide"in o?o.wide:n&&"regular"in o?o.regular:t}return e}function _n(e,r){const n=(a=r,o=()=>{},Object.keys(a).reduce(((e,t)=>(e[t]=o(a[t]),e)),{}));var a,o;const i=[],l=Object.keys(r),d=Object.values(r);return t.Children.forEach(e,(e=>{if(!t.isValidElement(e))return void i.push(e);const r=d.findIndex((t=>{if(Array.isArray(t)){const[r,n]=t;return e.type===r&&n(e.props)}return e.type===t}));if(-1===r)return void i.push(e);const a=l[r];n[a]||(n[a]=e)})),[n,i]}var Pn=new Map,Hn=new WeakMap,Fn=0,Vn=void 0;function Wn(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>`${t}_${"root"===t?function(e){return e?(Hn.has(e)||(Fn+=1,Hn.set(e,Fn.toString())),Hn.get(e)):"0"}(e.root):e[t]}`)).toString()}function $n(e,t,r={},n=Vn){if(void 0===window.IntersectionObserver&&void 0!==n){const a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:o,elements:i}=function(e){let t=Wn(e),r=Pn.get(t);if(!r){const n=new Map;let a;const o=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&a.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}))}))}),e);a=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:n},Pn.set(t,r)}return r}(r);let l=i.get(e)||[];return i.has(e)||i.set(e,l),l.push(t),o.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(i.delete(e),o.unobserve(e)),0===i.size&&(o.disconnect(),Pn.delete(a))}}function Zn({threshold:t,delay:r,trackVisibility:n,rootMargin:a,root:o,triggerOnce:i,skip:l,initialInView:d,fallbackInView:s,onChange:c}={}){var f;const[u,g]=e.useState(null),p=e.useRef(),[b,m]=e.useState({inView:!!d,entry:void 0});p.current=c,e.useEffect((()=>{if(l||!u)return;let e;return e=$n(u,((t,r)=>{m({inView:t,entry:r}),p.current&&p.current(t,r),r.isIntersecting&&i&&e&&(e(),e=void 0)}),{root:o,rootMargin:a,threshold:t,trackVisibility:n,delay:r},s),()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,u,o,a,i,l,n,s,r]);const h=null==(f=b.entry)?void 0:f.target,v=e.useRef();u||!h||i||l||v.current===h||(v.current=h,m({inView:!!d,entry:void 0}));const x=[g,b.inView,b.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}var Gn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c:l;function Un(e){return e&&e!==document.body?function(e){const t=e.scrollHeight>e.clientHeight;return t&&!(-1!==window.getComputedStyle(e).overflowY.indexOf("hidden"))}(e)?e:Un(e.parentElement):null}const qn=!!Mn&&CSS.supports("-webkit-touch-callout","none"),Kn=!!Mn&&(CSS.supports("max-height","100dvh")&&qn);function Yn(e){return Kn?`${e}dvh`:`${e}vh`}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}const Jn=1,Qn=2,ea=3,ta=4,ra={none:0,condensed:3,normal:[3,null,null,4]},na=t.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),aa={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},oa=({containerWidth:e="xlarge",padding:r="normal",rowGap:n="normal",columnGap:a="normal",children:o,sx:l={},_slotsConfig:d})=>{const{rootRef:s,enableStickyPane:c,disableStickyPane:f,contentTopRef:u,contentBottomRef:g,stickyPaneHeight:p}=function(){const e=t.useRef(null),[r,n]=t.useState(Yn(100)),[a,o]=t.useState(0),[i,l,d]=Zn(),[s,c]=Zn(),f=t.useCallback((()=>{let t="";const r=Un(e.current),o=null==d?void 0:d.target.getBoundingClientRect(),i="number"==typeof a?`${a}px`:a;if(r){const e=r.getBoundingClientRect(),n=o?Math.max(o.top-e.top,0):0;t=`calc(${e.height}px - (max(${n}px, ${i})))`}else{const e=o?Math.max(o.top,0):0;t=`calc(${Yn(100)} - (max(${e}px, ${i})))`}n(t)}),[d,a]),[u,g]=t.useState(!1);return Gn((()=>{const t=Un(e.current);return u&&(l||c)&&(f(),t?t.addEventListener("scroll",f):window.addEventListener("scroll",f),window.addEventListener("resize",f)),()=>{t?t.removeEventListener("scroll",f):window.removeEventListener("scroll",f),window.removeEventListener("resize",f)}}),[u,l,c,f]),{rootRef:e,enableStickyPane:function(e){g(!0),o(e)},disableStickyPane:function(){g(!1)},contentTopRef:i,contentBottomRef:s,stickyPaneHeight:r}}(),b=i(null),[m,h]=_n(o,null!=d?d:{header:fa,footer:ya});return t.createElement(na.Provider,{value:{padding:r,rowGap:n,columnGap:a,enableStickyPane:c,disableStickyPane:f,contentTopRef:u,contentBottomRef:g,paneRef:b}},t.createElement(Qr,{ref:s,style:{"--sticky-pane-height":p},sx:_r({padding:ra[r]},l)},t.createElement(Qr,{sx:{maxWidth:aa[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},m.header,t.createElement(Qr,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},h),m.footer)))};oa.displayName="Root",oa.displayName="PageLayout";const ia={none:{display:"none"},line:{display:"block",height:1,backgroundColor:"border.default"},filled:{display:"block",height:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset 0 -1px 0 0 ${e.colors.border.default}, inset 0 1px 0 0 ${e.colors.border.default}`}};const la=({variant:e="none",sx:r={}})=>{const{padding:n}=t.useContext(na),a=zn(e,"none");return t.createElement(Qr,{sx:e=>{return _r({marginX:(t=ra[n],Array.isArray(t)?t.map((e=>null===e?null:-e)):null===t?null:-t),...ia[a],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},r);var t}})};la.displayName="HorizontalDivider";const da={none:{display:"none"},line:{display:"block",width:1,backgroundColor:"border.default"},filled:{display:"block",width:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset -1px 0 0 0 ${e.colors.border.default}, inset 1px 0 0 0 ${e.colors.border.default}`}},sa=h(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),ca=({variant:e="none",draggable:r=!1,onDragStart:n,onDrag:a,onDragEnd:o,onDoubleClick:i,sx:l={}})=>{const[d,s]=t.useState(!1),[c,f]=t.useState(!1),u=zn(e,"none"),g=t.useRef(a),p=t.useRef(o),{paneRef:b}=t.useContext(na),[m,h]=t.useState(0),[v,x]=t.useState(0),[y,w]=t.useState(0);return t.useEffect((()=>{if(null!==b.current){const e=getComputedStyle(b.current),t=e.getPropertyValue("--pane-max-width-diff"),r=e.getPropertyValue("--pane-min-width"),n=b.current.getBoundingClientRect().width,a=Number(t.split("px")[0]),o=Number(r.split("px")[0]),i=window.innerWidth,l=i>a?i-a:i;h(o),x(l),w(n||0)}}),[b,c,d]),t.useEffect((()=>{g.current=a}),[a]),t.useEffect((()=>{p.current=o}),[o]),t.useEffect((()=>{function e(e){var t;null===(t=g.current)||void 0===t||t.call(g,e.movementX,!1),e.preventDefault()}function t(e){var t;s(!1),null===(t=p.current)||void 0===t||t.call(p),e.preventDefault()}function r(e){var t;let r=0;if(("ArrowLeft"===e.key||"ArrowDown"===e.key)&&y>m)r=-3;else{if("ArrowRight"!==e.key&&"ArrowUp"!==e.key||!(y<v))return;r=3}w(y+r),null===(t=g.current)||void 0===t||t.call(g,r,!0),e.preventDefault()}function n(e){var t;f(!1),null===(t=p.current)||void 0===t||t.call(p),e.preventDefault()}return d||c?(window.addEventListener("mousemove",e),window.addEventListener("keydown",r),window.addEventListener("mouseup",t),window.addEventListener("keyup",n),document.body.setAttribute("data-page-layout-dragging","true")):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("keydown",r),window.removeEventListener("keyup",n),document.body.removeAttribute("data-page-layout-dragging")),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("keydown",r),window.removeEventListener("keyup",n),document.body.removeAttribute("data-page-layout-dragging")}}),[d,c,y,m,v]),t.createElement(Qr,{sx:_r({height:"100%",position:"relative",...da[u]},l)},r?t.createElement(t.Fragment,null,t.createElement(Qr,{sx:{position:"absolute",inset:"0 -2px",cursor:"col-resize",bg:d||c?"accent.fg":"transparent",transitionDelay:"0.1s","&:hover":{bg:d||c?"accent.fg":"neutral.muted"}},role:"slider","aria-label":"Draggable pane splitter","aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":y,"aria-valuetext":`Pane width ${y} pixels`,tabIndex:0,onMouseDown:()=>{s(!0),null==n||n()},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(f(!0),null==n||n())},onDoubleClick:i}),t.createElement(sa,null)):null)};ca.displayName="VerticalDivider";const fa=({"aria-label":e,"aria-labelledby":r,padding:n="none",divider:a="none",dividerWhenNarrow:o="inherit",hidden:i=!1,children:l,sx:d={}})=>{const s=zn(Dn(a)||"inherit"===o?a:{regular:a,narrow:o},"none"),c=zn(i,!1),{rowGap:f}=t.useContext(na);return t.createElement(Qr,{as:"header","aria-label":e,"aria-labelledby":r,hidden:c,sx:_r({width:"100%",marginBottom:ra[f]},d)},t.createElement(Qr,{sx:{padding:ra[n]}},l),t.createElement(la,{variant:s,sx:{marginTop:ra[f]}}))};fa.displayName="Header",fa.displayName="PageLayout.Header";const ua={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},ga=({as:e="main","aria-label":r,"aria-labelledby":n,width:a="full",padding:o="none",hidden:i=!1,children:l,sx:d={}})=>{const s=zn(i,!1),{contentTopRef:c,contentBottomRef:f}=t.useContext(na);return t.createElement(Qr,{as:e,"aria-label":r,"aria-labelledby":n,sx:_r({display:s?"none":"flex",flexDirection:"column",order:Qn,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},d)},t.createElement(Qr,{ref:c}),t.createElement(Qr,{sx:{width:"100%",maxWidth:ua[a],marginX:"auto",flexGrow:1,padding:ra[o]}},l),t.createElement(Qr,{ref:f}))};ga.displayName="Content",ga.displayName="PageLayout.Content";const pa=e=>void 0!==e.default,ba=e=>["small","medium","large"].includes(e),ma={start:Jn,end:ea},ha={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},va={small:256,medium:296,large:320},xa=t.forwardRef((({"aria-label":e,"aria-labelledby":r,position:n="end",positionWhenNarrow:a="inherit",width:o="medium",minWidth:i=256,padding:d="none",resizable:c=!1,widthStorageKey:f="paneWidth",divider:u="none",dividerWhenNarrow:g="inherit",sticky:p=!1,offsetHeader:b=0,hidden:m=!1,children:h,id:v,sx:x={}},y)=>{const w=zn(Dn(n)||"inherit"===a?n:{regular:n,narrow:a},"end"),B=zn(Dn(u)||"inherit"===g?u:{regular:u,narrow:g},"none"),k=zn(m,!1),{rowGap:E,columnGap:T,enableStickyPane:C,disableStickyPane:S,paneRef:I}=t.useContext(na);t.useEffect((()=>{p?null==C||C(b):null==S||S()}),[p,C,S,b]);const O=e=>ba(e)?va[e]:pa(e)?Number(e.default.split("px")[0]):0,[N,A]=t.useState((()=>{if(!Mn)return O(o);let e;try{e=localStorage.getItem(f)}catch(t){e=null}return e&&!isNaN(Number(e))?Number(e):O(o)})),M=e=>{A(e);try{localStorage.setItem(f,e.toString())}catch(e){}};dn(y,I);const L=function(e){const[t,r]=s(!1);return l((()=>{if(null===e.current)return;const t=new ResizeObserver((e=>{for(const t of e)r(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth)}));return t.observe(e.current),()=>{t.disconnect()}}),[e]),t}(I),j=An(v),R={};return L&&(r?R["aria-labelledby"]=r:e&&(R["aria-label"]=e)),t.createElement(Qr,{sx:e=>_r({display:k?"none":"flex",order:ma[w],width:"100%",marginX:0,..."end"===w?{flexDirection:"column",marginTop:ra[E]}:{flexDirection:"column-reverse",marginBottom:ra[E]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...p?{position:"sticky",top:"number"==typeof b?`${b}px`:b,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===w?{flexDirection:"row-reverse",marginLeft:ra[T]}:{flexDirection:"row",marginRight:ra[T]}}},x)},t.createElement(la,{variant:{narrow:B,regular:"none"},sx:{["end"===w?"marginBottom":"marginTop"]:ra[E]}}),t.createElement(Qr,Xn({ref:I,style:{"--pane-width":`${N}px`},sx:e=>({"--pane-min-width":pa(o)?o.min:`${i}px`,"--pane-max-width-diff":"511px","--pane-max-width":pa(o)?o.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:ba(o)?ha[o]:o.default,padding:ra[d],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},L&&{tabIndex:0,role:"region"},R,v&&{id:j}),h),t.createElement(ca,{variant:{narrow:"none",regular:c?"line":B},draggable:c,sx:{["end"===w?"marginRight":"marginLeft"]:ra[T]},onDrag:(e,t=!1)=>{let r;r=t?e:"end"===w?-e:e,M(N+r)},onDragEnd:()=>{var e;const t=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect();t&&M(t.width)},onDoubleClick:()=>M(O(o))}))}));xa.displayName="PageLayout.Pane";const ya=({"aria-label":e,"aria-labelledby":r,padding:n="none",divider:a="none",dividerWhenNarrow:o="inherit",hidden:i=!1,children:l,sx:d={}})=>{const s=zn(Dn(a)||"inherit"===o?a:{regular:a,narrow:o},"none"),c=zn(i,!1),{rowGap:f}=t.useContext(na);return t.createElement(Qr,{as:"footer","aria-label":e,"aria-labelledby":r,hidden:c,sx:_r({order:ta,width:"100%",marginTop:ra[f]},d)},t.createElement(la,{variant:s,sx:{marginBottom:ra[f]}}),t.createElement(Qr,{sx:{padding:ra[n]}},l))};ya.displayName="Footer",ya.displayName="PageLayout.Footer";const wa=Object.assign(oa,{Header:fa,Content:ga,Pane:xa,Footer:ya});function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}const ka=e=>t.createElement(wa,Ba({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:Ea,footer:Sa}},e));ka.displayName="Root",ka.displayName="SplitPageLayout";const Ea=({padding:e="normal",divider:r="line",...n})=>t.createElement(wa.Header,Ba({padding:e,divider:r},n));Ea.displayName="Header",Ea.displayName="SplitPageLayout.Header";const Ta=({width:e="large",padding:r="normal",...n})=>t.createElement(wa.Content,Ba({width:e,padding:r},n));Ta.displayName="Content",Ta.displayName="SplitPageLayout.Content";const Ca=({position:e="start",sticky:r=!0,padding:n="normal",divider:a="line",...o})=>t.createElement(wa.Pane,Ba({position:e,sticky:r,padding:n,divider:a},o));Ca.displayName="Pane",Ca.displayName="SplitPageLayout.Pane";const Sa=({padding:e="normal",divider:r="line",...n})=>t.createElement(wa.Footer,Ba({padding:e,divider:r},n));Sa.displayName="Footer",Sa.displayName="SplitPageLayout.Footer";const Ia=Object.assign(ka,{Header:Ea,Content:Ta,Pane:Ca,Footer:Sa});function Oa({ref:e,closeOnOutsideClick:t,defaultOpen:r,onClickOutside:n}){const[a,o]=s(r),d=i(null),c=null!=e?e:d,u=f((e=>{const{current:t}=c;e.target.closest("details")!==t&&(n&&n(e),e.defaultPrevented||o(!1))}),[c,o,n]);l((()=>{if(a&&t)return document.addEventListener("click",u),()=>{document.removeEventListener("click",u)}}),[a,t,u]);const g=e=>{if(!e.defaultPrevented){const t=e.target;o(t.open)}};return{open:a,setOpen:o,getDetailsProps:()=>({onToggle:g,open:a,ref:c})}}function Na(){const e=i(new Set),t=f(((t,r,...n)=>{const a=window.setTimeout(t,r,...n);return e.current.add(a),a}),[]),r=f((t=>{clearTimeout(t),e.current.delete(t)}),[]);return l((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:t,safeClearTimeout:r}}const Aa=!0;function Ma(e){if(!e.defaultPrevented)for(const t of Object.values(La).reverse())if(t(e)===Aa||e.defaultPrevented)break}const La={};let ja=0;const Ra=({containerRef:e,ignoreClickRefs:t,onClickOutside:r})=>{const n=a((()=>ja++),[]),o=f((n=>{var a;return n instanceof MouseEvent&&n.button>0||null!==(a=e.current)&&void 0!==a&&a.contains(n.target)||t&&t.some((({current:e})=>null==e?void 0:e.contains(n.target)))?Aa:void r(n)}),[e,t,r]);l((()=>(0===Object.keys(La).length&&document.addEventListener("mousedown",Ma,{capture:!0}),function(e,t){La[e]=t}(n,o),()=>{!function(e){delete La[e]}(n),0===Object.keys(La).length&&document.removeEventListener("mousedown",Ma,{capture:!0})})),[n,o])};function*Da(e,t={}){var r,n;const a=null!==(r=t.strict)&&void 0!==r&&r,o=null!==(n=t.onlyTabbable)&&void 0!==n&&n?Pa:_a,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&o(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&o(e,a)&&(yield e),t.reverse){let e=i.lastChild();for(;e;)l=e,e=i.lastChild()}else l=i.firstChild();for(;l instanceof HTMLElement;)yield l,l=t.reverse?i.previousNode():i.nextNode();t.reverse&&o(e,a)&&(yield e)}function za(e,t=!1){return Da(e,{reverse:t,strict:!0,onlyTabbable:!0}).next().value}function _a(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,n=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type,o=e.classList.contains("sentinel");if(r||n||a||o)return!1;if(t){const t=getComputedStyle(e),r=0===e.offsetWidth||0===e.offsetHeight,n=["hidden","collapse"].includes(t.visibility),a="none"===t.display||!e.offsetParent,o=0===e.getClientRects().length;if(r||n||o||a)return!1}return null!=e.getAttribute("tabindex")||("true"===e.getAttribute("contenteditable")||"plaintext-only"===e.getAttribute("contenteditable")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex)}function Pa(e,t=!1){return _a(e,t)&&"-1"!==e.getAttribute("tabindex")}let Ha,Fa=1e4;function Va(){return void 0===Ha&&(Ha=/^mac/i.test(window.navigator.platform)),Ha}function Wa({initialFocusRef:e,returnFocusRef:t,containerRef:r,preventFocusOnOpen:n}){l((()=>{if(n)return;const a=t.current;if(e&&e.current)e.current.focus();else if(r.current){const e=Da(r.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,t,r,n])}function $a(e){if(!e.defaultPrevented)for(const t of Object.values(Za).reverse())if(t(e),e.defaultPrevented)break}const Za={};let Ga=0;const Ua=(e,t=[e])=>{const r=f(e,t),n=f((e=>{"Escape"===e.key&&r(e)}),[r]),o=a((()=>Ga++),[]);l((()=>(0===Object.keys(Za).length&&document.addEventListener("keydown",$a),function(e,t){Za[e]=t}(o,n),()=>{!function(e){delete Za[e]}(o),0===Object.keys(Za).length&&document.removeEventListener("keydown",$a)})),[o,n])};function qa(e){const r=t.useRef(null);return null!=e?e:r}const Ka=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:n,ignoreClickRefs:a,onClickOutside:o,preventFocusOnOpen:i})=>{const l=qa(e);Wa({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),Ra({containerRef:l,ignoreClickRefs:a,onClickOutside:o});return Ua((e=>{n(e),e.preventDefault()})),{ref:l}};var Ya,Xa=w;Ya=Xa.createRoot,Xa.hydrateRoot;const Ja={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},Qa={start:["end","center"],end:["start","center"],center:["end","start"]};function eo(e,t,r={}){const n=function(e){if(function(e){var t;if("DIALOG"===e.tagName)return!0;try{if(e.matches(":popover-open")&&/native code/.test(null===(t=document.body.showPopover)||void 0===t?void 0:t.toString()))return!0}catch(e){return!1}return!1}(e))return document.body;let t=e.parentNode;for(;null!==t;){if(t instanceof HTMLElement&&"static"!==getComputedStyle(t).position)return t;t=t.parentNode}return document.body}(e),a=function(e){let t=e;for(;null!==t&&t instanceof Element;){if("visible"!==getComputedStyle(t).overflow)break;t=t.parentNode}const r=t!==document.body&&t instanceof HTMLElement?t:document.body,n=r.getBoundingClientRect(),a=getComputedStyle(r),[o,i,l,d]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:n.top+o,left:n.left+i,width:n.width-l-i,height:Math.max(n.height-o-d,r===document.body?window.innerHeight:-1/0)}}(n),o=getComputedStyle(n),i=n.getBoundingClientRect(),[l,d]=[o.borderTopWidth,o.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,t,r,n,{side:a,align:o,allowOutOfBounds:i,anchorOffset:l,alignmentOffset:d}){const s={top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height};let c=ro(r,n,a,o,l,d),f=a,u=o;if(c.top-=t.top,c.left-=t.left,!i){const i=Ja[a];let g=0;if(i){let e=a;for(;g<i.length&&no(e,c,s,r);){const a=i[g++];e=a,c=ro(r,n,a,o,l,d),c.top-=t.top,c.left-=t.left,f=a}}const p=Qa[o];let b=0;if(p){let e=o;for(;b<p.length&&ao(e,c,s,r);){const a=p[b++];e=a,c=ro(r,n,f,a,l,d),c.top-=t.top,c.left-=t.left,u=a}}c.top<s.top&&(c.top=s.top),c.left<s.left&&(c.left=s.left),c.left+r.width>e.width+s.left&&(c.left=e.width+s.left-r.width),i&&g<i.length&&c.top+r.height>e.height+s.top&&(c.top=Math.max(e.height+s.top-r.height,0))}return Object.assign(Object.assign({},c),{anchorSide:f,anchorAlign:u})}(a,{top:i.top+l,left:i.left+d},e.getBoundingClientRect(),t instanceof Element?t.getBoundingClientRect():t,function(e={}){var t,r,n,a,o;const i=null!==(t=e.side)&&void 0!==t?t:to.side,l=null!==(r=e.align)&&void 0!==r?r:to.align;return{side:i,align:l,anchorOffset:null!==(n=e.anchorOffset)&&void 0!==n?n:"inside-center"===i?0:to.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==l&&i.startsWith("inside")?to.alignmentOffset:0,allowOutOfBounds:null!==(o=e.allowOutOfBounds)&&void 0!==o?o:to.allowOutOfBounds}}(r))}const to={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function ro(e,t,r,n,a,o){const i=t.left+t.width,l=t.top+t.height;let d=-1,s=-1;return"outside-top"===r?d=t.top-a-e.height:"outside-bottom"===r?d=l+a:"outside-left"===r?s=t.left-a-e.width:"outside-right"===r&&(s=i+a),"outside-top"!==r&&"outside-bottom"!==r||(s="start"===n?t.left+o:"center"===n?t.left-(e.width-t.width)/2+o:i-e.width-o),"outside-left"!==r&&"outside-right"!==r||(d="start"===n?t.top+o:"center"===n?t.top-(e.height-t.height)/2+o:l-e.height-o),"inside-top"===r?d=t.top+a:"inside-bottom"===r?d=l-a-e.height:"inside-left"===r?s=t.left+a:"inside-right"===r?s=i-a-e.width:"inside-center"===r&&(s=(i+t.left)/2-e.width/2+a),"inside-top"===r||"inside-bottom"===r?s="start"===n?t.left+o:"center"===n?t.left-(e.width-t.width)/2+o:i-e.width-o:"inside-left"!==r&&"inside-right"!==r&&"inside-center"!==r||(d="start"===n?t.top+o:"center"===n?t.top-(e.height-t.height)/2+o:l-e.height-o),{top:d,left:s}}function no(e,t,r,n){return"outside-top"===e||"outside-bottom"===e?t.top<r.top||t.top+n.height>r.height+r.top:t.left<r.left||t.left+n.width>r.width+r.left}function ao(e,t,r,n){return"end"===e?t.left<r.left:"start"===e||"center"===e?t.left+n.width>r.left+r.width||t.left<r.left:void 0}let oo=!1;function io(){}try{const e=Object.create({},{signal:{get(){oo=!0}}});window.addEventListener("test",io,e),window.removeEventListener("test",io,e)}catch(op){}function lo(){oo||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){return"object"==typeof n&&"signal"in n&&n.signal instanceof AbortSignal&&e.call(n.signal,"abort",(()=>{this.removeEventListener(t,r,n)})),e.call(this,t,r,n)}}(),oo=!0)}lo();const so=[];let co;function fo(e,t,r){const n=new AbortController,a=null!=r?r:n.signal;e.setAttribute("data-focus-trap","active");const o=document.createElement("span");o.setAttribute("class","sentinel"),o.setAttribute("tabindex","0"),o.setAttribute("aria-hidden","true"),o.onfocus=()=>{const t=za(e,!0);null==t||t.focus()};const i=document.createElement("span");let l;function d(r){if(r instanceof HTMLElement&&document.contains(e)){if(e.contains(r))return void(l=r);if(l&&Pa(l)&&e.contains(l))return void l.focus();if(t&&e.contains(t))return void t.focus();{const t=za(e);return void(null==t||t.focus())}}}i.setAttribute("class","sentinel"),i.setAttribute("tabindex","0"),i.setAttribute("aria-hidden","true"),i.onfocus=()=>{const t=za(e);null==t||t.focus()},e.prepend(o),e.append(i);const s=function(e){const t=new AbortController;return e.addEventListener("abort",(()=>{t.abort()})),t}(a);if(co){const e=co;co.container.setAttribute("data-focus-trap","suspended"),co.controller.abort(),so.push(e)}s.signal.addEventListener("abort",(()=>{co=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const t=e.getElementsByClassName("sentinel");for(;t.length>0;)t[0].remove();const r=so.findIndex((t=>t.container===e));r>=0&&so.splice(r,1),function(){const e=so.pop();e&&fo(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{d(e.target)}),{signal:s.signal,capture:!0}),d(document.activeElement),co={container:e,controller:s,initialFocus:t,originalSignal:a};const c=so.findIndex((t=>t.container===e));if(c>=0&&so.splice(c,1),!r)return n}var uo;lo(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(uo||(uo={}));const go={ArrowLeft:uo.ArrowHorizontal,ArrowDown:uo.ArrowVertical,ArrowUp:uo.ArrowVertical,ArrowRight:uo.ArrowHorizontal,h:uo.HL,j:uo.JK,k:uo.JK,l:uo.HL,a:uo.AD,s:uo.WS,w:uo.WS,d:uo.AD,Tab:uo.Tab,Home:uo.HomeAndEnd,End:uo.HomeAndEnd,PageUp:uo.PageUpDown,PageDown:uo.PageUpDown,Backspace:uo.Backspace},po={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function bo(e){const t=po[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Va();if(r&&e.metaKey||!r&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return t}const mo="data-is-active-descendant",ho="activated-directly",vo="activated-indirectly",xo="data-has-active-descendant";function yo(e,t){var r,n,a,o,i;const l=[],d=new WeakMap,s=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:((null==t?void 0:t.getNextFocusable)?uo.ArrowAll:uo.ArrowVertical)|uo.HomeAndEnd,c=null!==(n=null==t?void 0:t.focusOutBehavior)&&void 0!==n?n:"stop",f=null!==(a=null==t?void 0:t.focusInStrategy)&&void 0!==a?a:"previous",u=null==t?void 0:t.activeDescendantControl,g=null==t?void 0:t.onActiveDescendantChanged;let p;const b=null!==(o=null==t?void 0:t.preventScroll)&&void 0!==o&&o;function m(){return l[0]}function h(e,t=!1){const r=p;p=e,u?e&&document.activeElement===u?v(r,e,t):x():(r&&r!==e&&d.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function v(t,r,n=!1){r.id||r.setAttribute("id","__primer_id_"+Fa++),t&&t!==r&&t.removeAttribute(mo),u&&(n||u.getAttribute("aria-activedescendant")!==r.id)&&(u.setAttribute("aria-activedescendant",r.id),e.setAttribute(xo,r.id),r.setAttribute(mo,n?ho:vo),null==g||g(r,t,n))}function x(t=p){"first"===f&&(p=void 0),null==u||u.removeAttribute("aria-activedescendant"),e.removeAttribute(xo),null==t||t.removeAttribute(mo),null==g||g(void 0,t,!1)}function y(...e){const r=e.filter((e=>{var r,n;return null===(n=null===(r=null==t?void 0:t.focusableElementFilter)||void 0===r?void 0:r.call(t,e))||void 0===n||n}));if(0!==r.length){l.splice(function(e){const t=e[0];if(0===l.length)return 0;let r=0,n=l.length-1;for(;r<=n;){const e=Math.floor((r+n)/2);w(t,l[e])?n=e-1:r=e+1}return r}(r),0,...r);for(const e of r)d.has(e)||d.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");p||h(m())}}function w(e,t){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)>0}function B(...e){for(const t of e){const e=l.indexOf(t);e>=0&&l.splice(e,1);const r=d.get(t);if(void 0!==r&&(null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),d.delete(t)),t===p){h(m())}}}const k={reverse:null==t?void 0:t.reverse,strict:null==t?void 0:t.strict,onlyTabbable:null==t?void 0:t.onlyTabbable};y(...Da(e,k));h("function"==typeof f?f(document.body):m());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&B(...Da(e,k));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&y(...Da(e,k))})).observe(e,{subtree:!0,childList:!0});const E=new AbortController,T=null!==(i=null==t?void 0:t.abortSignal)&&void 0!==i?i:E.signal;let C;T.addEventListener("abort",(()=>{B(...l)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(C=l.indexOf(e.target))}),{signal:T}),u?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&l.includes(e.target)&&(u.focus({preventScroll:b}),h(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const t=l.find((t=>t.contains(e)));t&&h(t)}),{signal:T,capture:!0}),u.addEventListener("focusin",(()=>{p?v(void 0,p):h(m())})),u.addEventListener("focusout",(()=>{x()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==C)C>=0&&l[C]!==p&&h(l[C]),C=void 0;else if("previous"===f)h(t.target);else if("closest"===f||"first"===f){if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e="previous"===I?l.length-1:0,t=l[e];return void(null==t||t.focus({preventScroll:b}))}h(t.target)}else if("function"==typeof f)if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e=f(t.relatedTarget);if((e?l.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:b});console.warn("Element requested is not a known focusable element.")}else h(t.target);I=void 0}),{signal:T});const S=null!=u?u:e;let I;return"closest"===f&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=bo(e))}),{signal:T,capture:!0}),S.addEventListener("keydown",(r=>{var n;if(r.key in po){const a=go[r.key];if(!r.defaultPrevented&&(a&s)>0&&!function(e,t){const r=e.key,n=[...r].length,a=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(a&&(1===n||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===n)return!0;if("ArrowDown"===r&&Va()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Va()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(a){const e=t,n=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!n)return!0;if("ArrowRight"===r&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!n)return!0;if("ArrowDown"===r&&!a)return!0}}return!1}(r,document.activeElement)){const a=bo(r);let o;if((null==t?void 0:t.getNextFocusable)&&(o=t.getNextFocusable(a,null!==(n=document.activeElement)&&void 0!==n?n:void 0,r)),!o){const t=function(){if(!p)return 0;const t=l.indexOf(p);return-1!==t?t:p===e?-1:0}();let n=t;"previous"===a?n-=1:"start"===a?n=0:"next"===a?n+=1:n=l.length-1,n<0&&(n="wrap"===c&&"Tab"!==r.key?l.length-1:0),n>=l.length&&(n="wrap"===c&&"Tab"!==r.key?0:l.length-1),t!==n&&(o=l[n])}u?h(o||p,!0):o&&(I=a,o.focus({preventScroll:b})),("Tab"!==r.key||o)&&r.preventDefault()}}}),{signal:T}),E}function wo(e,t,{direction:r="vertical",startMargin:n=0,endMargin:a=0,behavior:o="smooth"}={}){const i="vertical"===r?"top":"left",l="vertical"===r?"bottom":"right",d="vertical"===r?"scrollTop":"scrollLeft",{[i]:s,[l]:c}=e.getBoundingClientRect(),{[i]:f,[l]:u}=t.getBoundingClientRect(),g=c>u-a;if(s<f+n){const e=s-f+t[d];t.scrollTo({behavior:o,[i]:e-n})}else if(g){const e=c-u+t[d];t.scrollTo({behavior:o,[i]:e+a})}}var Bo=v(["position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],Sr("fontWeights.bold"),Sr("radii.2"));const ko=ct({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Eo=b.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t}))).withConfig({displayName:"ButtonBase",componentId:"sc-bqtwic-0"})([""," ",""],Bo,ko);Eo.defaultProps={variant:"medium"};var To=Eo;var Co=b(To).withConfig({displayName:"Button",componentId:"sc-ybpnzh-0"})(["color:",";background-color:",";border:1px solid ",";box-shadow:",",",";&:hover{background-color:",";border-color:",";}&:focus{outline:solid 2px ",";}&:active{background-color:",";box-shadow:",";}&:disabled{color:",";background-color:",";border-color:",";}",";"],Sr("colors.btn.text"),Sr("colors.btn.bg"),Sr("colors.btn.border"),Sr("shadows.btn.shadow"),Sr("shadows.btn.insetShadow"),Sr("colors.btn.hoverBg"),Sr("colors.btn.hoverBorder"),Sr("colors.accent.fg"),Sr("colors.btn.selectedBg"),Sr("shadows.btn.shadowActive"),Sr("colors.primer.fg.disabled"),Sr("colors.btn.bg"),Sr("colors.btn.border"),Jr);var So=b(To).withConfig({displayName:"ButtonDanger",componentId:"sc-j9bmd7-0"})(["color:",";border:1px solid ",";background-color:",";box-shadow:",";&:hover{color:",";background-color:",";border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:",";}&:active{color:",";background-color:",";box-shadow:",";border-color:",";}&:disabled{color:",";background-color:",";border-color:",";}",";"],Sr("colors.btn.danger.text"),Sr("colors.btn.border"),Sr("colors.btn.bg"),Sr("shadows.btn.shadow"),Sr("colors.btn.danger.hoverText"),Sr("colors.btn.danger.hoverBg"),Sr("colors.btn.danger.hoverBorder"),Sr("shadows.btn.danger.hoverShadow"),Sr("colors.btn.danger.focusBorder"),Sr("shadows.btn.danger.focusShadow"),Sr("colors.btn.danger.selectedText"),Sr("colors.btn.danger.selectedBg"),Sr("shadows.btn.danger.selectedShadow"),Sr("colors.btn.danger.selectedBorder"),Sr("colors.btn.danger.disabledText"),Sr("colors.btn.danger.disabledBg"),Sr("colors.btn.danger.disabledBorder"),Jr);var Io=b(To).withConfig({displayName:"ButtonPrimary",componentId:"sc-1awfvt4-0"})(["color:",";border:1px solid ",";background-color:",";box-shadow:",";&:hover{color:",";background-color:",";border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:",";}&:active{background-color:",";box-shadow:",";}&:disabled{color:",";background-color:",";border-color:",";}",";"],Sr("colors.btn.primary.text"),Sr("colors.btn.primary.border"),Sr("colors.btn.primary.bg"),Sr("shadows.btn.primary.shadow"),Sr("colors.btn.primary.hoverText"),Sr("colors.btn.primary.hoverBg"),Sr("colors.btn.primary.hoverBorder"),Sr("shadows.btn.primary.hoverShadow"),Sr("colors.btn.primary.focusBorder"),Sr("shadows.btn.primary.focusShadow"),Sr("colors.btn.primary.selectedBg"),Sr("shadows.btn.primary.selectedShadow"),Sr("colors.btn.primary.disabledText"),Sr("colors.btn.primary.disabledBg"),Sr("colors.btn.primary.disabledBorder"),Jr),Oo={small:16,medium:32,large:64};function No(e,r,n){var a=n(),o=Object.keys(a),i=t.forwardRef((function(e,n){var i=e["aria-label"],l=e["aria-labelledby"],d=e.tabIndex,s=e.className,c=void 0===s?r:s,f=e.fill,u=void 0===f?"currentColor":f,g=e.size,p=void 0===g?16:g,b=e.verticalAlign,m=void 0===b?"text-bottom":b,h=e.id,v=e.title,x=Oo[p]||p,y=function(e,t){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,r){return r<=t?r:e}),e[0])}(o,x),w=a[y].width,B=x*(w/y),k=a[y].path;return t.createElement("svg",{ref:n,"aria-hidden":i?"false":"true",tabIndex:d,focusable:d>=0?"true":"false","aria-label":i,"aria-labelledby":l,role:"img",className:c,viewBox:"0 0 ".concat(w," ").concat(y),width:B,height:x,fill:u,id:h,style:{display:"inline-block",userSelect:"none",verticalAlign:m,overflow:"visible"}},v?t.createElement("title",null,v):null,k)}));return i.displayName=e,i}var Ao=No("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:t.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"}),t.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"}))}}})),Mo=No("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:t.createElement("path",{d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})},16:{width:16,path:t.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})},24:{width:24,path:t.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})}}})),Lo=No("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:t.createElement("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})},24:{width:24,path:t.createElement("path",{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"})}}})),jo=No("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:t.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"})},16:{width:16,path:t.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"})},24:{width:24,path:t.createElement("path",{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"})}}})),Ro=No("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:t.createElement("path",{d:"M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:t.createElement("path",{d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"})},24:{width:24,path:t.createElement("path",{d:"M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"})}}})),Do=No("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:t.createElement("path",{d:"M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:t.createElement("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:t.createElement("path",{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"})}}})),zo=No("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:t.createElement("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"})},24:{width:24,path:t.createElement("path",{d:"M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"})}}})),_o=No("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:t.createElement("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"})}}})),Po=No("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:t.createElement("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z"}),t.createElement("path",{d:"M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z"}),t.createElement("path",{d:"M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"}))}}})),Ho=No("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:t.createElement("path",{d:"M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})},24:{width:24,path:t.createElement("path",{d:"M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"})}}})),Fo=No("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:t.createElement("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"}),t.createElement("path",{d:"M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"}))}}})),Vo=No("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),t.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"}))},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z"}),t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Wo=No("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:t.createElement("path",{d:"M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"})},24:{width:24,path:t.createElement("path",{d:"M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"})}}})),$o=No("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),t.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"}))},24:{width:24,path:t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"})}}})),Zo=No("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:t.createElement("path",{d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"})},24:{width:24,path:t.createElement("path",{d:"M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"})}}})),Go=No("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:t.createElement("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Uo=No("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:t.createElement("path",{d:"M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"})},24:{width:24,path:t.createElement("path",{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"})}}})),qo=No("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:t.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z"}),t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Ko=No("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:t.createElement("path",{d:"m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"})},24:{width:24,path:t.createElement("path",{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"})}}})),Yo=No("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:t.createElement("path",{d:"M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"})},16:{width:16,path:t.createElement("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:t.createElement("path",{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"})}}}));function Xo(e,t){const r=i(e);Gn((()=>{r.current=e})),Gn((()=>{const e=t&&"current"in t?t.current:document.documentElement;if(!e)return;const n=new ResizeObserver((e=>{r.current(e)}));return n.observe(e),()=>{n.disconnect()}}),[t])}function Jo(e,r=[]){const n=qa(null==e?void 0:e.floatingElementRef),a=qa(null==e?void 0:e.anchorElementRef),[o,i]=t.useState(void 0),l=t.useCallback((()=>{n.current instanceof Element&&a.current instanceof Element?i(eo(n.current,a.current,e)):i(void 0)}),[n,a,...r]);return Gn(l,[l]),Xo(l),{floatingElementRef:n,anchorElementRef:a,position:o}}function Qo(e){const[t,r]=s(e||null),n=i(null);n.current=t;const a=f((e=>{n.current=e,r(e)}),[n]);return[n,a]}function ei(e,t,r){const[n,a]=s(r),o=null!=e?e:n,i=f((e=>{a(e),t&&t(e)}),[t]);return[o,i]}const ti=(e,r,n,a)=>{((e,r,n)=>{const[a,o]=t.useState(void 0);t.useEffect((function(){const e=n.current,t=e=>{0!==e.detail&&o("mouse-click")},r=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&o(e.code)};return null==e||e.addEventListener("click",t),null==e||e.addEventListener("keydown",r),()=>{null==e||e.removeEventListener("click",t),null==e||e.removeEventListener("keydown",r)}}),[n]),t.useEffect((function(){if(!e||!r.current)return;const t=Da(r.current);if("mouse-click"===a){if(!n.current)throw new Error("For focus management, please attach anchorRef");n.current.focus()}else if(a&&["ArrowDown","Space","Enter"].includes(a)){const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===a){const e=[...t],r=e[e.length-1];setTimeout((()=>r.focus()))}else{const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,a,n])})(e,n,a),((e,r)=>{const n=qa(r);t.useEffect((function(){e&&n.current&&[...Da(n.current)].map((e=>{var t;if(e.getAttribute("aria-keyshortcuts"))return;const r=null===(t=e.textContent)||void 0===t?void 0:t.toLowerCase()[0];r&&e.setAttribute("aria-keyshortcuts",r)}))}),[e,n]),t.useEffect((function(){if(!e||!n.current)return;const t=n.current,r=e=>{var r;const n=document.activeElement;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!a(e))return;e.stopPropagation();const o=e.key.toLowerCase();let i;const l=[...Da(t)].filter((e=>{var t;const r=null===(t=e.getAttribute("aria-keyshortcuts"))||void 0===t?void 0:t.split(" ").map((e=>e.toLowerCase()));return r&&r.includes(o)})),d=l.indexOf(n);i=d===l.length-1?l[0]:l.find(((e,t)=>t>d)),null===(r=i)||void 0===r||r.focus()};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)}),[e,n]);const a=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,n),ri(e,r,n,a),ni(e,n,a)},ri=(e,r,n,a)=>{t.useEffect((()=>{const t=n.current,o=a.current,i=t=>{e&&"Tab"===t.key&&(null==r||r("tab"))};return null==t||t.addEventListener("keydown",i),null==o||o.addEventListener("keydown",i),()=>{null==t||t.removeEventListener("keydown",i),null==o||o.removeEventListener("keydown",i)}}),[e,r,n,a])},ni=(e,r,n)=>{t.useEffect((()=>{const t=r.current,a=n.current,o=r=>{if(!e||!t)return;const n=Da(t);if("ArrowDown"===r.key){const e=n.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===r.key){const e=[...n],t=e[e.length-1];setTimeout((()=>t.focus()))}};return null==a||a.addEventListener("keydown",o),()=>null==a?void 0:a.addEventListener("keydown",o)}),[e,r,n])};function ai(e,r=[]){const n=qa(null==e?void 0:e.containerRef),a=qa(null==e?void 0:e.initialFocusRef),o=null==e?void 0:e.disabled,i=t.useRef(),l=t.useRef(null);function d(){var t;null===(t=i.current)||void 0===t||t.abort(),null!=e&&e.restoreFocusOnCleanUp&&l.current instanceof HTMLElement&&(l.current.focus(),l.current=null)}return l.current||null!=e&&e.disabled||(l.current=document.activeElement),t.useEffect((()=>{if(n.current instanceof HTMLElement){var e;if(!o)return i.current=fo(n.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{d()};d()}}),[n,a,o,...r]),{containerRef:n,initialFocusRef:a}}function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oi.apply(this,arguments)}const ii=b(t.forwardRef(((e,r)=>{const{icon:n,...a}=e;return t.createElement(n,oi({},a,{ref:r}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:t})=>Jr({sx:{color:e,...t}})));var li=ii;function di(e={},r=[]){const n=qa(e.containerRef),a=!!e.activeDescendantFocus,o=qa("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),i=e.disabled,d=t.useRef();return l((()=>{if(n.current instanceof HTMLElement&&(!a||o.current instanceof HTMLElement)){if(!i){var t;const r={...e,activeDescendantControl:null!==(t=o.current)&&void 0!==t?t:void 0};return d.current=yo(n.current,r),()=>{var e;null===(e=d.current)||void 0===e||e.abort()}}var r;null===(r=d.current)||void 0===r||r.abort()}}),[i,...r]),{containerRef:n,activeDescendantControlRef:o}}const si="__primerPortalRoot__",ci="__default__",fi={};function ui(e,t=ci){fi[t]=e}const gi=({children:e,onMount:r,containerName:n})=>{const a=document.createElement("div");a.style.position="relative",a.style.zIndex="1";const o=t.useRef(a);return Gn((()=>{let e=n;void 0===e&&(e=ci,function(){const e=fi[ci];if(!e||!document.body.contains(e)){let e=document.getElementById(si);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",si),e.style.position="absolute",e.style.top="0",e.style.left="0";const t=document.querySelector("[data-portal-root]");t?t.appendChild(e):document.body.appendChild(e)}ui(e)}}());const t=fi[e];if(!t)throw new Error(`Portal container '${n}' is not yet registered. Container must be registered with registerPortal before use.`);const a=o.current;return t.appendChild(a),null==r||r(),()=>{t.removeChild(a)}}),[o]),B(e,o.current)};function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pi.apply(this,arguments)}const bi="200ms",mi=b("div").withConfig({displayName:"Dialog__Backdrop",componentId:"sc-uaxjsn-0"})(["position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:",";animation:dialog-backdrop-appear "," ",";@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Sr("colors.primer.canvas.backdrop"),bi,Sr("animation.easeOutCubic")),hi={small:"480px",large:"640px",auto:"auto"},vi={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},xi=b.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);width:",";height:",";border-radius:12px;opacity:1;animation:overlay--dialog-appear "," ",";@keyframes overlay--dialog-appear{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}",";"],Sr("colors.canvas.overlay"),Sr("shadows.overlay.shadow"),(e=>{var t;return vi[null!==(t=e.width)&&void 0!==t?t:"xlarge"]}),(e=>{var t;return hi[null!==(t=e.height)&&void 0!==t?t:"auto"]}),bi,Sr("animation.easeOutCubic"),Jr),yi=({dialogLabelId:e,title:r,subtitle:n,dialogDescriptionId:a,onClose:o})=>{const i=f((()=>{o("close-button")}),[o]);return t.createElement(Mi.Header,null,t.createElement(Qr,{display:"flex"},t.createElement(Qr,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},t.createElement(Mi.Title,{id:e},null!=r?r:"Dialog"),n&&t.createElement(Mi.Subtitle,{id:a},n)),t.createElement(Mi.CloseButton,{onClose:i})))};yi.displayName="DefaultHeader";const wi=({children:e})=>t.createElement(Mi.Body,null,e);wi.displayName="DefaultBody";const Bi=({footerButtons:e})=>{const{containerRef:r}=di({bindKeys:uo.ArrowHorizontal|uo.Tab,focusInStrategy:"closest"});return e?t.createElement(Mi.Footer,{ref:r},t.createElement(Mi.Buttons,{buttons:e})):null},ki=t.forwardRef(((e,r)=>{const{title:n="Dialog",subtitle:a="",renderHeader:o,renderBody:l,renderFooter:d,onClose:s,role:c="dialog",width:f="xlarge",height:u="auto",footerButtons:g=[],sx:p}=e,b=An(),m=An(),h=i(null);for(const e of g)e.autoFocus&&(e.ref=h);const v={...e,title:n,subtitle:a,role:c,dialogLabelId:b,dialogDescriptionId:m},x=i(null);dn(r,x);const y=i(null);ai({containerRef:x,restoreFocusOnCleanUp:!0,initialFocusRef:h}),Ua((e=>{s("escape"),e.preventDefault()}),[s]),t.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const w=(null!=o?o:yi)(v),B=(null!=l?l:wi)(v),k=(null!=d?d:Bi)(v);return t.createElement(t.Fragment,null,t.createElement(gi,null,t.createElement(mi,{ref:y},t.createElement(xi,{width:f,height:u,ref:x,role:c,"aria-labelledby":b,"aria-describedby":m,"aria-modal":!0,sx:p},w,B,k))))}));ki.displayName="Dialog";const Ei=b.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;"],Sr("colors.border.default"),Sr("space.2")),Ti=b.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Sr("fontSizes.1"),Sr("fontWeights.bold"),Jr),Ci=b.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";",";"],Sr("fontSizes.0"),Sr("colors.fg.muted"),Sr("space.1"),Jr),Si=b.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Sr("space.3"),Jr),Ii=b.div.withConfig({displayName:"Dialog__Footer",componentId:"sc-uaxjsn-6"})(["box-shadow:0 -1px 0 ",";padding:",";display:flex;flex-flow:wrap;justify-content:flex-end;gap:",";z-index:1;flex-shrink:0;",";"],Sr("colors.border.default"),Sr("space.3"),Sr("space.2"),Jr),Oi={normal:Co,primary:Io,danger:So},Ni=b(Co).withConfig({displayName:"Dialog__DialogCloseButton",componentId:"sc-uaxjsn-7"})(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:",";padding:",";align-self:flex-start;line-height:normal;box-shadow:none;"],Sr("colors.fg.muted"),Sr("space.2")),Ai=({onClose:e})=>t.createElement(Ni,{"aria-label":"Close",onClick:e},t.createElement(li,{icon:Yo}));Ai.displayName="CloseButton";const Mi=Object.assign(ki,{Header:Ei,Title:Ti,Subtitle:Ci,Body:Si,Footer:Ii,Buttons:({buttons:e})=>{var r;const n=qa(null===(r=e.find((e=>e.autoFocus)))||void 0===r?void 0:r.ref);let a=0;const[o,i]=s(0);return l((()=>{var e;1===o?null===(e=n.current)||void 0===e||e.focus():i(o+1)}),[n,o]),t.createElement(t.Fragment,null,e.map(((e,r)=>{const{content:o,buttonType:i="normal",autoFocus:l=!1,...d}=e,s=Oi[i];return t.createElement(s,pi({key:r},d,{variant:i,ref:l&&0===a?(a++,n):null}),o)})))},CloseButton:Ai});function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Li.apply(this,arguments)}const ji=b.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Sr("space.2")),Ri=b(Qr).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Sr("fontSizes.3"),Sr("fontWeights.bold"),Sr("space.2")),Di=({title:e,onClose:r,dialogLabelId:n})=>{const a=f((()=>{r("close-button")}),[r]);return t.createElement(ji,null,t.createElement(Ri,{id:n},e),t.createElement(Mi.CloseButton,{onClose:a}))};Di.displayName="ConfirmationHeader";const zi=b(Qr).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Sr("fontSizes.1"),Sr("space.3"),Sr("space.3"),Sr("space.3"),Sr("colors.fg.muted")),_i=({children:e})=>t.createElement(zi,null,e);_i.displayName="ConfirmationBody";const Pi=b(Qr).withConfig({displayName:"ConfirmationDialog__StyledConfirmationFooter",componentId:"sc-11fz0jh-3"})(["display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-gap:",";align-items:end;justify-content:end;padding:"," "," ",";"],Sr("space.2"),Sr("space.1"),Sr("space.3"),Sr("space.3")),Hi=({footerButtons:e})=>{const{containerRef:r}=di({bindKeys:uo.ArrowHorizontal|uo.Tab,focusInStrategy:"closest"});return t.createElement(Pi,{ref:r},t.createElement(Mi.Buttons,{buttons:null!=e?e:[]}))};Hi.displayName="ConfirmationFooter";const Fi=e=>{const{onClose:r,title:n,cancelButtonContent:a="Cancel",confirmButtonContent:o="OK",confirmButtonType:i="normal",children:l}=e,d="danger"===i,s=[{content:a,onClick:f((()=>{r("cancel")}),[r]),autoFocus:d},{content:o,buttonType:i,onClick:f((()=>{r("confirm")}),[r]),autoFocus:!d}];return t.createElement(Mi,{onClose:r,title:n,footerButtons:s,role:"alertdialog",width:"medium",renderHeader:Di,renderBody:_i,renderFooter:Hi},l)};function Vi(){const{theme:e,colorMode:r,dayScheme:n,nightScheme:a}=Wr(),o=f((o=>async function(e,r){const{content:n,...a}=r;return new Promise((r=>{const o=Ya(document.createElement("div"));o.render(t.createElement(Vr,e,t.createElement(Fi,Li({},a,{onClose:e=>{o.unmount(),r("confirm"===e)}}),n)))}))}({theme:e,colorMode:r,dayScheme:n,nightScheme:a},o)),[e,r,n,a]);return o}Fi.displayName="ConfirmationDialog";const Wi=x(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),$i=b.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&v(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Wi)));var Zi=({show:e,children:r})=>{const[n,a]=s(e);l((()=>{e&&a(!0)}),[e]);return n?t.createElement(Qr,{height:e?"auto":0,overflow:"hidden"},t.createElement($i,{show:e,onAnimationEnd:()=>{e||a(!1)}},r)):null};var Gi=b.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Or,Ir,Jr);var Ui=t.createContext({});const qi=({children:e,sx:r})=>{const{disabled:n,captionId:a}=t.useContext(Ui);return t.createElement(Gi,{color:n?"fg.muted":"fg.subtle",fontSize:1,id:a,sx:r},e)};qi.displayName="CheckboxOrRadioGroupCaption";var Ki=qi;const Yi=({children:e,visuallyHidden:r=!1,sx:n})=>{const{required:a,disabled:o}=t.useContext(Ui);return t.createElement(cn,{isVisible:!r,title:a?"required field":void 0,sx:{display:"block",color:o?"fg.muted":void 0,fontSize:2,...n}},a?t.createElement(Qr,{display:"flex",as:"span"},t.createElement(Qr,{mr:1},e),t.createElement("span",null,"*")):e)};Yi.displayName="CheckboxOrRadioGroupLabel";var Xi=Yi;const Ji={success:jo,error:Mo},Qi={success:"success.fg",error:"danger.fg"},el=({children:e,id:r,validationStatus:n,sx:a})=>{const o=n?Ji[n]:void 0,i=n?Qi[n]:void 0,l=16/12;return t.createElement(Gi,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:i,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...a},"aria-live":"polite"},o&&t.createElement(Qr,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},t.createElement(o,{size:12,fill:"currentColor"})),t.createElement(Qr,{as:"span",id:r,sx:{lineHeight:l}},e))};el.displayName="InputValidation";var tl=el;const rl=({children:e,variant:r,sx:n})=>{const{validationMessageId:a=""}=t.useContext(Ui);return t.createElement(tl,{validationStatus:r,id:a,sx:n},e)};rl.displayName="CheckboxOrRadioGroupValidation";var nl=rl;function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(this,arguments)}const ol=b.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Sr("space.2")),il=({"aria-labelledby":e,children:r,disabled:n=!1,id:a,required:o=!1,sx:i})=>{const[l,d]=_n(r,{caption:Ki,label:Xi,validation:nl}),s=t.Children.toArray(r).find((e=>t.isValidElement(e)&&e.type===Xi)),c=t.Children.toArray(r).find((e=>t.isValidElement(e)&&e.type===nl?e:null)),f=t.Children.toArray(r).find((e=>t.isValidElement(e)&&e.type===Ki?e:null)),u=An(a),g=c?`${u}-validationMessage`:void 0,p=f?`${u}-caption`:void 0;s||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const b=t.isValidElement(s)&&!s.props.visuallyHidden;return t.createElement(Ui.Provider,{value:{disabled:n,required:o,captionId:p,validationMessageId:g}},t.createElement("div",null,t.createElement(Qr,al({border:"none",margin:0,mb:c?2:void 0,padding:0},s&&{as:"fieldset",disabled:n},{sx:i}),s?t.createElement(Qr,{as:"legend",mb:b?2:void 0,padding:0},l.label,l.caption,t.isValidElement(l.validation)&&l.validation.props.children&&t.createElement(cn,null,l.validation.props.children)):l.caption,t.createElement(ol,!s&&{"aria-labelledby":e,"aria-describedby":[g,p].filter(Boolean).join(" "),as:"div",role:"group"},t.Children.toArray(d).filter((e=>t.isValidElement(e))))),c&&t.createElement(Zi,{"aria-hidden":Boolean(s),show:!0},l.validation)))};il.displayName="CheckboxOrRadioGroup";var ll=Object.assign(il,{Caption:Ki,Label:Xi,Validation:nl});function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dl.apply(this,arguments)}const sl=d(null),cl=({children:e,disabled:r,onChange:n,name:a,...o})=>{const[i,l]=Qo(null);return t.createElement(sl.Provider,{value:{disabled:r,name:a,onChange:e=>{n&&((e=>{const{value:t,checked:r}=e.currentTarget;r&&l(t)})(e),n(i.current,e))}}},t.createElement(ll,dl({disabled:r},o),e))};cl.displayName="RadioGroup";var fl=Object.assign(cl,{Caption:Ki,Label:Xi,Validation:nl});const ul=v(["appearance:none;border-color:",";border-style:solid;border-width:",";cursor:pointer;display:grid;height:var(--base-size-16,16px);margin:0;margin-top:0.125rem;place-content:center;position:relative;width:var(--base-size-16,16px);&:disabled{background-color:var(--color-input-disabled-bg,rgba(175,184,193,0.2));border-color:",";}"],Sr("colors.neutral.emphasis"),Sr("borderWidths.1"),Sr("colors.border.default"));function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gl.apply(this,arguments)}const pl=b.input.withConfig({displayName:"Radio__StyledRadio",componentId:"sc-1tx0ht9-0"})(["",";border-radius:var(--borderRadius-full,100vh);transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&:checked{border-color:",";border-width:var(--base-size-4,4px);&:disabled{cursor:not-allowed;border-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],ul,Sr("colors.accent.fg"),Sr("colors.fg.muted"),tn(),Jr),bl=t.forwardRef((({checked:e,disabled:r,name:n,onChange:a,sx:i,required:l,validationStatus:d,value:s,...c},f)=>{const u=o(sl),g=n||(null==u?void 0:u.name);return g||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"),t.createElement(pl,gl({type:"radio",value:s,name:g,ref:f,disabled:r,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===d?"true":"false",sx:i,onChange:e=>{(null==u?void 0:u.onChange)&&u.onChange(e),a&&a(e)}},c))}));bl.displayName="Radio";var ml=bl;const hl=t.createContext({});function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vl.apply(this,arguments)}const xl=b.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Sr("fontWeights.bold"),Sr("fontSizes.5"),Jr),yl=n((({as:e="h2",...r},n)=>{const a=t.useRef(null);return dn(n,a),t.createElement(xl,vl({as:e},r,{ref:a}))}));yl.displayName="Heading";var wl=yl;const Bl=function(){};function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}const El=n((({as:e,children:r,sx:n=sn,visuallyHidden:a=!1,...o},i)=>{var l;const d=t.useRef(null);dn(i,d);const{headingId:s,variant:c}=t.useContext(Cl),{container:f}=t.useContext(hl);"ActionMenu"===f&&Bl(!1);const u={marginBottom:2,marginX:"full"===c?2:3};return t.createElement(cn,{isVisible:!a},t.createElement(wl,kl({as:e,ref:d,id:null!==(l=o.id)&&void 0!==l?l:s,sx:_r(u,n)},o),r))}));function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tl.apply(this,arguments)}El.displayName="ActionList.Heading";const Cl=t.createContext({}),Sl=b.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(Jr),Il=t.forwardRef((({variant:e="inset",selectionVariant:r,showDividers:n=!1,role:a,sx:o=sn,...i},l)=>{var d;const s={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[c,f]=_n(i.children,{heading:El}),u=An(),{listRole:g,listLabelledBy:p,selectionVariant:b}=t.useContext(hl),m=c.heading?null!==(d=c.heading.props.id)&&void 0!==d?d:u:p;return t.createElement(Cl.Provider,{value:{variant:e,selectionVariant:r||b,showDividers:n,role:a||g,headingId:u}},c.heading,t.createElement(Sl,Tl({sx:_r(s,o),role:a||g,"aria-labelledby":m},i,{ref:l}),f))}));function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ol.apply(this,arguments)}Il.displayName="ActionList";const Nl=t.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Al=({title:e,variant:r="subtle",auxiliaryText:n,selectionVariant:a,role:o,sx:i={},...l})=>{var d;const s=An(),{role:c}=t.useContext(Cl),[f,u]=_n(l.children,{groupHeading:Ml});let g;var p;f.groupHeading&&(g=null!==(p=f.groupHeading.props.id)&&void 0!==p?p:s);return e&&(g=s),t.createElement(Qr,Ol({as:"li",role:c?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...i}},l),t.createElement(Nl.Provider,{value:{selectionVariant:a,groupHeadingId:g}},e&&!f.groupHeading?t.createElement(Ml,{title:e,variant:r,auxiliaryText:n}):null,!e&&f.groupHeading?t.cloneElement(f.groupHeading):null,t.createElement(Qr,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":c?void 0:g,"aria-label":c?null!=e?e:null===(d=f.groupHeading)||void 0===d?void 0:d.props.children:void 0,role:o||c&&"group"},f.groupHeading?u:l.children)))};Al.displayName="Group";const Ml=({as:e,variant:r,title:n,auxiliaryText:a,children:o,sx:i=sn,...l})=>{const{variant:d,role:s}=t.useContext(Cl),{groupHeadingId:c}=t.useContext(Nl),f={paddingY:"6px",paddingX:"full"===d?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===r&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return t.createElement(t.Fragment,null,s?t.createElement(Qr,Ol({sx:f,role:"presentation","aria-hidden":"true"},l),t.createElement("span",{id:c},null!=n?n:o),a&&t.createElement("span",null,a)):t.createElement(t.Fragment,null,t.createElement(wl,Ol({as:e||"h3",id:c,sx:_r(f,i)},l),null!=n?n:o),a&&t.createElement("span",null,a)))};function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(this,arguments)}const jl=b.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"),vt,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),Jr),Rl=t.forwardRef((function({as:e,expandable:r=!1,inline:n=!1,maxWidth:a=125,...o},i){return t.createElement(jl,Ll({ref:i,as:e,expandable:r,inline:n,maxWidth:a},o))}));var Dl=Rl;const zl=t.createContext({}),_l=(e,t)=>t?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:"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"},Pl="20px",Hl=({variant:e="inline",sx:r={},...n})=>{const a={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:0,minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &':{color:"inherit"},'li[data-variant="danger"]:hover &, li[data-variant="danger"]:active &':{color:"inherit"}},{blockDescriptionId:o,inlineDescriptionId:i}=t.useContext(zl);return"block"===e?t.createElement(Qr,{as:"span",sx:_r(a,r),id:o},n.children):t.createElement(Dl,{id:i,sx:_r(a,r),title:n.children,inline:!0,maxWidth:"100%"},n.children)};function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fl.apply(this,arguments)}const Vl=({sx:e={},...r})=>t.createElement(Qr,Fl({as:"span",sx:_r({height:Pl,minWidth:Sr("space.3"),maxWidth:Pl,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},r));Vl.displayName="LeadingVisualContainer";const Wl=({sx:e={},...r})=>{const{variant:n,disabled:a}=t.useContext(zl);return t.createElement(Vl,Fl({sx:_r({color:_l(n,a).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:_l(n,a).hoverColor}},e)},r),r.children)};Wl.displayName="LeadingVisual";const $l=({sx:e={},...r})=>{const{variant:n,disabled:a}=t.useContext(zl);return t.createElement(Qr,Fl({as:"span",sx:_r({height:"20px",flexShrink:0,color:_l(n,a).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:_l(n,a).hoverColor}},e)},r),r.children)};$l.displayName="TrailingVisual";const Zl=({selected:e})=>{const{selectionVariant:r}=t.useContext(Cl),{selectionVariant:n}=t.useContext(Nl);let a;if(a=void 0!==n?n:r,!a){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===a)return t.createElement(Vl,null,e&&t.createElement(Lo,null));return t.createElement(Vl,null,t.createElement(Qr,{sx:{borderColor:e?"accent.fg":"neutral.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?"accent.fg":"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)"}}}},"data-component":"ActionList.Checkbox"}))};function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gl.apply(this,arguments)}Zl.displayName="Selection";const Ul=b.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(Jr),ql=t.forwardRef((({variant:e="default",disabled:r=!1,selected:n,active:a=!1,onSelect:o,sx:i=sn,id:l,role:d,_PrivateItemWrapper:s,...c},f)=>{const[u,g]=_n(c.children,{leadingVisual:Wl,trailingVisual:$l,blockDescription:[Hl,e=>"block"===e.variant],inlineDescription:[Hl,e=>"block"!==e.variant]}),{variant:p,role:b,showDividers:m,selectionVariant:h}=t.useContext(Cl),{selectionVariant:v}=t.useContext(Nl),{container:x,afterSelect:y,selectionAttribute:w}=t.useContext(hl),B=t.useCallback(((e,t)=>{"function"==typeof o&&o(e),e.defaultPrevented||"function"==typeof t&&t()}),[o]),k=v||h;let E;"ActionMenu"===x?E="single"===k?"menuitemradio":"multiple"===k?"menuitemcheckbox":"menuitem":"SelectPanel"===x&&"listbox"===b&&void 0!==k&&(E="option");const{theme:T}=Wr(),C={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Pl,minHeight:5,marginX:"inset"===p?2:0,borderRadius:2,transition:"background 33.333ms linear",color:_l(e,r).color,cursor:"pointer","&[aria-disabled]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:n?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:n?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"}},appearance:"none",background:"unset",border:"unset",width:"inset"===p?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (hover: hover) and (pointer: fine)":{":hover:not([aria-disabled])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:_l(e,r).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==T?void 0:T.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a:focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==T?void 0:T.colors.accent.emphasis}`},":active:not([aria-disabled])":{backgroundColor:`actionListItem.${e}.activeBg`,color:_l(e,r).hoverColor}},"@media (forced-colors: active)":{":focus":{outline:"solid 1px transparent !important"}},'[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:m?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==T?void 0:T.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]), &:focus:not([aria-disabled]), &[data-focus-visible-added]:not([aria-disabled])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...a?{fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"accent.fg",borderRadius:2}}:{}},S=t.useCallback((e=>{r||B(e,y)}),[B,r,y]),I=t.useCallback((e=>{r||[" ","Enter"].includes(e.key)&&B(e,y)}),[B,r,y]),O=An(l),N=`${O}--label`,A=`${O}--inline-description`,M=`${O}--block-description`,L=s||t.Fragment,j={onClick:S,onKeyPress:I,"aria-disabled":!!r||void 0,tabIndex:r?void 0:0,"aria-labelledby":`${N} ${u.inlineDescription?A:""}`,"aria-describedby":u.blockDescription?M:void 0,...w&&{[w]:n},role:d||E,id:O},R=s?{role:d||E?"none":void 0}:j,D=s?j:{};return t.createElement(zl.Provider,{value:{variant:e,disabled:r,inlineDescriptionId:A,blockDescriptionId:M}},t.createElement(Ul,Gl({ref:f,sx:_r(C,i),"data-variant":"danger"===e?e:void 0},R,c),t.createElement(L,D,t.createElement(Zl,{selected:n}),u.leadingVisual,t.createElement(Qr,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},t.createElement(Kl,{if:Boolean(u.trailingVisual),sx:{display:"flex",flexGrow:1}},t.createElement(Kl,{if:!!u.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},t.createElement(Qr,{as:"span",id:N,sx:{flexGrow:u.inlineDescription?0:1,fontWeight:u.inlineDescription||u.blockDescription?"bold":"normal",marginBlockEnd:u.blockDescription?"4px":void 0}},g),u.inlineDescription),u.trailingVisual),u.blockDescription))))}));ql.displayName="ActionList.Item";const Kl=e=>{const{if:r,...n}=e;return r?t.createElement(Qr,n,e.children):t.createElement(t.Fragment,null,e.children)};function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yl.apply(this,arguments)}const Xl=Ne({hoverColor:{property:"color",scale:"colors"}}),Jl=b.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-14289xe-0"})(["color:",";text-decoration:none;text-decoration:",";[data-a11y-link-underlines='true'] &[data-inline='true']{text-decoration:underline;}&:hover{text-decoration:",";",";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}",";"],(e=>e.muted?Sr("colors.fg.muted")(e):Sr("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Xl:e.muted?`color: ${Sr("colors.accent.fg")(e)}`:""),Jr),Ql=n((({as:e="a",...r},n)=>{const a=t.useRef(null);return dn(n,a),t.createElement(Jl,Yl({as:e,"data-inline":r.inline},r,{ref:a}))}));Ql.displayName="Link";var ed=Ql;function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}const rd=t.forwardRef((({sx:e={},active:r,as:n,...a},o)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return t.createElement(ql,{active:r,sx:{paddingY:0,paddingX:0},_PrivateItemWrapper:({children:r,onClick:l,...d})=>t.createElement(ed,td({as:n,sx:_r(i,e)},d,a,{onClick:e=>{l&&l(e),a.onClick&&a.onClick(e)},ref:o}),r)},a.children)})),nd=({sx:e={}})=>t.createElement(Qr,{as:"li","aria-hidden":"true",sx:_r({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Sr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});nd.displayName="Divider";const ad=Object.assign(Il,{Group:Al,Item:ql,LinkItem:rd,Divider:nd,Description:Hl,LeadingVisual:Wl,TrailingVisual:$l,Heading:El,GroupHeading:Ml});function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},od.apply(this,arguments)}const id={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto"},ld={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const dd=b.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:hidden;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;}",";"],Sr("colors.canvas.overlay"),Sr("shadows.overlay.shadow"),(e=>e.maxWidth&&ld[e.maxWidth]),(e=>id[e.height||"auto"]),(e=>e.maxHeight&&id[e.maxHeight]),(e=>ld[e.width||"auto"]),200,Sr("animation.easeOutCubic"),Jr),sd=t.forwardRef((({onClickOutside:e,role:r="none",initialFocusRef:n,returnFocusRef:a,ignoreClickRefs:o,onEscape:d,visibility:s="visible",height:c="auto",width:f="auto",top:u,left:g,right:p,bottom:b,anchorSide:m,portalContainerName:h,preventFocusOnOpen:v,position:x,...y},w)=>{const B=i(null);dn(w,B);const{theme:k}=Wr(),E=parseInt(Sr("space.2")(k).replace("px","")),T=Sr("animation.easeOutCubic")(k);Ka({overlayRef:B,returnFocusRef:a,onEscape:d,ignoreClickRefs:o,onClickOutside:e,initialFocusRef:n,preventFocusOnOpen:v}),l((()=>{var e;"initial"===c&&null!==(e=B.current)&&void 0!==e&&e.clientHeight&&(B.current.style.height=`${B.current.clientHeight}px`)}),[c]),Gn((()=>{var e;const{x:t,y:r}=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}}(m);(t||r)&&null!==(e=B.current)&&void 0!==e&&e.animate&&"hidden"!==s&&B.current.animate({transform:[`translate(${E*t}px, ${E*r}px)`,"translate(0, 0)"]},{duration:200,easing:T})}),[m,E,T,s]);const C=void 0===g&&void 0===p?{left:0}:{left:g};return t.createElement(gi,{containerName:h},t.createElement(dd,od({height:c,width:f,role:r},y,{ref:B,style:{...C,right:p,top:u,bottom:b,position:x,"--styled-overlay-visibility":s}})))}));var cd=sd;function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fd.apply(this,arguments)}const ud=({renderAnchor:e,anchorRef:r,anchorId:n,children:a,open:o,onOpen:i,onClose:d,height:s,width:c,overlayProps:u,focusTrapSettings:g,focusZoneSettings:p,side:b="outside-bottom",align:m="start",alignmentOffset:h,anchorOffset:v})=>{const x=qa(r),[y,w]=Qo(),B=An(n),k=f((()=>null==d?void 0:d("click-outside")),[d]),E=f((()=>null==d?void 0:d("escape")),[d]),T=f((e=>{e.defaultPrevented||!o&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==i||i("anchor-key-press",e),e.preventDefault())}),[o,i]),C=f((e=>{e.defaultPrevented||0!==e.button||(o?null==d||d("anchor-click"):null==i||i("anchor-click"))}),[o,i,d]),{position:S}=Jo({anchorElementRef:x,floatingElementRef:y,side:b,align:m,alignmentOffset:h,anchorOffset:v},[y.current]);return l((()=>{!o&&y.current&&w(null)}),[o,y,w]),di({containerRef:y,disabled:!o||!S,...p}),ai({containerRef:y,disabled:!o||!S,...g}),t.createElement(t.Fragment,null,e&&e({ref:x,id:B,"aria-haspopup":"true","aria-expanded":o?"true":void 0,tabIndex:0,onClick:C,onKeyDown:T}),o?t.createElement(cd,fd({returnFocusRef:x,onClickOutside:k,ignoreClickRefs:[x],onEscape:E,ref:w,role:"none",visibility:S?"visible":"hidden",height:s,width:c,top:(null==S?void 0:S.top)||0,left:(null==S?void 0:S.left)||0,anchorSide:null==S?void 0:S.anchorSide},u),a):null)};ud.displayName="AnchoredOverlay";var gd=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...n}={}){super(e,n),this.oldState=String(t||""),this.newState=String(r||"")}},pd=new WeakMap;function bd(e,t,r){pd.set(e,setTimeout((()=>{pd.has(e)&&e.dispatchEvent(new gd("toggle",{cancelable:!1,oldState:t,newState:r}))}),0))}var md=globalThis.ShadowRoot||function(){},hd=globalThis.HTMLDialogElement||function(){},vd=new WeakMap,xd=new WeakMap,yd=new WeakMap;function wd(e){return yd.get(e)||"hidden"}var Bd=new WeakMap;function kd(e,t){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!t||"showing"===wd(e))&&(!(!t&&"hidden"!==wd(e))&&(!(e instanceof hd&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Ed(e){return e?Array.from(xd.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Td(e){const t=Id(e),r=function(e){for(;e;){const t=e.popoverTargetElement;if(t)return t;if((e=e.parentElement||Sd(e))instanceof md&&(e=e.host),e instanceof Document)return}}(e);return Ed(t)>Ed(r)?t:r}function Cd(e){const t=xd.get(e);for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function Sd(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?Sd(e.parentNode):e}function Id(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===yd.get(e))return e;if((e=e.parentElement||Sd(e))instanceof md&&(e=e.host),e instanceof Document)return}}function Od(e){return!e.hidden&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&-1!==e.tabIndex)))}function Nd(e){(function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);const r=t.querySelector("[autofocus]");if(r)return r;const n=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=n.currentNode;for(;a;){if(Od(a))return a;a=n.nextNode()}})(e)?.focus()}var Ad=new WeakMap;function Md(e){if(!kd(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new gd("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!kd(e,!1))return;let r=!1;if("auto"===e.popover){const r=e.getAttribute("popover");if(Rd(function(e){const t=new Map;let r=0;const n=e.ownerDocument;for(const e of xd.get(n)||[])t.set(e,r),r+=1;t.set(e,r),r+=1;let a=null;return function(e){const r=Id(e);if(null===r)return null;const n=t.get(r);(null===a||t.get(a)<n)&&(a=r)}(e?.parentElement),a}(e)||t,!1,!0),r!==e.getAttribute("popover")||!kd(e,!1))return}Cd(t)||(r=!0),Ad.delete(e);const n=t.activeElement;e.classList.add(":popover-open"),yd.set(e,"showing"),vd.has(t)||vd.set(t,new Set),vd.get(t).add(e),Nd(e),"auto"===e.popover&&(xd.has(t)||xd.set(t,new Set),xd.get(t).add(e),Pd(Bd.get(e),!0)),r&&n&&"auto"===e.popover&&Ad.set(e,n),bd(e,"closed","open")}function Ld(e,t=!1,r=!1){if(!kd(e,!0))return;const n=e.ownerDocument;if("auto"===e.popover&&(Rd(e,t,r),!kd(e,!0)))return;if(Pd(Bd.get(e),!1),Bd.delete(e),r&&(e.dispatchEvent(new gd("beforetoggle",{oldState:"open",newState:"closed"})),!kd(e,!0)))return;vd.get(n)?.delete(e),xd.get(n)?.delete(e),e.classList.remove(":popover-open"),yd.set(e,"hidden"),r&&bd(e,"open","closed");const a=Ad.get(e);a&&(Ad.delete(e),t&&a.focus())}function jd(e,t=!1,r=!1){let n=Cd(e);for(;n;)Ld(n,t,r),n=Cd(e)}function Rd(e,t,r){const n=e.ownerDocument||e;if(e instanceof Document)return jd(n,t,r);let a=null,o=!1;for(const t of xd.get(n)||[])if(t===e)o=!0;else if(o){a=t;break}if(!o)return jd(n,t,r);for(;a&&"showing"===wd(a)&&xd.get(n)?.size;)Ld(a,t,r)}var Dd=new WeakMap;function zd(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!Cd(r))return;const n=Td(t);if(n&&"pointerdown"===e.type)Dd.set(r,n);else if("pointerup"===e.type){const e=Dd.get(r)===n;Dd.delete(r),e&&Rd(n||r,!1,!0)}}var _d=new WeakMap;function Pd(e,t=!1){if(!e)return;_d.has(e)||_d.set(e,e.getAttribute("aria-expanded"));const r=e.popoverTargetElement;if(r&&"auto"===r.popover)e.setAttribute("aria-expanded",String(t));else{const t=_d.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var Hd=globalThis.ShadowRoot||function(){};function Fd(e,t,r){const n=e[t];Object.defineProperty(e,t,{value(e){return n.call(this,r(e))}})}var Vd=/(^|[^\\]):popover-open\b/g,Wd="\n [popover] {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n [popover]:is(dialog[open]) {\n display: revert;\n }\n\n [anchor].\\:popover-open {\n inset: auto;\n }\n\n [anchor]:is(:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n [popover] {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n [popover] {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n [popover] {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n [popover]:not(.\\:popover-open) {\n display: none;\n }\n",$d=null;function Zd(e){if(null===$d)try{($d=new CSSStyleSheet).replaceSync(Wd)}catch{$d=!1}if(!1===$d){const t=document.createElement("style");t.textContent=Wd,e instanceof Document?e.head.append(t):e.append(t)}else e.adoptedStyleSheets=[...e.adoptedStyleSheets,$d]}function Gd(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(Vd,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||gd,Fd(Document.prototype,"querySelector",e),Fd(Document.prototype,"querySelectorAll",e),Fd(Element.prototype,"querySelector",e),Fd(Element.prototype,"querySelectorAll",e),Fd(Element.prototype,"matches",e),Fd(Element.prototype,"closest",e),Fd(DocumentFragment.prototype,"querySelectorAll",e),Fd(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){Md(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Ld(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===yd.get(this)&&void 0===e||!1===e?Ld(this,!0,!0):void 0!==e&&!0!==e||Md(this)}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const r=t.call(this,e);return Zd(r),r}}});const r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=r.call(this);return e.shadowRoot&&Zd(e.shadowRoot),e}}});const n=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=n.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return n.delete(this),null;const t=Sd(this),r=this.getAttribute("popovertarget");return(t instanceof Document||t instanceof Hd)&&r&&t.getElementById(r)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}a(HTMLButtonElement),a(HTMLInputElement);const o=e=>{if(!e.isTrusted)return;const t=e.composedPath()[0];if(!(t instanceof Element)||t?.shadowRoot)return;const r=Sd(t);if(!(r instanceof Hd||r instanceof Document))return;const n=t.closest("[popovertargetaction],[popovertarget]");n&&function(e){const t=e.popoverTargetElement;if(!t)return;const r=wd(t);"show"===e.popoverTargetAction&&"showing"===r||"hide"===e.popoverTargetAction&&"hidden"===r||("showing"===r?Ld(t,!0,!0):kd(t,!1)&&(Bd.set(t,e),Md(t)))}(n)},i=e=>{const t=e.key,r=e.target;!r||"Escape"!==t&&"Esc"!==t||Rd(r.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",o),e.addEventListener("keydown",i),e.addEventListener("pointerdown",zd),e.addEventListener("pointerup",zd)})(document),Zd(document)}function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ud.apply(this,arguments)}const qd="\n animation-name: tooltip-appear;\n animation-duration: 0.1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n",Kd=b.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-5xkifj-0"})(["display:none;&[popover]{padding:0.5em 0.75em;width:max-content;margin:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;word-wrap:break-word;background:",";border-radius:",";border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}&[popover]:popover-open{display:block;}&[popover].\\:popover-open{display:block;}@media (forced-colors:active){outline:1px solid transparent;}&::after{position:absolute;display:block;right:0;left:0;height:8px;content:'';}&[data-direction='n']::after,&[data-direction='ne']::after,&[data-direction='nw']::after{top:100%;}&[data-direction='s']::after,&[data-direction='se']::after,&[data-direction='sw']::after{bottom:100%;}&[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}&[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:popover-open,&:popover-open::before{","}&.\\:popover-open,&.\\:popover-open::before{","}",";"],Sr("fonts.normal"),Sr("colors.fg.onEmphasis"),Sr("colors.neutral.emphasisPlus"),Sr("radii.2"),qd,qd,Jr),Yd={nw:{side:"outside-top",align:"start"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"end"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"end"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"start"},w:{side:"outside-left",align:"center"}},Xd={"outside-top-start":"nw","outside-top-center":"n","outside-top-end":"ne","outside-right-center":"e","outside-bottom-end":"se","outside-bottom-center":"s","outside-bottom-start":"sw","outside-left-center":"w"},Jd=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],Qd=e=>Jd.some((t=>e.matches(t)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),es=t.createContext({}),ts=t.forwardRef((({direction:e="s",text:r,type:n="description",children:a,...o},d)=>{const c=An(),f=u.only(a),g=qa(d),p=i(null),[b,m]=s(e),h=()=>{p.current&&g.current&&!p.current.matches(":popover-open")&&p.current.showPopover()},v=()=>{p.current&&g.current&&p.current.matches(":popover-open")&&p.current.hidePopover()};return l((()=>{if(!p.current||!g.current)return;const t=Qd(g.current),r=g.current.childNodes,a=Array.from(r).some((e=>e instanceof HTMLElement&&Qd(e)));if(t||a||Bl(!1),"label"===n){g.current.hasAttribute("aria-label"),Array.from(g.current.childNodes).some((e=>e instanceof HTMLElement&&e.hasAttribute("aria-label")))}"undefined"!=typeof window&&("undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||Gd());const o=p.current,i=g.current;o.setAttribute("popover","auto");const l={side:Yd[e].side,align:Yd[e].align},d=()=>{const{top:e,left:t,anchorAlign:r,anchorSide:n}=eo(o,i,l);o.style.top=`${e}px`,o.style.left=`${t}px`;m(Xd[`${n}-${r}`])};return o.addEventListener("toggle",d),()=>{o.removeEventListener("toggle",d)}}),[p,g,e,n]),t.createElement(es.Provider,{value:{tooltipId:c}},t.createElement(Qr,{onMouseLeave:()=>v()},t.isValidElement(f)&&t.cloneElement(f,{ref:g,"aria-describedby":"description"===n?`tooltip-${c}`:void 0,"aria-labelledby":"label"===n?`tooltip-${c}`:void 0,onBlur:e=>{var t,r;v(),null===(t=(r=f.props).onBlur)||void 0===t||t.call(r,e)},onFocus:e=>{var t,r;h(),null===(t=(r=f.props).onFocus)||void 0===t||t.call(r,e)},onMouseEnter:e=>{var t,r;h(),null===(t=(r=f.props).onMouseEnter)||void 0===t||t.call(r,e)}}),t.createElement(Kd,Ud({ref:p,"data-direction":b},o,{role:"description"===n?"tooltip":void 0,"aria-hidden":"label"===n||void 0,id:`tooltip-${c}`}),r)))}));function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rs.apply(this,arguments)}const ns=t.createContext({renderAnchor:null,open:!1}),as=({anchorRef:e,open:r,onOpenChange:n,children:a})=>{const[o,i]=ei(r,n,!1),l=t.useCallback((()=>i(!0)),[i]),d=t.useCallback((()=>i(!1)),[i]),s=t.Children.toArray(a).find((e=>t.isValidElement(e)&&(e.type===is||e.type===os))),c=t.isValidElement(s)?s.props.id:void 0,f=qa(e),u=An(c);let g=null;const p=t.Children.map(a,(e=>{if(e.type===ts){const r=e.props.children;return r.type===is&&(g=n=>{const a=t.cloneElement(r,{...n});return t.cloneElement(e,{children:a,ref:f})}),null}if(e.type===os){const r=e.props.children;return void 0!==r&&r.type===ts?null!==r.props.children&&(g=n=>{const a=r.props.children,o=t.cloneElement(a,{...n}),i=t.cloneElement(r,{children:o});return t.cloneElement(e,{children:i,ref:f})}):g=r=>t.cloneElement(e,r),null}return e.type===is?(g=r=>t.cloneElement(e,r),null):e}));return t.createElement(ns.Provider,{value:{anchorRef:f,renderAnchor:g,anchorId:u,open:o,onOpen:l,onClose:d}},p)};as.displayName="Menu";const os=t.forwardRef((({children:e,...r},n)=>t.cloneElement(e,{...r,ref:n}))),is=t.forwardRef((({...e},r)=>t.createElement(os,{ref:r},t.createElement(hn,rs({type:"button",trailingAction:Ko},e))))),ls=({children:e,align:r="start",side:n="outside-bottom","aria-labelledby":a,...o})=>{const{anchorRef:i,renderAnchor:l,anchorId:d,open:s,onOpen:c,onClose:f}=t.useContext(ns),u=t.useRef(null);return ti(s,f,u,i),t.createElement(ud,{anchorRef:i,renderAnchor:l,anchorId:d,open:s,onOpen:c,onClose:f,align:r,side:n,overlayProps:o,focusZoneSettings:{focusOutBehavior:"wrap"}},t.createElement("div",{ref:u},t.createElement(hl.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:a||d,selectionAttribute:"aria-checked",afterSelect:f}},e)))};ls.displayName="Overlay",as.displayName="ActionMenu";const ds=Object.assign(as,{Button:is,Anchor:os,Overlay:ls,Divider:nd}),ss=d(null);var cs,fs={exports:{}},us={},gs=Symbol.for("react.element"),ps=Symbol.for("react.portal"),bs=Symbol.for("react.fragment"),ms=Symbol.for("react.strict_mode"),hs=Symbol.for("react.profiler"),vs=Symbol.for("react.provider"),xs=Symbol.for("react.context"),ys=Symbol.for("react.server_context"),ws=Symbol.for("react.forward_ref"),Bs=Symbol.for("react.suspense"),ks=Symbol.for("react.suspense_list"),Es=Symbol.for("react.memo"),Ts=Symbol.for("react.lazy"),Cs=Symbol.for("react.offscreen");function Ss(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gs:switch(e=e.type){case bs:case hs:case ms:case Bs:case ks:return e;default:switch(e=e&&e.$$typeof){case ys:case xs:case ws:case Ts:case Es:case vs:return e;default:return t}}case ps:return t}}}cs=Symbol.for("react.module.reference"),us.ContextConsumer=xs,us.ContextProvider=vs,us.Element=gs,us.ForwardRef=ws,us.Fragment=bs,us.Lazy=Ts,us.Memo=Es,us.Portal=ps,us.Profiler=hs,us.StrictMode=ms,us.Suspense=Bs,us.SuspenseList=ks,us.isAsyncMode=function(){return!1},us.isConcurrentMode=function(){return!1},us.isContextConsumer=function(e){return Ss(e)===xs},us.isContextProvider=function(e){return Ss(e)===vs},us.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gs},us.isForwardRef=function(e){return Ss(e)===ws},us.isFragment=function(e){return Ss(e)===bs},us.isLazy=function(e){return Ss(e)===Ts},us.isMemo=function(e){return Ss(e)===Es},us.isPortal=function(e){return Ss(e)===ps},us.isProfiler=function(e){return Ss(e)===hs},us.isStrictMode=function(e){return Ss(e)===ms},us.isSuspense=function(e){return Ss(e)===Bs},us.isSuspenseList=function(e){return Ss(e)===ks},us.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bs||e===hs||e===ms||e===Bs||e===ks||e===Cs||"object"==typeof e&&null!==e&&(e.$$typeof===Ts||e.$$typeof===Es||e.$$typeof===vs||e.$$typeof===xs||e.$$typeof===ws||e.$$typeof===cs||void 0!==e.getModuleId)},us.typeOf=Ss,fs.exports=us;var Is=fs.exports;function Os(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Os(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ns(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Os(e))&&(n&&(n+=" "),n+=t);return n}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}const Ms={small:"16px",medium:"32px",large:"64px"};function Ls({size:e="medium",...r}){const n=Ms[e];return t.createElement("svg",As({height:n,width:n,viewBox:"0 0 16 16",fill:"none"},r),t.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),t.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}Ls.displayName="Spinner";const js=b(Ls).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],Jr);js.displayName="Spinner";var Rs=js;const Ds=({children:e,hasLoadingIndicator:r,showLoadingIndicator:n,visualPosition:a})=>!e&&!r||"leading"===a&&!e&&!n?null:r?t.createElement("span",{className:"TextInput-icon"},t.createElement(Qr,{display:"flex",position:"relative"},e&&t.createElement(Qr,{sx:{visibility:n?"hidden":"visible"}},e),t.createElement(Rs,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:n?"visible":"hidden",..."leading"===a?{left:0}:{right:0}}:{visibility:n?"visible":"hidden"},size:e?void 0:"small"}))):t.createElement("span",{className:"TextInput-icon"},e);Ds.displayName="TextInputInnerVisualSlot";var zs=Ds;const _s=ct({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Ps=ct({prop:"size",variants:{small:{"--inner-action-size":"20px",minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},medium:{"--inner-action-size":"24px"},large:{"--inner-action-size":"28px",px:2,py:"10px",height:"40px"}}}),Hs="12px",Fs=Hs,Vs=(e,t)=>e?t&&v(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Sr("colors.accent.fg"),Sr("colors.accent.fg")):v(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Sr("colors.accent.fg"),Sr("colors.accent.fg")),Ws=b.span.withConfig({displayName:"TextInputWrapper__TextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:20px;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:32px;overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}&::placeholder{color:",";}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Sr("fontSizes.1"),Sr("colors.fg.default"),Sr("colors.canvas.default"),Sr("colors.border.default"),Sr("radii.2"),Sr("shadows.primer.shadow.inset"),Sr("colors.fg.subtle"),(e=>Vs(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Hs,(e=>e.contrast&&v(["background-color:",";"],Sr("colors.canvas.inset"))),(e=>e.disabled&&v(["color:",";background-color:",";border-color:",";input,textarea,select{cursor:not-allowed;}"],Sr("colors.primer.fg.disabled"),Sr("colors.input.disabledBg"),Sr("colors.border.default"))),(e=>e.monospace&&v(["font-family:",";"],Sr("fonts.mono"))),(e=>"error"===e.validationStatus&&v(["border-color:",";",""],Sr("colors.danger.emphasis"),Vs(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&v(["border-color:",";"],Sr("colors.success.emphasis"))),(e=>e.block&&v(["width:100%;display:flex;align-self:stretch;"])),Sr("breakpoints.1"),Sr("fontSizes.1"),pt,mt,vt,_s,Ps,Jr);var $s=b(Ws).withConfig({displayName:"TextInputWrapper",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;}"," ",";"],Sr("space.2"),Sr("colors.fg.muted"),(e=>v(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?Fs:0,e.hasTrailingVisual&&!e.hasTrailingAction?Fs:0,e.hasLeadingVisual?0:Fs,e.hasTrailingVisual||e.hasTrailingAction?0:Fs)),Jr);function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(this,arguments)}const Gs=b.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::before{position:absolute;z-index:1000001;display:none;width:0px;height:0px;color:",";pointer-events:none;content:'';border:6px solid transparent;opacity:0;}&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus,&:focus-within{&::before,&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0.4s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::before,&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus,&.tooltipped-multiline:focus-within{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}&::before{top:auto;right:50%;bottom:-7px;margin-right:-6px;border-bottom-color:",";}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}&::before{top:-7px;right:50%;bottom:auto;margin-right:-6px;border-top-color:",";}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}&::before{top:50%;bottom:50%;left:-7px;margin-top:-6px;border-left-color:",";}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}&::before{top:50%;right:-7px;bottom:50%;margin-top:-6px;border-right-color:",";}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-right-2::before{right:15px;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}&.tooltipped-align-left-2::before{left:10px;}",";"],Sr("colors.neutral.emphasisPlus"),Sr("fonts.normal"),Sr("colors.fg.onEmphasis"),Sr("colors.neutral.emphasisPlus"),Sr("radii.1"),Sr("colors.neutral.emphasisPlus"),Sr("space.3"),Sr("space.3"),Sr("colors.neutral.emphasisPlus"),Sr("space.3"),Sr("space.3"),Sr("colors.neutral.emphasisPlus"),Sr("colors.neutral.emphasisPlus"),Jr);function Us({direction:e="n",children:r,className:n,text:a,noDelay:o,align:i,wrap:l,...d}){const s=Ns(n,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,o&&"tooltipped-no-delay",l&&"tooltipped-multiline");return t.createElement(Gs,Zs({role:"tooltip","aria-label":a},d,{className:s}),r)}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qs.apply(this,arguments)}Us.displayName="Tooltip",Us.alignments=["left","right"],Us.directions=["n","ne","e","se","s","sw","w","nw"];const Ks={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",'&[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"}}},Ys=({"aria-label":e,children:r,tooltipDirection:n})=>t.createElement(t.Fragment,null,e?t.createElement(Us,{"aria-label":e,direction:n,sx:{display:"inline-block"}},r):r),Xs=n((({"aria-label":e,tooltipDirection:r,children:n,icon:a,sx:o,variant:i="invisible",...l},d)=>{const s="invisible"===i?_r(Ks,o||{}):o||{};return(a&&!e||!n&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),t.createElement(Qr,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},a&&!n?t.createElement(Us,{direction:r,"aria-label":e},t.createElement(yn,qs({variant:i,type:"button",icon:a,size:"small",sx:s},l,{"aria-label":e,"aria-labelledby":void 0,ref:d}))):t.createElement(Ys,{"aria-label":e},t.createElement(hn,qs({variant:i,type:"button",sx:s},l,{ref:d}),n)))}));var Js=Xs;var Qs=b.input.withConfig({displayName:"UnstyledTextInput",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;}",";"],Jr);function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}const tc=t.forwardRef((({icon:e,leadingVisual:r,trailingVisual:n,trailingAction:a,block:o,className:i,contrast:l,disabled:d,loading:c,loaderPosition:u="auto",monospace:g,validationStatus:p,sx:b,size:m,onFocus:h,onBlur:v,width:x,minWidth:y,maxWidth:w,variant:B,type:k="text",...E},T)=>{const[C,S]=s(!1),I=qa(T),O=Ns(i,"TextInput-wrapper"),N=c&&("leading"===u||Boolean(r&&"trailing"!==u)),A=c&&("trailing"===u||Boolean("auto"===u&&!r)),M=f((e=>{S(!0),h&&h(e)}),[h]),L=f((e=>{S(!1),v&&v(e)}),[v]);return t.createElement($s,{block:o,className:O,validationStatus:p,contrast:l,disabled:d,monospace:g,sx:b,size:m,width:x,minWidth:y,maxWidth:w,variant:B,hasLeadingVisual:Boolean(r||N),hasTrailingVisual:Boolean(n||A),hasTrailingAction:Boolean(a),isInputFocused:C,onClick:()=>{var e;null===(e=I.current)||void 0===e||e.focus()},"aria-busy":Boolean(c)},e&&t.createElement(e,{className:"TextInput-icon"}),t.createElement(zs,{visualPosition:"leading",showLoadingIndicator:N,hasLoadingIndicator:"boolean"==typeof c},"string"!=typeof r&&Is.isValidElementType(r)?t.createElement(r,null):r),t.createElement(Qs,ec({ref:I,disabled:d,onFocus:M,onBlur:L,type:k},E,{"data-component":"input"})),t.createElement(zs,{visualPosition:"trailing",showLoadingIndicator:A,hasLoadingIndicator:"boolean"==typeof c},"string"!=typeof n&&Is.isValidElementType(n)?t.createElement(n,null):n),a)}));tc.displayName="TextInput";var rc=Object.assign(tc,{Action:Js});function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(this,arguments)}const ac=t.forwardRef((({as:e=rc,onFocus:r,onBlur:n,onChange:a,onKeyDown:i,onKeyUp:d,onKeyPress:c,value:u,...g},p)=>{const b=o(ss);if(null===b)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:m,autocompleteSuggestion:h="",id:v,inputRef:x,inputValue:y="",isMenuDirectlyActivated:w,setInputValue:B,setShowMenu:k,showMenu:E}=b;dn(p,x);const[T,C]=s(!0),{safeSetTimeout:S}=Na(),I=f((e=>{r&&r(e),k(!0)}),[r,k]),O=f((e=>{n&&n(e),S((()=>{document.activeElement!==x.current&&k(!1)}),0)}),[n,k,x,S]),N=f((e=>{a&&a(e),B(e.currentTarget.value),E||k(!0)}),[a,B,k,E]),A=f((e=>{var t;i&&i(e),"Backspace"===e.key&&C(!1),"Escape"===e.key&&null!==(t=x.current)&&void 0!==t&&t.value&&(B(""),x.current.value="")}),[x,B,C,i]),M=f((e=>{d&&d(e),"Backspace"===e.key&&C(!0)}),[C,d]),L=f((e=>{if(c&&c(e),E&&"Enter"===e.key&&m.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const t=new KeyboardEvent(e.type,e.nativeEvent);m.current.dispatchEvent(t)}}),[m,E,c]);return l((()=>{x.current&&(h||(x.current.value=y),T&&h&&(y||w)&&(x.current.value=h,0===h.toLowerCase().indexOf(y.toLowerCase())&&x.current.setSelectionRange(y.length,h.length)))}),[h,y,x,w]),l((()=>{B(void 0!==u?u.toString():"")}),[u,B]),t.createElement(e,nc({onFocus:I,onBlur:O,onChange:N,onKeyDown:A,onKeyPress:L,onKeyUp:M,ref:x,"aria-controls":`${v}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":`${v}-listbox`,autoComplete:"off",id:v},g))}));ac.displayName="AutocompleteInput";var oc=ac;function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}const lc={startMargin:0,endMargin:8};function dc(e){const r=o(ss);if(null===r)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:d,inputRef:c,inputValue:f="",scrollContainerRef:u,setAutocompleteSuggestion:g,setShowMenu:p,setInputValue:b,setIsMenuDirectlyActivated:m,setSelectedItemLength:h,showMenu:v}=r,{items:x,selectedItemIds:y,sortOnCloseFn:w,emptyStateText:B="No selectable options",addNewItem:k,loading:E,selectionVariant:T="single",filterFn:C,"aria-labelledby":S,onOpenChange:I,onSelectedChange:O,customScrollContainerRef:N}=e,A=i(null),M=i([]),[L,j]=s(),[R,D]=s(x.map((({id:e})=>e))),z=An(d),_=a((()=>x.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===T?y.includes(e.id):void 0,onAction:e=>{const t=y.filter((t=>t!==e.id)),r=y.includes(e.id)?t:[...t,e.id];var n,a;((O||(n=b,function(e){const{text:t=""}=Array.isArray(e)?e.slice(-1)[0]:e;n(t)}))(r.map((e=>function(e,t){return t.find((t=>t.id===e))}(e,x)))),"multiple"===T)?(b(""),g("")):(p(!1),null===(a=c.current)||void 0===a||a.setSelectionRange(c.current.value.length,c.current.value.length))}})))),[L,x,y,c,O,T,g,b,p]),P=a((()=>R.reduce(((e,t,r)=>(e[t]=r,e)),{})),[R]),H=a((()=>{return _.filter(C||(e=f,function(t,r){var n;return Boolean(null===(n=t.text)||void 0===n?void 0:n.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,t)=>P[e.id]-P[t.id]));var e}),[_,P,C,f]),F=a((()=>[...H,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===T?y.includes(k.id):void 0,leadingVisual:()=>t.createElement(Zo,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===T&&(b(""),g(""))}}]:[]]),[H,k,g,T,b,z,L,y]);if(t.useEffect((()=>{M.current=F})),di({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:c,onActiveDescendantChanged:(e,t,r)=>{if(n.current=e||null,e){const t=M.current.find((t=>{var r;return t.id===(null===(r=e.closest("li"))||void 0===r?void 0:r.getAttribute("data-id"))}));j(t),m(r)}e&&N&&N.current&&r?wo(e,N.current,lc):e&&u.current&&r&&wo(e,u.current,lc)}},[E]),l((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(f)&&!y.includes(L.id)?g(L.text):g("")}),[L,f,y,g]),l((()=>{const e=[...R].sort(w||(t=e=>((e,t)=>t.includes(e))(e,y),(e,r)=>t(e)===t(r)?0:t(e)?-1:1));var t;const r=e.length===R.length&&e.every(((e,t)=>e===R[t]));!1!==v||r||D(e),I&&I(Boolean(v))}),[v,I,y,w,R]),l((()=>{y.length&&h(y.length)}),[y,h]),"single"===T&&y.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return t.createElement(cn,{isVisible:v},E?t.createElement(Qr,{p:3,display:"flex",justifyContent:"center"},t.createElement(Rs,null)):t.createElement("div",{ref:A},F.length?t.createElement(ad,{selectionVariant:T,role:"listbox",id:`${d}-listbox`,"aria-labelledby":S},F.map((e=>{const{id:r,onAction:n,children:a,text:o,leadingVisual:i,trailingVisual:l,...d}=e;return t.createElement(ad.Item,ic({key:r,onSelect:()=>n(e)},d,{id:r,"data-id":r}),i&&t.createElement(ad.LeadingVisual,null,t.createElement(i,null)),null!=a?a:o,l&&t.createElement(ad.TrailingVisual,null,t.createElement(l,null)))}))):t.createElement(Qr,{p:3},B)))}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sc.apply(this,arguments)}function cc({menuAnchorRef:e,overlayProps:r,children:n,...a}){const i=o(ss);if(null===i)throw new Error("AutocompleteContext returned null values");const l={...r,...a},{inputRef:d,scrollContainerRef:s,selectedItemLength:c,setShowMenu:u,showMenu:g=!1}=i,{floatingElementRef:p,position:b}=Jo({side:"outside-bottom",align:"start",anchorElementRef:e||d},[g,c]);dn(s,p);const m=f((()=>{u(!1)}),[u]);return"undefined"==typeof window?null:g?t.createElement(cd,sc({returnFocusRef:d,preventFocusOnOpen:!0,onClickOutside:m,onEscape:m,ref:p,top:null==b?void 0:b.top,left:null==b?void 0:b.left,sx:{overflow:"auto"}},l),n):t.createElement(cn,{"aria-hidden":"true"},n)}dc.displayName="AutocompleteMenu",dc.displayName="AutocompleteMenu",cc.displayName="AutocompleteOverlay";const fc={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},uc=(e,t)=>{const{type:r,payload:n}=t;switch(r){case"inputValue":return{...e,inputValue:n};case"showMenu":return{...e,showMenu:n};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:n};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:n};case"selectedItemLength":return{...e,selectedItemLength:n};default:return e}},gc=({children:e,id:r})=>{const n=i(null),a=i(null),o=i(null),[l,d]=g(uc,fc),{inputValue:s,showMenu:c,autocompleteSuggestion:u,isMenuDirectlyActivated:p,selectedItemLength:b}=l,m=f((e=>{d({type:"inputValue",payload:e})}),[]),h=f((e=>{d({type:"showMenu",payload:e})}),[]),v=f((e=>{d({type:"autocompleteSuggestion",payload:e})}),[]),x=f((e=>{d({type:"isMenuDirectlyActivated",payload:e})}),[]),y=f((e=>{d({type:"selectedItemLength",payload:e})}),[]),w=An(r);return t.createElement(ss.Provider,{value:{activeDescendantRef:n,autocompleteSuggestion:u,id:w,inputRef:o,inputValue:s,isMenuDirectlyActivated:p,scrollContainerRef:a,selectedItemLength:b,setAutocompleteSuggestion:v,setInputValue:m,setIsMenuDirectlyActivated:x,setShowMenu:h,setSelectedItemLength:y,showMenu:c}},e)};gc.displayName="Autocomplete";var pc=Object.assign(gc,{Context:ss,Input:oc,Menu:dc,Overlay:cc});const bc={xsmall:{width:"320px"},small:{width:be.breakpoints[0]},medium:{width:be.breakpoints[1]},large:{width:be.breakpoints[2]},xlarge:{width:be.breakpoints[3]},xxlarge:{width:"1400px"}};function mc(e){return`@media screen and (min-width: ${e})`}const hc=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(bc.medium.width),vc=mc(bc.medium.width),xc=mc(bc.xxlarge.width);function yc(e,t,r){if(Dn(e)){const n=e,a="narrow"in n?{[hc]:{[t]:r(n.narrow)}}:{},o="regular"in n?{[vc]:{[t]:r(n.regular)}}:{},i="wide"in n?{[xc]:{[t]:r(n.wide)}}:{};return function(e){if("narrow"in e&&"regular"in e&&"wide"in e){const t=Object.values(e);return t.every((e=>e===t[0]))}return!1}(n)?{[t]:r(n.narrow)}:function(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}(n)?{...a,...o}:{...a,...o,...i}}return{[t]:r(e)}}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wc.apply(this,arguments)}const Bc=20,kc=b.img.attrs((e=>({height:e.size,width:e.size}))).withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-2lv0r8-0"})(["display:inline-block;overflow:hidden;line-height:",";vertical-align:middle;border-radius:",";box-shadow:0 0 0 1px ",";height:var(--avatar-size);width:var(--avatar-size);",""],Sr("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Sr("colors.avatar.border"),Jr),Ec=t.forwardRef((function({alt:e="",size:r=20,square:n=!1,sx:a=sn,...o},i){const l=Dn(r)?_r(yc(r,"--avatar-size",(e=>`${e||Bc}px`)),a):_r({"--avatar-size":`${r}px`},a);return t.createElement(kc,wc({ref:i,alt:e,size:r,square:n,sx:l},o))}));var Tc=Ec;function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cc.apply(this,arguments)}const Sc=b(Tc).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Sr("shadows.avatar.childShadow")),Ic=({children:e,...r})=>{const n=t.Children.map(e,((e,r)=>t.isValidElement(e)?0===r?t.cloneElement(e,{size:40}):t.createElement(Sc,Cc({bg:"canvas.default"},e.props,{size:20})):e));return t.createElement(Qr,Cc({position:"relative",display:"inline-flex"},r),n)};Ic.displayName="AvatarPair",Ic.displayName="AvatarPair";var Oc=Ic;const Nc=b.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);--avatar-stack-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 ) + calc(var(--avatar-border-width) * 3) );display:flex;position:relative;height:var(--avatar-stack-size);min-width:",";.pc-AvatarStackBody{display:flex;position:absolute;width:var(--avatar-stack-three-plus-min-width);}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);box-shadow:0 0 0 var(--avatar-border-width) ",";position:relative;overflow:hidden;&: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-plus{min-width:var(--avatar-stack-three-plus-min-width);}&.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{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover{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;}}}",";"],(e=>1===e.count?"var(--avatar-stack-size)":2===e.count?"30px":"38px"),(e=>1===e.count?Sr("colors.avatar.border"):Sr("colors.canvas.default")),55,40,25,Sr("space.1"),Sr("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Sr("colors.canvas.default")};`),Jr),Ac=({children:e,alignRight:r,disableExpand:n,size:a,sx:o=sn})=>{const i=t.Children.count(e),l=Ns({"pc-AvatarStack--two":2===i,"pc-AvatarStack--three-plus":i>2,"pc-AvatarStack--right":r}),d=Ns("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":n}),s=_r(a?Dn(a)?yc(a,"--avatar-stack-size",(e=>`${e||Bc}px`)):{"--avatar-stack-size":`${a}px`}:yc((()=>{const r={narrow:[],regular:[],wide:[]};return t.Children.toArray(e).reduce(((e,n)=>{if(!t.isValidElement(n))return e;for(const t of Object.keys(r))Dn(n.props.size)?r[t].push(n.props.size[t]||Bc):r[t].push(n.props.size||Bc),e[t]=Math.min(...r[t]);return e}),{narrow:Bc,regular:Bc,wide:Bc})})(),"--avatar-stack-size",(e=>`${e}px`)),o);return t.createElement(Nc,{count:i,className:l,sx:s},t.createElement(Qr,{className:d}," ",(e=>t.Children.map(e,(e=>t.isValidElement(e)?t.cloneElement(e,{...e.props,className:Ns(e.props.className,"pc-AvatarItem")}):e)))(e)))};Ac.displayName="AvatarStack";var Mc=Ac;var Lc=b.a.withConfig({displayName:"BranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:",";font-family:",";color:",";background-color:",";border-radius:",";text-decoration:none;",";"],Sr("fontSizes.0"),Sr("fonts.mono"),Sr("colors.accent.fg"),Sr("colors.accent.subtle"),Sr("radii.2"),Jr);const jc=b.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:",";font-size:",";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Sr("colors.fg.muted"),Sr("fontSizes.1")),Rc=b.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],Jr);function Dc({className:e,children:r,sx:n}){const a=t.Children.map(r,(e=>t.createElement(jc,null,e)));return t.createElement(Rc,{className:e,"aria-label":"Breadcrumbs",sx:n},t.createElement(Qr,{as:"ol",my:0,pl:0},a))}Dc.displayName="Breadcrumbs";const zc=b.a.attrs((e=>({className:Ns(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null}))).withConfig({displayName:"Breadcrumbs__BreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:",";pointer-events:none;}",";"],Sr("colors.accent.fg"),Sr("fontSizes.1"),Sr("colors.fg.default"),Jr);Dc.displayName="Breadcrumbs",zc.displayName="Breadcrumbs.Item";var _c=Object.assign(Dc,{Item:zc});const Pc=Object.assign(Dc,{Item:zc});var Hc=b.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *{margin-inline-end:-1px;position:relative;border-radius:0;:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}:focus,:active,:hover{z-index:1;}}",";"],Sr("radii.2"),Sr("radii.2"),Sr("radii.2"),Sr("radii.2"),Jr);const Fc={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Vc={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Wc(e,t,r){const n=Fc[e].toLowerCase(),a=Vc[e].toLowerCase();return{[n]:"100%",[t||a]:t?r:"50%"}}const $c=Br({prop:"bg",key:"colors"}),Zc=Br({prop:"borderColor",key:"colors"}),Gc=Br({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Uc(e){var r;const n=t.useContext(y),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(r=e.theme)&&void 0!==r?r:n},{bg:o}=$c(a),{borderColor:i}=Zc(a),{borderWidth:l}=Gc(a),{size:d=8,location:s="bottom"}=e,[c,f]=function(e){const[t,r]=e.split("-");return[t,r]}(s),u=Vc[c],g=[-d,0],p=[0,d],b=[d,0],m=`M${g}L${p}L${b}L${g}Z`,h=`M${g}L${p}L${b}`,v={top:`translate(${[d,2*d]}) rotate(180)`,right:`translate(${[0,d]}) rotate(-90)`,bottom:`translate(${[d,0]})`,left:`translate(${[2*d,d]}) rotate(90)`}[c];return t.createElement("svg",{width:2*d,height:2*d,style:{pointerEvents:"none",position:"absolute",...Wc(c,f,d),[`margin${u}`]:f?null:-d},role:"presentation"},t.createElement("g",{transform:v},t.createElement("path",{d:m,fill:null==n?void 0:n.colors.canvas.default}),t.createElement("path",{d:m,fill:o}),t.createElement("path",{d:h,fill:"none",stroke:i,strokeWidth:l})))}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(this,arguments)}function Kc(e){const{size:r=32,as:n,icon:a,bg:o,...i}=e;return t.createElement(Qr,{as:n,bg:o,overflow:"hidden",borderWidth:0,size:r,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},t.createElement(Qr,qc({display:"flex",as:n,size:r},i,{alignItems:"center",justifyContent:"center"}),t.createElement(a,{size:r})))}Uc.displayName="Caret",Uc.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Kc.displayName="CircleOcticon";const Yc=d(null),Xc=Yc.Provider;function Jc(){var e;return null!==(e=o(Yc))&&void 0!==e?e:{}}function Qc(e={}){const t=o(Yc);return t?{disabled:t.disabled,id:t.id,required:t.required,validationStatus:t.validationStatus,"aria-describedby":[t.validationMessageId,t.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const ef=d({});function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tf.apply(this,arguments)}const rf=b.input.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1ga3qj3-0"})(["",";border-radius:",";transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&::before{width:var(--base-size-16,16px);height:var(--base-size-16,16px);visibility:hidden;content:'';background-color:",";transition:visibility 0s linear 230ms;clip-path:inset(var(--base-size-16,16px) 0 0 0);mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');mask-size:75%;mask-repeat:no-repeat;mask-position:center;animation:checkmarkOut 80ms cubic-bezier(0.65,0,0.35,1) forwards;}&:checked,&:indeterminate{background:",";border-color:",";&::before{animation:checkmarkIn 80ms cubic-bezier(0.65,0,0.35,1) forwards 80ms;}}&:checked{transition:background-color,border-color 80ms cubic-bezier(0.32,0,0.67,0) 0ms;&::before{visibility:visible;transition:visibility 0s linear 0s;}&:disabled{cursor:not-allowed;background-color:",";border-color:",";opacity:1;&::before{background-color:",";}}@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}}&:indeterminate{background:",";&::before{mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');visibility:visible;}}",";",";@keyframes checkmarkIn{from{clip-path:inset(var(--base-size-16,16px) 0 0 0);}to{clip-path:inset(0 0 0 0);}}@keyframes checkmarkOut{from{clip-path:inset(0 0 0 0);}to{clip-path:inset(var(--base-size-16,16px) 0 0 0);}}"],ul,Sr("radii.1"),Sr("colors.fg.onEmphasis"),Sr("colors.accent.fg"),Sr("colors.accent.fg"),Sr("colors.fg.muted"),Sr("colors.fg.muted"),Sr("colors.fg.onEmphasis"),Sr("colors.accent.fg"),tn(),Jr),nf=t.forwardRef((({checked:e,indeterminate:r,disabled:n,onChange:a,sx:i,required:l,validationStatus:d,value:s,...c},f)=>{const u=qa(f),g=o(ef);return Gn((()=>{u.current&&(u.current.indeterminate=r||!1)}),[r,e,u]),t.createElement(rf,tf({type:"checkbox",disabled:n,ref:f||u,checked:!r&&e,"aria-checked":r?"mixed":e?"true":"false",sx:i,required:l,"aria-required":l?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{g.onChange&&g.onChange(e),a&&a(e)},value:s,name:s},c))}));nf.displayName="Checkbox";var af=nf;function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.apply(this,arguments)}const lf=b.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-li6bhs-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;}}"]),df=({className:e})=>t.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},t.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"}));df.displayName="ArrowIndicatorSVG";const sf=b(df).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),cf=t.forwardRef((({block:e,children:r,contrast:n,disabled:a,placeholder:o,size:i,required:l,validationStatus:d,sx:s={},...c},f)=>t.createElement($s,{block:e,contrast:n,disabled:a,size:i,validationStatus:d,sx:_r({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},s)},t.createElement(lf,of({ref:f,required:l,disabled:a,"aria-invalid":"error"===d?"true":"false","data-hasplaceholder":Boolean(o),defaultValue:null!=o?o:void 0},c),o&&t.createElement("option",{value:"",disabled:l,hidden:l},o),r),t.createElement(sf,null)))),ff=e=>t.createElement("option",e);ff.displayName="Option";const uf=e=>t.createElement("optgroup",e);uf.displayName="OptGroup";var gf=Object.assign(cf,{Option:ff,OptGroup:uf}),pf=Ae(Je,De,Re,Le,ze,Fe,We,Ze,Pe,Qe,ft,ut,gt),bf=new RegExp("^("+pf.propNames.join("|")+")$");function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mf.apply(this,arguments)}const hf={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},vf="medium",xf=({as:e="span",onClick:t,onFocus:r,tabIndex:n=-1,disabled:a})=>!a&&Boolean(r||t||n>-1||["a","button"].includes(e)),yf=ct({prop:"size",variants:{small:{fontSize:0,height:hf.small,lineHeight:hf.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:hf.medium,lineHeight:hf.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:hf.large,lineHeight:hf.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:hf.xlarge,lineHeight:hf.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),wf=b.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=>xf(e)?"pointer":"auto"),Sr("fontWeights.bold"),yf,Jr),Bf=t.forwardRef((({onRemove:e,onKeyDown:r,id:n,size:a=vf,...o},i)=>t.createElement(wf,mf({onKeyDown:t=>{r&&r(t),"Backspace"!==t.key&&"Delete"!==t.key||!e||e()},id:null==n?void 0:n.toString(),size:a},o,{ref:i}))));var kf=Bf;function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(this,arguments)}const Tf=ct({prop:"size",variants:{small:{height:hf.small,width:hf.small},medium:{height:hf.medium,width:hf.medium},large:{height:hf.large,width:hf.large},xlarge:{height:hf.xlarge,width:hf.xlarge}}}),Cf=e=>.75*parseInt(hf[e||vf],10),Sf=b.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 v(["margin-left:",";"],Sr("space.2"));default:return v(["margin-left:",";"],Sr("space.1"))}}),Sr("colors.neutral.muted"),Sr("colors.neutral.subtle"),Tf,Jr),If=({"aria-label":e,isParentInteractive:r,size:n=vf,...a})=>(delete a.children,t.createElement(Sf,Ef({as:r?"span":"button",tabIndex:r?-1:void 0,"aria-label":r?e:"Remove token",size:n},a),t.createElement(Yo,{size:Cf(n)})));If.displayName="RemoveTokenButton";var Of=If;var Nf=b("span").withConfig({displayName:"_TokenTextContainer__TokenTextContainer",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;}}"]);function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Af.apply(this,arguments)}const Mf=({children:e,size:r})=>t.createElement(Qr,{sx:{flexShrink:0,lineHeight:0,marginRight:r&&["large","xlarge"].includes(r)?2:1}},e);Mf.displayName="LeadingVisualContainer";const Lf=n(((e,r)=>{const{as:n,onRemove:a,id:o,leadingVisual:i,text:l,size:d=vf,hideRemoveButton:s,href:c,onClick:f,sx:u=sn,...g}=e,p=xf(e)&&Boolean(a)&&!s,b={as:n,href:c,onClick:f},m=_r({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!s&&a?0:void 0,...xf(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},u);return t.createElement(kf,Af({onRemove:a,id:null==o?void 0:o.toString(),text:l,size:d,sx:m},p?{}:b,g,{ref:r}),i?t.createElement(Mf,{size:d},t.createElement(i,null)):null,t.createElement(Nf,p?b:{},l),a&&t.createElement(cn,null," (press backspace or delete to remove)"),!s&&a?t.createElement(Of,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:d,isParentInteractive:xf(e),"aria-hidden":p?"true":"false"}):null)}));Lf.displayName="Token";var jf=Lf;function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}const Df={small:0,medium:1,large:1,xlarge:2};function zf({icon:e,leadingVisual:r,trailingVisual:n,loading:a,loaderPosition:o="auto",contrast:l,className:d,block:c,disabled:f,sx:u,tokens:g,onTokenRemove:p,tokenComponent:b=jf,preventTokenWrapping:m=!1,size:h="xlarge",hideTokenRemoveButtons:v=!1,maxHeight:x,width:y,minWidth:w,maxWidth:B,validationStatus:k,variant:E,visibleTokenCount:T,...C},S){const{onBlur:I,onFocus:O,onKeyDown:N,...A}=function(e){var t={};for(var r in e)bf.test(r)||(t[r]=e[r]);return t}(C),M=i(null);dn(S,M);const[L,j]=s(),[R,D]=s(Boolean(T)),{containerRef:z}=di({focusOutBehavior:"wrap",bindKeys:uo.ArrowHorizontal|uo.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var t;if(!L&&0!==L)return;let r=L+1;return"next"===e&&(r+=1),"previous"===e&&(r-=1),r>g.length||r<1?M.current||void 0:null===(t=z.current)||void 0===t?void 0:t.children[r]}},[L]),_=e=>{p(e),setTimeout((()=>{var e,t;const r=null===(e=z.current)||void 0===e?void 0:e.children[L||0],n=r&&_a(r)?r:Array.from((null===(t=z.current)||void 0===t?void 0:t.children)||[]).find((e=>_a(e)));var a;n?n.focus():null===(a=M.current)||void 0===a||a.focus()}),0)},P=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!T||D(!0)}),0)},H=e=>{var t;"Escape"===e.key&&(null===(t=M.current)||void 0===t||t.focus())},F=e=>{e.stopPropagation()},V=R?g.slice(0,T):g,W=a&&("leading"===o||Boolean(r&&"trailing"!==o)),$=a&&("trailing"===o||"auto"===o&&!r);return t.createElement($s,{block:c,className:d,contrast:l,disabled:f,hasLeadingVisual:Boolean(r||W),hasTrailingVisual:Boolean(n||$),width:y,minWidth:w,maxWidth:B,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[h],validationStatus:k,variant:E,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},sx:{paddingLeft:Fs,py:`calc(${Fs} / 2)`,...c?{display:"flex",width:"100%"}:{},...x?{maxHeight:x,overflow:"auto"}:{},...m?{overflow:"auto"}:{},...u}},e&&!r&&t.createElement(e,{className:"TextInput-icon"}),t.createElement(zs,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:W},"string"!=typeof r&&Is.isValidElementType(r)?t.createElement(r,null):r),t.createElement(Qr,{ref:z,display:"flex",sx:{alignItems:"center",flexWrap:m?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},t.createElement(Qr,{sx:{order:1,flexGrow:1}},t.createElement(Qs,Rf({ref:M,disabled:f,onFocus:e=>{O&&O(e),j(void 0),T&&D(!1)},onBlur:e=>{I&&I(e),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!T||D(!0)}),0)},onKeyDown:e=>{var t;if(N&&N(e),null!==(t=M.current)&&void 0!==t&&t.value)return;const r=g[g.length-1];"Backspace"===e.key&&r&&(_(r.id),M.current&&(M.current.value=`${r.text} `),setTimeout((()=>{var e;null===(e=M.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"},"aria-invalid":"error"===k?"true":"false"},A))),V.map((({id:e,...r},n)=>{return t.createElement(b,Rf({disabled:f,key:e,onFocus:(a=n,()=>{f||j(a)}),onBlur:P,onKeyUp:H,onClick:F,isSelected:L===n,onRemove:()=>{_(e)},hideRemoveButton:f||v,size:h,tabIndex:0},r));var a})),R&&g.length-V.length?t.createElement(Gi,{color:"fg.muted",fontSize:Df[h]},"+",g.length-V.length):null),t.createElement(zs,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:$},"string"!=typeof n&&Is.isValidElementType(n)?t.createElement(n,null):n))}zf.displayName="TextInputWithTokensInnerComponent";const _f=t.forwardRef(zf);_f.displayName="TextInputWithTokens";var Pf=_f;function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(this,arguments)}const Ff=b.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&&v(["resize:",";"],e.resize)),(e=>e.disabled&&v(["resize:none;"])),Jr),Vf=t.forwardRef((({value:e,disabled:r,sx:n,required:a,validationStatus:o,rows:i=7,cols:l=30,resize:d="both",block:s,contrast:c,...f},u)=>t.createElement(Ws,{sx:n,validationStatus:o,disabled:r,block:s,contrast:c},t.createElement(Ff,Hf({value:e,resize:d,required:a,"aria-required":a?"true":"false","aria-invalid":"error"===o?"true":"false",ref:u,disabled:r,rows:i,cols:l},f)))));Vf.displayName="Textarea";var Wf=Vf;const $f=({children:e,disabled:r,id:n,sx:a})=>t.createElement(Gi,{color:r?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:n,sx:a},e);$f.displayName="InputCaption";var Zf=$f;const Gf=({children:e,sx:r,id:n})=>{const{captionId:a,disabled:o}=Jc();return t.createElement(Zf,{id:n||a||"",disabled:o,sx:r},e)};Gf.displayName="FormControlCaption";var Uf=Gf;function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}const Kf=({children:e,disabled:r,htmlFor:n,id:a,required:o,visuallyHidden:i,sx:l,as:d="label",...s})=>t.createElement(cn,qf({isVisible:!i,as:d,htmlFor:n,id:a,sx:{fontWeight:"bold",fontSize:1,display:"block",color:r?"fg.muted":"fg.default",cursor:r?"not-allowed":"pointer",alignSelf:"flex-start",...l}},s),o?t.createElement(Qr,{display:"flex",as:"span"},t.createElement(Qr,{mr:1},e),t.createElement("span",null,"*")):e);Kf.displayName="InputLabel";var Yf=Kf;const Xf=({as:e,children:r,htmlFor:n,id:a,visuallyHidden:o,sx:i,...l})=>{const{disabled:d,id:s,required:c}=Jc(),f="legend"===e||"span"===e?{as:e,id:a,visuallyHidden:o,required:c,disabled:d,sx:i,...l}:{as:e,id:a,visuallyHidden:o,htmlFor:n||s,required:c,disabled:d,sx:i,...l};return t.createElement(Yf,f,r)};Xf.displayName="FormControlLabel";var Jf=Xf;const Qf=({children:e,sx:r})=>{const{disabled:n,captionId:a}=Jc();return t.createElement(Qr,{color:n?"fg.muted":"fg.default",sx:{"> *":{minWidth:Sr(a?"fontSizes.4":"fontSizes.2"),minHeight:Sr(a?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...r},ml:2},e)};Qf.displayName="FormControlLeadingVisual";var eu=Qf;const tu=({children:e,variant:r,sx:n,id:a})=>{const{validationMessageId:o}=Jc();return t.createElement(tl,{validationStatus:r,id:a||o||"",sx:n},e)};tu.displayName="FormControlValidation";var ru=tu;const nu=t.forwardRef((({children:e,disabled:r,layout:n="vertical",id:a,required:i,sx:l},d)=>{var s,c,f;const[u,g]=_n(e,{caption:Uf,label:Jf,leadingVisual:eu,validation:ru}),p=[pc,af,ml,gf,rc,Pf,Wf],b=o(Ui).disabled||r,m=An(a),h=u.validation?`${m}-validationMessage`:void 0,v=u.caption?`${m}-caption`:void 0,x=null===(s=u.validation)||void 0===s?void 0:s.props.variant,y=g.find((e=>p.some((r=>t.isValidElement(e)&&e.type===r)))),w=t.isValidElement(y)&&y.props,B=t.isValidElement(y)&&(y.type===af||y.type===ml);y&&(null!=w&&w.id&&console.warn("instead of passing the 'id' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=w&&w.disabled&&console.warn("instead of passing the 'disabled' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=w&&w.required&&console.warn("instead of passing the 'required' prop directly to the input component, it should be passed to the parent component, <FormControl>")),u.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.`),B?(u.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),g.find((e=>{var r;return t.isValidElement(e)&&(null===(r=e.props)||void 0===r?void 0:r.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):u.leadingVisual&&console.warn("A leading visual is only rendered for a checkbox or radio form control. If you want to render a leading visual inside of your input, check if your input supports a leading visual.");const k=null===(c=u.label)||void 0===c?void 0:c.props.visuallyHidden;return t.createElement(Xc,{value:{captionId:v,disabled:b,id:m,required:i,validationMessageId:h}},B||"horizontal"===n?t.createElement(Qr,{ref:d,display:"flex",alignItems:u.leadingVisual?"center":void 0,sx:l},t.createElement(Qr,{sx:{"> input":{marginLeft:0,marginRight:0}}},t.isValidElement(y)&&t.cloneElement(y,{id:m,disabled:b,"aria-describedby":v}),g.filter((e=>t.isValidElement(e)&&![af,ml].some((t=>e.type===t))))),u.leadingVisual&&t.createElement(Qr,{color:b?"fg.muted":"fg.default",sx:{"> *":{minWidth:u.caption?Sr("fontSizes.4"):Sr("fontSizes.2"),minHeight:u.caption?Sr("fontSizes.4"):Sr("fontSizes.2"),fill:"currentColor"}},ml:2},u.leadingVisual),null===(f=u.label)||void 0===f||!f.props.visuallyHidden||u.caption?t.createElement(Qr,{display:"flex",flexDirection:"column",ml:2},u.label,u.caption):t.createElement(t.Fragment,null,u.label,u.caption)):t.createElement(Qr,{ref:d,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l}},u.label,t.isValidElement(y)&&t.cloneElement(y,Object.assign({id:m,required:i,disabled:b,validationStatus:x,"aria-describedby":[h,v].filter(Boolean).join(" ")},y.props)),g.filter((e=>t.isValidElement(e)&&!p.some((t=>e.type===t)))),u.validation?t.createElement(Zi,{show:!0},u.validation):null,u.caption))}));var au=Object.assign(nu,{Caption:Uf,Label:Jf,LeadingVisual:eu,Validation:ru});function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(this,arguments)}const iu=({children:e,disabled:r,onChange:n,...a})=>{const o=t.Children.toArray(e).filter((e=>t.isValidElement(e)&&e.type===au)).map((e=>t.isValidElement(e)?e.props.children:[])).flat(),i=t.Children.toArray(o).filter((e=>t.isValidElement(e)&&e.type===af)).map((e=>t.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[l,d]=Qo(i);return t.createElement(ef.Provider,{value:{disabled:r,onChange:e=>{n&&((e=>{const{value:t,checked:r}=e.currentTarget;d(r?[...l.current||[],t]:(l.current||[]).filter((e=>e!==t)))})(e),n(l.current||[],e))}}},t.createElement(ll,ou({disabled:r},a),e))};iu.displayName="CheckboxGroup";var lu=Object.assign(iu,{Caption:Ki,Label:Xi,Validation:nl});const du={small:56,medium:96,large:128},su=b.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"),Sr("colors.canvas.default"),Sr("shadows.shadow.medium"),(({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:du[t];return{width:r,height:r}}),Jr),cu=b(li).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);cu.displayName="CircleBadge.Icon";var fu=Object.assign(su,{Icon:cu});const uu=b.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],Jr);uu.displayName="Details";var gu=uu;const pu=()=>null;function bu(e){const t=e;return t.tabIndex>=0&&!t.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(t)}function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mu.apply(this,arguments)}const hu=()=>null,vu=b.div.withConfig({displayName:"Dialog__DialogBase",componentId:"sc-13rdxb7-0"})(["box-shadow:",";border-radius:",";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:",";width:",";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}",";"],Sr("shadows.shadow.large"),Sr("radii.2"),Sr("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),Jr),xu=b(Qr).withConfig({displayName:"Dialog__DialogHeaderBase",componentId:"sc-13rdxb7-1"})(["border-radius:"," "," 0px 0px;border-bottom:1px solid ",";display:flex;@media screen and (max-width:750px){border-radius:0px;}",";"],Sr("radii.2"),Sr("radii.2"),Sr("colors.border.default"),Jr);function yu({theme:e,children:r,backgroundColor:n="canvas.subtle",...a}){return t.Children.toArray(r).every((e=>"string"==typeof e))&&(r=t.createElement(Gi,{theme:e,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},r)),t.createElement(xu,mu({theme:e,p:3,backgroundColor:n},a),r)}yu.displayName="DialogHeader";const wu=b.span.withConfig({displayName:"Dialog__Overlay",componentId:"sc-13rdxb7-2"})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:",";}"],Sr("colors.primer.canvas.backdrop")),Bu=n((({children:e,onDismiss:r=hu,isOpen:n,initialFocusRef:a,returnFocusRef:o,...d},s)=>{const c=i(null),u=i(null);dn(s,u);const g=i(null),p=()=>{r(),o&&o.current&&o.current.focus()},{getDialogProps:b}=function({modalRef:e,overlayRef:t,isOpen:r,onDismiss:n=pu,initialFocusRef:a,closeButtonRef:o}){const i=f((r=>{e.current&&t.current&&r.target instanceof Node&&!e.current.contains(r.target)&&t.current.contains(r.target)&&n()}),[n,e,t]);l((()=>{if(r)return document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}}),[r,i]),l((()=>{r&&(a&&a.current?a.current.focus():o&&o.current&&o.current.focus())}),[r,a,o]);const d=f(((t,r)=>{if(e.current){const n=Array.from(e.current.querySelectorAll("*")).filter(bu);if(0===n.length)return;t.preventDefault();const a=document.activeElement;if(!a)return;const o=n.indexOf(a)+r,i=1===r?0:n.length-1;return n[o]||n[i]}}),[e]),s=f((e=>{const t=e.shiftKey?-1:1,r=d(e,t);r&&r.focus()}),[d]),c=f((e=>{"Tab"===e.key&&s(e)}),[s]);return Ua((e=>{r&&(n(),e.preventDefault())}),[r,n]),{getDialogProps:()=>({onKeyDown:c})}}({modalRef:u,onDismiss:p,isOpen:n,initialFocusRef:a,closeButtonRef:g,returnFocusRef:o,overlayRef:c});return n?t.createElement(t.Fragment,null,t.createElement(wu,{ref:c}),t.createElement(vu,mu({tabIndex:-1,ref:u,role:"dialog","aria-modal":"true"},d,b()),t.createElement(yn,{icon:Yo,ref:g,onClick:p,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));yu.propTypes={...Qr.propTypes},yu.displayName="Dialog.Header",Bu.displayName="Dialog";var ku=Object.assign(Bu,{Header:yu});function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(this,arguments)}const Tu=ct({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"}}}}),Cu=b.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:",";}",";",";"],Sr("colors.fg.default"),Sr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Sr("radii.2")),(e=>e.full?"-1px":"0"),Sr("space.2"),Tu,Jr),Su=t.forwardRef((function({as:e,variant:r="default",...n},a){return t.createElement(Cu,Eu({ref:a,as:e,variant:r},n))}));var Iu=Su;const Ou=b.header.withConfig({displayName:"Header",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;",";"],Sr("space.3"),Sr("fontSizes.1"),Sr("lineHeights.default"),Sr("colors.header.text"),Sr("colors.header.bg"),Jr),Nu=b.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Sr("space.3"),(({full:e})=>e&&v(["flex:auto;"])),Jr);Nu.displayName="Header.Item";const Au=b.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__HeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Sr("fontWeights.bold"),Sr("colors.header.logo"),Sr("colors.header.text"),Jr);Au.displayName="Header.Link";var Mu=Object.assign(Ou,{Link:Au,Item:Nu});function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lu.apply(this,arguments)}const ju=b.span.withConfig({displayName:"Label__StyledLabel",componentId:"sc-1dgcne-0"})(["align-items:center;background-color:transparent;border-width:1px;border-radius:999px;border-style:solid;display:inline-flex;font-weight:",";font-size:",";line-height:1;white-space:nowrap;",";",";",";"],Sr("fontWeights.bold"),Sr("fontSizes.0"),ct({variants:{default:{borderColor:"border.default"},primary:{borderColor:"fg.default"},secondary:{borderColor:"border.muted",color:"fg.muted"},accent:{borderColor:"accent.emphasis",color:"accent.fg"},success:{borderColor:"success.emphasis",color:"success.fg"},attention:{borderColor:"attention.emphasis",color:"attention.fg"},severe:{borderColor:"severe.emphasis",color:"severe.fg"},danger:{borderColor:"danger.emphasis",color:"danger.fg"},done:{borderColor:"done.emphasis",color:"done.fg"},sponsors:{borderColor:"sponsors.emphasis",color:"sponsors.fg"}}}),ct({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),Jr),Ru=t.forwardRef((function({as:e,size:r="small",variant:n="default",...a},o){return t.createElement(ju,Lu({as:e,size:r,variant:n,ref:o},a))}));var Du=Ru;function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zu.apply(this,arguments)}const _u=b.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;}",";"],Sr("space.1"),Jr),Pu=b.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;}"]),Hu=({collapseButtonRef:e,collapseInlineExpandedChildren:r,expandButtonRef:n,hiddenItemIds:a,isOverflowShown:o,showAllTokensInline:i,totalLength:l})=>o?t.createElement(hn,{ref:e,onClick:r,size:"small",variant:"invisible"},"Show less"):a.length?t.createElement(hn,{ref:n,variant:"invisible",size:"small",onClick:i},t.createElement(cn,null,"Show all ",l),t.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,Fu=({children:e,closeOverflowOverlay:r,expandButtonRef:n,hiddenItemIds:a,isOverflowShown:o,openOverflowOverlay:i,overlayPaddingPx:l,overlayWidth:d,totalLength:s})=>a.length?t.createElement(ud,{open:o,onOpen:i,onClose:r,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:n,anchorOffset:-1*l,alignmentOffset:-1*l,renderAnchor:e=>t.createElement(hn,zu({variant:"invisible",size:"small"},e,{ref:n}),t.createElement(cn,null,"Show all ",s),t.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},t.createElement(Qr,{alignItems:"flex-start",display:"flex",width:d,padding:`${l}px`},t.createElement(Qr,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),t.createElement(yn,{onClick:r,icon:Yo,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,Vu=({children:e,visibleChildCount:r,overflowStyle:n="overlay",sx:a})=>{const o=t.useRef(null),i=t.useRef(null),l=t.useRef(void 0),[d,s]=t.useState({}),[c,f]=t.useState(!1),[u,g]=t.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:p}=Wr(),b=parseInt(Sr("space.2")(p),10),m=Object.keys(d).filter((e=>!d[e])),h=m.length&&"overlay"===n?((e,t,r)=>{var n,a;return r+e.right-((null===(n=t.current)||void 0===n||null===(a=n.getBoundingClientRect())||void 0===a?void 0:a.left)||0)})(u,o,b):void 0,v=t.useCallback((e=>{if(null!==e){const t=e.getBoundingClientRect();t.width===u.width&&t.right===u.right||g(t),v.current=e}}),[u]),x=t.useCallback((e=>{var t;const r=(null===(t=o.current)||void 0===t?void 0:t.children)||[],n={};for(const t of r){const r=t.getAttribute("data-index");r&&(n[r]=parseInt(r,10)<e)}s(n)}),[]),y=t.useCallback((()=>f(!0)),[f]),w=t.useCallback((()=>{f(!1)}),[f]),B=t.useCallback((()=>{f(!1),r&&"number"==typeof r&&x(r),setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}),10)}),[v,x,r]),k=t.useCallback((()=>{s({}),f(!0)}),[s,f]);return t.useEffect((()=>{if(r&&!c){if("auto"===r){const t=new IntersectionObserver((e=>{const t={};for(const r of e){const e=r.target.getAttribute("data-index");e&&(t[e]=r.isIntersecting)}s((e=>({...e,...t})))}),{root:o.current,rootMargin:`0px -${u.width}px 0px 0px`,threshold:1});for(const r of(null===(e=o.current)||void 0===e?void 0:e.children)||[]){var e;r.getAttribute("data-index")&&t.observe(r)}return()=>t.disconnect()}x(r)}}),[u,r,x,c]),t.useEffect((()=>{"overlay"!==n&&m.length&&(l.current=parseInt(m[0],10))}),[m,n,c]),t.useEffect((()=>{if("overlay"===n)return;const e=document.querySelector(`[data-index="${l.current}"]`),t=e?za(e):null;var r;c&&(t?t.focus():null===(r=i.current)||void 0===r||r.focus())}),[n,c]),r?t.createElement(_u,{ref:o,"data-overflow":"inline"===n&&c?"inline":void 0,sx:a},t.Children.map(e,((e,r)=>t.createElement(Pu,{"data-index":r,className:m.includes(r.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===n?t.createElement(Hu,{collapseButtonRef:i,collapseInlineExpandedChildren:B,expandButtonRef:v,hiddenItemIds:m,isOverflowShown:c,showAllTokensInline:k,totalLength:t.Children.toArray(e).length}):t.createElement(Fu,{closeOverflowOverlay:w,expandButtonRef:v,hiddenItemIds:m,isOverflowShown:c,openOverflowOverlay:y,overlayPaddingPx:b,overlayWidth:h,totalLength:t.Children.toArray(e).length},e)):t.createElement(_u,{"data-overflow":"inline",sx:a},e)};Vu.displayName="LabelGroup";var Wu=Vu;function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$u.apply(this,arguments)}const Zu=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),Gu=b.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(Jr),Uu=t.forwardRef((({children:e,...r},n)=>t.createElement(Gu,$u({},r,{ref:n}),t.createElement(ad,null,e))));Uu.displayName="NavList";const qu=t.forwardRef((({"aria-current":e,children:r,defaultOpen:n,sx:a=sn,...o},i)=>{const{depth:l}=t.useContext(Xu),d=t.Children.toArray(r).find((e=>p(e)&&e.type===Ju)),s=t.Children.toArray(r).filter((e=>!p(e)||e.type!==Ju));return!p(d)&&n&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),d&&p(d)?t.createElement(Yu,{subNav:d,depth:l,defaultOpen:n,sx:a},s):t.createElement(ad.LinkItem,$u({ref:i,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:_r(Zu(l),a)},o),r)}));qu.displayName="NavList.Item";const Ku=t.createContext({buttonId:"",subNavId:"",isOpen:!1});function Yu({children:e,subNav:r,depth:n,defaultOpen:a,sx:o=sn}){var i;const l=An(),d=An(),[s,c]=t.useState(null!==(i=a||null)&&void 0!==i&&i),f=t.useRef(null),[u,g]=t.useState(!1);return Gn((()=>{if(f.current){f.current.querySelector("[aria-current]:not([aria-current=false])")&&(g(!0),c(!0))}}),[r,l]),t.createElement(Ku.Provider,{value:{buttonId:l,subNavId:d,isOpen:s}},t.createElement(Qr,{as:"li","aria-labelledby":l,sx:{listStyle:"none"}},t.createElement(ad.Item,{as:"button",id:l,"aria-expanded":s,"aria-controls":d,active:!s&&u,onClick:()=>c((e=>!e)),sx:_r({...Zu(n),fontWeight:u?"bold":null},o)},e,t.createElement(ad.TrailingVisual,null,t.createElement(li,{icon:Ro,sx:{transform:s?"rotate(180deg)":"rotate(0deg)"}}))),t.createElement("div",{ref:f},r)))}Yu.displayName="ItemWithSubNav";const Xu=t.createContext({depth:0}),Ju=({children:e,sx:r=sn})=>{const{buttonId:n,subNavId:a,isOpen:o}=t.useContext(Ku),{depth:i}=t.useContext(Xu);return n&&a||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):t.createElement(Xu.Provider,{value:{depth:i+1}},t.createElement(Qr,{as:"ul",id:a,"aria-labelledby":n,sx:_r({padding:0,margin:0,display:o?"block":"none"},r)},e))};Ju.displayName="SubNav",Ju.displayName="NavList.SubNav";const Qu=ad.LeadingVisual;Qu.displayName="NavList.LeadingVisual";const eg=ad.TrailingVisual;eg.displayName="NavList.TrailingVisual";const tg=ad.Divider;tg.displayName="NavList.Divider";const rg={},ng=({title:e,children:r,sx:n=rg,...a})=>t.createElement(t.Fragment,null,t.createElement(ad.Divider,{sx:{"&:first-child":{display:"none"}}}),t.createElement(ad.Group,$u({},a,{title:e,sx:n}),r));ng.displayName="NavList.Group";const ag=Object.assign(Uu,{Item:qu,SubNav:Ju,LeadingVisual:Qu,TrailingVisual:eg,Divider:tg,Group:ng});var og=b.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Sr("space.4"),Sr("space.4"),Sr("space.4"),Sr("colors.border.default"),Jr);function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}const lg=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((t=>!e[t])):e?[]:Object.keys(Rn),dg=b.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;}",";&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:",";cursor:default;background-color:transparent;border-color:transparent;font-size:inherit;font-family:inherit;padding-top:inherit;padding-bottom:inherit;}&[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 );}}"],Sr("colors.fg.default"),Sr("space.1"),Sr("radii.2"),Sr("colors.actionListItem.default.hoverBg"),tn(0),Sr("colors.border.muted"),Sr("colors.accent.fg"),Sr("colors.fg.onEmphasis"),Sr("colors.accent.emphasis"),Sr("colors.primer.fg.disabled"),Sr("colors.primer.fg.disabled"),Sr("space.1"),Sr("space.1"));function sg({theme:e,pageCount:r,currentPage:n,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d}){const s=t.useCallback((e=>t=>a(t,e)),[a]),c=t.useMemo((()=>function(e,t,r,n,a){const o=[];if(r){const r=[],i=t=>{t>=1&&t<=e&&r.push(t)};let l=t-a,d=t+a;if(l<1&&d>e)l=1,d=e;else if(l<1)for(;l<1;)l++,d++;else if(d>e)for(;d>e;)l--,d--;for(let t=1;t<=n;t++){const r=e-(t-1);t>=l?d++:i(t),r<=d?l--:i(r)}for(let e=l;e<=d;e++)i(e);const s=r.slice().sort(((e,t)=>e-t)).filter(((e,t,r)=>!t||e!==r[t-1]));for(let e=0;e<s.length;e++){const r=s[e],n=r===t,a=r-s[e-1],i=-1!=r-s[e+1];0===e?(1!==r&&o.push({type:"BREAK",num:1}),o.push({type:"NUM",num:r,selected:n,precedesBreak:i})):1===a?o.push({type:"NUM",num:r,selected:n,precedesBreak:i}):(o.push({type:"BREAK",num:r-1}),o.push({type:"NUM",num:r,selected:n,precedesBreak:!1}))}const c=o[o.length-1];"NUM"===c.type&&c.num!==e&&o.push({type:"BREAK",num:e})}const i={type:"NEXT",num:t+1,disabled:t===e};return[{type:"PREV",num:t-1,disabled:1===t},...o,i]}(r,n,!!l,i,d)),[r,n,l,i,d]),f=t.useMemo((()=>c.map((r=>{const{props:n,key:a,content:i}=function(e,t,r){const n={};let a="",o="";switch(e.type){case"PREV":o="page-prev",a="Previous",e.disabled?Object.assign(n,{as:"button","aria-disabled":"true"}):Object.assign(n,{rel:"prev",href:t(e.num),"aria-label":"Previous Page",onClick:r});break;case"NEXT":o="page-next",a="Next",e.disabled?Object.assign(n,{as:"button","aria-disabled":"true"}):Object.assign(n,{rel:"next",href:t(e.num),"aria-label":"Next Page",onClick:r});break;case"NUM":o=`page-${e.num}`,a=String(e.num),Object.assign(n,{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:r,"aria-current":e.selected?"page":void 0});break;case"BREAK":o=`page-${e.num}-break`,a="…",Object.assign(n,{as:"span",role:"presentation"})}return{props:n,key:o,content:a}}(r,o,s(r.num));return t.createElement(dg,ig({},n,{key:a,theme:e}),i)}))),[c,o,s,e]);return f}const cg=b.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Rn).map((e=>`\n @media (${Rn[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(""),Jr);function fg({theme:e,pageCount:r,currentPage:n,onPageChange:a=gg,hrefBuilder:o=ug,marginPageCount:i=1,showPages:l=!0,surroundingPageCount:d=2,...s}){const c=sg({theme:e,pageCount:r,currentPage:n,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d});return t.createElement(cg,ig({"aria-label":"Pagination"},s,{theme:e}),t.createElement(Qr,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":lg(l).join(" ")},c))}function ug(e){return`#${e}`}function gg(){}function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pg.apply(this,arguments)}function bg(e){const r=t.useContext(y),{bg:n,border:a,borderColor:o,theme:i,sx:l}=e,{caret:d,children:s,...c}=e,{bg:f,backgroundColor:u,...g}=l||{},p=i||r,b=n||f||u,m={bg:n||(null==l?void 0:l.bg)||(null==l?void 0:l.backgroundColor),borderColor:o||(null==l?void 0:l.borderColor),borderWidth:a,location:d,theme:p};return t.createElement(Qr,pg({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},c,{sx:{...g,"--custom-bg":Sr(`colors.${b}`)({theme:p}),backgroundImage:b?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${p.colors.canvas.default}, ${p.colors.canvas.default})`:void 0,position:"relative"}}),s,t.createElement(Uc,m))}fg.displayName="Pagination",bg.displayName="PointerBox";const mg=b.div.attrs((({className:e,caret:t="top"})=>({className:Ns(e,`caret-pos--${t}`)}))).withConfig({displayName:"Popover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),Jr),hg=b.div.withConfig({displayName:"Popover__PopoverContent",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);}}",";"],Sr("colors.border.default"),Sr("radii.2"),Sr("space.4"),Sr("colors.canvas.overlay"),Sr("space.3"),Sr("space.2"),Sr("colors.border.default"),Sr("space.2"),Sr("colors.canvas.overlay"),mg,mg,mg,Sr("space.3"),Sr("colors.border.default"),Sr("colors.canvas.overlay"),mg,mg,mg,mg,Sr("space.4"),Sr("space.4"),mg,mg,mg,mg,mg,mg,Sr("space.2"),Sr("space.2"),mg,mg,mg,Sr("space.3"),Sr("colors.border.default"),Sr("colors.canvas.overlay"),mg,mg,mg,Sr("space.3"),Sr("colors.border.default"),Sr("colors.canvas.overlay"),mg,mg,Sr("space.4"),mg,mg,Sr("space.3"),Sr("space.3"),Jr);hg.displayName="Popover.Content";var vg=Object.assign(mg,{Content:hg});function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xg.apply(this,arguments)}const yg=b.span.withConfig({displayName:"ProgressBar__Item",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";",";"],(e=>e.progress?`${e.progress}%`:0),Sr("colors.success.emphasis"),Jr);yg.displayName="ProgressBar.Item";const wg={small:"5px",large:"10px",default:"8px"},Bg=b.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Sr("colors.border.default"),Sr("radii.1"),(e=>wg[e.barSize||"default"]),pt,Jr),kg=n((({progress:e,bg:r="success.emphasis",barSize:n="default",children:a,...o},i)=>{if(a&&e)throw new Error("You should pass `progress` or children, not both.");const l="string"==typeof e?parseInt(e,10):e,d={"aria-valuenow":l?Math.round(l):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!l&&100!==l};return t.createElement(Bg,xg({ref:i,role:"progressbar",barSize:n},d,o),null!=a?a:t.createElement(yg,{progress:e,sx:{backgroundColor:r}}))}));kg.displayName="ProgressBar";const Eg=Object.assign(kg,{Item:yg});var Tg,Cg=function(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},Sg=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const Ig="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const t=[];for(const r of e)t.push({type:"element",value:r}),t.push({type:"literal",value:", "});return t.slice(0,-1)}},Og=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Ng={minimumIntegerDigits:2};class Ag{constructor(e,t={}){Tg.set(this,void 0);let r=String(t.style||"short");"long"!==r&&"short"!==r&&"narrow"!==r&&"digital"!==r&&(r="short");let n="digital"===r?"numeric":r;const a=t.hours||n;n="2-digit"===a?"numeric":a;const o=t.minutes||n;n="2-digit"===o?"numeric":o;const i=t.seconds||n;n="2-digit"===i?"numeric":i;const l=t.milliseconds||n;Cg(this,Tg,{locale:e,style:r,years:t.years||"digital"===r?"short":r,yearsDisplay:"always"===t.yearsDisplay?"always":"auto",months:t.months||"digital"===r?"short":r,monthsDisplay:"always"===t.monthsDisplay?"always":"auto",weeks:t.weeks||"digital"===r?"short":r,weeksDisplay:"always"===t.weeksDisplay?"always":"auto",days:t.days||"digital"===r?"short":r,daysDisplay:"always"===t.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===t.hoursDisplay||"digital"===r?"always":"auto",minutes:o,minutesDisplay:"always"===t.minutesDisplay||"digital"===r?"always":"auto",seconds:i,secondsDisplay:"always"===t.secondsDisplay||"digital"===r?"always":"auto",milliseconds:l,millisecondsDisplay:"always"===t.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return Sg(this,Tg,"f")}formatToParts(e){const t=[],r=Sg(this,Tg,"f"),n=r.style,a=r.locale;for(const[n,o]of Og){const i=e[n];if("auto"===r[`${n}Display`]&&!i)continue;const l=r[n],d="2-digit"===l?Ng:"numeric"===l?{}:{style:"unit",unit:o,unitDisplay:l};t.push(new Intl.NumberFormat(a,d).format(i))}return new Ig(a,{type:"unit",style:"digital"===n?"short":n}).formatToParts(t)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Tg=new WeakMap;const Mg=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Lg=["year","month","week","day","hour","minute","second","millisecond"];class jg{constructor(e=0,t=0,r=0,n=0,a=0,o=0,i=0,l=0){this.years=e,this.months=t,this.weeks=r,this.days=n,this.hours=a,this.minutes=o,this.seconds=i,this.milliseconds=l,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 jg(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 t;if("string"==typeof e){const r=String(e).trim(),n=r.startsWith("-")?-1:1,a=null===(t=r.match(Mg))||void 0===t?void 0:t.slice(1).map((e=>(Number(e)||0)*n));return a?new jg(...a):new jg}if("object"==typeof e){const{years:t,months:r,weeks:n,days:a,hours:o,minutes:i,seconds:l,milliseconds:d}=e;return new jg(t,r,n,a,o,i,l,d)}throw new RangeError("invalid duration")}static compare(e,t){const r=Date.now(),n=Math.abs(Rg(r,jg.from(e)).getTime()-r),a=Math.abs(Rg(r,jg.from(t)).getTime()-r);return n>a?-1:n<a?1:0}toLocaleString(e,t){return new Ag(e,t).format(this)}}function Rg(e,t){const r=new Date(e);return r.setFullYear(r.getFullYear()+t.years),r.setMonth(r.getMonth()+t.months),r.setDate(r.getDate()+7*t.weeks+t.days),r.setHours(r.getHours()+t.hours),r.setMinutes(r.getMinutes()+t.minutes),r.setSeconds(r.getSeconds()+t.seconds),r}function Dg(e,{relativeTo:t=Date.now()}={}){if(t=new Date(t),e.blank)return e;const r=e.sign;let n=Math.abs(e.years),a=Math.abs(e.months),o=Math.abs(e.weeks),i=Math.abs(e.days),l=Math.abs(e.hours),d=Math.abs(e.minutes),s=Math.abs(e.seconds),c=Math.abs(e.milliseconds);c>=900&&(s+=Math.round(c/1e3)),(s||d||l||i||o||a||n)&&(c=0),s>=55&&(d+=Math.round(s/60)),(d||l||i||o||a||n)&&(s=0),d>=55&&(l+=Math.round(d/60)),(l||i||o||a||n)&&(d=0),i&&l>=12&&(i+=Math.round(l/24)),!i&&l>=21&&(i+=Math.round(l/24)),(i||o||a||n)&&(l=0);const f=t.getFullYear();let u=t.getMonth();const g=t.getDate();return(i>=27||n+a&&i)&&(t.setDate(g+i*r),a+=Math.abs(t.getFullYear()>=f?t.getMonth()-u:t.getMonth()-u-12),a&&(i=0),u=t.getMonth()),i>=6&&(o+=Math.round(i/7)),(o||a||n)&&(i=0),o>=4&&(a+=Math.round(o/4)),(a||n)&&(o=0),(a>=11||n&&a)&&(t.setMonth(t.getMonth()+a*r),n+=Math.abs(f-t.getFullYear())),n&&(a=0),new jg(n*r,a*r,o*r,i*r,l*r,d*r,s*r,c*r)}var zg,_g,Pg,Hg,Fg,Vg,Wg,$g,Zg,Gg,Ug,qg=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},Kg=function(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r};const Yg=globalThis.HTMLElement||null,Xg=new jg,Jg=new jg(0,0,0,0,0,1);class Qg extends Event{constructor(e,t,r,n){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=t,this.oldTitle=r,this.newTitle=n}}function ep(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const t=e.precision;if("second"===t)return 1e3;if("minute"===t)return 6e4}const t=Math.abs(Date.now()-e.date.getTime());return t<6e4?1e3:t<36e5?6e4:36e5}const tp=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 t=e.date;if(t&&t.getTime()){const t=ep(e),r=Date.now()+t;r<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),t),this.time=r)}}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 t of this.elements)e=Math.min(e,ep(t)),t.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class rp extends Yg{constructor(){super(...arguments),zg.add(this),_g.set(this,!1),Pg.set(this,!1),Fg.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Ug.set(this,null)}static define(e="relative-time",t=customElements){return t.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","datetime","lang","title"]}get onRelativeTimeUpdated(){return qg(this,Ug,"f")}set onRelativeTimeUpdated(e){qg(this,Ug,"f")&&this.removeEventListener("relative-time-updated",qg(this,Ug,"f")),Kg(this,Ug,"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 t=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===t||"2-digit"===t)return t}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let t=this.getAttribute("month");if(""!==t)return null!=t||(t="datetime"===e?this.formatStyle:"short"),"numeric"===t||"2-digit"===t||"short"===t||"long"===t||"narrow"===t?t:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const t=this.getAttribute("year");return"numeric"===t||"2-digit"===t?t: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&&(t=e,Mg.test(t))?e:"P30D";var t}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 Lg.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 t=this.format;return"elapsed"===t||"micro"===t?"narrow":"datetime"===t?"short":"long"}set formatStyle(e){this.setAttribute("format-style",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(){tp.unobserve(this)}attributeChangedCallback(e,t,r){t!==r&&("title"===e&&Kg(this,_g,null!==r&&(this.date&&qg(this,zg,"m",Vg).call(this,this.date))!==r,"f"),qg(this,Pg,"f")||"title"===e&&qg(this,_g,"f")||Kg(this,Pg,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=qg(this,Fg,"f").textContent||this.textContent||"",t=this.getAttribute("title")||"";let r=t;const n=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!n)return void(qg(this,Fg,"f").textContent=e);const a=Date.now();qg(this,_g,"f")||(r=qg(this,zg,"m",Vg).call(this,n)||"",r&&this.setAttribute("title",r));const o=function(e,t="second",r=Date.now()){const n=e.getTime()-r;if(0===n)return new jg;const a=Math.sign(n),o=Math.abs(n),i=Math.floor(o/1e3),l=Math.floor(i/60),d=Math.floor(l/60),s=Math.floor(d/24),c=Math.floor(s/30),f=Math.floor(c/12),u=Lg.indexOf(t)||Lg.length;return new jg(u>=0?f*a:0,u>=1?(c-12*f)*a:0,0,u>=3?(s-30*c)*a:0,u>=4?(d-24*s)*a:0,u>=5?(l-60*d)*a:0,u>=6?(i-60*l)*a:0,u>=7?(o-1e3*i)*a:0)}(n,this.precision,a),i=qg(this,zg,"m",Wg).call(this,o);let l=e;l="duration"===i?qg(this,zg,"m",$g).call(this,o):"relative"===i?qg(this,zg,"m",Zg).call(this,o):qg(this,zg,"m",Gg).call(this,n),l?qg(this,Fg,"f").textContent=l:this.shadowRoot===qg(this,Fg,"f")&&this.textContent&&(qg(this,Fg,"f").textContent=this.textContent),l===e&&r===t||this.dispatchEvent(new Qg(e,l,t,r)),"relative"===i||"duration"===i?tp.observe(this):tp.unobserve(this),Kg(this,Pg,!1,"f")}}_g=new WeakMap,Pg=new WeakMap,Fg=new WeakMap,Ug=new WeakMap,zg=new WeakSet,Hg=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},Vg=function(e){return new Intl.DateTimeFormat(qg(this,zg,"a",Hg),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},Wg=function(e){const t=this.format;if("datetime"===t)return"datetime";if("duration"===t)return"duration";if("elapsed"===t)return"duration";if("micro"===t)return"duration";if(("auto"===t||"relative"===t)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const t=this.tense;if("past"===t||"future"===t)return"relative";if(1===jg.compare(e,this.threshold))return"relative"}return"datetime"},$g=function(e){const t=qg(this,zg,"a",Hg),r=this.format,n=this.formatStyle,a=this.tense;let o=Xg;"micro"===r?(e=Dg(e),o=Jg,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=Jg)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=o);const i=`${this.precision}sDisplay`;return e.blank?o.toLocaleString(t,{style:n,[i]:"always"}):e.abs().toLocaleString(t,{style:n})},Zg=function(e){const t=new Intl.RelativeTimeFormat(qg(this,zg,"a",Hg),{numeric:"auto",style:this.formatStyle}),r=this.tense;"future"===r&&1!==e.sign&&(e=Xg),"past"===r&&-1!==e.sign&&(e=Xg);const[n,a]=function(e,t){const r=Dg(e,t);if(r.blank)return[0,"second"];for(const e of Lg){if("millisecond"===e)continue;const t=r[`${e}s`];if(t)return[t,e]}return[0,"second"]}(e);return"second"===a&&n<10?t.format(0,"second"):t.format(n,a)},Gg=function(e){const t=new Intl.DateTimeFormat(qg(this,zg,"a",Hg),{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} ${t.format(e)}`.trim()};const np="undefined"!=typeof globalThis?globalThis:window;try{np.RelativeTimeElement=rp.define()}catch(op){if(!(np.DOMException&&op instanceof DOMException&&"NotSupportedError"===op.name||op instanceof ReferenceError))throw op}
|
|
6
|
+
*/var xe=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))he.call(r,i)&&(a[i]=r[i]);if(me){n=me(r);for(var l=0;l<n.length;l++)ve.call(r,n[l])&&(a[n[l]]=r[n[l]])}}return a},ye=E(xe),we=function(e,t){var r=ye({},e,t);for(var n in e){var a;e[n]&&"object"==typeof t[n]&&ye(r,((a={})[n]=ye(e[n],t[n]),a))}return r},Be={breakpoints:[40,52,64].map((function(e){return e+"em"}))},ke=function(e){return"@media screen and (min-width: "+e+")"},Ee=function(e,t){return Te(t,e,e)},Te=function(e,t,r,n,a){for(t=t&&t.split?t.split("."):[t],n=0;n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},Ce=function e(t){var r={},n=function(e){var n,a,o={},i=!1,l=e.theme&&e.theme.disableStyledSystemCache;for(var d in e)if(t[d]){var s=t[d],c=e[d],f=Te(e.theme,s.scale,s.defaults);if("object"!=typeof c)ye(o,s(c,f,e));else{if(r.breakpoints=!l&&r.breakpoints||Te(e.theme,"breakpoints",Be.breakpoints),Array.isArray(c)){r.media=!l&&r.media||[null].concat(r.breakpoints.map(ke)),o=we(o,Se(r.media,s,f,c,e));continue}null!==c&&(o=we(o,Ie(r.breakpoints,s,f,c,e)),i=!0)}}return i&&(n=o,a={},Object.keys(n).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){a[e]=n[e]})),o=a),o};n.config=t,n.propNames=Object.keys(t),n.cache=r;var a=Object.keys(t).filter((function(e){return"config"!==e}));return a.length>1&&a.forEach((function(r){var a;n[r]=e(((a={})[r]=t[r],a))})),n},Se=function(e,t,r,n,a){var o={};return n.slice(0,e.length).forEach((function(n,i){var l,d=e[i],s=t(n,r,a);d?ye(o,((l={})[d]=ye({},o[d],s),l)):ye(o,s)})),o},Ie=function(e,t,r,n,a){var o={};for(var i in n){var l=e[i],d=t(n[i],r,a);if(l){var s,c=ke(l);ye(o,((s={})[c]=ye({},o[c],d),s))}else ye(o,d)}return o},Oe=function(e){var t=e.properties,r=e.property,n=e.scale,a=e.transform,o=void 0===a?Ee:a,i=e.defaultScale;t=t||[r];var l=function(e,r,n){var a={},i=o(e,r,n);if(null!==i)return t.forEach((function(e){a[e]=i})),a};return l.scale=n,l.defaults=i,l},Ne=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(r){var n=e[r];t[r]=!0!==n?"function"!=typeof n?Oe(n):n:Oe({property:r,scale:r})})),Ce(t)},Ae=function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){t&&t.config&&ye(e,t.config)})),Ce(e)},Me={width:{property:"width",scale:"sizes",transform:function(e,t){return Te(t,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},Le=Ne(Me),je={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};je.bg=je.backgroundColor;var Re=Ne(je),De=Ne({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),ze=Ne({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),_e={space:[0,4,8,16,32,64,128,256,512]},Pe=Ne({gridGap:{property:"gridGap",scale:"space",defaultScale:_e.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:_e.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:_e.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),He={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};He.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},He.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},He.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},He.borderBottomColor={property:"borderBottomColor",scale:"colors"},He.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},He.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},He.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},He.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},He.borderLeftColor={property:"borderLeftColor",scale:"colors"},He.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},He.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},He.borderRightColor={property:"borderRightColor",scale:"colors"},He.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var Fe=Ne(He),Ve={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Ve.bgImage=Ve.backgroundImage,Ve.bgSize=Ve.backgroundSize,Ve.bgPosition=Ve.backgroundPosition,Ve.bgRepeat=Ve.backgroundRepeat;var We=Ne(Ve),$e={space:[0,4,8,16,32,64,128,256,512]},Ze=Ne({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:$e.space},right:{property:"right",scale:"space",defaultScale:$e.space},bottom:{property:"bottom",scale:"space",defaultScale:$e.space},left:{property:"left",scale:"space",defaultScale:$e.space}}),Ge={space:[0,4,8,16,32,64,128,256,512]},Ue=function(e){return"number"==typeof e&&!isNaN(e)},qe=function(e,t){if(!Ue(e))return Te(t,e,e);var r=e<0,n=Math.abs(e),a=Te(t,n,n);return Ue(a)?a*(r?-1:1):r?"-"+a:a},Ke={};Ke.margin={margin:{property:"margin",scale:"space",transform:qe,defaultScale:Ge.space},marginTop:{property:"marginTop",scale:"space",transform:qe,defaultScale:Ge.space},marginRight:{property:"marginRight",scale:"space",transform:qe,defaultScale:Ge.space},marginBottom:{property:"marginBottom",scale:"space",transform:qe,defaultScale:Ge.space},marginLeft:{property:"marginLeft",scale:"space",transform:qe,defaultScale:Ge.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:qe,defaultScale:Ge.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:qe,defaultScale:Ge.space}},Ke.margin.m=Ke.margin.margin,Ke.margin.mt=Ke.margin.marginTop,Ke.margin.mr=Ke.margin.marginRight,Ke.margin.mb=Ke.margin.marginBottom,Ke.margin.ml=Ke.margin.marginLeft,Ke.margin.mx=Ke.margin.marginX,Ke.margin.my=Ke.margin.marginY,Ke.padding={padding:{property:"padding",scale:"space",defaultScale:Ge.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:Ge.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:Ge.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:Ge.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:Ge.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:Ge.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:Ge.space}},Ke.padding.p=Ke.padding.padding,Ke.padding.pt=Ke.padding.paddingTop,Ke.padding.pr=Ke.padding.paddingRight,Ke.padding.pb=Ke.padding.paddingBottom,Ke.padding.pl=Ke.padding.paddingLeft,Ke.padding.px=Ke.padding.paddingX,Ke.padding.py=Ke.padding.paddingY;var Ye=Ne(Ke.margin),Xe=Ne(Ke.padding),Je=Ae(Ye,Xe),Qe=Ne({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function et(){return et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(this,arguments)}var tt=function(e,t,r,n,a){for(t=t&&t.split?t.split("."):[t],n=0;n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},rt=[40,52,64].map((function(e){return e+"em"})),nt={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},at={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},ot={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},it={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},lt=function(e,t){if("number"!=typeof t||t>=0)return tt(e,t,t);var r=Math.abs(t),n=tt(e,r,r);return"string"==typeof n?"-"+n:-1*n},dt=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var r;return et({},e,((r={})[t]=lt,r))}),{}),st=function e(t){return function(r){void 0===r&&(r={});var n=et({},nt,{},r.theme||r),a={},o=function(e){return function(t){var r={},n=tt(t,"breakpoints",rt),a=[null].concat(n.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var o in e){var i="function"==typeof e[o]?e[o](t):e[o];if(null!=i)if(Array.isArray(i))for(var l=0;l<i.slice(0,a.length).length;l++){var d=a[l];d?(r[d]=r[d]||{},null!=i[l]&&(r[d][o]=i[l])):r[o]=i[l]}else r[o]=i}return r}}("function"==typeof t?t(n):t)(n);for(var i in o){var l=o[i],d="function"==typeof l?l(n):l;if("variant"!==i)if(d&&"object"==typeof d)a[i]=e(d)(n);else{var s=tt(at,i,i),c=tt(it,s),f=tt(n,c,tt(n,s,{})),u=tt(dt,s,tt)(f,d,d);if(ot[s])for(var g=ot[s],p=0;p<g.length;p++)a[g[p]]=u;else a[s]=u}else a=et({},a,{},e(tt(n,d))(n))}return a}},ct=function(e){var t,r,n=e.scale,a=e.prop,o=void 0===a?"variant":a,i=e.variants,l=void 0===i?{}:i,d=e.key;r=Object.keys(l).length?function(e,t,r){return st(Te(t,e,null))(r.theme)}:function(e,t){return Te(t,e,null)},r.scale=n||d,r.defaults=l;var s=((t={})[o]=r,t);return Ce(s)},ft=ct({key:"buttons"}),ut=ct({key:"textStyles",prop:"textStyle"}),gt=ct({key:"colorStyles",prop:"colors"}),pt=Le.width,bt=Le.height,mt=Le.minWidth,ht=Le.minHeight,vt=Le.maxWidth,xt=Le.maxHeight,yt=Le.size,wt=Le.verticalAlign,Bt=Le.display,kt=Le.overflow,Et=Le.overflowX,Tt=Le.overflowY,Ct=Re.opacity,St=De.fontSize,It=De.fontFamily,Ot=De.fontWeight,Nt=De.lineHeight,At=De.textAlign,Mt=De.fontStyle,Lt=De.letterSpacing,jt=ze.alignItems,Rt=ze.alignContent,Dt=ze.justifyItems,zt=ze.justifyContent,_t=ze.flexWrap,Pt=ze.flexDirection,Ht=ze.flex,Ft=ze.flexGrow,Vt=ze.flexShrink,Wt=ze.flexBasis,$t=ze.justifySelf,Zt=ze.alignSelf,Gt=ze.order,Ut=Pe.gridGap,qt=Pe.gridColumnGap,Kt=Pe.gridRowGap,Yt=Pe.gridColumn,Xt=Pe.gridRow,Jt=Pe.gridAutoFlow,Qt=Pe.gridAutoColumns,er=Pe.gridAutoRows,tr=Pe.gridTemplateColumns,rr=Pe.gridTemplateRows,nr=Pe.gridTemplateAreas,ar=Pe.gridArea,or=Fe.borderWidth,ir=Fe.borderStyle,lr=Fe.borderColor,dr=Fe.borderTop,sr=Fe.borderRight,cr=Fe.borderBottom,fr=Fe.borderLeft,ur=Fe.borderRadius,gr=We.backgroundImage,pr=We.backgroundSize,br=We.backgroundPosition,mr=We.backgroundRepeat,hr=Ze.zIndex,vr=Ze.top,xr=Ze.right,yr=Ze.bottom,wr=Ze.left,Br=function(e){var t=e.prop,r=e.cssProperty,n=e.alias,a=e.key,o=e.transformValue,i=e.scale,l=e.properties,d={};return d[t]=Oe({properties:l,property:r||t,scale:a,defaultScale:i,transform:o}),n&&(d[n]=d[t]),Ce(d)},kr=Object.freeze({__proto__:null,alignContent:Rt,alignItems:jt,alignSelf:Zt,background:We,backgroundImage:gr,backgroundPosition:br,backgroundRepeat:mr,backgroundSize:pr,border:Fe,borderBottom:cr,borderColor:lr,borderLeft:fr,borderRadius:ur,borderRight:sr,borderStyle:ir,borderTop:dr,borderWidth:or,borders:Fe,bottom:yr,boxShadow:Qe,buttonStyle:ft,color:Re,colorStyle:gt,compose:Ae,createParser:Ce,createStyleFunction:Oe,display:Bt,flex:Ht,flexBasis:Wt,flexDirection:Pt,flexGrow:Ft,flexShrink:Vt,flexWrap:_t,flexbox:ze,fontFamily:It,fontSize:St,fontStyle:Mt,fontWeight:Ot,get:Te,grid:Pe,gridArea:ar,gridAutoColumns:Qt,gridAutoFlow:Jt,gridAutoRows:er,gridColumn:Yt,gridColumnGap:qt,gridGap:Ut,gridRow:Xt,gridRowGap:Kt,gridTemplateAreas:nr,gridTemplateColumns:tr,gridTemplateRows:rr,height:bt,justifyContent:zt,justifyItems:Dt,justifySelf:$t,layout:Le,left:wr,letterSpacing:Lt,lineHeight:Nt,margin:Ye,maxHeight:xt,maxWidth:vt,minHeight:ht,minWidth:mt,opacity:Ct,order:Gt,overflow:kt,overflowX:Et,overflowY:Tt,padding:Xe,position:Ze,right:xr,shadow:Qe,size:yt,space:Je,style:Br,system:Ne,textAlign:At,textShadow:Qe,textStyle:ut,top:vr,typography:De,variant:ct,verticalAlign:wt,width:pt,zIndex:hr});const{get:Er,compose:Tr,system:Cr}=kr,Sr=e=>{return t=e,void 0===(r=Er(be,e))&&(r=null),function(e){return Te(e.theme,t,r)};var t,r},Ir=Tr(Je,Re,Bt),Or=Tr(De,Cr({whiteSpace:{property:"whiteSpace"}}));Tr(Fe,Qe);var Nr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ar}(e)}(e)};var Ar="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Mr(e,t){return!1!==t.clone&&t.isMergeableObject(e)?zr((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Lr(e,t,r){return e.concat(t).map((function(e){return Mr(e,r)}))}function jr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Rr(e,t){try{return t in e}catch(e){return!1}}function Dr(e,t,r){var n={};return r.isMergeableObject(e)&&jr(e).forEach((function(t){n[t]=Mr(e[t],r)})),jr(t).forEach((function(a){(function(e,t){return Rr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Rr(e,a)&&r.isMergeableObject(t[a])?n[a]=function(e,t){if(!t.customMerge)return zr;var r=t.customMerge(e);return"function"==typeof r?r:zr}(a,r)(e[a],t[a],r):n[a]=Mr(t[a],r))})),n}function zr(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Lr,r.isMergeableObject=r.isMergeableObject||Nr,r.cloneUnlessOtherwiseSpecified=Mr;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Dr(e,t,r):Mr(t,r)}zr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return zr(e,r,t)}),{})};var _r=E(zr);const Pr="light",Hr="dark",Fr=t.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),Vr=({children:e,...r})=>{var n,a,o,i,l,d,s,c;const{theme:f,colorMode:u,dayScheme:g,nightScheme:p}=Wr(),b=null!==(n=null!==(a=r.theme)&&void 0!==a?a:f)&&void 0!==n?n:be,{resolvedServerColorMode:h}=(()=>{try{var e;const t=null===(e=document.getElementById("__PRIMER_DATA__"))||void 0===e?void 0:e.textContent;if(t)return JSON.parse(t)}catch(e){}return{}})(),v=t.useRef(h),[x,y]=t.useState(null!==(o=null!==(i=r.colorMode)&&void 0!==i?i:u)&&void 0!==o?o:"day"),[B,k]=t.useState(null!==(l=null!==(d=r.dayScheme)&&void 0!==d?d:g)&&void 0!==l?l:Pr),[E,T]=t.useState(null!==(s=null!==(c=r.nightScheme)&&void 0!==c?c:p)&&void 0!==s?s:Hr),C=function(){const[e,r]=t.useState(Zr);return t.useEffect((()=>{var e,t;const n=null===(e=window)||void 0===e||null===(t=e.matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)");function a(e){const t=e.matches;r(t?"night":"day")}if(n){if(void 0!==n.addEventListener)return n.addEventListener("change",a),function(){n.removeEventListener("change",a)};if(void 0!==n.addListener)return n.addListener(a),function(){n.removeListener(a)}}}),[]),e}(),S=v.current||Gr(x,C),I=function(e,t,r){switch(e){case"day":case"light":return t;case"dark":case"night":return r}}(S,B,E),{resolvedTheme:O,resolvedColorScheme:N}=t.useMemo((()=>function(e,t){if(!e.colorSchemes)return{resolvedTheme:e,resolvedColorScheme:void 0};if(!e.colorSchemes[t]){console.error(`\`${t}\` scheme not defined in \`theme.colorSchemes\``);const r=Object.keys(e.colorSchemes)[0];return{resolvedTheme:_r(e,e.colorSchemes[r]),resolvedColorScheme:r}}return{resolvedTheme:_r(e,e.colorSchemes[t]),resolvedColorScheme:t}}(b,I)),[b,I]);return t.useEffect((function(){const e=Gr(x,C);v.current&&(v.current!==e&&window.setTimeout((()=>{w.flushSync((()=>{y(e)})),y(x)})),v.current=null)}),[x,C]),t.useEffect((()=>{var e,t;y(null!==(e=null!==(t=r.colorMode)&&void 0!==t?t:u)&&void 0!==e?e:"day")}),[r.colorMode,u]),t.useEffect((()=>{var e,t;k(null!==(e=null!==(t=r.dayScheme)&&void 0!==t?t:g)&&void 0!==e?e:Pr)}),[r.dayScheme,g]),t.useEffect((()=>{var e,t;T(null!==(e=null!==(t=r.nightScheme)&&void 0!==t?t:p)&&void 0!==e?e:Hr)}),[r.nightScheme,p]),t.createElement(Fr.Provider,{value:{theme:O,colorScheme:I,colorMode:x,resolvedColorMode:S,resolvedColorScheme:N,dayScheme:B,nightScheme:E,setColorMode:y,setDayScheme:k,setNightScheme:T}},t.createElement(m,{theme:O},e,r.preventSSRMismatch?t.createElement("script",{type:"application/json",id:"__PRIMER_DATA__",dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:S})}}):null))};function Wr(){return t.useContext(Fr)}function $r(e,t){var r;const{colorScheme:n=""}=Wr();return null!==(r=e[n])&&void 0!==r?r:t}function Zr(){var e,t,r;return"undefined"!=typeof window&&null!==(e=(t=window).matchMedia)&&void 0!==e&&null!==(r=e.call(t,"(prefers-color-scheme: dark)"))&&void 0!==r&&r.matches?"night":"day"}function Gr(e,t){return"auto"===e?t:e}Vr.displayName="ThemeProvider";var Ur=Vr;function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}!function(){function e(e){var t=!0,r=!1,n=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function i(e){var t=e.type,r=e.tagName;return!("INPUT"!==r||!a[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}function l(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function d(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function s(r){r.metaKey||r.altKey||r.ctrlKey||(o(e.activeElement)&&l(e.activeElement),t=!0)}function c(e){t=!1}function f(e){o(e.target)&&(t||i(e.target))&&l(e.target)}function u(e){o(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(n),n=window.setTimeout((function(){r=!1}),100),d(e.target))}function g(e){"hidden"===document.visibilityState&&(r&&(t=!0),p())}function p(){document.addEventListener("mousemove",m),document.addEventListener("mousedown",m),document.addEventListener("mouseup",m),document.addEventListener("pointermove",m),document.addEventListener("pointerdown",m),document.addEventListener("pointerup",m),document.addEventListener("touchmove",m),document.addEventListener("touchstart",m),document.addEventListener("touchend",m)}function b(){document.removeEventListener("mousemove",m),document.removeEventListener("mousedown",m),document.removeEventListener("mouseup",m),document.removeEventListener("pointermove",m),document.removeEventListener("pointerdown",m),document.removeEventListener("pointerup",m),document.removeEventListener("touchmove",m),document.removeEventListener("touchstart",m),document.removeEventListener("touchend",m)}function m(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,b())}document.addEventListener("keydown",s,!0),document.addEventListener("mousedown",c,!0),document.addEventListener("pointerdown",c,!0),document.addEventListener("touchstart",c,!0),document.addEventListener("visibilitychange",g,!0),p(),e.addEventListener("focus",f,!0),e.addEventListener("blur",u,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}();const Kr=h(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}input{color-scheme:",';}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}'],(e=>e.colorScheme)),Yr=b.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Or,Ir);function Xr(e){const{children:r,color:n="fg.default",fontFamily:a="normal",lineHeight:o="default",...i}=e,{colorScheme:l,dayScheme:d,nightScheme:s}=Wr();return t.createElement(Yr,qr({},i,{color:n,fontFamily:a,lineHeight:o,"data-portal-root":!0,"data-color-mode":null!=l&&l.includes("dark")?"dark":"light","data-light-theme":d,"data-dark-theme":s}),t.createElement(Kr,{colorScheme:null!=l&&l.includes("dark")?"dark":"light"}),r)}Xr.displayName="BaseStyles";var Jr=e=>st(e.sx);var Qr=b.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(Je,Re,De,Le,ze,Pe,We,Fe,Ze,Qe,Jr);const en=v(["box-shadow:none;outline:2px solid ",";"],Sr("colors.accent.fg"));var tn=e=>v(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],en,void 0===e?"2px":e,en,void 0===e?"2px":e);const rn=b.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],tn("-2px"),Jr),nn=(e="default",t)=>({default:{color:"btn.text",backgroundColor:"btn.bg",boxShadow:`${null==t?void 0:t.shadows.btn.shadow}, ${null==t?void 0:t.shadows.btn.insetShadow}`,"&:hover:not([disabled])":{backgroundColor:"btn.hoverBg",borderColor:`var(--button-default-borderColor-hover, ${null==t?void 0:t.colors.btn.hoverBorder})`},"&:active:not([disabled])":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==t?void 0:t.colors.btn.activeBorder})`},"&:disabled":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==t?void 0:t.colors.btn.activeBorder})`},'[data-component="leadingVisual"], [data-component="trailingVisual"], [data-component="trailingAction"]':{color:`var(--button-color, ${null==t?void 0:t.colors.fg.muted})`}},primary:{color:"btn.primary.text",backgroundColor:"btn.primary.bg",borderColor:"btn.primary.border",boxShadow:`${null==t?void 0:t.shadows.btn.primary.shadow}`,"&:hover:not([disabled])":{color:"btn.primary.hoverText",backgroundColor:"btn.primary.hoverBg"},"&:focus:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:focus-visible:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:active:not([disabled])":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.primary.selectedShadow}`},"&:disabled":{color:"btn.primary.disabledText",backgroundColor:"btn.primary.disabledBg","[data-component=ButtonCounter]":{color:"inherit"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.primary.counterBg",color:"btn.primary.text"},"&[aria-expanded=true]":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.primary.selectedShadow}`}},danger:{color:"btn.danger.text",backgroundColor:"btn.bg",boxShadow:`${null==t?void 0:t.shadows.btn.shadow}`,"&:hover:not([disabled])":{color:"btn.danger.hoverText",backgroundColor:"btn.danger.hoverBg",borderColor:"btn.danger.hoverBorder",boxShadow:`${null==t?void 0:t.shadows.btn.danger.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.danger.hoverCounterBg",color:"btn.danger.hoverCounterFg"}},"&:active:not([disabled])":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"},"&:disabled":{color:"btn.danger.disabledText",backgroundColor:"btn.danger.disabledBg",borderColor:"btn.danger.disabledBorder","[data-component=ButtonCounter]":{color:"btn.danger.disabledCounterFg",backgroundColor:"btn.danger.disabledCounterBg"}},"[data-component=ButtonCounter]":{color:"btn.danger.counterFg",backgroundColor:"btn.danger.counterBg"},"&[aria-expanded=true]":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"}},invisible:{color:"btn.text",backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none","&:hover:not([disabled])":{backgroundColor:"actionListItem.default.hoverBg"},"&:active:not([disabled])":{backgroundColor:"actionListItem.default.activeBg"},"&:disabled":{color:"primer.fg.disabled",'[data-component=ButtonCounter], [data-component="leadingVisual"], [data-component="trailingAction"]':{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"actionListItem.default.selectedBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"},'[data-component="trailingAction"]':{color:"fg.muted"},'[data-component="leadingVisual"]':{color:"fg.muted"},"&[data-no-visuals]":{color:"accent.fg"},'&:has([data-component="ButtonCounter"])':{color:"btn.text"},"&:disabled[data-no-visuals]":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}}},outline:{color:"btn.outline.text",boxShadow:`${null==t?void 0:t.shadows.btn.shadow}`,borderColor:`var(--button-default-borderColor-rest, ${null==t?void 0:t.colors.btn.border})`,backgroundColor:"btn.bg","&:hover:not([disabled])":{color:"btn.outline.hoverText",backgroundColor:"btn.outline.hoverBg",borderColor:`${null==t?void 0:t.colors.btn.outline.hoverBorder}`,boxShadow:`${null==t?void 0:t.shadows.btn.outline.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.hoverCounterBg",color:"btn.outline.hoverCounterFg"}},"&:active:not([disabled])":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.outline.selectedShadow}`,borderColor:`${null==t?void 0:t.colors.btn.outline.selectedBorder}`},"&:disabled":{color:"btn.outline.disabledText",backgroundColor:"btn.outline.disabledBg",borderColor:"btn.border","[data-component=ButtonCounter]":{backgroundColor:"btn.outline.disabledCounterBg",color:"btn.outline.disabledCounterFg"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.counterBg",color:"btn.outline.counterFg"},"&[aria-expanded=true]":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==t?void 0:t.shadows.btn.outline.selectedShadow}`,borderColor:`var(--button-default-borderColor-active, ${null==t?void 0:t.colors.btn.outline.selectedBorder})`}}}[e]),an=e=>({borderRadius:"2",border:"1px solid",borderColor:`var(--button-default-borderColor-rest, ${null==e?void 0:e.colors.btn.border})`,fontFamily:"inherit",fontWeight:"semibold",fontSize:"1",cursor:"pointer",appearance:"none",userSelect:"none",textDecoration:"none",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px",padding:"0 12px",gap:"8px",minWidth:"max-content",transition:"80ms cubic-bezier(0.65, 0, 0.35, 1)",transitionProperty:"color, fill, background-color, border-color","&[href]":{display:"inline-flex","&:hover":{textDecoration:"none"}},"&:hover":{transitionDuration:"80ms"},"&:active":{transition:"none"},"&:disabled":{cursor:"not-allowed",boxShadow:"none"},"@media (forced-colors: active)":{"&:focus":{outline:"solid 1px transparent"}},"[data-component=ButtonCounter]":{fontSize:"0"},"&[data-component=IconButton]":{display:"inline-grid",padding:"unset",placeContent:"center",width:"32px",minWidth:"unset"},'&[data-size="small"]':{padding:"0 8px",height:"28px",gap:"4px",fontSize:"0",'[data-component="text"]':{lineHeight:"calc(20 / 12)"},"[data-component=ButtonCounter]":{fontSize:"0"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"4px"},"&[data-component=IconButton]":{width:"28px",padding:"unset"}},'&[data-size="large"]':{padding:"0 16px",height:"40px",gap:"8px",'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"},"&[data-component=IconButton]":{width:"40px",padding:"unset"}}}),on=e=>({...an(e),'&[data-block="block"]':{width:"100%"},'[data-component="leadingVisual"]':{gridArea:"leadingVisual"},'[data-component="text"]':{gridArea:"text",lineHeight:"calc(20/14)",whiteSpace:"nowrap"},'[data-component="trailingVisual"]':{gridArea:"trailingVisual"},'[data-component="trailingAction"]':{marginRight:"-4px"},'[data-component="buttonContent"]':{flex:"1 0 auto",display:"grid",gridTemplateAreas:'"leadingVisual text trailingVisual"',gridTemplateColumns:"min-content minmax(0, auto) min-content",alignItems:"center",alignContent:"center"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"}}),ln=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"});function dn(e,t){r(e,(()=>t.current))}const sn={};var cn=b.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?Jr:"\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n "));function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fn.apply(this,arguments)}const un=n((({scheme:e="secondary",sx:r=sn,children:n,...a},o)=>t.createElement(t.Fragment,null,t.createElement(Qr,fn({"aria-hidden":"true",sx:_r({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},r)},a,{as:"span",ref:o}),n),t.createElement(cn,null," (",n,")"))));un.displayName="CounterLabel";var gn=un;function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pn.apply(this,arguments)}const bn=n((({children:e,as:r="button",sx:n=sn,...o},i)=>{const{leadingVisual:l,trailingVisual:d,trailingAction:s,count:c,icon:f,variant:u="default",size:g="medium",alignContent:p="center",block:b=!1,...m}=o,h=t.useRef(null);dn(i,h);const{theme:v}=Wr(),x=a((()=>_r.all([on(v),nn(u,v)])),[v,u]),y=a((()=>_r(x,n)),[x,n]),w={display:"flex",pointerEvents:"none"};return t.createElement(rn,pn({as:r,sx:y},m,{ref:h,"data-block":b?"block":null,"data-size":"small"===g||"large"===g?g:void 0,"data-no-visuals":!(l||d||s)||void 0}),f?t.createElement(f,null):t.createElement(t.Fragment,null,t.createElement(Qr,{as:"span","data-component":"buttonContent",sx:ln(p)},l&&t.createElement(Qr,{as:"span","data-component":"leadingVisual",sx:{...w}},t.createElement(l,null)),e&&t.createElement("span",{"data-component":"text"},e),void 0===c||d?d?t.createElement(Qr,{as:"span","data-component":"trailingVisual",sx:{...w}},t.createElement(d,null)):null:t.createElement(Qr,{as:"span","data-component":"trailingVisual",sx:{...w}},t.createElement(gn,{"data-component":"ButtonCounter"},c))),s&&t.createElement(Qr,{as:"span","data-component":"trailingAction",sx:{...w}},t.createElement(s,null))))}));function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mn.apply(this,arguments)}const hn=n((({children:e,sx:r=sn,...n},a)=>{const{block:o,size:i,leadingVisual:l,trailingVisual:d,trailingAction:s}=n;let c=r;const f={};if(null!==r&&Object.keys(r).length>0){c=vn({block:o,size:i,leadingVisual:l,trailingVisual:d,trailingAction:s},r);const{color:e}=r;e&&(f["--button-color"]=e)}return t.createElement(bn,mn({ref:a,as:"button",sx:c,style:f,type:"button"},n),e)}));function vn(e,t){const r=e.size&&"medium"!==e.size?`[data-size="${e.size}"]`:"",n=e.block?'[data-block="block"]':"",a=e.leadingVisual||e.trailingVisual||e.trailingAction?"":"[data-no-visuals]",o={};return t?(o[`&${r}${n}${a}`]=t,o):o}function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xn.apply(this,arguments)}hn.displayName="Button";const yn=n((({sx:e=sn,icon:r,...n},a)=>{let o=e;const{size:i}=n;return null!==e&&Object.keys(e).length>0&&(o=vn({size:i},e)),t.createElement(bn,xn({icon:r,"data-component":"IconButton",sx:o,type:"button"},n,{ref:a}))}));function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wn.apply(this,arguments)}const Bn=n((({children:e,as:r="a",sx:n=sn,...a},o)=>t.createElement(bn,wn({as:r,ref:o,sx:n},a),e))),kn={prefix:String(Math.round(1e10*Math.random())),current:0},En=t.createContext(kn);function Tn(e){let r=o(En),n=In(r===kn),i=a((()=>({prefix:r===kn?"":`${r.prefix}-${n}`,current:0})),[r,n]);return t.createElement(En.Provider,{value:i},e.children)}let Cn=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Sn=new WeakMap;function In(e=!1){let r=o(En),n=i(null);if(null===n.current&&!e){var a,l;let e=null===(a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(l=a.ReactCurrentOwner)||void 0===l?void 0:l.current;if(e){let t=Sn.get(e);null==t?Sn.set(e,{id:r.current,state:e.memoizedState}):e.memoizedState!==t.state&&(r.current=t.id,Sn.delete(e))}n.current=++r.current}return n.current}function On(e){let t=o(En);t!==kn||Cn||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=In(!!e);return e||`react-aria${t.prefix}-${r}`}const Nn=e.useId;function An(e){return void 0!==Nn?e||Nn():On(e)}const Mn=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ln(e,r){const n=o(jn),[a,i]=t.useState((()=>void 0!==n[e]?n[e]:void 0!==r?r:!!Mn&&window.matchMedia(e).matches));return l((()=>{void 0!==n[e]&&i(n[e])}),[n,e]),l((()=>{if(void 0!==n[e])return;function t(e){i(e.matches)}const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",t):r.addListener(t),i(r.matches),()=>{r.addEventListener?r.removeEventListener("change",t):r.removeListener(t)}}),[n,e]),a}const jn=d({}),Rn={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function Dn(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function zn(e,t){const r=Ln(Rn.narrow,!1),n=Ln(Rn.regular,!1),a=Ln(Rn.wide,!1);if(Dn(e)){const o=e;return r&&"narrow"in o?o.narrow:a&&"wide"in o?o.wide:n&&"regular"in o?o.regular:t}return e}function _n(e,r){const n=(a=r,o=()=>{},Object.keys(a).reduce(((e,t)=>(e[t]=o(a[t]),e)),{}));var a,o;const i=[],l=Object.keys(r),d=Object.values(r);return t.Children.forEach(e,(e=>{if(!t.isValidElement(e))return void i.push(e);const r=d.findIndex((t=>{if(Array.isArray(t)){const[r,n]=t;return e.type===r&&n(e.props)}return e.type===t}));if(-1===r)return void i.push(e);const a=l[r];n[a]||(n[a]=e)})),[n,i]}var Pn=new Map,Hn=new WeakMap,Fn=0,Vn=void 0;function Wn(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>`${t}_${"root"===t?function(e){return e?(Hn.has(e)||(Fn+=1,Hn.set(e,Fn.toString())),Hn.get(e)):"0"}(e.root):e[t]}`)).toString()}function $n(e,t,r={},n=Vn){if(void 0===window.IntersectionObserver&&void 0!==n){const a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:o,elements:i}=function(e){let t=Wn(e),r=Pn.get(t);if(!r){const n=new Map;let a;const o=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&a.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}))}))}),e);a=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:n},Pn.set(t,r)}return r}(r);let l=i.get(e)||[];return i.has(e)||i.set(e,l),l.push(t),o.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(i.delete(e),o.unobserve(e)),0===i.size&&(o.disconnect(),Pn.delete(a))}}function Zn({threshold:t,delay:r,trackVisibility:n,rootMargin:a,root:o,triggerOnce:i,skip:l,initialInView:d,fallbackInView:s,onChange:c}={}){var f;const[u,g]=e.useState(null),p=e.useRef(),[b,m]=e.useState({inView:!!d,entry:void 0});p.current=c,e.useEffect((()=>{if(l||!u)return;let e;return e=$n(u,((t,r)=>{m({inView:t,entry:r}),p.current&&p.current(t,r),r.isIntersecting&&i&&e&&(e(),e=void 0)}),{root:o,rootMargin:a,threshold:t,trackVisibility:n,delay:r},s),()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,u,o,a,i,l,n,s,r]);const h=null==(f=b.entry)?void 0:f.target,v=e.useRef();u||!h||i||l||v.current===h||(v.current=h,m({inView:!!d,entry:void 0}));const x=[g,b.inView,b.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}var Gn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c:l;function Un(e){return e&&e!==document.body?function(e){const t=e.scrollHeight>e.clientHeight;return t&&!(-1!==window.getComputedStyle(e).overflowY.indexOf("hidden"))}(e)?e:Un(e.parentElement):null}const qn=!!Mn&&CSS.supports("-webkit-touch-callout","none"),Kn=!!Mn&&(CSS.supports("max-height","100dvh")&&qn);function Yn(e){return Kn?`${e}dvh`:`${e}vh`}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}const Jn=1,Qn=2,ea=3,ta=4,ra={none:0,condensed:3,normal:[3,null,null,4]},na=t.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),aa={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},oa=({containerWidth:e="xlarge",padding:r="normal",rowGap:n="normal",columnGap:a="normal",children:o,sx:l={},_slotsConfig:d})=>{const{rootRef:s,enableStickyPane:c,disableStickyPane:f,contentTopRef:u,contentBottomRef:g,stickyPaneHeight:p}=function(){const e=t.useRef(null),[r,n]=t.useState(Yn(100)),[a,o]=t.useState(0),[i,l,d]=Zn(),[s,c]=Zn(),f=t.useCallback((()=>{let t="";const r=Un(e.current),o=null==d?void 0:d.target.getBoundingClientRect(),i="number"==typeof a?`${a}px`:a;if(r){const e=r.getBoundingClientRect(),n=o?Math.max(o.top-e.top,0):0;t=`calc(${e.height}px - (max(${n}px, ${i})))`}else{const e=o?Math.max(o.top,0):0;t=`calc(${Yn(100)} - (max(${e}px, ${i})))`}n(t)}),[d,a]),[u,g]=t.useState(!1);return Gn((()=>{const t=Un(e.current);return u&&(l||c)&&(f(),t?t.addEventListener("scroll",f):window.addEventListener("scroll",f),window.addEventListener("resize",f)),()=>{t?t.removeEventListener("scroll",f):window.removeEventListener("scroll",f),window.removeEventListener("resize",f)}}),[u,l,c,f]),{rootRef:e,enableStickyPane:function(e){g(!0),o(e)},disableStickyPane:function(){g(!1)},contentTopRef:i,contentBottomRef:s,stickyPaneHeight:r}}(),b=i(null),[m,h]=_n(o,null!=d?d:{header:fa,footer:ya});return t.createElement(na.Provider,{value:{padding:r,rowGap:n,columnGap:a,enableStickyPane:c,disableStickyPane:f,contentTopRef:u,contentBottomRef:g,paneRef:b}},t.createElement(Qr,{ref:s,style:{"--sticky-pane-height":p},sx:_r({padding:ra[r]},l)},t.createElement(Qr,{sx:{maxWidth:aa[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},m.header,t.createElement(Qr,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},h),m.footer)))};oa.displayName="Root",oa.displayName="PageLayout";const ia={none:{display:"none"},line:{display:"block",height:1,backgroundColor:"border.default"},filled:{display:"block",height:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset 0 -1px 0 0 ${e.colors.border.default}, inset 0 1px 0 0 ${e.colors.border.default}`}};const la=({variant:e="none",sx:r={}})=>{const{padding:n}=t.useContext(na),a=zn(e,"none");return t.createElement(Qr,{sx:e=>{return _r({marginX:(t=ra[n],Array.isArray(t)?t.map((e=>null===e?null:-e)):null===t?null:-t),...ia[a],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},r);var t}})};la.displayName="HorizontalDivider";const da={none:{display:"none"},line:{display:"block",width:1,backgroundColor:"border.default"},filled:{display:"block",width:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset -1px 0 0 0 ${e.colors.border.default}, inset 1px 0 0 0 ${e.colors.border.default}`}},sa=h(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),ca=({variant:e="none",draggable:r=!1,onDragStart:n,onDrag:a,onDragEnd:o,onDoubleClick:i,sx:l={}})=>{const[d,s]=t.useState(!1),[c,f]=t.useState(!1),u=zn(e,"none"),g=t.useRef(a),p=t.useRef(o),{paneRef:b}=t.useContext(na),[m,h]=t.useState(0),[v,x]=t.useState(0),[y,w]=t.useState(0);return t.useEffect((()=>{if(null!==b.current){const e=getComputedStyle(b.current),t=e.getPropertyValue("--pane-max-width-diff"),r=e.getPropertyValue("--pane-min-width"),n=b.current.getBoundingClientRect().width,a=Number(t.split("px")[0]),o=Number(r.split("px")[0]),i=window.innerWidth,l=i>a?i-a:i;h(o),x(l),w(n||0)}}),[b,c,d]),t.useEffect((()=>{g.current=a}),[a]),t.useEffect((()=>{p.current=o}),[o]),t.useEffect((()=>{function e(e){var t;null===(t=g.current)||void 0===t||t.call(g,e.movementX,!1),e.preventDefault()}function t(e){var t;s(!1),null===(t=p.current)||void 0===t||t.call(p),e.preventDefault()}function r(e){var t;let r=0;if(("ArrowLeft"===e.key||"ArrowDown"===e.key)&&y>m)r=-3;else{if("ArrowRight"!==e.key&&"ArrowUp"!==e.key||!(y<v))return;r=3}w(y+r),null===(t=g.current)||void 0===t||t.call(g,r,!0),e.preventDefault()}function n(e){var t;f(!1),null===(t=p.current)||void 0===t||t.call(p),e.preventDefault()}return d||c?(window.addEventListener("mousemove",e),window.addEventListener("keydown",r),window.addEventListener("mouseup",t),window.addEventListener("keyup",n),document.body.setAttribute("data-page-layout-dragging","true")):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("keydown",r),window.removeEventListener("keyup",n),document.body.removeAttribute("data-page-layout-dragging")),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("keydown",r),window.removeEventListener("keyup",n),document.body.removeAttribute("data-page-layout-dragging")}}),[d,c,y,m,v]),t.createElement(Qr,{sx:_r({height:"100%",position:"relative",...da[u]},l)},r?t.createElement(t.Fragment,null,t.createElement(Qr,{sx:{position:"absolute",inset:"0 -2px",cursor:"col-resize",bg:d||c?"accent.fg":"transparent",transitionDelay:"0.1s","&:hover":{bg:d||c?"accent.fg":"neutral.muted"}},role:"slider","aria-label":"Draggable pane splitter","aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":y,"aria-valuetext":`Pane width ${y} pixels`,tabIndex:0,onMouseDown:()=>{s(!0),null==n||n()},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(f(!0),null==n||n())},onDoubleClick:i}),t.createElement(sa,null)):null)};ca.displayName="VerticalDivider";const fa=({"aria-label":e,"aria-labelledby":r,padding:n="none",divider:a="none",dividerWhenNarrow:o="inherit",hidden:i=!1,children:l,sx:d={}})=>{const s=zn(Dn(a)||"inherit"===o?a:{regular:a,narrow:o},"none"),c=zn(i,!1),{rowGap:f}=t.useContext(na);return t.createElement(Qr,{as:"header","aria-label":e,"aria-labelledby":r,hidden:c,sx:_r({width:"100%",marginBottom:ra[f]},d)},t.createElement(Qr,{sx:{padding:ra[n]}},l),t.createElement(la,{variant:s,sx:{marginTop:ra[f]}}))};fa.displayName="Header",fa.displayName="PageLayout.Header";const ua={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},ga=({as:e="main","aria-label":r,"aria-labelledby":n,width:a="full",padding:o="none",hidden:i=!1,children:l,sx:d={}})=>{const s=zn(i,!1),{contentTopRef:c,contentBottomRef:f}=t.useContext(na);return t.createElement(Qr,{as:e,"aria-label":r,"aria-labelledby":n,sx:_r({display:s?"none":"flex",flexDirection:"column",order:Qn,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},d)},t.createElement(Qr,{ref:c}),t.createElement(Qr,{sx:{width:"100%",maxWidth:ua[a],marginX:"auto",flexGrow:1,padding:ra[o]}},l),t.createElement(Qr,{ref:f}))};ga.displayName="Content",ga.displayName="PageLayout.Content";const pa=e=>void 0!==e.default,ba=e=>["small","medium","large"].includes(e),ma={start:Jn,end:ea},ha={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},va={small:256,medium:296,large:320},xa=t.forwardRef((({"aria-label":e,"aria-labelledby":r,position:n="end",positionWhenNarrow:a="inherit",width:o="medium",minWidth:i=256,padding:d="none",resizable:c=!1,widthStorageKey:f="paneWidth",divider:u="none",dividerWhenNarrow:g="inherit",sticky:p=!1,offsetHeader:b=0,hidden:m=!1,children:h,id:v,sx:x={}},y)=>{const w=zn(Dn(n)||"inherit"===a?n:{regular:n,narrow:a},"end"),B=zn(Dn(u)||"inherit"===g?u:{regular:u,narrow:g},"none"),k=zn(m,!1),{rowGap:E,columnGap:T,enableStickyPane:C,disableStickyPane:S,paneRef:I}=t.useContext(na);t.useEffect((()=>{p?null==C||C(b):null==S||S()}),[p,C,S,b]);const O=e=>ba(e)?va[e]:pa(e)?Number(e.default.split("px")[0]):0,[N,A]=t.useState((()=>{if(!Mn)return O(o);let e;try{e=localStorage.getItem(f)}catch(t){e=null}return e&&!isNaN(Number(e))?Number(e):O(o)})),M=e=>{A(e);try{localStorage.setItem(f,e.toString())}catch(e){}};dn(y,I);const L=function(e){const[t,r]=s(!1);return l((()=>{if(null===e.current)return;const t=new ResizeObserver((e=>{for(const t of e)r(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth)}));return t.observe(e.current),()=>{t.disconnect()}}),[e]),t}(I),j=An(v),R={};return L&&(r?R["aria-labelledby"]=r:e&&(R["aria-label"]=e)),t.createElement(Qr,{sx:e=>_r({display:k?"none":"flex",order:ma[w],width:"100%",marginX:0,..."end"===w?{flexDirection:"column",marginTop:ra[E]}:{flexDirection:"column-reverse",marginBottom:ra[E]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...p?{position:"sticky",top:"number"==typeof b?`${b}px`:b,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===w?{flexDirection:"row-reverse",marginLeft:ra[T]}:{flexDirection:"row",marginRight:ra[T]}}},x)},t.createElement(la,{variant:{narrow:B,regular:"none"},sx:{["end"===w?"marginBottom":"marginTop"]:ra[E]}}),t.createElement(Qr,Xn({ref:I,style:{"--pane-width":`${N}px`},sx:e=>({"--pane-min-width":pa(o)?o.min:`${i}px`,"--pane-max-width-diff":"511px","--pane-max-width":pa(o)?o.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:ba(o)?ha[o]:o.default,padding:ra[d],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},L&&{tabIndex:0,role:"region"},R,v&&{id:j}),h),t.createElement(ca,{variant:{narrow:"none",regular:c?"line":B},draggable:c,sx:{["end"===w?"marginRight":"marginLeft"]:ra[T]},onDrag:(e,t=!1)=>{let r;r=t?e:"end"===w?-e:e,M(N+r)},onDragEnd:()=>{var e;const t=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect();t&&M(t.width)},onDoubleClick:()=>M(O(o))}))}));xa.displayName="PageLayout.Pane";const ya=({"aria-label":e,"aria-labelledby":r,padding:n="none",divider:a="none",dividerWhenNarrow:o="inherit",hidden:i=!1,children:l,sx:d={}})=>{const s=zn(Dn(a)||"inherit"===o?a:{regular:a,narrow:o},"none"),c=zn(i,!1),{rowGap:f}=t.useContext(na);return t.createElement(Qr,{as:"footer","aria-label":e,"aria-labelledby":r,hidden:c,sx:_r({order:ta,width:"100%",marginTop:ra[f]},d)},t.createElement(la,{variant:s,sx:{marginBottom:ra[f]}}),t.createElement(Qr,{sx:{padding:ra[n]}},l))};ya.displayName="Footer",ya.displayName="PageLayout.Footer";const wa=Object.assign(oa,{Header:fa,Content:ga,Pane:xa,Footer:ya});function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}const ka=e=>t.createElement(wa,Ba({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:Ea,footer:Sa}},e));ka.displayName="Root",ka.displayName="SplitPageLayout";const Ea=({padding:e="normal",divider:r="line",...n})=>t.createElement(wa.Header,Ba({padding:e,divider:r},n));Ea.displayName="Header",Ea.displayName="SplitPageLayout.Header";const Ta=({width:e="large",padding:r="normal",...n})=>t.createElement(wa.Content,Ba({width:e,padding:r},n));Ta.displayName="Content",Ta.displayName="SplitPageLayout.Content";const Ca=({position:e="start",sticky:r=!0,padding:n="normal",divider:a="line",...o})=>t.createElement(wa.Pane,Ba({position:e,sticky:r,padding:n,divider:a},o));Ca.displayName="Pane",Ca.displayName="SplitPageLayout.Pane";const Sa=({padding:e="normal",divider:r="line",...n})=>t.createElement(wa.Footer,Ba({padding:e,divider:r},n));Sa.displayName="Footer",Sa.displayName="SplitPageLayout.Footer";const Ia=Object.assign(ka,{Header:Ea,Content:Ta,Pane:Ca,Footer:Sa});function Oa({ref:e,closeOnOutsideClick:t,defaultOpen:r,onClickOutside:n}){const[a,o]=s(r),d=i(null),c=null!=e?e:d,u=f((e=>{const{current:t}=c;e.target.closest("details")!==t&&(n&&n(e),e.defaultPrevented||o(!1))}),[c,o,n]);l((()=>{if(a&&t)return document.addEventListener("click",u),()=>{document.removeEventListener("click",u)}}),[a,t,u]);const g=e=>{if(!e.defaultPrevented){const t=e.target;o(t.open)}};return{open:a,setOpen:o,getDetailsProps:()=>({onToggle:g,open:a,ref:c})}}function Na(){const e=i(new Set),t=f(((t,r,...n)=>{const a=window.setTimeout(t,r,...n);return e.current.add(a),a}),[]),r=f((t=>{clearTimeout(t),e.current.delete(t)}),[]);return l((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:t,safeClearTimeout:r}}const Aa=!0;function Ma(e){if(!e.defaultPrevented)for(const t of Object.values(La).reverse())if(t(e)===Aa||e.defaultPrevented)break}const La={};let ja=0;const Ra=({containerRef:e,ignoreClickRefs:t,onClickOutside:r})=>{const n=a((()=>ja++),[]),o=f((n=>{var a;return n instanceof MouseEvent&&n.button>0||null!==(a=e.current)&&void 0!==a&&a.contains(n.target)||t&&t.some((({current:e})=>null==e?void 0:e.contains(n.target)))?Aa:void r(n)}),[e,t,r]);l((()=>(0===Object.keys(La).length&&document.addEventListener("mousedown",Ma,{capture:!0}),function(e,t){La[e]=t}(n,o),()=>{!function(e){delete La[e]}(n),0===Object.keys(La).length&&document.removeEventListener("mousedown",Ma,{capture:!0})})),[n,o])};function*Da(e,t={}){var r,n;const a=null!==(r=t.strict)&&void 0!==r&&r,o=null!==(n=t.onlyTabbable)&&void 0!==n&&n?Pa:_a,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&o(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&o(e,a)&&(yield e),t.reverse){let e=i.lastChild();for(;e;)l=e,e=i.lastChild()}else l=i.firstChild();for(;l instanceof HTMLElement;)yield l,l=t.reverse?i.previousNode():i.nextNode();t.reverse&&o(e,a)&&(yield e)}function za(e,t=!1){return Da(e,{reverse:t,strict:!0,onlyTabbable:!0}).next().value}function _a(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,n=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type,o=e.classList.contains("sentinel");if(r||n||a||o)return!1;if(t){const t=getComputedStyle(e),r=0===e.offsetWidth||0===e.offsetHeight,n=["hidden","collapse"].includes(t.visibility),a="none"===t.display||!e.offsetParent,o=0===e.getClientRects().length;if(r||n||o||a)return!1}return null!=e.getAttribute("tabindex")||("true"===e.getAttribute("contenteditable")||"plaintext-only"===e.getAttribute("contenteditable")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex)}function Pa(e,t=!1){return _a(e,t)&&"-1"!==e.getAttribute("tabindex")}let Ha,Fa=1e4;function Va(){return void 0===Ha&&(Ha=/^mac/i.test(window.navigator.platform)),Ha}function Wa({initialFocusRef:e,returnFocusRef:t,containerRef:r,preventFocusOnOpen:n}){l((()=>{if(n)return;const a=t.current;if(e&&e.current)e.current.focus();else if(r.current){const e=Da(r.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,t,r,n])}function $a(e){if(!e.defaultPrevented)for(const t of Object.values(Za).reverse())if(t(e),e.defaultPrevented)break}const Za={};let Ga=0;const Ua=(e,t=[e])=>{const r=f(e,t),n=f((e=>{"Escape"===e.key&&r(e)}),[r]),o=a((()=>Ga++),[]);l((()=>(0===Object.keys(Za).length&&document.addEventListener("keydown",$a),function(e,t){Za[e]=t}(o,n),()=>{!function(e){delete Za[e]}(o),0===Object.keys(Za).length&&document.removeEventListener("keydown",$a)})),[o,n])};function qa(e){const r=t.useRef(null);return null!=e?e:r}const Ka=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:n,ignoreClickRefs:a,onClickOutside:o,preventFocusOnOpen:i})=>{const l=qa(e);Wa({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),Ra({containerRef:l,ignoreClickRefs:a,onClickOutside:o});return Ua((e=>{n(e),e.preventDefault()})),{ref:l}};var Ya,Xa=w;Ya=Xa.createRoot,Xa.hydrateRoot;const Ja={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},Qa={start:["end","center"],end:["start","center"],center:["end","start"]};function eo(e,t,r={}){const n=function(e){if(function(e){var t;if("DIALOG"===e.tagName)return!0;try{if(e.matches(":popover-open")&&/native code/.test(null===(t=document.body.showPopover)||void 0===t?void 0:t.toString()))return!0}catch(e){return!1}return!1}(e))return document.body;let t=e.parentNode;for(;null!==t;){if(t instanceof HTMLElement&&"static"!==getComputedStyle(t).position)return t;t=t.parentNode}return document.body}(e),a=function(e){let t=e;for(;null!==t&&t instanceof Element;){if("visible"!==getComputedStyle(t).overflow)break;t=t.parentNode}const r=t!==document.body&&t instanceof HTMLElement?t:document.body,n=r.getBoundingClientRect(),a=getComputedStyle(r),[o,i,l,d]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:n.top+o,left:n.left+i,width:n.width-l-i,height:Math.max(n.height-o-d,r===document.body?window.innerHeight:-1/0)}}(n),o=getComputedStyle(n),i=n.getBoundingClientRect(),[l,d]=[o.borderTopWidth,o.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,t,r,n,{side:a,align:o,allowOutOfBounds:i,anchorOffset:l,alignmentOffset:d}){const s={top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height};let c=ro(r,n,a,o,l,d),f=a,u=o;if(c.top-=t.top,c.left-=t.left,!i){const i=Ja[a];let g=0;if(i){let e=a;for(;g<i.length&&no(e,c,s,r);){const a=i[g++];e=a,c=ro(r,n,a,o,l,d),c.top-=t.top,c.left-=t.left,f=a}}const p=Qa[o];let b=0;if(p){let e=o;for(;b<p.length&&ao(e,c,s,r);){const a=p[b++];e=a,c=ro(r,n,f,a,l,d),c.top-=t.top,c.left-=t.left,u=a}}c.top<s.top&&(c.top=s.top),c.left<s.left&&(c.left=s.left),c.left+r.width>e.width+s.left&&(c.left=e.width+s.left-r.width),i&&g<i.length&&c.top+r.height>e.height+s.top&&(c.top=Math.max(e.height+s.top-r.height,0))}return Object.assign(Object.assign({},c),{anchorSide:f,anchorAlign:u})}(a,{top:i.top+l,left:i.left+d},e.getBoundingClientRect(),t instanceof Element?t.getBoundingClientRect():t,function(e={}){var t,r,n,a,o;const i=null!==(t=e.side)&&void 0!==t?t:to.side,l=null!==(r=e.align)&&void 0!==r?r:to.align;return{side:i,align:l,anchorOffset:null!==(n=e.anchorOffset)&&void 0!==n?n:"inside-center"===i?0:to.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==l&&i.startsWith("inside")?to.alignmentOffset:0,allowOutOfBounds:null!==(o=e.allowOutOfBounds)&&void 0!==o?o:to.allowOutOfBounds}}(r))}const to={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function ro(e,t,r,n,a,o){const i=t.left+t.width,l=t.top+t.height;let d=-1,s=-1;return"outside-top"===r?d=t.top-a-e.height:"outside-bottom"===r?d=l+a:"outside-left"===r?s=t.left-a-e.width:"outside-right"===r&&(s=i+a),"outside-top"!==r&&"outside-bottom"!==r||(s="start"===n?t.left+o:"center"===n?t.left-(e.width-t.width)/2+o:i-e.width-o),"outside-left"!==r&&"outside-right"!==r||(d="start"===n?t.top+o:"center"===n?t.top-(e.height-t.height)/2+o:l-e.height-o),"inside-top"===r?d=t.top+a:"inside-bottom"===r?d=l-a-e.height:"inside-left"===r?s=t.left+a:"inside-right"===r?s=i-a-e.width:"inside-center"===r&&(s=(i+t.left)/2-e.width/2+a),"inside-top"===r||"inside-bottom"===r?s="start"===n?t.left+o:"center"===n?t.left-(e.width-t.width)/2+o:i-e.width-o:"inside-left"!==r&&"inside-right"!==r&&"inside-center"!==r||(d="start"===n?t.top+o:"center"===n?t.top-(e.height-t.height)/2+o:l-e.height-o),{top:d,left:s}}function no(e,t,r,n){return"outside-top"===e||"outside-bottom"===e?t.top<r.top||t.top+n.height>r.height+r.top:t.left<r.left||t.left+n.width>r.width+r.left}function ao(e,t,r,n){return"end"===e?t.left<r.left:"start"===e||"center"===e?t.left+n.width>r.left+r.width||t.left<r.left:void 0}let oo=!1;function io(){}try{const e=Object.create({},{signal:{get(){oo=!0}}});window.addEventListener("test",io,e),window.removeEventListener("test",io,e)}catch(op){}function lo(){oo||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){return"object"==typeof n&&"signal"in n&&n.signal instanceof AbortSignal&&e.call(n.signal,"abort",(()=>{this.removeEventListener(t,r,n)})),e.call(this,t,r,n)}}(),oo=!0)}lo();const so=[];let co;function fo(e,t,r){const n=new AbortController,a=null!=r?r:n.signal;e.setAttribute("data-focus-trap","active");const o=document.createElement("span");o.setAttribute("class","sentinel"),o.setAttribute("tabindex","0"),o.setAttribute("aria-hidden","true"),o.onfocus=()=>{const t=za(e,!0);null==t||t.focus()};const i=document.createElement("span");let l;function d(r){if(r instanceof HTMLElement&&document.contains(e)){if(e.contains(r))return void(l=r);if(l&&Pa(l)&&e.contains(l))return void l.focus();if(t&&e.contains(t))return void t.focus();{const t=za(e);return void(null==t||t.focus())}}}i.setAttribute("class","sentinel"),i.setAttribute("tabindex","0"),i.setAttribute("aria-hidden","true"),i.onfocus=()=>{const t=za(e);null==t||t.focus()},e.prepend(o),e.append(i);const s=function(e){const t=new AbortController;return e.addEventListener("abort",(()=>{t.abort()})),t}(a);if(co){const e=co;co.container.setAttribute("data-focus-trap","suspended"),co.controller.abort(),so.push(e)}s.signal.addEventListener("abort",(()=>{co=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const t=e.getElementsByClassName("sentinel");for(;t.length>0;)t[0].remove();const r=so.findIndex((t=>t.container===e));r>=0&&so.splice(r,1),function(){const e=so.pop();e&&fo(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{d(e.target)}),{signal:s.signal,capture:!0}),d(document.activeElement),co={container:e,controller:s,initialFocus:t,originalSignal:a};const c=so.findIndex((t=>t.container===e));if(c>=0&&so.splice(c,1),!r)return n}var uo;lo(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(uo||(uo={}));const go={ArrowLeft:uo.ArrowHorizontal,ArrowDown:uo.ArrowVertical,ArrowUp:uo.ArrowVertical,ArrowRight:uo.ArrowHorizontal,h:uo.HL,j:uo.JK,k:uo.JK,l:uo.HL,a:uo.AD,s:uo.WS,w:uo.WS,d:uo.AD,Tab:uo.Tab,Home:uo.HomeAndEnd,End:uo.HomeAndEnd,PageUp:uo.PageUpDown,PageDown:uo.PageUpDown,Backspace:uo.Backspace},po={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function bo(e){const t=po[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Va();if(r&&e.metaKey||!r&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return t}const mo="data-is-active-descendant",ho="activated-directly",vo="activated-indirectly",xo="data-has-active-descendant";function yo(e,t){var r,n,a,o,i;const l=[],d=new WeakMap,s=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:((null==t?void 0:t.getNextFocusable)?uo.ArrowAll:uo.ArrowVertical)|uo.HomeAndEnd,c=null!==(n=null==t?void 0:t.focusOutBehavior)&&void 0!==n?n:"stop",f=null!==(a=null==t?void 0:t.focusInStrategy)&&void 0!==a?a:"previous",u=null==t?void 0:t.activeDescendantControl,g=null==t?void 0:t.onActiveDescendantChanged;let p;const b=null!==(o=null==t?void 0:t.preventScroll)&&void 0!==o&&o;function m(){return l[0]}function h(e,t=!1){const r=p;p=e,u?e&&document.activeElement===u?v(r,e,t):x():(r&&r!==e&&d.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function v(t,r,n=!1){r.id||r.setAttribute("id","__primer_id_"+Fa++),t&&t!==r&&t.removeAttribute(mo),u&&(n||u.getAttribute("aria-activedescendant")!==r.id)&&(u.setAttribute("aria-activedescendant",r.id),e.setAttribute(xo,r.id),r.setAttribute(mo,n?ho:vo),null==g||g(r,t,n))}function x(t=p){"first"===f&&(p=void 0),null==u||u.removeAttribute("aria-activedescendant"),e.removeAttribute(xo),null==t||t.removeAttribute(mo),null==g||g(void 0,t,!1)}function y(...e){const r=e.filter((e=>{var r,n;return null===(n=null===(r=null==t?void 0:t.focusableElementFilter)||void 0===r?void 0:r.call(t,e))||void 0===n||n}));if(0!==r.length){l.splice(function(e){const t=e[0];if(0===l.length)return 0;let r=0,n=l.length-1;for(;r<=n;){const e=Math.floor((r+n)/2);w(t,l[e])?n=e-1:r=e+1}return r}(r),0,...r);for(const e of r)d.has(e)||d.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");p||h(m())}}function w(e,t){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)>0}function B(...e){for(const t of e){const e=l.indexOf(t);e>=0&&l.splice(e,1);const r=d.get(t);if(void 0!==r&&(null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),d.delete(t)),t===p){h(m())}}}const k={reverse:null==t?void 0:t.reverse,strict:null==t?void 0:t.strict,onlyTabbable:null==t?void 0:t.onlyTabbable};y(...Da(e,k));h("function"==typeof f?f(document.body):m());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&B(...Da(e,k));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&y(...Da(e,k))})).observe(e,{subtree:!0,childList:!0});const E=new AbortController,T=null!==(i=null==t?void 0:t.abortSignal)&&void 0!==i?i:E.signal;let C;T.addEventListener("abort",(()=>{B(...l)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(C=l.indexOf(e.target))}),{signal:T}),u?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&l.includes(e.target)&&(u.focus({preventScroll:b}),h(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const t=l.find((t=>t.contains(e)));t&&h(t)}),{signal:T,capture:!0}),u.addEventListener("focusin",(()=>{p?v(void 0,p):h(m())})),u.addEventListener("focusout",(()=>{x()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==C)C>=0&&l[C]!==p&&h(l[C]),C=void 0;else if("previous"===f)h(t.target);else if("closest"===f||"first"===f){if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e="previous"===I?l.length-1:0,t=l[e];return void(null==t||t.focus({preventScroll:b}))}h(t.target)}else if("function"==typeof f)if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e=f(t.relatedTarget);if((e?l.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:b});console.warn("Element requested is not a known focusable element.")}else h(t.target);I=void 0}),{signal:T});const S=null!=u?u:e;let I;return"closest"===f&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=bo(e))}),{signal:T,capture:!0}),S.addEventListener("keydown",(r=>{var n;if(r.key in po){const a=go[r.key];if(!r.defaultPrevented&&(a&s)>0&&!function(e,t){const r=e.key,n=[...r].length,a=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(a&&(1===n||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===n)return!0;if("ArrowDown"===r&&Va()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Va()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(a){const e=t,n=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!n)return!0;if("ArrowRight"===r&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!n)return!0;if("ArrowDown"===r&&!a)return!0}}return!1}(r,document.activeElement)){const a=bo(r);let o;if((null==t?void 0:t.getNextFocusable)&&(o=t.getNextFocusable(a,null!==(n=document.activeElement)&&void 0!==n?n:void 0,r)),!o){const t=function(){if(!p)return 0;const t=l.indexOf(p);return-1!==t?t:p===e?-1:0}();let n=t;"previous"===a?n-=1:"start"===a?n=0:"next"===a?n+=1:n=l.length-1,n<0&&(n="wrap"===c&&"Tab"!==r.key?l.length-1:0),n>=l.length&&(n="wrap"===c&&"Tab"!==r.key?0:l.length-1),t!==n&&(o=l[n])}u?h(o||p,!0):o&&(I=a,o.focus({preventScroll:b})),("Tab"!==r.key||o)&&r.preventDefault()}}}),{signal:T}),E}function wo(e,t,{direction:r="vertical",startMargin:n=0,endMargin:a=0,behavior:o="smooth"}={}){const i="vertical"===r?"top":"left",l="vertical"===r?"bottom":"right",d="vertical"===r?"scrollTop":"scrollLeft",{[i]:s,[l]:c}=e.getBoundingClientRect(),{[i]:f,[l]:u}=t.getBoundingClientRect(),g=c>u-a;if(s<f+n){const e=s-f+t[d];t.scrollTo({behavior:o,[i]:e-n})}else if(g){const e=c-u+t[d];t.scrollTo({behavior:o,[i]:e+a})}}var Bo=v(["position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],Sr("fontWeights.bold"),Sr("radii.2"));const ko=ct({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Eo=b.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t}))).withConfig({displayName:"ButtonBase",componentId:"sc-bqtwic-0"})([""," ",""],Bo,ko);Eo.defaultProps={variant:"medium"};var To=Eo;var Co=b(To).withConfig({displayName:"Button",componentId:"sc-ybpnzh-0"})(["color:",";background-color:",";border:1px solid ",";box-shadow:",",",";&:hover{background-color:",";border-color:",";}&:focus{outline:solid 2px ",";}&:active{background-color:",";box-shadow:",";}&:disabled{color:",";background-color:",";border-color:",";}",";"],Sr("colors.btn.text"),Sr("colors.btn.bg"),Sr("colors.btn.border"),Sr("shadows.btn.shadow"),Sr("shadows.btn.insetShadow"),Sr("colors.btn.hoverBg"),Sr("colors.btn.hoverBorder"),Sr("colors.accent.fg"),Sr("colors.btn.selectedBg"),Sr("shadows.btn.shadowActive"),Sr("colors.primer.fg.disabled"),Sr("colors.btn.bg"),Sr("colors.btn.border"),Jr);var So=b(To).withConfig({displayName:"ButtonDanger",componentId:"sc-j9bmd7-0"})(["color:",";border:1px solid ",";background-color:",";box-shadow:",";&:hover{color:",";background-color:",";border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:",";}&:active{color:",";background-color:",";box-shadow:",";border-color:",";}&:disabled{color:",";background-color:",";border-color:",";}",";"],Sr("colors.btn.danger.text"),Sr("colors.btn.border"),Sr("colors.btn.bg"),Sr("shadows.btn.shadow"),Sr("colors.btn.danger.hoverText"),Sr("colors.btn.danger.hoverBg"),Sr("colors.btn.danger.hoverBorder"),Sr("shadows.btn.danger.hoverShadow"),Sr("colors.btn.danger.focusBorder"),Sr("shadows.btn.danger.focusShadow"),Sr("colors.btn.danger.selectedText"),Sr("colors.btn.danger.selectedBg"),Sr("shadows.btn.danger.selectedShadow"),Sr("colors.btn.danger.selectedBorder"),Sr("colors.btn.danger.disabledText"),Sr("colors.btn.danger.disabledBg"),Sr("colors.btn.danger.disabledBorder"),Jr);var Io=b(To).withConfig({displayName:"ButtonPrimary",componentId:"sc-1awfvt4-0"})(["color:",";border:1px solid ",";background-color:",";box-shadow:",";&:hover{color:",";background-color:",";border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:",";}&:active{background-color:",";box-shadow:",";}&:disabled{color:",";background-color:",";border-color:",";}",";"],Sr("colors.btn.primary.text"),Sr("colors.btn.primary.border"),Sr("colors.btn.primary.bg"),Sr("shadows.btn.primary.shadow"),Sr("colors.btn.primary.hoverText"),Sr("colors.btn.primary.hoverBg"),Sr("colors.btn.primary.hoverBorder"),Sr("shadows.btn.primary.hoverShadow"),Sr("colors.btn.primary.focusBorder"),Sr("shadows.btn.primary.focusShadow"),Sr("colors.btn.primary.selectedBg"),Sr("shadows.btn.primary.selectedShadow"),Sr("colors.btn.primary.disabledText"),Sr("colors.btn.primary.disabledBg"),Sr("colors.btn.primary.disabledBorder"),Jr),Oo={small:16,medium:32,large:64};function No(e,r,n){var a=n(),o=Object.keys(a),i=t.forwardRef((function(e,n){var i=e["aria-label"],l=e["aria-labelledby"],d=e.tabIndex,s=e.className,c=void 0===s?r:s,f=e.fill,u=void 0===f?"currentColor":f,g=e.size,p=void 0===g?16:g,b=e.verticalAlign,m=void 0===b?"text-bottom":b,h=e.id,v=e.title,x=Oo[p]||p,y=function(e,t){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,r){return r<=t?r:e}),e[0])}(o,x),w=a[y].width,B=x*(w/y),k=a[y].path;return t.createElement("svg",{ref:n,"aria-hidden":i?"false":"true",tabIndex:d,focusable:d>=0?"true":"false","aria-label":i,"aria-labelledby":l,role:"img",className:c,viewBox:"0 0 ".concat(w," ").concat(y),width:B,height:x,fill:u,id:h,style:{display:"inline-block",userSelect:"none",verticalAlign:m,overflow:"visible"}},v?t.createElement("title",null,v):null,k)}));return i.displayName=e,i}var Ao=No("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:t.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"}),t.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"}))}}})),Mo=No("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:t.createElement("path",{d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})},16:{width:16,path:t.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})},24:{width:24,path:t.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})}}})),Lo=No("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:t.createElement("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})},24:{width:24,path:t.createElement("path",{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"})}}})),jo=No("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:t.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"})},16:{width:16,path:t.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"})},24:{width:24,path:t.createElement("path",{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"})}}})),Ro=No("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:t.createElement("path",{d:"M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:t.createElement("path",{d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"})},24:{width:24,path:t.createElement("path",{d:"M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"})}}})),Do=No("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:t.createElement("path",{d:"M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:t.createElement("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:t.createElement("path",{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"})}}})),zo=No("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:t.createElement("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"})},24:{width:24,path:t.createElement("path",{d:"M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"})}}})),_o=No("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:t.createElement("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"})}}})),Po=No("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:t.createElement("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z"}),t.createElement("path",{d:"M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z"}),t.createElement("path",{d:"M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"}))}}})),Ho=No("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:t.createElement("path",{d:"M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})},24:{width:24,path:t.createElement("path",{d:"M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"})}}})),Fo=No("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:t.createElement("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"}),t.createElement("path",{d:"M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"}))}}})),Vo=No("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),t.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"}))},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z"}),t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Wo=No("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:t.createElement("path",{d:"M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"})},24:{width:24,path:t.createElement("path",{d:"M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"})}}})),$o=No("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),t.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"}))},24:{width:24,path:t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"})}}})),Zo=No("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:t.createElement("path",{d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"})},24:{width:24,path:t.createElement("path",{d:"M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"})}}})),Go=No("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:t.createElement("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Uo=No("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:t.createElement("path",{d:"M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"})},24:{width:24,path:t.createElement("path",{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"})}}})),qo=No("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:t.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"})},24:{width:24,path:t.createElement(t.Fragment,null,t.createElement("path",{d:"M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z"}),t.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Ko=No("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:t.createElement("path",{d:"m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"})},24:{width:24,path:t.createElement("path",{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"})}}})),Yo=No("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:t.createElement("path",{d:"M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"})},16:{width:16,path:t.createElement("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:t.createElement("path",{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"})}}}));function Xo(e,t){const r=i(e);Gn((()=>{r.current=e})),Gn((()=>{const e=t&&"current"in t?t.current:document.documentElement;if(!e)return;const n=new ResizeObserver((e=>{r.current(e)}));return n.observe(e),()=>{n.disconnect()}}),[t])}function Jo(e,r=[]){const n=qa(null==e?void 0:e.floatingElementRef),a=qa(null==e?void 0:e.anchorElementRef),[o,i]=t.useState(void 0),l=t.useCallback((()=>{n.current instanceof Element&&a.current instanceof Element?i(eo(n.current,a.current,e)):i(void 0)}),[n,a,...r]);return Gn(l,[l]),Xo(l),{floatingElementRef:n,anchorElementRef:a,position:o}}function Qo(e){const[t,r]=s(e||null),n=i(null);n.current=t;const a=f((e=>{n.current=e,r(e)}),[n]);return[n,a]}function ei(e,t,r){const[n,a]=s(r),o=null!=e?e:n,i=f((e=>{a(e),t&&t(e)}),[t]);return[o,i]}const ti=(e,r,n,a)=>{((e,r,n)=>{const[a,o]=t.useState(void 0);t.useEffect((function(){const e=n.current,t=e=>{0!==e.detail&&o("mouse-click")},r=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&o(e.code)};return null==e||e.addEventListener("click",t),null==e||e.addEventListener("keydown",r),()=>{null==e||e.removeEventListener("click",t),null==e||e.removeEventListener("keydown",r)}}),[n]),t.useEffect((function(){if(!e||!r.current)return;const t=Da(r.current);if("mouse-click"===a){if(!n.current)throw new Error("For focus management, please attach anchorRef");n.current.focus()}else if(a&&["ArrowDown","Space","Enter"].includes(a)){const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===a){const e=[...t],r=e[e.length-1];setTimeout((()=>r.focus()))}else{const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,a,n])})(e,n,a),((e,r)=>{const n=qa(r);t.useEffect((function(){e&&n.current&&[...Da(n.current)].map((e=>{var t;if(e.getAttribute("aria-keyshortcuts"))return;const r=null===(t=e.textContent)||void 0===t?void 0:t.toLowerCase()[0];r&&e.setAttribute("aria-keyshortcuts",r)}))}),[e,n]),t.useEffect((function(){if(!e||!n.current)return;const t=n.current,r=e=>{var r;const n=document.activeElement;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!a(e))return;e.stopPropagation();const o=e.key.toLowerCase();let i;const l=[...Da(t)].filter((e=>{var t;const r=null===(t=e.getAttribute("aria-keyshortcuts"))||void 0===t?void 0:t.split(" ").map((e=>e.toLowerCase()));return r&&r.includes(o)})),d=l.indexOf(n);i=d===l.length-1?l[0]:l.find(((e,t)=>t>d)),null===(r=i)||void 0===r||r.focus()};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)}),[e,n]);const a=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,n),ri(e,r,n,a),ni(e,n,a)},ri=(e,r,n,a)=>{t.useEffect((()=>{const t=n.current,o=a.current,i=t=>{e&&"Tab"===t.key&&(null==r||r("tab"))};return null==t||t.addEventListener("keydown",i),null==o||o.addEventListener("keydown",i),()=>{null==t||t.removeEventListener("keydown",i),null==o||o.removeEventListener("keydown",i)}}),[e,r,n,a])},ni=(e,r,n)=>{t.useEffect((()=>{const t=r.current,a=n.current,o=r=>{if(!e||!t)return;const n=Da(t);if("ArrowDown"===r.key){const e=n.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===r.key){const e=[...n],t=e[e.length-1];setTimeout((()=>t.focus()))}};return null==a||a.addEventListener("keydown",o),()=>null==a?void 0:a.addEventListener("keydown",o)}),[e,r,n])};function ai(e,r=[]){const n=qa(null==e?void 0:e.containerRef),a=qa(null==e?void 0:e.initialFocusRef),o=null==e?void 0:e.disabled,i=t.useRef(),l=t.useRef(null);function d(){var t;null===(t=i.current)||void 0===t||t.abort(),null!=e&&e.restoreFocusOnCleanUp&&l.current instanceof HTMLElement&&(l.current.focus(),l.current=null)}return l.current||null!=e&&e.disabled||(l.current=document.activeElement),t.useEffect((()=>{if(n.current instanceof HTMLElement){var e;if(!o)return i.current=fo(n.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{d()};d()}}),[n,a,o,...r]),{containerRef:n,initialFocusRef:a}}function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oi.apply(this,arguments)}const ii=b(t.forwardRef(((e,r)=>{const{icon:n,...a}=e;return t.createElement(n,oi({},a,{ref:r}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:t})=>Jr({sx:{color:e,...t}})));var li=ii;function di(e={},r=[]){const n=qa(e.containerRef),a=!!e.activeDescendantFocus,o=qa("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),i=e.disabled,d=t.useRef();return l((()=>{if(n.current instanceof HTMLElement&&(!a||o.current instanceof HTMLElement)){if(!i){var t;const r={...e,activeDescendantControl:null!==(t=o.current)&&void 0!==t?t:void 0};return d.current=yo(n.current,r),()=>{var e;null===(e=d.current)||void 0===e||e.abort()}}var r;null===(r=d.current)||void 0===r||r.abort()}}),[i,...r]),{containerRef:n,activeDescendantControlRef:o}}const si="__primerPortalRoot__",ci="__default__",fi={};function ui(e,t=ci){fi[t]=e}const gi=({children:e,onMount:r,containerName:n})=>{const a=document.createElement("div");a.style.position="relative",a.style.zIndex="1";const o=t.useRef(a);return Gn((()=>{let e=n;void 0===e&&(e=ci,function(){const e=fi[ci];if(!e||!document.body.contains(e)){let e=document.getElementById(si);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",si),e.style.position="absolute",e.style.top="0",e.style.left="0";const t=document.querySelector("[data-portal-root]");t?t.appendChild(e):document.body.appendChild(e)}ui(e)}}());const t=fi[e];if(!t)throw new Error(`Portal container '${n}' is not yet registered. Container must be registered with registerPortal before use.`);const a=o.current;return t.appendChild(a),null==r||r(),()=>{t.removeChild(a)}}),[o]),B(e,o.current)};function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pi.apply(this,arguments)}const bi="200ms",mi=b("div").withConfig({displayName:"Dialog__Backdrop",componentId:"sc-uaxjsn-0"})(["position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:",";animation:dialog-backdrop-appear "," ",";@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Sr("colors.primer.canvas.backdrop"),bi,Sr("animation.easeOutCubic")),hi={small:"480px",large:"640px",auto:"auto"},vi={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},xi=b.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);width:",";height:",";border-radius:12px;opacity:1;animation:overlay--dialog-appear "," ",";@keyframes overlay--dialog-appear{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}",";"],Sr("colors.canvas.overlay"),Sr("shadows.overlay.shadow"),(e=>{var t;return vi[null!==(t=e.width)&&void 0!==t?t:"xlarge"]}),(e=>{var t;return hi[null!==(t=e.height)&&void 0!==t?t:"auto"]}),bi,Sr("animation.easeOutCubic"),Jr),yi=({dialogLabelId:e,title:r,subtitle:n,dialogDescriptionId:a,onClose:o})=>{const i=f((()=>{o("close-button")}),[o]);return t.createElement(Mi.Header,null,t.createElement(Qr,{display:"flex"},t.createElement(Qr,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},t.createElement(Mi.Title,{id:e},null!=r?r:"Dialog"),n&&t.createElement(Mi.Subtitle,{id:a},n)),t.createElement(Mi.CloseButton,{onClose:i})))};yi.displayName="DefaultHeader";const wi=({children:e})=>t.createElement(Mi.Body,null,e);wi.displayName="DefaultBody";const Bi=({footerButtons:e})=>{const{containerRef:r}=di({bindKeys:uo.ArrowHorizontal|uo.Tab,focusInStrategy:"closest"});return e?t.createElement(Mi.Footer,{ref:r},t.createElement(Mi.Buttons,{buttons:e})):null},ki=t.forwardRef(((e,r)=>{const{title:n="Dialog",subtitle:a="",renderHeader:o,renderBody:l,renderFooter:d,onClose:s,role:c="dialog",width:f="xlarge",height:u="auto",footerButtons:g=[],sx:p}=e,b=An(),m=An(),h=i(null);for(const e of g)e.autoFocus&&(e.ref=h);const v={...e,title:n,subtitle:a,role:c,dialogLabelId:b,dialogDescriptionId:m},x=i(null);dn(r,x);const y=i(null);ai({containerRef:x,restoreFocusOnCleanUp:!0,initialFocusRef:h}),Ua((e=>{s("escape"),e.preventDefault()}),[s]),t.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const w=(null!=o?o:yi)(v),B=(null!=l?l:wi)(v),k=(null!=d?d:Bi)(v);return t.createElement(t.Fragment,null,t.createElement(gi,null,t.createElement(mi,{ref:y},t.createElement(xi,{width:f,height:u,ref:x,role:c,"aria-labelledby":b,"aria-describedby":m,"aria-modal":!0,sx:p},w,B,k))))}));ki.displayName="Dialog";const Ei=b.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;"],Sr("colors.border.default"),Sr("space.2")),Ti=b.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Sr("fontSizes.1"),Sr("fontWeights.bold"),Jr),Ci=b.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";",";"],Sr("fontSizes.0"),Sr("colors.fg.muted"),Sr("space.1"),Jr),Si=b.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Sr("space.3"),Jr),Ii=b.div.withConfig({displayName:"Dialog__Footer",componentId:"sc-uaxjsn-6"})(["box-shadow:0 -1px 0 ",";padding:",";display:flex;flex-flow:wrap;justify-content:flex-end;gap:",";z-index:1;flex-shrink:0;",";"],Sr("colors.border.default"),Sr("space.3"),Sr("space.2"),Jr),Oi={normal:Co,primary:Io,danger:So},Ni=b(Co).withConfig({displayName:"Dialog__DialogCloseButton",componentId:"sc-uaxjsn-7"})(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:",";padding:",";align-self:flex-start;line-height:normal;box-shadow:none;"],Sr("colors.fg.muted"),Sr("space.2")),Ai=({onClose:e})=>t.createElement(Ni,{"aria-label":"Close",onClick:e},t.createElement(li,{icon:Yo}));Ai.displayName="CloseButton";const Mi=Object.assign(ki,{Header:Ei,Title:Ti,Subtitle:Ci,Body:Si,Footer:Ii,Buttons:({buttons:e})=>{var r;const n=qa(null===(r=e.find((e=>e.autoFocus)))||void 0===r?void 0:r.ref);let a=0;const[o,i]=s(0);return l((()=>{var e;1===o?null===(e=n.current)||void 0===e||e.focus():i(o+1)}),[n,o]),t.createElement(t.Fragment,null,e.map(((e,r)=>{const{content:o,buttonType:i="normal",autoFocus:l=!1,...d}=e,s=Oi[i];return t.createElement(s,pi({key:r},d,{variant:i,ref:l&&0===a?(a++,n):null}),o)})))},CloseButton:Ai});function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Li.apply(this,arguments)}const ji=b.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Sr("space.2")),Ri=b(Qr).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Sr("fontSizes.3"),Sr("fontWeights.bold"),Sr("space.2")),Di=({title:e,onClose:r,dialogLabelId:n})=>{const a=f((()=>{r("close-button")}),[r]);return t.createElement(ji,null,t.createElement(Ri,{id:n},e),t.createElement(Mi.CloseButton,{onClose:a}))};Di.displayName="ConfirmationHeader";const zi=b(Qr).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Sr("fontSizes.1"),Sr("space.3"),Sr("space.3"),Sr("space.3"),Sr("colors.fg.muted")),_i=({children:e})=>t.createElement(zi,null,e);_i.displayName="ConfirmationBody";const Pi=b(Qr).withConfig({displayName:"ConfirmationDialog__StyledConfirmationFooter",componentId:"sc-11fz0jh-3"})(["display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-gap:",";align-items:end;justify-content:end;padding:"," "," ",";"],Sr("space.2"),Sr("space.1"),Sr("space.3"),Sr("space.3")),Hi=({footerButtons:e})=>{const{containerRef:r}=di({bindKeys:uo.ArrowHorizontal|uo.Tab,focusInStrategy:"closest"});return t.createElement(Pi,{ref:r},t.createElement(Mi.Buttons,{buttons:null!=e?e:[]}))};Hi.displayName="ConfirmationFooter";const Fi=e=>{const{onClose:r,title:n,cancelButtonContent:a="Cancel",confirmButtonContent:o="OK",confirmButtonType:i="normal",children:l}=e,d="danger"===i,s=[{content:a,onClick:f((()=>{r("cancel")}),[r]),autoFocus:d},{content:o,buttonType:i,onClick:f((()=>{r("confirm")}),[r]),autoFocus:!d}];return t.createElement(Mi,{onClose:r,title:n,footerButtons:s,role:"alertdialog",width:"medium",renderHeader:Di,renderBody:_i,renderFooter:Hi},l)};function Vi(){const{theme:e,colorMode:r,dayScheme:n,nightScheme:a}=Wr(),o=f((o=>async function(e,r){const{content:n,...a}=r;return new Promise((r=>{const o=Ya(document.createElement("div"));o.render(t.createElement(Vr,e,t.createElement(Fi,Li({},a,{onClose:e=>{o.unmount(),r("confirm"===e)}}),n)))}))}({theme:e,colorMode:r,dayScheme:n,nightScheme:a},o)),[e,r,n,a]);return o}Fi.displayName="ConfirmationDialog";const Wi=x(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),$i=b.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&v(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Wi)));var Zi=({show:e,children:r})=>{const[n,a]=s(e);l((()=>{e&&a(!0)}),[e]);return n?t.createElement(Qr,{height:e?"auto":0,overflow:"hidden"},t.createElement($i,{show:e,onAnimationEnd:()=>{e||a(!1)}},r)):null};var Gi=b.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Or,Ir,Jr);var Ui=t.createContext({});const qi=({children:e,sx:r})=>{const{disabled:n,captionId:a}=t.useContext(Ui);return t.createElement(Gi,{color:n?"fg.muted":"fg.subtle",fontSize:1,id:a,sx:r},e)};qi.displayName="CheckboxOrRadioGroupCaption";var Ki=qi;const Yi=({children:e,visuallyHidden:r=!1,sx:n})=>{const{required:a,disabled:o}=t.useContext(Ui);return t.createElement(cn,{isVisible:!r,title:a?"required field":void 0,sx:{display:"block",color:o?"fg.muted":void 0,fontSize:2,...n}},a?t.createElement(Qr,{display:"flex",as:"span"},t.createElement(Qr,{mr:1},e),t.createElement("span",null,"*")):e)};Yi.displayName="CheckboxOrRadioGroupLabel";var Xi=Yi;const Ji={success:jo,error:Mo},Qi={success:"success.fg",error:"danger.fg"},el=({children:e,id:r,validationStatus:n,sx:a})=>{const o=n?Ji[n]:void 0,i=n?Qi[n]:void 0,l=16/12;return t.createElement(Gi,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:i,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...a},"aria-live":"polite"},o&&t.createElement(Qr,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},t.createElement(o,{size:12,fill:"currentColor"})),t.createElement(Qr,{as:"span",id:r,sx:{lineHeight:l}},e))};el.displayName="InputValidation";var tl=el;const rl=({children:e,variant:r,sx:n})=>{const{validationMessageId:a=""}=t.useContext(Ui);return t.createElement(tl,{validationStatus:r,id:a,sx:n},e)};rl.displayName="CheckboxOrRadioGroupValidation";var nl=rl;function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(this,arguments)}const ol=b.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Sr("space.2")),il=({"aria-labelledby":e,children:r,disabled:n=!1,id:a,required:o=!1,sx:i})=>{const[l,d]=_n(r,{caption:Ki,label:Xi,validation:nl}),s=t.Children.toArray(r).find((e=>t.isValidElement(e)&&e.type===Xi)),c=t.Children.toArray(r).find((e=>t.isValidElement(e)&&e.type===nl?e:null)),f=t.Children.toArray(r).find((e=>t.isValidElement(e)&&e.type===Ki?e:null)),u=An(a),g=c?`${u}-validationMessage`:void 0,p=f?`${u}-caption`:void 0;s||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const b=t.isValidElement(s)&&!s.props.visuallyHidden;return t.createElement(Ui.Provider,{value:{disabled:n,required:o,captionId:p,validationMessageId:g}},t.createElement("div",null,t.createElement(Qr,al({border:"none",margin:0,mb:c?2:void 0,padding:0},s&&{as:"fieldset",disabled:n},{sx:i}),s?t.createElement(Qr,{as:"legend",mb:b?2:void 0,padding:0},l.label,l.caption,t.isValidElement(l.validation)&&l.validation.props.children&&t.createElement(cn,null,l.validation.props.children)):l.caption,t.createElement(ol,!s&&{"aria-labelledby":e,"aria-describedby":[g,p].filter(Boolean).join(" "),as:"div",role:"group"},t.Children.toArray(d).filter((e=>t.isValidElement(e))))),c&&t.createElement(Zi,{"aria-hidden":Boolean(s),show:!0},l.validation)))};il.displayName="CheckboxOrRadioGroup";var ll=Object.assign(il,{Caption:Ki,Label:Xi,Validation:nl});function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dl.apply(this,arguments)}const sl=d(null),cl=({children:e,disabled:r,onChange:n,name:a,...o})=>{const[i,l]=Qo(null);return t.createElement(sl.Provider,{value:{disabled:r,name:a,onChange:e=>{n&&((e=>{const{value:t,checked:r}=e.currentTarget;r&&l(t)})(e),n(i.current,e))}}},t.createElement(ll,dl({disabled:r},o),e))};cl.displayName="RadioGroup";var fl=Object.assign(cl,{Caption:Ki,Label:Xi,Validation:nl});const ul=v(["appearance:none;border-color:",";border-style:solid;border-width:",";cursor:pointer;display:grid;height:var(--base-size-16,16px);margin:0;margin-top:0.125rem;place-content:center;position:relative;width:var(--base-size-16,16px);&:disabled{background-color:var(--color-input-disabled-bg,rgba(175,184,193,0.2));border-color:",";}"],Sr("colors.neutral.emphasis"),Sr("borderWidths.1"),Sr("colors.border.default"));function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gl.apply(this,arguments)}const pl=b.input.withConfig({displayName:"Radio__StyledRadio",componentId:"sc-1tx0ht9-0"})(["",";border-radius:var(--borderRadius-full,100vh);transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&:checked{border-color:",";border-width:var(--base-size-4,4px);&:disabled{cursor:not-allowed;border-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],ul,Sr("colors.accent.fg"),Sr("colors.fg.muted"),tn(),Jr),bl=t.forwardRef((({checked:e,disabled:r,name:n,onChange:a,sx:i,required:l,validationStatus:d,value:s,...c},f)=>{const u=o(sl),g=n||(null==u?void 0:u.name);return g||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"),t.createElement(pl,gl({type:"radio",value:s,name:g,ref:f,disabled:r,checked:e,"aria-checked":e?"true":"false",required:l,"aria-required":l?"true":"false","aria-invalid":"error"===d?"true":"false",sx:i,onChange:e=>{(null==u?void 0:u.onChange)&&u.onChange(e),a&&a(e)}},c))}));bl.displayName="Radio";var ml=bl;const hl=t.createContext({});function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vl.apply(this,arguments)}const xl=b.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Sr("fontWeights.bold"),Sr("fontSizes.5"),Jr),yl=n((({as:e="h2",...r},n)=>{const a=t.useRef(null);return dn(n,a),t.createElement(xl,vl({as:e},r,{ref:a}))}));yl.displayName="Heading";var wl=yl;const Bl=function(){};function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}const El=n((({as:e,children:r,sx:n=sn,visuallyHidden:a=!1,...o},i)=>{var l;const d=t.useRef(null);dn(i,d);const{headingId:s,variant:c}=t.useContext(Cl),{container:f}=t.useContext(hl);"ActionMenu"===f&&Bl(!1);const u={marginBottom:2,marginX:"full"===c?2:3};return t.createElement(cn,{isVisible:!a},t.createElement(wl,kl({as:e,ref:d,id:null!==(l=o.id)&&void 0!==l?l:s,sx:_r(u,n)},o),r))}));function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tl.apply(this,arguments)}El.displayName="ActionList.Heading";const Cl=t.createContext({}),Sl=b.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(Jr),Il=t.forwardRef((({variant:e="inset",selectionVariant:r,showDividers:n=!1,role:a,sx:o=sn,...i},l)=>{var d;const s={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[c,f]=_n(i.children,{heading:El}),u=An(),{listRole:g,listLabelledBy:p,selectionVariant:b}=t.useContext(hl),m=c.heading?null!==(d=c.heading.props.id)&&void 0!==d?d:u:p;return t.createElement(Cl.Provider,{value:{variant:e,selectionVariant:r||b,showDividers:n,role:a||g,headingId:u}},c.heading,t.createElement(Sl,Tl({sx:_r(s,o),role:a||g,"aria-labelledby":m},i,{ref:l}),f))}));function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ol.apply(this,arguments)}Il.displayName="ActionList";const Nl=t.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Al=({title:e,variant:r="subtle",auxiliaryText:n,selectionVariant:a,role:o,sx:i={},...l})=>{var d;const s=An(),{role:c}=t.useContext(Cl),[f,u]=_n(l.children,{groupHeading:Ml});let g;var p;f.groupHeading&&(g=null!==(p=f.groupHeading.props.id)&&void 0!==p?p:s);return e&&(g=s),t.createElement(Qr,Ol({as:"li",role:c?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...i}},l),t.createElement(Nl.Provider,{value:{selectionVariant:a,groupHeadingId:g}},e&&!f.groupHeading?t.createElement(Ml,{title:e,variant:r,auxiliaryText:n}):null,!e&&f.groupHeading?t.cloneElement(f.groupHeading):null,t.createElement(Qr,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":c?void 0:g,"aria-label":c?null!=e?e:null===(d=f.groupHeading)||void 0===d?void 0:d.props.children:void 0,role:o||c&&"group"},f.groupHeading?u:l.children)))};Al.displayName="Group";const Ml=({as:e,variant:r,title:n,auxiliaryText:a,children:o,sx:i=sn,...l})=>{const{variant:d,role:s}=t.useContext(Cl),{groupHeadingId:c}=t.useContext(Nl),f={paddingY:"6px",paddingX:"full"===d?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===r&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return t.createElement(t.Fragment,null,s?t.createElement(Qr,Ol({sx:f,role:"presentation","aria-hidden":"true"},l),t.createElement("span",{id:c},null!=n?n:o),a&&t.createElement("span",null,a)):t.createElement(t.Fragment,null,t.createElement(wl,Ol({as:e||"h3",id:c,sx:_r(f,i)},l),null!=n?n:o),a&&t.createElement("span",null,a)))};function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(this,arguments)}const jl=b.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"),vt,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),Jr),Rl=t.forwardRef((function({as:e,expandable:r=!1,inline:n=!1,maxWidth:a=125,...o},i){return t.createElement(jl,Ll({ref:i,as:e,expandable:r,inline:n,maxWidth:a},o))}));var Dl=Rl;const zl=t.createContext({}),_l=(e,t)=>t?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:"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"},Pl="20px",Hl=({variant:e="inline",sx:r={},...n})=>{const a={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:0,minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &':{color:"inherit"},'li[data-variant="danger"]:hover &, li[data-variant="danger"]:active &':{color:"inherit"}},{blockDescriptionId:o,inlineDescriptionId:i}=t.useContext(zl);return"block"===e?t.createElement(Qr,{as:"span",sx:_r(a,r),id:o},n.children):t.createElement(Dl,{id:i,sx:_r(a,r),title:n.children,inline:!0,maxWidth:"100%"},n.children)};function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fl.apply(this,arguments)}const Vl=({sx:e={},...r})=>t.createElement(Qr,Fl({as:"span",sx:_r({height:Pl,minWidth:Sr("space.3"),maxWidth:Pl,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},r));Vl.displayName="LeadingVisualContainer";const Wl=({sx:e={},...r})=>{const{variant:n,disabled:a}=t.useContext(zl);return t.createElement(Vl,Fl({sx:_r({color:_l(n,a).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:_l(n,a).hoverColor}},e)},r),r.children)};Wl.displayName="LeadingVisual";const $l=({sx:e={},...r})=>{const{variant:n,disabled:a}=t.useContext(zl);return t.createElement(Qr,Fl({as:"span",sx:_r({height:"20px",flexShrink:0,color:_l(n,a).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:_l(n,a).hoverColor}},e)},r),r.children)};$l.displayName="TrailingVisual";const Zl=({selected:e})=>{const{selectionVariant:r}=t.useContext(Cl),{selectionVariant:n}=t.useContext(Nl);let a;if(a=void 0!==n?n:r,!a){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===a)return t.createElement(Vl,null,e&&t.createElement(Lo,null));return t.createElement(Vl,null,t.createElement(Qr,{sx:{borderColor:e?"accent.fg":"neutral.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?"accent.fg":"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)"}}}},"data-component":"ActionList.Checkbox"}))};function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gl.apply(this,arguments)}Zl.displayName="Selection";const Ul=b.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(Jr),ql=t.forwardRef((({variant:e="default",disabled:r=!1,selected:n,active:a=!1,onSelect:o,sx:i=sn,id:l,role:d,_PrivateItemWrapper:s,...c},f)=>{const[u,g]=_n(c.children,{leadingVisual:Wl,trailingVisual:$l,blockDescription:[Hl,e=>"block"===e.variant],inlineDescription:[Hl,e=>"block"!==e.variant]}),{variant:p,role:b,showDividers:m,selectionVariant:h}=t.useContext(Cl),{selectionVariant:v}=t.useContext(Nl),{container:x,afterSelect:y,selectionAttribute:w}=t.useContext(hl),B=t.useCallback(((e,t)=>{"function"==typeof o&&o(e),e.defaultPrevented||"function"==typeof t&&t()}),[o]),k=v||h;let E;"ActionMenu"===x?E="single"===k?"menuitemradio":"multiple"===k?"menuitemcheckbox":"menuitem":"SelectPanel"===x&&"listbox"===b&&void 0!==k&&(E="option");const{theme:T}=Wr(),C={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Pl,minHeight:5,marginX:"inset"===p?2:0,borderRadius:2,transition:"background 33.333ms linear",color:_l(e,r).color,cursor:"pointer","&[aria-disabled]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:n?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:n?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"}},appearance:"none",background:"unset",border:"unset",width:"inset"===p?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (hover: hover) and (pointer: fine)":{":hover:not([aria-disabled])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:_l(e,r).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==T?void 0:T.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a:focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==T?void 0:T.colors.accent.emphasis}`},":active:not([aria-disabled])":{backgroundColor:`actionListItem.${e}.activeBg`,color:_l(e,r).hoverColor}},"@media (forced-colors: active)":{":focus":{outline:"solid 1px transparent !important"}},'[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:m?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==T?void 0:T.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]), &:focus:not([aria-disabled]), &[data-focus-visible-added]:not([aria-disabled])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...a?{fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"accent.fg",borderRadius:2}}:{}},S=t.useCallback((e=>{r||B(e,y)}),[B,r,y]),I=t.useCallback((e=>{r||[" ","Enter"].includes(e.key)&&B(e,y)}),[B,r,y]),O=An(l),N=`${O}--label`,A=`${O}--inline-description`,M=`${O}--block-description`,L=s||t.Fragment,j={onClick:S,onKeyPress:I,"aria-disabled":!!r||void 0,tabIndex:r?void 0:0,"aria-labelledby":`${N} ${u.inlineDescription?A:""}`,"aria-describedby":u.blockDescription?M:void 0,...w&&{[w]:n},role:d||E,id:O},R=s?{role:d||E?"none":void 0}:j,D=s?j:{};return t.createElement(zl.Provider,{value:{variant:e,disabled:r,inlineDescriptionId:A,blockDescriptionId:M}},t.createElement(Ul,Gl({ref:f,sx:_r(C,i),"data-variant":"danger"===e?e:void 0},R,c),t.createElement(L,D,t.createElement(Zl,{selected:n}),u.leadingVisual,t.createElement(Qr,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},t.createElement(Kl,{if:Boolean(u.trailingVisual),sx:{display:"flex",flexGrow:1}},t.createElement(Kl,{if:!!u.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},t.createElement(Qr,{as:"span",id:N,sx:{flexGrow:u.inlineDescription?0:1,fontWeight:u.inlineDescription||u.blockDescription?"bold":"normal",marginBlockEnd:u.blockDescription?"4px":void 0}},g),u.inlineDescription),u.trailingVisual),u.blockDescription))))}));ql.displayName="ActionList.Item";const Kl=e=>{const{if:r,...n}=e;return r?t.createElement(Qr,n,e.children):t.createElement(t.Fragment,null,e.children)};function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yl.apply(this,arguments)}const Xl=Ne({hoverColor:{property:"color",scale:"colors"}}),Jl=b.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-14289xe-0"})(["color:",";text-decoration:none;text-decoration:",";[data-a11y-link-underlines='true'] &[data-inline='true']{text-decoration:underline;}&:hover{text-decoration:",";",";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}",";"],(e=>e.muted?Sr("colors.fg.muted")(e):Sr("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Xl:e.muted?`color: ${Sr("colors.accent.fg")(e)}`:""),Jr),Ql=n((({as:e="a",...r},n)=>{const a=t.useRef(null);return dn(n,a),t.createElement(Jl,Yl({as:e,"data-inline":r.inline},r,{ref:a}))}));Ql.displayName="Link";var ed=Ql;function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}const rd=t.forwardRef((({sx:e={},active:r,as:n,...a},o)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return t.createElement(ql,{active:r,sx:{paddingY:0,paddingX:0},_PrivateItemWrapper:({children:r,onClick:l,...d})=>t.createElement(ed,td({as:n,sx:_r(i,e)},d,a,{onClick:e=>{l&&l(e),a.onClick&&a.onClick(e)},ref:o}),r)},a.children)})),nd=({sx:e={}})=>t.createElement(Qr,{as:"li","aria-hidden":"true",sx:_r({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Sr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});nd.displayName="Divider";const ad=Object.assign(Il,{Group:Al,Item:ql,LinkItem:rd,Divider:nd,Description:Hl,LeadingVisual:Wl,TrailingVisual:$l,Heading:El,GroupHeading:Ml});function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},od.apply(this,arguments)}const id={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto"},ld={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const dd=b.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:hidden;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;}",";"],Sr("colors.canvas.overlay"),Sr("shadows.overlay.shadow"),(e=>e.maxWidth&&ld[e.maxWidth]),(e=>id[e.height||"auto"]),(e=>e.maxHeight&&id[e.maxHeight]),(e=>ld[e.width||"auto"]),200,Sr("animation.easeOutCubic"),Jr),sd=t.forwardRef((({onClickOutside:e,role:r="none",initialFocusRef:n,returnFocusRef:a,ignoreClickRefs:o,onEscape:d,visibility:s="visible",height:c="auto",width:f="auto",top:u,left:g,right:p,bottom:b,anchorSide:m,portalContainerName:h,preventFocusOnOpen:v,position:x,...y},w)=>{const B=i(null);dn(w,B);const{theme:k}=Wr(),E=parseInt(Sr("space.2")(k).replace("px","")),T=Sr("animation.easeOutCubic")(k);Ka({overlayRef:B,returnFocusRef:a,onEscape:d,ignoreClickRefs:o,onClickOutside:e,initialFocusRef:n,preventFocusOnOpen:v}),l((()=>{var e;"initial"===c&&null!==(e=B.current)&&void 0!==e&&e.clientHeight&&(B.current.style.height=`${B.current.clientHeight}px`)}),[c]),Gn((()=>{var e;const{x:t,y:r}=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}}(m);(t||r)&&null!==(e=B.current)&&void 0!==e&&e.animate&&"hidden"!==s&&B.current.animate({transform:[`translate(${E*t}px, ${E*r}px)`,"translate(0, 0)"]},{duration:200,easing:T})}),[m,E,T,s]);const C=void 0===g&&void 0===p?{left:0}:{left:g};return t.createElement(gi,{containerName:h},t.createElement(dd,od({height:c,width:f,role:r},y,{ref:B,style:{...C,right:p,top:u,bottom:b,position:x,"--styled-overlay-visibility":s}})))}));var cd=sd;function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fd.apply(this,arguments)}const ud=({renderAnchor:e,anchorRef:r,anchorId:n,children:a,open:o,onOpen:i,onClose:d,height:s,width:c,overlayProps:u,focusTrapSettings:g,focusZoneSettings:p,side:b="outside-bottom",align:m="start",alignmentOffset:h,anchorOffset:v})=>{const x=qa(r),[y,w]=Qo(),B=An(n),k=f((()=>null==d?void 0:d("click-outside")),[d]),E=f((()=>null==d?void 0:d("escape")),[d]),T=f((e=>{e.defaultPrevented||!o&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==i||i("anchor-key-press",e),e.preventDefault())}),[o,i]),C=f((e=>{e.defaultPrevented||0!==e.button||(o?null==d||d("anchor-click"):null==i||i("anchor-click"))}),[o,i,d]),{position:S}=Jo({anchorElementRef:x,floatingElementRef:y,side:b,align:m,alignmentOffset:h,anchorOffset:v},[y.current]);return l((()=>{!o&&y.current&&w(null)}),[o,y,w]),di({containerRef:y,disabled:!o||!S,...p}),ai({containerRef:y,disabled:!o||!S,...g}),t.createElement(t.Fragment,null,e&&e({ref:x,id:B,"aria-haspopup":"true","aria-expanded":o?"true":void 0,tabIndex:0,onClick:C,onKeyDown:T}),o?t.createElement(cd,fd({returnFocusRef:x,onClickOutside:k,ignoreClickRefs:[x],onEscape:E,ref:w,role:"none",visibility:S?"visible":"hidden",height:s,width:c,top:(null==S?void 0:S.top)||0,left:(null==S?void 0:S.left)||0,anchorSide:null==S?void 0:S.anchorSide},u),a):null)};ud.displayName="AnchoredOverlay";var gd=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...n}={}){super(e,n),this.oldState=String(t||""),this.newState=String(r||"")}},pd=new WeakMap;function bd(e,t,r){pd.set(e,setTimeout((()=>{pd.has(e)&&e.dispatchEvent(new gd("toggle",{cancelable:!1,oldState:t,newState:r}))}),0))}var md=globalThis.ShadowRoot||function(){},hd=globalThis.HTMLDialogElement||function(){},vd=new WeakMap,xd=new WeakMap,yd=new WeakMap;function wd(e){return yd.get(e)||"hidden"}var Bd=new WeakMap;function kd(e,t){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!t||"showing"===wd(e))&&(!(!t&&"hidden"!==wd(e))&&(!(e instanceof hd&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Ed(e){return e?Array.from(xd.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Td(e){const t=Id(e),r=function(e){for(;e;){const t=e.popoverTargetElement;if(t)return t;if((e=e.parentElement||Sd(e))instanceof md&&(e=e.host),e instanceof Document)return}}(e);return Ed(t)>Ed(r)?t:r}function Cd(e){const t=xd.get(e);for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function Sd(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?Sd(e.parentNode):e}function Id(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===yd.get(e))return e;if((e=e.parentElement||Sd(e))instanceof md&&(e=e.host),e instanceof Document)return}}function Od(e){return!e.hidden&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&-1!==e.tabIndex)))}function Nd(e){(function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);const r=t.querySelector("[autofocus]");if(r)return r;const n=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=n.currentNode;for(;a;){if(Od(a))return a;a=n.nextNode()}})(e)?.focus()}var Ad=new WeakMap;function Md(e){if(!kd(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new gd("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!kd(e,!1))return;let r=!1;if("auto"===e.popover){const r=e.getAttribute("popover");if(Rd(function(e){const t=new Map;let r=0;const n=e.ownerDocument;for(const e of xd.get(n)||[])t.set(e,r),r+=1;t.set(e,r),r+=1;let a=null;return function(e){const r=Id(e);if(null===r)return null;const n=t.get(r);(null===a||t.get(a)<n)&&(a=r)}(e?.parentElement),a}(e)||t,!1,!0),r!==e.getAttribute("popover")||!kd(e,!1))return}Cd(t)||(r=!0),Ad.delete(e);const n=t.activeElement;e.classList.add(":popover-open"),yd.set(e,"showing"),vd.has(t)||vd.set(t,new Set),vd.get(t).add(e),Nd(e),"auto"===e.popover&&(xd.has(t)||xd.set(t,new Set),xd.get(t).add(e),Pd(Bd.get(e),!0)),r&&n&&"auto"===e.popover&&Ad.set(e,n),bd(e,"closed","open")}function Ld(e,t=!1,r=!1){if(!kd(e,!0))return;const n=e.ownerDocument;if("auto"===e.popover&&(Rd(e,t,r),!kd(e,!0)))return;if(Pd(Bd.get(e),!1),Bd.delete(e),r&&(e.dispatchEvent(new gd("beforetoggle",{oldState:"open",newState:"closed"})),!kd(e,!0)))return;vd.get(n)?.delete(e),xd.get(n)?.delete(e),e.classList.remove(":popover-open"),yd.set(e,"hidden"),r&&bd(e,"open","closed");const a=Ad.get(e);a&&(Ad.delete(e),t&&a.focus())}function jd(e,t=!1,r=!1){let n=Cd(e);for(;n;)Ld(n,t,r),n=Cd(e)}function Rd(e,t,r){const n=e.ownerDocument||e;if(e instanceof Document)return jd(n,t,r);let a=null,o=!1;for(const t of xd.get(n)||[])if(t===e)o=!0;else if(o){a=t;break}if(!o)return jd(n,t,r);for(;a&&"showing"===wd(a)&&xd.get(n)?.size;)Ld(a,t,r)}var Dd=new WeakMap;function zd(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!Cd(r))return;const n=Td(t);if(n&&"pointerdown"===e.type)Dd.set(r,n);else if("pointerup"===e.type){const e=Dd.get(r)===n;Dd.delete(r),e&&Rd(n||r,!1,!0)}}var _d=new WeakMap;function Pd(e,t=!1){if(!e)return;_d.has(e)||_d.set(e,e.getAttribute("aria-expanded"));const r=e.popoverTargetElement;if(r&&"auto"===r.popover)e.setAttribute("aria-expanded",String(t));else{const t=_d.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var Hd=globalThis.ShadowRoot||function(){};function Fd(e,t,r){const n=e[t];Object.defineProperty(e,t,{value(e){return n.call(this,r(e))}})}var Vd=/(^|[^\\]):popover-open\b/g,Wd="\n [popover] {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n [popover]:is(dialog[open]) {\n display: revert;\n }\n\n [anchor].\\:popover-open {\n inset: auto;\n }\n\n [anchor]:is(:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n [popover] {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n [popover] {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n [popover] {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n [popover]:not(.\\:popover-open) {\n display: none;\n }\n",$d=null;function Zd(e){if(null===$d)try{($d=new CSSStyleSheet).replaceSync(Wd)}catch{$d=!1}if(!1===$d){const t=document.createElement("style");t.textContent=Wd,e instanceof Document?e.head.append(t):e.append(t)}else e.adoptedStyleSheets=[...e.adoptedStyleSheets,$d]}function Gd(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(Vd,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||gd,Fd(Document.prototype,"querySelector",e),Fd(Document.prototype,"querySelectorAll",e),Fd(Element.prototype,"querySelector",e),Fd(Element.prototype,"querySelectorAll",e),Fd(Element.prototype,"matches",e),Fd(Element.prototype,"closest",e),Fd(DocumentFragment.prototype,"querySelectorAll",e),Fd(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){Md(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Ld(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===yd.get(this)&&void 0===e||!1===e?Ld(this,!0,!0):void 0!==e&&!0!==e||Md(this)}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const r=t.call(this,e);return Zd(r),r}}});const r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=r.call(this);return e.shadowRoot&&Zd(e.shadowRoot),e}}});const n=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=n.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return n.delete(this),null;const t=Sd(this),r=this.getAttribute("popovertarget");return(t instanceof Document||t instanceof Hd)&&r&&t.getElementById(r)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}a(HTMLButtonElement),a(HTMLInputElement);const o=e=>{if(!e.isTrusted)return;const t=e.composedPath()[0];if(!(t instanceof Element)||t?.shadowRoot)return;const r=Sd(t);if(!(r instanceof Hd||r instanceof Document))return;const n=t.closest("[popovertargetaction],[popovertarget]");n&&function(e){const t=e.popoverTargetElement;if(!t)return;const r=wd(t);"show"===e.popoverTargetAction&&"showing"===r||"hide"===e.popoverTargetAction&&"hidden"===r||("showing"===r?Ld(t,!0,!0):kd(t,!1)&&(Bd.set(t,e),Md(t)))}(n)},i=e=>{const t=e.key,r=e.target;!r||"Escape"!==t&&"Esc"!==t||Rd(r.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",o),e.addEventListener("keydown",i),e.addEventListener("pointerdown",zd),e.addEventListener("pointerup",zd)})(document),Zd(document)}function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ud.apply(this,arguments)}const qd="\n animation-name: tooltip-appear;\n animation-duration: 0.1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n",Kd=b.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-5xkifj-0"})(["display:none;&[popover]{padding:0.5em 0.75em;width:max-content;margin:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;word-wrap:break-word;background:",";border-radius:",";border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}&[popover]:popover-open{display:block;}&[popover].\\:popover-open{display:block;}@media (forced-colors:active){outline:1px solid transparent;}&::after{position:absolute;display:block;right:0;left:0;height:8px;content:'';}&[data-direction='n']::after,&[data-direction='ne']::after,&[data-direction='nw']::after{top:100%;}&[data-direction='s']::after,&[data-direction='se']::after,&[data-direction='sw']::after{bottom:100%;}&[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}&[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:popover-open,&:popover-open::before{","}&.\\:popover-open,&.\\:popover-open::before{","}",";"],Sr("fonts.normal"),Sr("colors.fg.onEmphasis"),Sr("colors.neutral.emphasisPlus"),Sr("radii.2"),qd,qd,Jr),Yd={nw:{side:"outside-top",align:"start"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"end"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"end"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"start"},w:{side:"outside-left",align:"center"}},Xd={"outside-top-start":"nw","outside-top-center":"n","outside-top-end":"ne","outside-right-center":"e","outside-bottom-end":"se","outside-bottom-center":"s","outside-bottom-start":"sw","outside-left-center":"w"},Jd=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],Qd=e=>Jd.some((t=>e.matches(t)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),es=t.createContext({}),ts=t.forwardRef((({direction:e="s",text:r,type:n="description",children:a,...o},d)=>{const c=An(),f=u.only(a),g=qa(d),p=i(null),[b,m]=s(e),h=()=>{p.current&&g.current&&!p.current.matches(":popover-open")&&p.current.showPopover()},v=()=>{p.current&&g.current&&p.current.matches(":popover-open")&&p.current.hidePopover()};return l((()=>{if(!p.current||!g.current)return;const t=Qd(g.current),r=g.current.childNodes,a=Array.from(r).some((e=>e instanceof HTMLElement&&Qd(e)));if(t||a||Bl(!1),"label"===n){g.current.hasAttribute("aria-label"),Array.from(g.current.childNodes).some((e=>e instanceof HTMLElement&&e.hasAttribute("aria-label")))}"undefined"!=typeof window&&("undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||Gd());const o=p.current,i=g.current;o.setAttribute("popover","auto");const l={side:Yd[e].side,align:Yd[e].align},d=()=>{const{top:e,left:t,anchorAlign:r,anchorSide:n}=eo(o,i,l);o.style.top=`${e}px`,o.style.left=`${t}px`;m(Xd[`${n}-${r}`])};return o.addEventListener("toggle",d),()=>{o.removeEventListener("toggle",d)}}),[p,g,e,n]),t.createElement(es.Provider,{value:{tooltipId:c}},t.createElement(Qr,{onMouseLeave:()=>v()},t.isValidElement(f)&&t.cloneElement(f,{ref:g,"aria-describedby":"description"===n?`tooltip-${c}`:void 0,"aria-labelledby":"label"===n?`tooltip-${c}`:void 0,onBlur:e=>{var t,r;v(),null===(t=(r=f.props).onBlur)||void 0===t||t.call(r,e)},onFocus:e=>{var t,r;h(),null===(t=(r=f.props).onFocus)||void 0===t||t.call(r,e)},onMouseEnter:e=>{var t,r;h(),null===(t=(r=f.props).onMouseEnter)||void 0===t||t.call(r,e)}}),t.createElement(Kd,Ud({ref:p,"data-direction":b},o,{role:"description"===n?"tooltip":void 0,"aria-hidden":"label"===n||void 0,id:`tooltip-${c}`}),r)))}));function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rs.apply(this,arguments)}const ns=t.createContext({renderAnchor:null,open:!1}),as=({anchorRef:e,open:r,onOpenChange:n,children:a})=>{const[o,i]=ei(r,n,!1),l=t.useCallback((()=>i(!0)),[i]),d=t.useCallback((()=>i(!1)),[i]),s=t.Children.toArray(a).find((e=>t.isValidElement(e)&&(e.type===is||e.type===os))),c=t.isValidElement(s)?s.props.id:void 0,f=qa(e),u=An(c);let g=null;const p=t.Children.map(a,(e=>{if(e.type===ts){const r=e.props.children;return r.type===is&&(g=n=>{const a=t.cloneElement(r,{...n});return t.cloneElement(e,{children:a,ref:f})}),null}if(e.type===os){const r=e.props.children;return void 0!==r&&r.type===ts?null!==r.props.children&&(g=n=>{const a=r.props.children,o=t.cloneElement(a,{...n}),i=t.cloneElement(r,{children:o});return t.cloneElement(e,{children:i,ref:f})}):g=r=>t.cloneElement(e,r),null}return e.type===is?(g=r=>t.cloneElement(e,r),null):e}));return t.createElement(ns.Provider,{value:{anchorRef:f,renderAnchor:g,anchorId:u,open:o,onOpen:l,onClose:d}},p)};as.displayName="Menu";const os=t.forwardRef((({children:e,...r},n)=>t.cloneElement(e,{...r,ref:n}))),is=t.forwardRef((({...e},r)=>t.createElement(os,{ref:r},t.createElement(hn,rs({type:"button",trailingAction:Ko},e))))),ls=({children:e,align:r="start",side:n="outside-bottom","aria-labelledby":a,...o})=>{const{anchorRef:i,renderAnchor:l,anchorId:d,open:s,onOpen:c,onClose:f}=t.useContext(ns),u=t.useRef(null);return ti(s,f,u,i),t.createElement(ud,{anchorRef:i,renderAnchor:l,anchorId:d,open:s,onOpen:c,onClose:f,align:r,side:n,overlayProps:o,focusZoneSettings:{focusOutBehavior:"wrap"}},t.createElement("div",{ref:u},t.createElement(hl.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:a||d,selectionAttribute:"aria-checked",afterSelect:f}},e)))};ls.displayName="Overlay",as.displayName="ActionMenu";const ds=Object.assign(as,{Button:is,Anchor:os,Overlay:ls,Divider:nd}),ss=d(null);var cs,fs={exports:{}},us={},gs=Symbol.for("react.element"),ps=Symbol.for("react.portal"),bs=Symbol.for("react.fragment"),ms=Symbol.for("react.strict_mode"),hs=Symbol.for("react.profiler"),vs=Symbol.for("react.provider"),xs=Symbol.for("react.context"),ys=Symbol.for("react.server_context"),ws=Symbol.for("react.forward_ref"),Bs=Symbol.for("react.suspense"),ks=Symbol.for("react.suspense_list"),Es=Symbol.for("react.memo"),Ts=Symbol.for("react.lazy"),Cs=Symbol.for("react.offscreen");function Ss(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gs:switch(e=e.type){case bs:case hs:case ms:case Bs:case ks:return e;default:switch(e=e&&e.$$typeof){case ys:case xs:case ws:case Ts:case Es:case vs:return e;default:return t}}case ps:return t}}}cs=Symbol.for("react.module.reference"),us.ContextConsumer=xs,us.ContextProvider=vs,us.Element=gs,us.ForwardRef=ws,us.Fragment=bs,us.Lazy=Ts,us.Memo=Es,us.Portal=ps,us.Profiler=hs,us.StrictMode=ms,us.Suspense=Bs,us.SuspenseList=ks,us.isAsyncMode=function(){return!1},us.isConcurrentMode=function(){return!1},us.isContextConsumer=function(e){return Ss(e)===xs},us.isContextProvider=function(e){return Ss(e)===vs},us.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gs},us.isForwardRef=function(e){return Ss(e)===ws},us.isFragment=function(e){return Ss(e)===bs},us.isLazy=function(e){return Ss(e)===Ts},us.isMemo=function(e){return Ss(e)===Es},us.isPortal=function(e){return Ss(e)===ps},us.isProfiler=function(e){return Ss(e)===hs},us.isStrictMode=function(e){return Ss(e)===ms},us.isSuspense=function(e){return Ss(e)===Bs},us.isSuspenseList=function(e){return Ss(e)===ks},us.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bs||e===hs||e===ms||e===Bs||e===ks||e===Cs||"object"==typeof e&&null!==e&&(e.$$typeof===Ts||e.$$typeof===Es||e.$$typeof===vs||e.$$typeof===xs||e.$$typeof===ws||e.$$typeof===cs||void 0!==e.getModuleId)},us.typeOf=Ss,fs.exports=us;var Is=fs.exports;function Os(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Os(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ns(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Os(e))&&(n&&(n+=" "),n+=t);return n}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}const Ms={small:"16px",medium:"32px",large:"64px"};function Ls({size:e="medium",...r}){const n=Ms[e];return t.createElement("svg",As({height:n,width:n,viewBox:"0 0 16 16",fill:"none"},r),t.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),t.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}Ls.displayName="Spinner";const js=b(Ls).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],Jr);js.displayName="Spinner";var Rs=js;const Ds=({children:e,hasLoadingIndicator:r,showLoadingIndicator:n,visualPosition:a})=>!e&&!r||"leading"===a&&!e&&!n?null:r?t.createElement("span",{className:"TextInput-icon"},t.createElement(Qr,{display:"flex",position:"relative"},e&&t.createElement(Qr,{sx:{visibility:n?"hidden":"visible"}},e),t.createElement(Rs,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:n?"visible":"hidden",..."leading"===a?{left:0}:{right:0}}:{visibility:n?"visible":"hidden"},size:e?void 0:"small"}))):t.createElement("span",{className:"TextInput-icon"},e);Ds.displayName="TextInputInnerVisualSlot";var zs=Ds;const _s=ct({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Ps=ct({prop:"size",variants:{small:{"--inner-action-size":"20px",minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},medium:{"--inner-action-size":"24px"},large:{"--inner-action-size":"28px",px:2,py:"10px",height:"40px"}}}),Hs="12px",Fs=Hs,Vs=(e,t)=>e?t&&v(["border-color:",";outline:none;box-shadow:inset 0 0 0 1px ",";"],Sr("colors.accent.fg"),Sr("colors.accent.fg")):v(["&:focus-within{border-color:",";outline:none;box-shadow:inset 0 0 0 1px ",";}"],Sr("colors.accent.fg"),Sr("colors.accent.fg")),Ws=b.span.withConfig({displayName:"TextInputWrapper__TextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:20px;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:32px;input,textarea{cursor:text;}select{cursor:pointer;}&::placeholder{color:",";}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Sr("fontSizes.1"),Sr("colors.fg.default"),Sr("colors.canvas.default"),Sr("colors.border.default"),Sr("radii.2"),Sr("shadows.primer.shadow.inset"),Sr("colors.fg.subtle"),(e=>Vs(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Hs,(e=>e.contrast&&v(["background-color:",";"],Sr("colors.canvas.inset"))),(e=>e.disabled&&v(["color:",";background-color:",";border-color:",";input,textarea,select{cursor:not-allowed;}"],Sr("colors.primer.fg.disabled"),Sr("colors.input.disabledBg"),Sr("colors.border.default"))),(e=>e.monospace&&v(["font-family:",";"],Sr("fonts.mono"))),(e=>"error"===e.validationStatus&&v(["border-color:",";",""],Sr("colors.danger.emphasis"),Vs(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&v(["border-color:",";"],Sr("colors.success.emphasis"))),(e=>e.block&&v(["width:100%;display:flex;align-self:stretch;"])),Sr("breakpoints.1"),Sr("fontSizes.1"),pt,mt,vt,_s,Ps,Jr);var $s=b(Ws).withConfig({displayName:"TextInputWrapper",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;}"," ",";"],Sr("space.2"),Sr("colors.fg.muted"),(e=>v(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?Fs:0,e.hasTrailingVisual&&!e.hasTrailingAction?Fs:0,e.hasLeadingVisual?0:Fs,e.hasTrailingVisual||e.hasTrailingAction?0:Fs)),Jr);function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(this,arguments)}const Gs=b.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::before{position:absolute;z-index:1000001;display:none;width:0px;height:0px;color:",";pointer-events:none;content:'';border:6px solid transparent;opacity:0;}&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus,&:focus-within{&::before,&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0.4s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::before,&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus,&.tooltipped-multiline:focus-within{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}&::before{top:auto;right:50%;bottom:-7px;margin-right:-6px;border-bottom-color:",";}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}&::before{top:-7px;right:50%;bottom:auto;margin-right:-6px;border-top-color:",";}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}&::before{top:50%;bottom:50%;left:-7px;margin-top:-6px;border-left-color:",";}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}&::before{top:50%;right:-7px;bottom:50%;margin-top:-6px;border-right-color:",";}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-right-2::before{right:15px;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}&.tooltipped-align-left-2::before{left:10px;}",";"],Sr("colors.neutral.emphasisPlus"),Sr("fonts.normal"),Sr("colors.fg.onEmphasis"),Sr("colors.neutral.emphasisPlus"),Sr("radii.1"),Sr("colors.neutral.emphasisPlus"),Sr("space.3"),Sr("space.3"),Sr("colors.neutral.emphasisPlus"),Sr("space.3"),Sr("space.3"),Sr("colors.neutral.emphasisPlus"),Sr("colors.neutral.emphasisPlus"),Jr);function Us({direction:e="n",children:r,className:n,text:a,noDelay:o,align:i,wrap:l,...d}){const s=Ns(n,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,o&&"tooltipped-no-delay",l&&"tooltipped-multiline");return t.createElement(Gs,Zs({role:"tooltip","aria-label":a},d,{className:s}),r)}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qs.apply(this,arguments)}Us.displayName="Tooltip",Us.alignments=["left","right"],Us.directions=["n","ne","e","se","s","sw","w","nw"];const Ks={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",'&[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"}}},Ys=({"aria-label":e,children:r,tooltipDirection:n})=>t.createElement(t.Fragment,null,e?t.createElement(Us,{"aria-label":e,direction:n,sx:{display:"inline-block"}},r):r),Xs=n((({"aria-label":e,tooltipDirection:r,children:n,icon:a,sx:o,variant:i="invisible",...l},d)=>{const s="invisible"===i?_r(Ks,o||{}):o||{};return(a&&!e||!n&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),t.createElement(Qr,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},a&&!n?t.createElement(Us,{direction:r,"aria-label":e},t.createElement(yn,qs({variant:i,type:"button",icon:a,size:"small",sx:s},l,{"aria-label":e,"aria-labelledby":void 0,ref:d}))):t.createElement(Ys,{"aria-label":e},t.createElement(hn,qs({variant:i,type:"button",sx:s},l,{ref:d}),n)))}));var Js=Xs;var Qs=b.input.withConfig({displayName:"UnstyledTextInput",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;}",";"],Jr);function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}const tc=t.forwardRef((({icon:e,leadingVisual:r,trailingVisual:n,trailingAction:a,block:o,className:i,contrast:l,disabled:d,loading:c,loaderPosition:u="auto",monospace:g,validationStatus:p,sx:b,size:m,onFocus:h,onBlur:v,width:x,minWidth:y,maxWidth:w,variant:B,type:k="text",...E},T)=>{const[C,S]=s(!1),I=qa(T),O=Ns(i,"TextInput-wrapper"),N=c&&("leading"===u||Boolean(r&&"trailing"!==u)),A=c&&("trailing"===u||Boolean("auto"===u&&!r)),M=f((e=>{S(!0),h&&h(e)}),[h]),L=f((e=>{S(!1),v&&v(e)}),[v]);return t.createElement($s,{block:o,className:O,validationStatus:p,contrast:l,disabled:d,monospace:g,sx:b,size:m,width:x,minWidth:y,maxWidth:w,variant:B,hasLeadingVisual:Boolean(r||N),hasTrailingVisual:Boolean(n||A),hasTrailingAction:Boolean(a),isInputFocused:C,onClick:()=>{var e;null===(e=I.current)||void 0===e||e.focus()},"aria-busy":Boolean(c)},e&&t.createElement(e,{className:"TextInput-icon"}),t.createElement(zs,{visualPosition:"leading",showLoadingIndicator:N,hasLoadingIndicator:"boolean"==typeof c},"string"!=typeof r&&Is.isValidElementType(r)?t.createElement(r,null):r),t.createElement(Qs,ec({ref:I,disabled:d,onFocus:M,onBlur:L,type:k},E,{"data-component":"input"})),t.createElement(zs,{visualPosition:"trailing",showLoadingIndicator:A,hasLoadingIndicator:"boolean"==typeof c},"string"!=typeof n&&Is.isValidElementType(n)?t.createElement(n,null):n),a)}));tc.displayName="TextInput";var rc=Object.assign(tc,{Action:Js});function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(this,arguments)}const ac=t.forwardRef((({as:e=rc,onFocus:r,onBlur:n,onChange:a,onKeyDown:i,onKeyUp:d,onKeyPress:c,value:u,...g},p)=>{const b=o(ss);if(null===b)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:m,autocompleteSuggestion:h="",id:v,inputRef:x,inputValue:y="",isMenuDirectlyActivated:w,setInputValue:B,setShowMenu:k,showMenu:E}=b;dn(p,x);const[T,C]=s(!0),{safeSetTimeout:S}=Na(),I=f((e=>{r&&r(e),k(!0)}),[r,k]),O=f((e=>{n&&n(e),S((()=>{document.activeElement!==x.current&&k(!1)}),0)}),[n,k,x,S]),N=f((e=>{a&&a(e),B(e.currentTarget.value),E||k(!0)}),[a,B,k,E]),A=f((e=>{var t;i&&i(e),"Backspace"===e.key&&C(!1),"Escape"===e.key&&null!==(t=x.current)&&void 0!==t&&t.value&&(B(""),x.current.value="")}),[x,B,C,i]),M=f((e=>{d&&d(e),"Backspace"===e.key&&C(!0)}),[C,d]),L=f((e=>{if(c&&c(e),E&&"Enter"===e.key&&m.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const t=new KeyboardEvent(e.type,e.nativeEvent);m.current.dispatchEvent(t)}}),[m,E,c]);return l((()=>{x.current&&(h||(x.current.value=y),T&&h&&(y||w)&&(x.current.value=h,0===h.toLowerCase().indexOf(y.toLowerCase())&&x.current.setSelectionRange(y.length,h.length)))}),[h,y,x,w]),l((()=>{B(void 0!==u?u.toString():"")}),[u,B]),t.createElement(e,nc({onFocus:I,onBlur:O,onChange:N,onKeyDown:A,onKeyPress:L,onKeyUp:M,ref:x,"aria-controls":`${v}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":`${v}-listbox`,autoComplete:"off",id:v},g))}));ac.displayName="AutocompleteInput";var oc=ac;function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}const lc={startMargin:0,endMargin:8};function dc(e){const r=o(ss);if(null===r)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:n,id:d,inputRef:c,inputValue:f="",scrollContainerRef:u,setAutocompleteSuggestion:g,setShowMenu:p,setInputValue:b,setIsMenuDirectlyActivated:m,setSelectedItemLength:h,showMenu:v}=r,{items:x,selectedItemIds:y,sortOnCloseFn:w,emptyStateText:B="No selectable options",addNewItem:k,loading:E,selectionVariant:T="single",filterFn:C,"aria-labelledby":S,onOpenChange:I,onSelectedChange:O,customScrollContainerRef:N}=e,A=i(null),M=i([]),[L,j]=s(),[R,D]=s(x.map((({id:e})=>e))),z=An(d),_=a((()=>x.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===T?y.includes(e.id):void 0,onAction:e=>{const t=y.filter((t=>t!==e.id)),r=y.includes(e.id)?t:[...t,e.id];var n,a;((O||(n=b,function(e){const{text:t=""}=Array.isArray(e)?e.slice(-1)[0]:e;n(t)}))(r.map((e=>function(e,t){return t.find((t=>t.id===e))}(e,x)))),"multiple"===T)?(b(""),g("")):(p(!1),null===(a=c.current)||void 0===a||a.setSelectionRange(c.current.value.length,c.current.value.length))}})))),[L,x,y,c,O,T,g,b,p]),P=a((()=>R.reduce(((e,t,r)=>(e[t]=r,e)),{})),[R]),H=a((()=>{return _.filter(C||(e=f,function(t,r){var n;return Boolean(null===(n=t.text)||void 0===n?void 0:n.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,t)=>P[e.id]-P[t.id]));var e}),[_,P,C,f]),F=a((()=>[...H,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===T?y.includes(k.id):void 0,leadingVisual:()=>t.createElement(Zo,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===T&&(b(""),g(""))}}]:[]]),[H,k,g,T,b,z,L,y]);if(t.useEffect((()=>{M.current=F})),di({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:c,onActiveDescendantChanged:(e,t,r)=>{if(n.current=e||null,e){const t=M.current.find((t=>{var r;return t.id===(null===(r=e.closest("li"))||void 0===r?void 0:r.getAttribute("data-id"))}));j(t),m(r)}e&&N&&N.current&&r?wo(e,N.current,lc):e&&u.current&&r&&wo(e,u.current,lc)}},[E]),l((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(f)&&!y.includes(L.id)?g(L.text):g("")}),[L,f,y,g]),l((()=>{const e=[...R].sort(w||(t=e=>((e,t)=>t.includes(e))(e,y),(e,r)=>t(e)===t(r)?0:t(e)?-1:1));var t;const r=e.length===R.length&&e.every(((e,t)=>e===R[t]));!1!==v||r||D(e),I&&I(Boolean(v))}),[v,I,y,w,R]),l((()=>{y.length&&h(y.length)}),[y,h]),"single"===T&&y.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return t.createElement(cn,{isVisible:v},E?t.createElement(Qr,{p:3,display:"flex",justifyContent:"center"},t.createElement(Rs,null)):t.createElement("div",{ref:A},F.length?t.createElement(ad,{selectionVariant:T,role:"listbox",id:`${d}-listbox`,"aria-labelledby":S},F.map((e=>{const{id:r,onAction:n,children:a,text:o,leadingVisual:i,trailingVisual:l,...d}=e;return t.createElement(ad.Item,ic({key:r,onSelect:()=>n(e)},d,{id:r,"data-id":r}),i&&t.createElement(ad.LeadingVisual,null,t.createElement(i,null)),null!=a?a:o,l&&t.createElement(ad.TrailingVisual,null,t.createElement(l,null)))}))):t.createElement(Qr,{p:3},B)))}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sc.apply(this,arguments)}function cc({menuAnchorRef:e,overlayProps:r,children:n,...a}){const i=o(ss);if(null===i)throw new Error("AutocompleteContext returned null values");const l={...r,...a},{inputRef:d,scrollContainerRef:s,selectedItemLength:c,setShowMenu:u,showMenu:g=!1}=i,{floatingElementRef:p,position:b}=Jo({side:"outside-bottom",align:"start",anchorElementRef:e||d},[g,c]);dn(s,p);const m=f((()=>{u(!1)}),[u]);return"undefined"==typeof window?null:g?t.createElement(cd,sc({returnFocusRef:d,preventFocusOnOpen:!0,onClickOutside:m,onEscape:m,ref:p,top:null==b?void 0:b.top,left:null==b?void 0:b.left,sx:{overflow:"auto"}},l),n):t.createElement(cn,{"aria-hidden":"true"},n)}dc.displayName="AutocompleteMenu",dc.displayName="AutocompleteMenu",cc.displayName="AutocompleteOverlay";const fc={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},uc=(e,t)=>{const{type:r,payload:n}=t;switch(r){case"inputValue":return{...e,inputValue:n};case"showMenu":return{...e,showMenu:n};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:n};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:n};case"selectedItemLength":return{...e,selectedItemLength:n};default:return e}},gc=({children:e,id:r})=>{const n=i(null),a=i(null),o=i(null),[l,d]=g(uc,fc),{inputValue:s,showMenu:c,autocompleteSuggestion:u,isMenuDirectlyActivated:p,selectedItemLength:b}=l,m=f((e=>{d({type:"inputValue",payload:e})}),[]),h=f((e=>{d({type:"showMenu",payload:e})}),[]),v=f((e=>{d({type:"autocompleteSuggestion",payload:e})}),[]),x=f((e=>{d({type:"isMenuDirectlyActivated",payload:e})}),[]),y=f((e=>{d({type:"selectedItemLength",payload:e})}),[]),w=An(r);return t.createElement(ss.Provider,{value:{activeDescendantRef:n,autocompleteSuggestion:u,id:w,inputRef:o,inputValue:s,isMenuDirectlyActivated:p,scrollContainerRef:a,selectedItemLength:b,setAutocompleteSuggestion:v,setInputValue:m,setIsMenuDirectlyActivated:x,setShowMenu:h,setSelectedItemLength:y,showMenu:c}},e)};gc.displayName="Autocomplete";var pc=Object.assign(gc,{Context:ss,Input:oc,Menu:dc,Overlay:cc});const bc={xsmall:{width:"320px"},small:{width:be.breakpoints[0]},medium:{width:be.breakpoints[1]},large:{width:be.breakpoints[2]},xlarge:{width:be.breakpoints[3]},xxlarge:{width:"1400px"}};function mc(e){return`@media screen and (min-width: ${e})`}const hc=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(bc.medium.width),vc=mc(bc.medium.width),xc=mc(bc.xxlarge.width);function yc(e,t,r){if(Dn(e)){const n=e,a="narrow"in n?{[hc]:{[t]:r(n.narrow)}}:{},o="regular"in n?{[vc]:{[t]:r(n.regular)}}:{},i="wide"in n?{[xc]:{[t]:r(n.wide)}}:{};return function(e){if("narrow"in e&&"regular"in e&&"wide"in e){const t=Object.values(e);return t.every((e=>e===t[0]))}return!1}(n)?{[t]:r(n.narrow)}:function(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}(n)?{...a,...o}:{...a,...o,...i}}return{[t]:r(e)}}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wc.apply(this,arguments)}const Bc=20,kc=b.img.attrs((e=>({height:e.size,width:e.size}))).withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-2lv0r8-0"})(["display:inline-block;overflow:hidden;line-height:",";vertical-align:middle;border-radius:",";box-shadow:0 0 0 1px ",";height:var(--avatar-size);width:var(--avatar-size);",""],Sr("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Sr("colors.avatar.border"),Jr),Ec=t.forwardRef((function({alt:e="",size:r=20,square:n=!1,sx:a=sn,...o},i){const l=Dn(r)?_r(yc(r,"--avatar-size",(e=>`${e||Bc}px`)),a):_r({"--avatar-size":`${r}px`},a);return t.createElement(kc,wc({ref:i,alt:e,size:r,square:n,sx:l},o))}));var Tc=Ec;function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cc.apply(this,arguments)}const Sc=b(Tc).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Sr("shadows.avatar.childShadow")),Ic=({children:e,...r})=>{const n=t.Children.map(e,((e,r)=>t.isValidElement(e)?0===r?t.cloneElement(e,{size:40}):t.createElement(Sc,Cc({bg:"canvas.default"},e.props,{size:20})):e));return t.createElement(Qr,Cc({position:"relative",display:"inline-flex"},r),n)};Ic.displayName="AvatarPair",Ic.displayName="AvatarPair";var Oc=Ic;const Nc=b.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);--avatar-stack-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 ) + calc(var(--avatar-border-width) * 3) );display:flex;position:relative;height:var(--avatar-stack-size);min-width:",";.pc-AvatarStackBody{display:flex;position:absolute;width:var(--avatar-stack-three-plus-min-width);}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);box-shadow:0 0 0 var(--avatar-border-width) ",";position:relative;overflow:hidden;&: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-plus{min-width:var(--avatar-stack-three-plus-min-width);}&.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{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover{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;}}}",";"],(e=>1===e.count?"var(--avatar-stack-size)":2===e.count?"30px":"38px"),(e=>1===e.count?Sr("colors.avatar.border"):Sr("colors.canvas.default")),55,40,25,Sr("space.1"),Sr("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Sr("colors.canvas.default")};`),Jr),Ac=({children:e,alignRight:r,disableExpand:n,size:a,sx:o=sn})=>{const i=t.Children.count(e),l=Ns({"pc-AvatarStack--two":2===i,"pc-AvatarStack--three-plus":i>2,"pc-AvatarStack--right":r}),d=Ns("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":n}),s=_r(a?Dn(a)?yc(a,"--avatar-stack-size",(e=>`${e||Bc}px`)):{"--avatar-stack-size":`${a}px`}:yc((()=>{const r={narrow:[],regular:[],wide:[]};return t.Children.toArray(e).reduce(((e,n)=>{if(!t.isValidElement(n))return e;for(const t of Object.keys(r))Dn(n.props.size)?r[t].push(n.props.size[t]||Bc):r[t].push(n.props.size||Bc),e[t]=Math.min(...r[t]);return e}),{narrow:Bc,regular:Bc,wide:Bc})})(),"--avatar-stack-size",(e=>`${e}px`)),o);return t.createElement(Nc,{count:i,className:l,sx:s},t.createElement(Qr,{className:d}," ",(e=>t.Children.map(e,(e=>t.isValidElement(e)?t.cloneElement(e,{...e.props,className:Ns(e.props.className,"pc-AvatarItem")}):e)))(e)))};Ac.displayName="AvatarStack";var Mc=Ac;var Lc=b.a.withConfig({displayName:"BranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:",";font-family:",";color:",";background-color:",";border-radius:",";text-decoration:none;",";"],Sr("fontSizes.0"),Sr("fonts.mono"),Sr("colors.accent.fg"),Sr("colors.accent.subtle"),Sr("radii.2"),Jr);const jc=b.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:",";font-size:",";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Sr("colors.fg.muted"),Sr("fontSizes.1")),Rc=b.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],Jr);function Dc({className:e,children:r,sx:n}){const a=t.Children.map(r,(e=>t.createElement(jc,null,e)));return t.createElement(Rc,{className:e,"aria-label":"Breadcrumbs",sx:n},t.createElement(Qr,{as:"ol",my:0,pl:0},a))}Dc.displayName="Breadcrumbs";const zc=b.a.attrs((e=>({className:Ns(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null}))).withConfig({displayName:"Breadcrumbs__BreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:",";pointer-events:none;}",";"],Sr("colors.accent.fg"),Sr("fontSizes.1"),Sr("colors.fg.default"),Jr);Dc.displayName="Breadcrumbs",zc.displayName="Breadcrumbs.Item";var _c=Object.assign(Dc,{Item:zc});const Pc=Object.assign(Dc,{Item:zc});var Hc=b.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *{margin-inline-end:-1px;position:relative;border-radius:0;:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}:focus,:active,:hover{z-index:1;}}",";"],Sr("radii.2"),Sr("radii.2"),Sr("radii.2"),Sr("radii.2"),Jr);const Fc={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Vc={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Wc(e,t,r){const n=Fc[e].toLowerCase(),a=Vc[e].toLowerCase();return{[n]:"100%",[t||a]:t?r:"50%"}}const $c=Br({prop:"bg",key:"colors"}),Zc=Br({prop:"borderColor",key:"colors"}),Gc=Br({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Uc(e){var r;const n=t.useContext(y),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(r=e.theme)&&void 0!==r?r:n},{bg:o}=$c(a),{borderColor:i}=Zc(a),{borderWidth:l}=Gc(a),{size:d=8,location:s="bottom"}=e,[c,f]=function(e){const[t,r]=e.split("-");return[t,r]}(s),u=Vc[c],g=[-d,0],p=[0,d],b=[d,0],m=`M${g}L${p}L${b}L${g}Z`,h=`M${g}L${p}L${b}`,v={top:`translate(${[d,2*d]}) rotate(180)`,right:`translate(${[0,d]}) rotate(-90)`,bottom:`translate(${[d,0]})`,left:`translate(${[2*d,d]}) rotate(90)`}[c];return t.createElement("svg",{width:2*d,height:2*d,style:{pointerEvents:"none",position:"absolute",...Wc(c,f,d),[`margin${u}`]:f?null:-d},role:"presentation"},t.createElement("g",{transform:v},t.createElement("path",{d:m,fill:null==n?void 0:n.colors.canvas.default}),t.createElement("path",{d:m,fill:o}),t.createElement("path",{d:h,fill:"none",stroke:i,strokeWidth:l})))}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(this,arguments)}function Kc(e){const{size:r=32,as:n,icon:a,bg:o,...i}=e;return t.createElement(Qr,{as:n,bg:o,overflow:"hidden",borderWidth:0,size:r,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},t.createElement(Qr,qc({display:"flex",as:n,size:r},i,{alignItems:"center",justifyContent:"center"}),t.createElement(a,{size:r})))}Uc.displayName="Caret",Uc.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Kc.displayName="CircleOcticon";const Yc=d(null),Xc=Yc.Provider;function Jc(){var e;return null!==(e=o(Yc))&&void 0!==e?e:{}}function Qc(e={}){const t=o(Yc);return t?{disabled:t.disabled,id:t.id,required:t.required,validationStatus:t.validationStatus,"aria-describedby":[t.validationMessageId,t.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const ef=d({});function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tf.apply(this,arguments)}const rf=b.input.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1ga3qj3-0"})(["",";border-radius:",";transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&::before{width:var(--base-size-16,16px);height:var(--base-size-16,16px);visibility:hidden;content:'';background-color:",";transition:visibility 0s linear 230ms;clip-path:inset(var(--base-size-16,16px) 0 0 0);mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');mask-size:75%;mask-repeat:no-repeat;mask-position:center;animation:checkmarkOut 80ms cubic-bezier(0.65,0,0.35,1) forwards;}&:checked,&:indeterminate{background:",";border-color:",";&::before{animation:checkmarkIn 80ms cubic-bezier(0.65,0,0.35,1) forwards 80ms;}}&:checked{transition:background-color,border-color 80ms cubic-bezier(0.32,0,0.67,0) 0ms;&::before{visibility:visible;transition:visibility 0s linear 0s;}&:disabled{cursor:not-allowed;background-color:",";border-color:",";opacity:1;&::before{background-color:",";}}@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}}&:indeterminate{background:",";&::before{mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');visibility:visible;}}",";",";@keyframes checkmarkIn{from{clip-path:inset(var(--base-size-16,16px) 0 0 0);}to{clip-path:inset(0 0 0 0);}}@keyframes checkmarkOut{from{clip-path:inset(0 0 0 0);}to{clip-path:inset(var(--base-size-16,16px) 0 0 0);}}"],ul,Sr("radii.1"),Sr("colors.fg.onEmphasis"),Sr("colors.accent.fg"),Sr("colors.accent.fg"),Sr("colors.fg.muted"),Sr("colors.fg.muted"),Sr("colors.fg.onEmphasis"),Sr("colors.accent.fg"),tn(),Jr),nf=t.forwardRef((({checked:e,indeterminate:r,disabled:n,onChange:a,sx:i,required:l,validationStatus:d,value:s,...c},f)=>{const u=qa(f),g=o(ef);return Gn((()=>{u.current&&(u.current.indeterminate=r||!1)}),[r,e,u]),t.createElement(rf,tf({type:"checkbox",disabled:n,ref:f||u,checked:!r&&e,"aria-checked":r?"mixed":e?"true":"false",sx:i,required:l,"aria-required":l?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{g.onChange&&g.onChange(e),a&&a(e)},value:s,name:s},c))}));nf.displayName="Checkbox";var af=nf;function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.apply(this,arguments)}const lf=b.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-li6bhs-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;}}"]),df=({className:e})=>t.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},t.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"}));df.displayName="ArrowIndicatorSVG";const sf=b(df).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),cf=t.forwardRef((({block:e,children:r,contrast:n,disabled:a,placeholder:o,size:i,required:l,validationStatus:d,sx:s={},...c},f)=>t.createElement($s,{block:e,contrast:n,disabled:a,size:i,validationStatus:d,sx:_r({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},s)},t.createElement(lf,of({ref:f,required:l,disabled:a,"aria-invalid":"error"===d?"true":"false","data-hasplaceholder":Boolean(o),defaultValue:null!=o?o:void 0},c),o&&t.createElement("option",{value:"",disabled:l,hidden:l},o),r),t.createElement(sf,null)))),ff=e=>t.createElement("option",e);ff.displayName="Option";const uf=e=>t.createElement("optgroup",e);uf.displayName="OptGroup";var gf=Object.assign(cf,{Option:ff,OptGroup:uf}),pf=Ae(Je,De,Re,Le,ze,Fe,We,Ze,Pe,Qe,ft,ut,gt),bf=new RegExp("^("+pf.propNames.join("|")+")$");function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mf.apply(this,arguments)}const hf={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},vf="medium",xf=({as:e="span",onClick:t,onFocus:r,tabIndex:n=-1,disabled:a})=>!a&&Boolean(r||t||n>-1||["a","button"].includes(e)),yf=ct({prop:"size",variants:{small:{fontSize:0,height:hf.small,lineHeight:hf.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:hf.medium,lineHeight:hf.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:hf.large,lineHeight:hf.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:hf.xlarge,lineHeight:hf.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),wf=b.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=>xf(e)?"pointer":"auto"),Sr("fontWeights.bold"),yf,Jr),Bf=t.forwardRef((({onRemove:e,onKeyDown:r,id:n,size:a=vf,...o},i)=>t.createElement(wf,mf({onKeyDown:t=>{r&&r(t),"Backspace"!==t.key&&"Delete"!==t.key||!e||e()},id:null==n?void 0:n.toString(),size:a},o,{ref:i}))));var kf=Bf;function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(this,arguments)}const Tf=ct({prop:"size",variants:{small:{height:hf.small,width:hf.small},medium:{height:hf.medium,width:hf.medium},large:{height:hf.large,width:hf.large},xlarge:{height:hf.xlarge,width:hf.xlarge}}}),Cf=e=>.75*parseInt(hf[e||vf],10),Sf=b.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 v(["margin-left:",";"],Sr("space.2"));default:return v(["margin-left:",";"],Sr("space.1"))}}),Sr("colors.neutral.muted"),Sr("colors.neutral.subtle"),Tf,Jr),If=({"aria-label":e,isParentInteractive:r,size:n=vf,...a})=>(delete a.children,t.createElement(Sf,Ef({as:r?"span":"button",tabIndex:r?-1:void 0,"aria-label":r?e:"Remove token",size:n},a),t.createElement(Yo,{size:Cf(n)})));If.displayName="RemoveTokenButton";var Of=If;var Nf=b("span").withConfig({displayName:"_TokenTextContainer__TokenTextContainer",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;}}"]);function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Af.apply(this,arguments)}const Mf=({children:e,size:r})=>t.createElement(Qr,{sx:{flexShrink:0,lineHeight:0,marginRight:r&&["large","xlarge"].includes(r)?2:1}},e);Mf.displayName="LeadingVisualContainer";const Lf=n(((e,r)=>{const{as:n,onRemove:a,id:o,leadingVisual:i,text:l,size:d=vf,hideRemoveButton:s,href:c,onClick:f,sx:u=sn,...g}=e,p=xf(e)&&Boolean(a)&&!s,b={as:n,href:c,onClick:f},m=_r({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!s&&a?0:void 0,...xf(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},u);return t.createElement(kf,Af({onRemove:a,id:null==o?void 0:o.toString(),text:l,size:d,sx:m},p?{}:b,g,{ref:r}),i?t.createElement(Mf,{size:d},t.createElement(i,null)):null,t.createElement(Nf,p?b:{},l),a&&t.createElement(cn,null," (press backspace or delete to remove)"),!s&&a?t.createElement(Of,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:d,isParentInteractive:xf(e),"aria-hidden":p?"true":"false"}):null)}));Lf.displayName="Token";var jf=Lf;function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}const Df={small:0,medium:1,large:1,xlarge:2};function zf({icon:e,leadingVisual:r,trailingVisual:n,loading:a,loaderPosition:o="auto",contrast:l,className:d,block:c,disabled:f,sx:u,tokens:g,onTokenRemove:p,tokenComponent:b=jf,preventTokenWrapping:m=!1,size:h="xlarge",hideTokenRemoveButtons:v=!1,maxHeight:x,width:y,minWidth:w,maxWidth:B,validationStatus:k,variant:E,visibleTokenCount:T,...C},S){const{onBlur:I,onFocus:O,onKeyDown:N,...A}=function(e){var t={};for(var r in e)bf.test(r)||(t[r]=e[r]);return t}(C),M=i(null);dn(S,M);const[L,j]=s(),[R,D]=s(Boolean(T)),{containerRef:z}=di({focusOutBehavior:"wrap",bindKeys:uo.ArrowHorizontal|uo.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var t;if(!L&&0!==L)return;let r=L+1;return"next"===e&&(r+=1),"previous"===e&&(r-=1),r>g.length||r<1?M.current||void 0:null===(t=z.current)||void 0===t?void 0:t.children[r]}},[L]),_=e=>{p(e),setTimeout((()=>{var e,t;const r=null===(e=z.current)||void 0===e?void 0:e.children[L||0],n=r&&_a(r)?r:Array.from((null===(t=z.current)||void 0===t?void 0:t.children)||[]).find((e=>_a(e)));var a;n?n.focus():null===(a=M.current)||void 0===a||a.focus()}),0)},P=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!T||D(!0)}),0)},H=e=>{var t;"Escape"===e.key&&(null===(t=M.current)||void 0===t||t.focus())},F=e=>{e.stopPropagation()},V=R?g.slice(0,T):g,W=a&&("leading"===o||Boolean(r&&"trailing"!==o)),$=a&&("trailing"===o||"auto"===o&&!r);return t.createElement($s,{block:c,className:d,contrast:l,disabled:f,hasLeadingVisual:Boolean(r||W),hasTrailingVisual:Boolean(n||$),width:y,minWidth:w,maxWidth:B,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[h],validationStatus:k,variant:E,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},sx:{paddingLeft:Fs,py:`calc(${Fs} / 2)`,...c?{display:"flex",width:"100%"}:{},...x?{maxHeight:x,overflow:"auto"}:{},...m?{overflow:"auto"}:{},...u}},e&&!r&&t.createElement(e,{className:"TextInput-icon"}),t.createElement(zs,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:W},"string"!=typeof r&&Is.isValidElementType(r)?t.createElement(r,null):r),t.createElement(Qr,{ref:z,display:"flex",sx:{alignItems:"center",flexWrap:m?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},t.createElement(Qr,{sx:{order:1,flexGrow:1}},t.createElement(Qs,Rf({ref:M,disabled:f,onFocus:e=>{O&&O(e),j(void 0),T&&D(!1)},onBlur:e=>{I&&I(e),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!T||D(!0)}),0)},onKeyDown:e=>{var t;if(N&&N(e),null!==(t=M.current)&&void 0!==t&&t.value)return;const r=g[g.length-1];"Backspace"===e.key&&r&&(_(r.id),M.current&&(M.current.value=`${r.text} `),setTimeout((()=>{var e;null===(e=M.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"},"aria-invalid":"error"===k?"true":"false"},A))),V.map((({id:e,...r},n)=>{return t.createElement(b,Rf({disabled:f,key:e,onFocus:(a=n,()=>{f||j(a)}),onBlur:P,onKeyUp:H,onClick:F,isSelected:L===n,onRemove:()=>{_(e)},hideRemoveButton:f||v,size:h,tabIndex:0},r));var a})),R&&g.length-V.length?t.createElement(Gi,{color:"fg.muted",fontSize:Df[h]},"+",g.length-V.length):null),t.createElement(zs,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:$},"string"!=typeof n&&Is.isValidElementType(n)?t.createElement(n,null):n))}zf.displayName="TextInputWithTokensInnerComponent";const _f=t.forwardRef(zf);_f.displayName="TextInputWithTokens";var Pf=_f;function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(this,arguments)}const Ff=b.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&&v(["resize:",";"],e.resize)),(e=>e.disabled&&v(["resize:none;"])),Jr),Vf=t.forwardRef((({value:e,disabled:r,sx:n,required:a,validationStatus:o,rows:i=7,cols:l=30,resize:d="both",block:s,contrast:c,...f},u)=>t.createElement(Ws,{sx:n,validationStatus:o,disabled:r,block:s,contrast:c},t.createElement(Ff,Hf({value:e,resize:d,required:a,"aria-required":a?"true":"false","aria-invalid":"error"===o?"true":"false",ref:u,disabled:r,rows:i,cols:l},f)))));Vf.displayName="Textarea";var Wf=Vf;const $f=({children:e,disabled:r,id:n,sx:a})=>t.createElement(Gi,{color:r?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:n,sx:a},e);$f.displayName="InputCaption";var Zf=$f;const Gf=({children:e,sx:r,id:n})=>{const{captionId:a,disabled:o}=Jc();return t.createElement(Zf,{id:n||a||"",disabled:o,sx:r},e)};Gf.displayName="FormControlCaption";var Uf=Gf;function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}const Kf=({children:e,disabled:r,htmlFor:n,id:a,required:o,visuallyHidden:i,sx:l,as:d="label",...s})=>t.createElement(cn,qf({isVisible:!i,as:d,htmlFor:n,id:a,sx:{fontWeight:"bold",fontSize:1,display:"block",color:r?"fg.muted":"fg.default",cursor:r?"not-allowed":"pointer",alignSelf:"flex-start",...l}},s),o?t.createElement(Qr,{display:"flex",as:"span"},t.createElement(Qr,{mr:1},e),t.createElement("span",null,"*")):e);Kf.displayName="InputLabel";var Yf=Kf;const Xf=({as:e,children:r,htmlFor:n,id:a,visuallyHidden:o,sx:i,...l})=>{const{disabled:d,id:s,required:c}=Jc(),f="legend"===e||"span"===e?{as:e,id:a,visuallyHidden:o,required:c,disabled:d,sx:i,...l}:{as:e,id:a,visuallyHidden:o,htmlFor:n||s,required:c,disabled:d,sx:i,...l};return t.createElement(Yf,f,r)};Xf.displayName="FormControlLabel";var Jf=Xf;const Qf=({children:e,sx:r})=>{const{disabled:n,captionId:a}=Jc();return t.createElement(Qr,{color:n?"fg.muted":"fg.default",sx:{"> *":{minWidth:Sr(a?"fontSizes.4":"fontSizes.2"),minHeight:Sr(a?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...r},ml:2},e)};Qf.displayName="FormControlLeadingVisual";var eu=Qf;const tu=({children:e,variant:r,sx:n,id:a})=>{const{validationMessageId:o}=Jc();return t.createElement(tl,{validationStatus:r,id:a||o||"",sx:n},e)};tu.displayName="FormControlValidation";var ru=tu;const nu=t.forwardRef((({children:e,disabled:r,layout:n="vertical",id:a,required:i,sx:l},d)=>{var s,c,f;const[u,g]=_n(e,{caption:Uf,label:Jf,leadingVisual:eu,validation:ru}),p=[pc,af,ml,gf,rc,Pf,Wf],b=o(Ui).disabled||r,m=An(a),h=u.validation?`${m}-validationMessage`:void 0,v=u.caption?`${m}-caption`:void 0,x=null===(s=u.validation)||void 0===s?void 0:s.props.variant,y=g.find((e=>p.some((r=>t.isValidElement(e)&&e.type===r)))),w=t.isValidElement(y)&&y.props,B=t.isValidElement(y)&&(y.type===af||y.type===ml);y&&(null!=w&&w.id&&console.warn("instead of passing the 'id' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=w&&w.disabled&&console.warn("instead of passing the 'disabled' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=w&&w.required&&console.warn("instead of passing the 'required' prop directly to the input component, it should be passed to the parent component, <FormControl>")),u.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.`),B?(u.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),g.find((e=>{var r;return t.isValidElement(e)&&(null===(r=e.props)||void 0===r?void 0:r.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):u.leadingVisual&&console.warn("A leading visual is only rendered for a checkbox or radio form control. If you want to render a leading visual inside of your input, check if your input supports a leading visual.");const k=null===(c=u.label)||void 0===c?void 0:c.props.visuallyHidden;return t.createElement(Xc,{value:{captionId:v,disabled:b,id:m,required:i,validationMessageId:h}},B||"horizontal"===n?t.createElement(Qr,{ref:d,display:"flex",alignItems:u.leadingVisual?"center":void 0,sx:l},t.createElement(Qr,{sx:{"> input":{marginLeft:0,marginRight:0}}},t.isValidElement(y)&&t.cloneElement(y,{id:m,disabled:b,"aria-describedby":v}),g.filter((e=>t.isValidElement(e)&&![af,ml].some((t=>e.type===t))))),u.leadingVisual&&t.createElement(Qr,{color:b?"fg.muted":"fg.default",sx:{"> *":{minWidth:u.caption?Sr("fontSizes.4"):Sr("fontSizes.2"),minHeight:u.caption?Sr("fontSizes.4"):Sr("fontSizes.2"),fill:"currentColor"}},ml:2},u.leadingVisual),null===(f=u.label)||void 0===f||!f.props.visuallyHidden||u.caption?t.createElement(Qr,{display:"flex",flexDirection:"column",ml:2},u.label,u.caption):t.createElement(t.Fragment,null,u.label,u.caption)):t.createElement(Qr,{ref:d,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...l}},u.label,t.isValidElement(y)&&t.cloneElement(y,Object.assign({id:m,required:i,disabled:b,validationStatus:x,"aria-describedby":[h,v].filter(Boolean).join(" ")},y.props)),g.filter((e=>t.isValidElement(e)&&!p.some((t=>e.type===t)))),u.validation?t.createElement(Zi,{show:!0},u.validation):null,u.caption))}));var au=Object.assign(nu,{Caption:Uf,Label:Jf,LeadingVisual:eu,Validation:ru});function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(this,arguments)}const iu=({children:e,disabled:r,onChange:n,...a})=>{const o=t.Children.toArray(e).filter((e=>t.isValidElement(e)&&e.type===au)).map((e=>t.isValidElement(e)?e.props.children:[])).flat(),i=t.Children.toArray(o).filter((e=>t.isValidElement(e)&&e.type===af)).map((e=>t.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[l,d]=Qo(i);return t.createElement(ef.Provider,{value:{disabled:r,onChange:e=>{n&&((e=>{const{value:t,checked:r}=e.currentTarget;d(r?[...l.current||[],t]:(l.current||[]).filter((e=>e!==t)))})(e),n(l.current||[],e))}}},t.createElement(ll,ou({disabled:r},a),e))};iu.displayName="CheckboxGroup";var lu=Object.assign(iu,{Caption:Ki,Label:Xi,Validation:nl});const du={small:56,medium:96,large:128},su=b.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"),Sr("colors.canvas.default"),Sr("shadows.shadow.medium"),(({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:du[t];return{width:r,height:r}}),Jr),cu=b(li).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);cu.displayName="CircleBadge.Icon";var fu=Object.assign(su,{Icon:cu});const uu=b.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],Jr);uu.displayName="Details";var gu=uu;const pu=()=>null;function bu(e){const t=e;return t.tabIndex>=0&&!t.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(t)}function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mu.apply(this,arguments)}const hu=()=>null,vu=b.div.withConfig({displayName:"Dialog__DialogBase",componentId:"sc-13rdxb7-0"})(["box-shadow:",";border-radius:",";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:",";width:",";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}",";"],Sr("shadows.shadow.large"),Sr("radii.2"),Sr("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),Jr),xu=b(Qr).withConfig({displayName:"Dialog__DialogHeaderBase",componentId:"sc-13rdxb7-1"})(["border-radius:"," "," 0px 0px;border-bottom:1px solid ",";display:flex;@media screen and (max-width:750px){border-radius:0px;}",";"],Sr("radii.2"),Sr("radii.2"),Sr("colors.border.default"),Jr);function yu({theme:e,children:r,backgroundColor:n="canvas.subtle",...a}){return t.Children.toArray(r).every((e=>"string"==typeof e))&&(r=t.createElement(Gi,{theme:e,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},r)),t.createElement(xu,mu({theme:e,p:3,backgroundColor:n},a),r)}yu.displayName="DialogHeader";const wu=b.span.withConfig({displayName:"Dialog__Overlay",componentId:"sc-13rdxb7-2"})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:",";}"],Sr("colors.primer.canvas.backdrop")),Bu=n((({children:e,onDismiss:r=hu,isOpen:n,initialFocusRef:a,returnFocusRef:o,...d},s)=>{const c=i(null),u=i(null);dn(s,u);const g=i(null),p=()=>{r(),o&&o.current&&o.current.focus()},{getDialogProps:b}=function({modalRef:e,overlayRef:t,isOpen:r,onDismiss:n=pu,initialFocusRef:a,closeButtonRef:o}){const i=f((r=>{e.current&&t.current&&r.target instanceof Node&&!e.current.contains(r.target)&&t.current.contains(r.target)&&n()}),[n,e,t]);l((()=>{if(r)return document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}}),[r,i]),l((()=>{r&&(a&&a.current?a.current.focus():o&&o.current&&o.current.focus())}),[r,a,o]);const d=f(((t,r)=>{if(e.current){const n=Array.from(e.current.querySelectorAll("*")).filter(bu);if(0===n.length)return;t.preventDefault();const a=document.activeElement;if(!a)return;const o=n.indexOf(a)+r,i=1===r?0:n.length-1;return n[o]||n[i]}}),[e]),s=f((e=>{const t=e.shiftKey?-1:1,r=d(e,t);r&&r.focus()}),[d]),c=f((e=>{"Tab"===e.key&&s(e)}),[s]);return Ua((e=>{r&&(n(),e.preventDefault())}),[r,n]),{getDialogProps:()=>({onKeyDown:c})}}({modalRef:u,onDismiss:p,isOpen:n,initialFocusRef:a,closeButtonRef:g,returnFocusRef:o,overlayRef:c});return n?t.createElement(t.Fragment,null,t.createElement(wu,{ref:c}),t.createElement(vu,mu({tabIndex:-1,ref:u,role:"dialog","aria-modal":"true"},d,b()),t.createElement(yn,{icon:Yo,ref:g,onClick:p,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));yu.propTypes={...Qr.propTypes},yu.displayName="Dialog.Header",Bu.displayName="Dialog";var ku=Object.assign(Bu,{Header:yu});function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(this,arguments)}const Tu=ct({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"}}}}),Cu=b.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:",";}",";",";"],Sr("colors.fg.default"),Sr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Sr("radii.2")),(e=>e.full?"-1px":"0"),Sr("space.2"),Tu,Jr),Su=t.forwardRef((function({as:e,variant:r="default",...n},a){return t.createElement(Cu,Eu({ref:a,as:e,variant:r},n))}));var Iu=Su;const Ou=b.header.withConfig({displayName:"Header",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;",";"],Sr("space.3"),Sr("fontSizes.1"),Sr("lineHeights.default"),Sr("colors.header.text"),Sr("colors.header.bg"),Jr),Nu=b.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Sr("space.3"),(({full:e})=>e&&v(["flex:auto;"])),Jr);Nu.displayName="Header.Item";const Au=b.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__HeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Sr("fontWeights.bold"),Sr("colors.header.logo"),Sr("colors.header.text"),Jr);Au.displayName="Header.Link";var Mu=Object.assign(Ou,{Link:Au,Item:Nu});function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lu.apply(this,arguments)}const ju=b.span.withConfig({displayName:"Label__StyledLabel",componentId:"sc-1dgcne-0"})(["align-items:center;background-color:transparent;border-width:1px;border-radius:999px;border-style:solid;display:inline-flex;font-weight:",";font-size:",";line-height:1;white-space:nowrap;",";",";",";"],Sr("fontWeights.bold"),Sr("fontSizes.0"),ct({variants:{default:{borderColor:"border.default"},primary:{borderColor:"fg.default"},secondary:{borderColor:"border.muted",color:"fg.muted"},accent:{borderColor:"accent.emphasis",color:"accent.fg"},success:{borderColor:"success.emphasis",color:"success.fg"},attention:{borderColor:"attention.emphasis",color:"attention.fg"},severe:{borderColor:"severe.emphasis",color:"severe.fg"},danger:{borderColor:"danger.emphasis",color:"danger.fg"},done:{borderColor:"done.emphasis",color:"done.fg"},sponsors:{borderColor:"sponsors.emphasis",color:"sponsors.fg"}}}),ct({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),Jr),Ru=t.forwardRef((function({as:e,size:r="small",variant:n="default",...a},o){return t.createElement(ju,Lu({as:e,size:r,variant:n,ref:o},a))}));var Du=Ru;function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zu.apply(this,arguments)}const _u=b.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;}",";"],Sr("space.1"),Jr),Pu=b.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;}"]),Hu=({collapseButtonRef:e,collapseInlineExpandedChildren:r,expandButtonRef:n,hiddenItemIds:a,isOverflowShown:o,showAllTokensInline:i,totalLength:l})=>o?t.createElement(hn,{ref:e,onClick:r,size:"small",variant:"invisible"},"Show less"):a.length?t.createElement(hn,{ref:n,variant:"invisible",size:"small",onClick:i},t.createElement(cn,null,"Show all ",l),t.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,Fu=({children:e,closeOverflowOverlay:r,expandButtonRef:n,hiddenItemIds:a,isOverflowShown:o,openOverflowOverlay:i,overlayPaddingPx:l,overlayWidth:d,totalLength:s})=>a.length?t.createElement(ud,{open:o,onOpen:i,onClose:r,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:n,anchorOffset:-1*l,alignmentOffset:-1*l,renderAnchor:e=>t.createElement(hn,zu({variant:"invisible",size:"small"},e,{ref:n}),t.createElement(cn,null,"Show all ",s),t.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},t.createElement(Qr,{alignItems:"flex-start",display:"flex",width:d,padding:`${l}px`},t.createElement(Qr,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),t.createElement(yn,{onClick:r,icon:Yo,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,Vu=({children:e,visibleChildCount:r,overflowStyle:n="overlay",sx:a})=>{const o=t.useRef(null),i=t.useRef(null),l=t.useRef(void 0),[d,s]=t.useState({}),[c,f]=t.useState(!1),[u,g]=t.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:p}=Wr(),b=parseInt(Sr("space.2")(p),10),m=Object.keys(d).filter((e=>!d[e])),h=m.length&&"overlay"===n?((e,t,r)=>{var n,a;return r+e.right-((null===(n=t.current)||void 0===n||null===(a=n.getBoundingClientRect())||void 0===a?void 0:a.left)||0)})(u,o,b):void 0,v=t.useCallback((e=>{if(null!==e){const t=e.getBoundingClientRect();t.width===u.width&&t.right===u.right||g(t),v.current=e}}),[u]),x=t.useCallback((e=>{var t;const r=(null===(t=o.current)||void 0===t?void 0:t.children)||[],n={};for(const t of r){const r=t.getAttribute("data-index");r&&(n[r]=parseInt(r,10)<e)}s(n)}),[]),y=t.useCallback((()=>f(!0)),[f]),w=t.useCallback((()=>{f(!1)}),[f]),B=t.useCallback((()=>{f(!1),r&&"number"==typeof r&&x(r),setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}),10)}),[v,x,r]),k=t.useCallback((()=>{s({}),f(!0)}),[s,f]);return t.useEffect((()=>{if(r&&!c){if("auto"===r){const t=new IntersectionObserver((e=>{const t={};for(const r of e){const e=r.target.getAttribute("data-index");e&&(t[e]=r.isIntersecting)}s((e=>({...e,...t})))}),{root:o.current,rootMargin:`0px -${u.width}px 0px 0px`,threshold:1});for(const r of(null===(e=o.current)||void 0===e?void 0:e.children)||[]){var e;r.getAttribute("data-index")&&t.observe(r)}return()=>t.disconnect()}x(r)}}),[u,r,x,c]),t.useEffect((()=>{"overlay"!==n&&m.length&&(l.current=parseInt(m[0],10))}),[m,n,c]),t.useEffect((()=>{if("overlay"===n)return;const e=document.querySelector(`[data-index="${l.current}"]`),t=e?za(e):null;var r;c&&(t?t.focus():null===(r=i.current)||void 0===r||r.focus())}),[n,c]),r?t.createElement(_u,{ref:o,"data-overflow":"inline"===n&&c?"inline":void 0,sx:a},t.Children.map(e,((e,r)=>t.createElement(Pu,{"data-index":r,className:m.includes(r.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===n?t.createElement(Hu,{collapseButtonRef:i,collapseInlineExpandedChildren:B,expandButtonRef:v,hiddenItemIds:m,isOverflowShown:c,showAllTokensInline:k,totalLength:t.Children.toArray(e).length}):t.createElement(Fu,{closeOverflowOverlay:w,expandButtonRef:v,hiddenItemIds:m,isOverflowShown:c,openOverflowOverlay:y,overlayPaddingPx:b,overlayWidth:h,totalLength:t.Children.toArray(e).length},e)):t.createElement(_u,{"data-overflow":"inline",sx:a},e)};Vu.displayName="LabelGroup";var Wu=Vu;function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$u.apply(this,arguments)}const Zu=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),Gu=b.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(Jr),Uu=t.forwardRef((({children:e,...r},n)=>t.createElement(Gu,$u({},r,{ref:n}),t.createElement(ad,null,e))));Uu.displayName="NavList";const qu=t.forwardRef((({"aria-current":e,children:r,defaultOpen:n,sx:a=sn,...o},i)=>{const{depth:l}=t.useContext(Xu),d=t.Children.toArray(r).find((e=>p(e)&&e.type===Ju)),s=t.Children.toArray(r).filter((e=>!p(e)||e.type!==Ju));return!p(d)&&n&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),d&&p(d)?t.createElement(Yu,{subNav:d,depth:l,defaultOpen:n,sx:a},s):t.createElement(ad.LinkItem,$u({ref:i,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:_r(Zu(l),a)},o),r)}));qu.displayName="NavList.Item";const Ku=t.createContext({buttonId:"",subNavId:"",isOpen:!1});function Yu({children:e,subNav:r,depth:n,defaultOpen:a,sx:o=sn}){var i;const l=An(),d=An(),[s,c]=t.useState(null!==(i=a||null)&&void 0!==i&&i),f=t.useRef(null),[u,g]=t.useState(!1);return Gn((()=>{if(f.current){f.current.querySelector("[aria-current]:not([aria-current=false])")&&(g(!0),c(!0))}}),[r,l]),t.createElement(Ku.Provider,{value:{buttonId:l,subNavId:d,isOpen:s}},t.createElement(Qr,{as:"li","aria-labelledby":l,sx:{listStyle:"none"}},t.createElement(ad.Item,{as:"button",id:l,"aria-expanded":s,"aria-controls":d,active:!s&&u,onClick:()=>c((e=>!e)),sx:_r({...Zu(n),fontWeight:u?"bold":null},o)},e,t.createElement(ad.TrailingVisual,null,t.createElement(li,{icon:Ro,sx:{transform:s?"rotate(180deg)":"rotate(0deg)"}}))),t.createElement("div",{ref:f},r)))}Yu.displayName="ItemWithSubNav";const Xu=t.createContext({depth:0}),Ju=({children:e,sx:r=sn})=>{const{buttonId:n,subNavId:a,isOpen:o}=t.useContext(Ku),{depth:i}=t.useContext(Xu);return n&&a||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):t.createElement(Xu.Provider,{value:{depth:i+1}},t.createElement(Qr,{as:"ul",id:a,"aria-labelledby":n,sx:_r({padding:0,margin:0,display:o?"block":"none"},r)},e))};Ju.displayName="SubNav",Ju.displayName="NavList.SubNav";const Qu=ad.LeadingVisual;Qu.displayName="NavList.LeadingVisual";const eg=ad.TrailingVisual;eg.displayName="NavList.TrailingVisual";const tg=ad.Divider;tg.displayName="NavList.Divider";const rg={},ng=({title:e,children:r,sx:n=rg,...a})=>t.createElement(t.Fragment,null,t.createElement(ad.Divider,{sx:{"&:first-child":{display:"none"}}}),t.createElement(ad.Group,$u({},a,{title:e,sx:n}),r));ng.displayName="NavList.Group";const ag=Object.assign(Uu,{Item:qu,SubNav:Ju,LeadingVisual:Qu,TrailingVisual:eg,Divider:tg,Group:ng});var og=b.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Sr("space.4"),Sr("space.4"),Sr("space.4"),Sr("colors.border.default"),Jr);function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}const lg=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((t=>!e[t])):e?[]:Object.keys(Rn),dg=b.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;}",";&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:",";cursor:default;background-color:transparent;border-color:transparent;font-size:inherit;font-family:inherit;padding-top:inherit;padding-bottom:inherit;}&[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 );}}"],Sr("colors.fg.default"),Sr("space.1"),Sr("radii.2"),Sr("colors.actionListItem.default.hoverBg"),tn(0),Sr("colors.border.muted"),Sr("colors.accent.fg"),Sr("colors.fg.onEmphasis"),Sr("colors.accent.emphasis"),Sr("colors.primer.fg.disabled"),Sr("colors.primer.fg.disabled"),Sr("space.1"),Sr("space.1"));function sg({theme:e,pageCount:r,currentPage:n,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d}){const s=t.useCallback((e=>t=>a(t,e)),[a]),c=t.useMemo((()=>function(e,t,r,n,a){const o=[];if(r){const r=[],i=t=>{t>=1&&t<=e&&r.push(t)};let l=t-a,d=t+a;if(l<1&&d>e)l=1,d=e;else if(l<1)for(;l<1;)l++,d++;else if(d>e)for(;d>e;)l--,d--;for(let t=1;t<=n;t++){const r=e-(t-1);t>=l?d++:i(t),r<=d?l--:i(r)}for(let e=l;e<=d;e++)i(e);const s=r.slice().sort(((e,t)=>e-t)).filter(((e,t,r)=>!t||e!==r[t-1]));for(let e=0;e<s.length;e++){const r=s[e],n=r===t,a=r-s[e-1],i=-1!=r-s[e+1];0===e?(1!==r&&o.push({type:"BREAK",num:1}),o.push({type:"NUM",num:r,selected:n,precedesBreak:i})):1===a?o.push({type:"NUM",num:r,selected:n,precedesBreak:i}):(o.push({type:"BREAK",num:r-1}),o.push({type:"NUM",num:r,selected:n,precedesBreak:!1}))}const c=o[o.length-1];"NUM"===c.type&&c.num!==e&&o.push({type:"BREAK",num:e})}const i={type:"NEXT",num:t+1,disabled:t===e};return[{type:"PREV",num:t-1,disabled:1===t},...o,i]}(r,n,!!l,i,d)),[r,n,l,i,d]),f=t.useMemo((()=>c.map((r=>{const{props:n,key:a,content:i}=function(e,t,r){const n={};let a="",o="";switch(e.type){case"PREV":o="page-prev",a="Previous",e.disabled?Object.assign(n,{as:"button","aria-disabled":"true"}):Object.assign(n,{rel:"prev",href:t(e.num),"aria-label":"Previous Page",onClick:r});break;case"NEXT":o="page-next",a="Next",e.disabled?Object.assign(n,{as:"button","aria-disabled":"true"}):Object.assign(n,{rel:"next",href:t(e.num),"aria-label":"Next Page",onClick:r});break;case"NUM":o=`page-${e.num}`,a=String(e.num),Object.assign(n,{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:r,"aria-current":e.selected?"page":void 0});break;case"BREAK":o=`page-${e.num}-break`,a="…",Object.assign(n,{as:"span",role:"presentation"})}return{props:n,key:o,content:a}}(r,o,s(r.num));return t.createElement(dg,ig({},n,{key:a,theme:e}),i)}))),[c,o,s,e]);return f}const cg=b.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Rn).map((e=>`\n @media (${Rn[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(""),Jr);function fg({theme:e,pageCount:r,currentPage:n,onPageChange:a=gg,hrefBuilder:o=ug,marginPageCount:i=1,showPages:l=!0,surroundingPageCount:d=2,...s}){const c=sg({theme:e,pageCount:r,currentPage:n,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d});return t.createElement(cg,ig({"aria-label":"Pagination"},s,{theme:e}),t.createElement(Qr,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":lg(l).join(" ")},c))}function ug(e){return`#${e}`}function gg(){}function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pg.apply(this,arguments)}function bg(e){const r=t.useContext(y),{bg:n,border:a,borderColor:o,theme:i,sx:l}=e,{caret:d,children:s,...c}=e,{bg:f,backgroundColor:u,...g}=l||{},p=i||r,b=n||f||u,m={bg:n||(null==l?void 0:l.bg)||(null==l?void 0:l.backgroundColor),borderColor:o||(null==l?void 0:l.borderColor),borderWidth:a,location:d,theme:p};return t.createElement(Qr,pg({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},c,{sx:{...g,"--custom-bg":Sr(`colors.${b}`)({theme:p}),backgroundImage:b?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${p.colors.canvas.default}, ${p.colors.canvas.default})`:void 0,position:"relative"}}),s,t.createElement(Uc,m))}fg.displayName="Pagination",bg.displayName="PointerBox";const mg=b.div.attrs((({className:e,caret:t="top"})=>({className:Ns(e,`caret-pos--${t}`)}))).withConfig({displayName:"Popover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),Jr),hg=b.div.withConfig({displayName:"Popover__PopoverContent",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);}}",";"],Sr("colors.border.default"),Sr("radii.2"),Sr("space.4"),Sr("colors.canvas.overlay"),Sr("space.3"),Sr("space.2"),Sr("colors.border.default"),Sr("space.2"),Sr("colors.canvas.overlay"),mg,mg,mg,Sr("space.3"),Sr("colors.border.default"),Sr("colors.canvas.overlay"),mg,mg,mg,mg,Sr("space.4"),Sr("space.4"),mg,mg,mg,mg,mg,mg,Sr("space.2"),Sr("space.2"),mg,mg,mg,Sr("space.3"),Sr("colors.border.default"),Sr("colors.canvas.overlay"),mg,mg,mg,Sr("space.3"),Sr("colors.border.default"),Sr("colors.canvas.overlay"),mg,mg,Sr("space.4"),mg,mg,Sr("space.3"),Sr("space.3"),Jr);hg.displayName="Popover.Content";var vg=Object.assign(mg,{Content:hg});function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xg.apply(this,arguments)}const yg=b.span.withConfig({displayName:"ProgressBar__Item",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";",";"],(e=>e.progress?`${e.progress}%`:0),Sr("colors.success.emphasis"),Jr);yg.displayName="ProgressBar.Item";const wg={small:"5px",large:"10px",default:"8px"},Bg=b.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Sr("colors.border.default"),Sr("radii.1"),(e=>wg[e.barSize||"default"]),pt,Jr),kg=n((({progress:e,bg:r="success.emphasis",barSize:n="default",children:a,...o},i)=>{if(a&&e)throw new Error("You should pass `progress` or children, not both.");const l="string"==typeof e?parseInt(e,10):e,d={"aria-valuenow":l?Math.round(l):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!l&&100!==l};return t.createElement(Bg,xg({ref:i,role:"progressbar",barSize:n},d,o),null!=a?a:t.createElement(yg,{progress:e,sx:{backgroundColor:r}}))}));kg.displayName="ProgressBar";const Eg=Object.assign(kg,{Item:yg});var Tg,Cg=function(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},Sg=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const Ig="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const t=[];for(const r of e)t.push({type:"element",value:r}),t.push({type:"literal",value:", "});return t.slice(0,-1)}},Og=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Ng={minimumIntegerDigits:2};class Ag{constructor(e,t={}){Tg.set(this,void 0);let r=String(t.style||"short");"long"!==r&&"short"!==r&&"narrow"!==r&&"digital"!==r&&(r="short");let n="digital"===r?"numeric":r;const a=t.hours||n;n="2-digit"===a?"numeric":a;const o=t.minutes||n;n="2-digit"===o?"numeric":o;const i=t.seconds||n;n="2-digit"===i?"numeric":i;const l=t.milliseconds||n;Cg(this,Tg,{locale:e,style:r,years:t.years||"digital"===r?"short":r,yearsDisplay:"always"===t.yearsDisplay?"always":"auto",months:t.months||"digital"===r?"short":r,monthsDisplay:"always"===t.monthsDisplay?"always":"auto",weeks:t.weeks||"digital"===r?"short":r,weeksDisplay:"always"===t.weeksDisplay?"always":"auto",days:t.days||"digital"===r?"short":r,daysDisplay:"always"===t.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===t.hoursDisplay||"digital"===r?"always":"auto",minutes:o,minutesDisplay:"always"===t.minutesDisplay||"digital"===r?"always":"auto",seconds:i,secondsDisplay:"always"===t.secondsDisplay||"digital"===r?"always":"auto",milliseconds:l,millisecondsDisplay:"always"===t.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return Sg(this,Tg,"f")}formatToParts(e){const t=[],r=Sg(this,Tg,"f"),n=r.style,a=r.locale;for(const[n,o]of Og){const i=e[n];if("auto"===r[`${n}Display`]&&!i)continue;const l=r[n],d="2-digit"===l?Ng:"numeric"===l?{}:{style:"unit",unit:o,unitDisplay:l};t.push(new Intl.NumberFormat(a,d).format(i))}return new Ig(a,{type:"unit",style:"digital"===n?"short":n}).formatToParts(t)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Tg=new WeakMap;const Mg=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Lg=["year","month","week","day","hour","minute","second","millisecond"];class jg{constructor(e=0,t=0,r=0,n=0,a=0,o=0,i=0,l=0){this.years=e,this.months=t,this.weeks=r,this.days=n,this.hours=a,this.minutes=o,this.seconds=i,this.milliseconds=l,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 jg(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 t;if("string"==typeof e){const r=String(e).trim(),n=r.startsWith("-")?-1:1,a=null===(t=r.match(Mg))||void 0===t?void 0:t.slice(1).map((e=>(Number(e)||0)*n));return a?new jg(...a):new jg}if("object"==typeof e){const{years:t,months:r,weeks:n,days:a,hours:o,minutes:i,seconds:l,milliseconds:d}=e;return new jg(t,r,n,a,o,i,l,d)}throw new RangeError("invalid duration")}static compare(e,t){const r=Date.now(),n=Math.abs(Rg(r,jg.from(e)).getTime()-r),a=Math.abs(Rg(r,jg.from(t)).getTime()-r);return n>a?-1:n<a?1:0}toLocaleString(e,t){return new Ag(e,t).format(this)}}function Rg(e,t){const r=new Date(e);return r.setFullYear(r.getFullYear()+t.years),r.setMonth(r.getMonth()+t.months),r.setDate(r.getDate()+7*t.weeks+t.days),r.setHours(r.getHours()+t.hours),r.setMinutes(r.getMinutes()+t.minutes),r.setSeconds(r.getSeconds()+t.seconds),r}function Dg(e,{relativeTo:t=Date.now()}={}){if(t=new Date(t),e.blank)return e;const r=e.sign;let n=Math.abs(e.years),a=Math.abs(e.months),o=Math.abs(e.weeks),i=Math.abs(e.days),l=Math.abs(e.hours),d=Math.abs(e.minutes),s=Math.abs(e.seconds),c=Math.abs(e.milliseconds);c>=900&&(s+=Math.round(c/1e3)),(s||d||l||i||o||a||n)&&(c=0),s>=55&&(d+=Math.round(s/60)),(d||l||i||o||a||n)&&(s=0),d>=55&&(l+=Math.round(d/60)),(l||i||o||a||n)&&(d=0),i&&l>=12&&(i+=Math.round(l/24)),!i&&l>=21&&(i+=Math.round(l/24)),(i||o||a||n)&&(l=0);const f=t.getFullYear();let u=t.getMonth();const g=t.getDate();return(i>=27||n+a&&i)&&(t.setDate(g+i*r),a+=Math.abs(t.getFullYear()>=f?t.getMonth()-u:t.getMonth()-u-12),a&&(i=0),u=t.getMonth()),i>=6&&(o+=Math.round(i/7)),(o||a||n)&&(i=0),o>=4&&(a+=Math.round(o/4)),(a||n)&&(o=0),(a>=11||n&&a)&&(t.setMonth(t.getMonth()+a*r),n+=Math.abs(f-t.getFullYear())),n&&(a=0),new jg(n*r,a*r,o*r,i*r,l*r,d*r,s*r,c*r)}var zg,_g,Pg,Hg,Fg,Vg,Wg,$g,Zg,Gg,Ug,qg=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},Kg=function(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r};const Yg=globalThis.HTMLElement||null,Xg=new jg,Jg=new jg(0,0,0,0,0,1);class Qg extends Event{constructor(e,t,r,n){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=t,this.oldTitle=r,this.newTitle=n}}function ep(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const t=e.precision;if("second"===t)return 1e3;if("minute"===t)return 6e4}const t=Math.abs(Date.now()-e.date.getTime());return t<6e4?1e3:t<36e5?6e4:36e5}const tp=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 t=e.date;if(t&&t.getTime()){const t=ep(e),r=Date.now()+t;r<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),t),this.time=r)}}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 t of this.elements)e=Math.min(e,ep(t)),t.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class rp extends Yg{constructor(){super(...arguments),zg.add(this),_g.set(this,!1),Pg.set(this,!1),Fg.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Ug.set(this,null)}static define(e="relative-time",t=customElements){return t.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","datetime","lang","title"]}get onRelativeTimeUpdated(){return qg(this,Ug,"f")}set onRelativeTimeUpdated(e){qg(this,Ug,"f")&&this.removeEventListener("relative-time-updated",qg(this,Ug,"f")),Kg(this,Ug,"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 t=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===t||"2-digit"===t)return t}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let t=this.getAttribute("month");if(""!==t)return null!=t||(t="datetime"===e?this.formatStyle:"short"),"numeric"===t||"2-digit"===t||"short"===t||"long"===t||"narrow"===t?t:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const t=this.getAttribute("year");return"numeric"===t||"2-digit"===t?t: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&&(t=e,Mg.test(t))?e:"P30D";var t}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 Lg.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 t=this.format;return"elapsed"===t||"micro"===t?"narrow":"datetime"===t?"short":"long"}set formatStyle(e){this.setAttribute("format-style",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(){tp.unobserve(this)}attributeChangedCallback(e,t,r){t!==r&&("title"===e&&Kg(this,_g,null!==r&&(this.date&&qg(this,zg,"m",Vg).call(this,this.date))!==r,"f"),qg(this,Pg,"f")||"title"===e&&qg(this,_g,"f")||Kg(this,Pg,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=qg(this,Fg,"f").textContent||this.textContent||"",t=this.getAttribute("title")||"";let r=t;const n=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!n)return void(qg(this,Fg,"f").textContent=e);const a=Date.now();qg(this,_g,"f")||(r=qg(this,zg,"m",Vg).call(this,n)||"",r&&this.setAttribute("title",r));const o=function(e,t="second",r=Date.now()){const n=e.getTime()-r;if(0===n)return new jg;const a=Math.sign(n),o=Math.abs(n),i=Math.floor(o/1e3),l=Math.floor(i/60),d=Math.floor(l/60),s=Math.floor(d/24),c=Math.floor(s/30),f=Math.floor(c/12),u=Lg.indexOf(t)||Lg.length;return new jg(u>=0?f*a:0,u>=1?(c-12*f)*a:0,0,u>=3?(s-30*c)*a:0,u>=4?(d-24*s)*a:0,u>=5?(l-60*d)*a:0,u>=6?(i-60*l)*a:0,u>=7?(o-1e3*i)*a:0)}(n,this.precision,a),i=qg(this,zg,"m",Wg).call(this,o);let l=e;l="duration"===i?qg(this,zg,"m",$g).call(this,o):"relative"===i?qg(this,zg,"m",Zg).call(this,o):qg(this,zg,"m",Gg).call(this,n),l?qg(this,Fg,"f").textContent=l:this.shadowRoot===qg(this,Fg,"f")&&this.textContent&&(qg(this,Fg,"f").textContent=this.textContent),l===e&&r===t||this.dispatchEvent(new Qg(e,l,t,r)),"relative"===i||"duration"===i?tp.observe(this):tp.unobserve(this),Kg(this,Pg,!1,"f")}}_g=new WeakMap,Pg=new WeakMap,Fg=new WeakMap,Ug=new WeakMap,zg=new WeakSet,Hg=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},Vg=function(e){return new Intl.DateTimeFormat(qg(this,zg,"a",Hg),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},Wg=function(e){const t=this.format;if("datetime"===t)return"datetime";if("duration"===t)return"duration";if("elapsed"===t)return"duration";if("micro"===t)return"duration";if(("auto"===t||"relative"===t)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const t=this.tense;if("past"===t||"future"===t)return"relative";if(1===jg.compare(e,this.threshold))return"relative"}return"datetime"},$g=function(e){const t=qg(this,zg,"a",Hg),r=this.format,n=this.formatStyle,a=this.tense;let o=Xg;"micro"===r?(e=Dg(e),o=Jg,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=Jg)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=o);const i=`${this.precision}sDisplay`;return e.blank?o.toLocaleString(t,{style:n,[i]:"always"}):e.abs().toLocaleString(t,{style:n})},Zg=function(e){const t=new Intl.RelativeTimeFormat(qg(this,zg,"a",Hg),{numeric:"auto",style:this.formatStyle}),r=this.tense;"future"===r&&1!==e.sign&&(e=Xg),"past"===r&&-1!==e.sign&&(e=Xg);const[n,a]=function(e,t){const r=Dg(e,t);if(r.blank)return[0,"second"];for(const e of Lg){if("millisecond"===e)continue;const t=r[`${e}s`];if(t)return[t,e]}return[0,"second"]}(e);return"second"===a&&n<10?t.format(0,"second"):t.format(n,a)},Gg=function(e){const t=new Intl.DateTimeFormat(qg(this,zg,"a",Hg),{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} ${t.format(e)}`.trim()};const np="undefined"!=typeof globalThis?globalThis:window;try{np.RelativeTimeElement=rp.define()}catch(op){if(!(np.DOMException&&op instanceof DOMException&&"NotSupportedError"===op.name||op instanceof ReferenceError))throw op}
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2018 Google LLC
|