1import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{t as n}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{Ft as r,H as i,Pt as a,St as o,Tt as s,V as c,_t as l,kt as u,lt as d,st as f,ut as p,xt as m,yt as h}from"./StreamlitMarkdown.Dt4WoAEs.js";import{S as g,g as _}from"./getColors.DvVOOCnR.js";import{t as v}from"./useFocusRing.Ch5Orgk4.js";import{t as y}from"./useButton.DpBtXXGm.js";import{t as b}from"./useToggleState.DHcxEvgA.js";import{c as x,i as S,s as C}from"./FocusScope.Ctte9a8-.js";function w(e,t,n){let{isSelected:i}=t,{isPressed:a,buttonProps:o}=y({...e,onPress:r(t.toggle,e.onPress)},n);return{isPressed:a,isSelected:i,isDisabled:e.isDisabled||!1,buttonProps:u(o,{"aria-pressed":i})}}var T=e(t(),1);function ee(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[o,s]=(0,T.useState)(!1);a(()=>{s(!!(t.current&&t.current.parentElement?.closest(`[role="toolbar"]`)))});let{direction:c}=l(),u=c===`rtl`&&i===`horizontal`,m=S(t),g=e=>{if(f(e.currentTarget,p(e))){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)u?m.focusPrevious():m.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)u?m.focusNext():m.focusPrevious();else if(e.key===`Tab`){_.current=d(),e.shiftKey?m.focusFirst():m.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},_=(0,T.useRef)(null),v=e=>{!f(e.currentTarget,e.relatedTarget)&&!_.current&&(_.current=p(e))},y=e=>{_.current&&!f(e.currentTarget,e.relatedTarget)&&f(t.current,p(e))&&(_.current?.focus(),_.current=null)};return{toolbarProps:{...h(e,{labelable:!0}),role:o?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:o?void 0:g,onFocusCapture:o?void 0:y,onBlurCapture:o?void 0:v}}}function E(e,t,n){let{isDisabled:r}=e,{toolbarProps:i}=ee(e,n);return{groupProps:{...i,role:t.selectionMode===`single`?`radiogroup`:i.role,"aria-disabled":r}}}function D(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(n){t.setSelected(e.id,n)},toggle(){t.toggleKey(e.id)}},{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}=w({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode===`single`&&(s.role=`radio`,s[`aria-checked`]=r.isSelected,delete s[`aria-pressed`]),{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}}function O(e){let{selectionMode:t=`single`,disallowEmptySelection:n,isDisabled:r=!1}=e,[i,a]=c((0,T.useMemo)(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),(0,T.useMemo)(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:i,setSelectedKeys:a,toggleKey(e){let r;t===`multiple`?(r=new Set(i),r.has(e)&&(!n||r.size>1)?r.delete(e):r.add(e)):r=new Set(i.has(e)&&!n?[]:[e]),a(r)},setSelected(e,t){t!==i.has(e)&&this.toggleKey(e)}}}var k=(0,T.createContext)({}),A=(0,T.createContext)(null),j=(0,T.forwardRef)(function(e,t){[e,t]=m(e,t,k);let n=O(e),{groupProps:r}=E(e,n,t),i=o({...e,values:{orientation:e.orientation||`horizontal`,isDisabled:n.isDisabled,state:n},defaultClassName:`react-aria-ToggleButtonGroup`}),a=h(e,{global:!0});return T.createElement(s.div,{...u(a,i,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`horizontal`,"data-disabled":e.isDisabled||void 0},T.createElement(A.Provider,{value:n},T.createElement(x,null,i.children)))}),te=(0,T.createContext)({}),ne=(0,T.forwardRef)(function(e,t){[e,t]=m(e,t,te);let n=(0,T.useContext)(A),r=b(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(t){n.setSelected(e.id,t)}}:e),{buttonProps:a,isPressed:c,isSelected:l,isDisabled:d}=n&&e.id!=null?D({...e,id:e.id},n,t):w({...e,id:e.id==null?void 0:String(e.id)},r,t),{focusProps:f,isFocused:p,isFocusVisible:g}=v(e),{hoverProps:_,isHovered:y}=i({...e,isDisabled:d}),x=o({...e,id:void 0,values:{isHovered:y,isPressed:c,isFocused:p,isSelected:r.isSelected,isFocusVisible:g,isDisabled:d,state:r},defaultClassName:`react-aria-ToggleButton`}),S=h(e,{global:!0});return delete S.id,delete S.onClick,T.createElement(s.button,{...u(S,x,a,f,_),ref:t,slot:e.slot||void 0,"data-focused":p||void 0,"data-disabled":d||void 0,"data-pressed":c||void 0,"data-selected":l||void 0,"data-hovered":y||void 0,"data-focus-visible":g||void 0},T.createElement(C.Provider,{value:{isSelected:l}},x.children))}),re=function(e){return e.PRIMARY=`primary`,e.SECONDARY=`secondary`,e.TERTIARY=`tertiary`,e.GHOST=`ghost`,e.BORDERLESS_ICON=`borderlessIcon`,e.BORDERLESS_ICON_ACTIVE=`borderlessIconActive`,e.MINIMAL=`minimal`,e.PRIMARY_FORM_SUBMIT=`primaryFormSubmit`,e.SECONDARY_FORM_SUBMIT=`secondaryFormSubmit`,e.TERTIARY_FORM_SUBMIT=`tertiaryFormSubmit`,e.HEADER_BUTTON=`header`,e.HEADER_NO_PADDING=`headerNoPadding`,e.ELEMENT_TOOLBAR=`elementToolbar`,e.PILLS=`pills`,e.PILLS_ACTIVE=`pillsActive`,e.SEGMENTED_CONTROL=`segmented_control`,e.SEGMENTED_CONTROL_ACTIVE=`segmented_controlActive`,e}({}),ie=function(e){return e.XSMALL=`xsmall`,e.SMALL=`small`,e.MEDIUM=`medium`,e.LARGE=`large`,e}({});function ae(e,t){switch(e){case`xsmall`:return{padding:`${t.spacing.twoXS} ${t.spacing.sm}`,fontSize:t.fontSizes.sm};case`small`:return{padding:`${t.spacing.twoXS} ${t.spacing.md}`};case`large`:return{padding:`${t.spacing.md} ${t.spacing.md}`};default:return{padding:`${t.spacing.xs} ${t.spacing.md}`}}}var M=n(`button`,{target:`ewrlt5x0`})(({containerWidth:e,size:t,theme:n})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontWeight:n.fontWeights.normal,padding:`${n.spacing.xs} ${n.spacing.md}`,borderRadius:n.radii.button,minHeight:n.sizes.minElementHeight,margin:n.spacing.none,lineHeight:n.lineHeights.base,textTransform:`none`,fontSize:`inherit`,fontFamily:`inherit`,color:`inherit`,width:e?`100%`:`auto`,cursor:`pointer`,userSelect:`none`,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:n.shadows.focusRing},...ae(t,n)}
1)),N=n(M,{target:`ewrlt5x1`})(({theme:e})=>({backgroundColor:e.colors.primary,color:e.colors.white,border:`${e.sizes.borderWidth} solid ${e.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:_(e.colors.primary,.15),borderColor:_(e.colors.primary,.15)},"&:active, &[aria-expanded='true']":{backgroundColor:e.colors.primary,borderColor:_(e.colors.primary,.15)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`}})),P=n(M,{target:`ewrlt5x2`})(({theme:e})=>({backgroundColor:e.colors.lightenedBg05,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,"&:hover, &:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"&:active, &[aria-expanded='true']":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`}})),F=n(M,{target:`ewrlt5x3`})(({theme:e})=>({padding:e.spacing.none,backgroundColor:e.colors.transparent,border:`none`,"&:hover, &:focus-visible":{color:e.colors.primary},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"span.stMarkdownColoredText":{color:`inherit !important`}},"&:active, &[aria-expanded='true']":{color:_(e.colors.primary,.25)},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`}})),I=n(M,{target:`ewrlt5x4`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`${e.sizes.borderWidth} solid ${e.colors.transparent}`,"&:hover, &:focus-visible":{borderColor:e.colors.transparent,color:e.colors.primary},"&:active":{color:e.colors.primary,borderColor:e.colors.transparent,backgroundColor:e.colors.transparent},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.gray30,borderColor:e.colors.transparent,color:e.colors.gray60}})),L=n(M,{target:`ewrlt5x5`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`none`,boxShadow:`none`,padding:e.spacing.none,"&:hover, &:active, &:focus-visible":{color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:e.colors.fadedText40,cursor:`not-allowed`}})),R=n(N,{target:`ewrlt5x6`})(),z=n(P,{target:`ewrlt5x7`})(),B=n(F,{target:`ewrlt5x8`})(),V=n(M,{target:`ewrlt5x9`})(({theme:e})=>({background:e.colors.bgColor,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,fontWeight:e.fontWeights.normal,height:e.sizes.largeLogoHeight,minHeight:e.sizes.largeLogoHeight,maxWidth:e.sizes.contentMaxWidth,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"&:hover, &:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`},"& div":{textOverflow:`ellipsis`,overflow:`hidden`},"& p":{textOverflow:`ellipsis`,overflow:`hidden`}})),H=n(V,{target:`ewrlt5x10`})(({theme:e,containerWidth:t})=>({borderRadius:e.radii.full,padding:`${e.spacing.twoXS} ${e.spacing.md}`,flex:t?`1 1 fit-content`:``})),U=n(H,{target:`ewrlt5x11`})(({theme:e})=>({backgroundColor:g(e.colors.primary,.9),borderColor:e.colors.primary,color:e.colors.primary,"&:hover, &:focus-visible":{backgroundColor:g(e.colors.primary,.8),borderColor:e.colors.primary,color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.fadedText05,color:e.colors.fadedText40,cursor:`not-allowed`}})),W=`button[kind='segmented_controlActive']:not(:disabled)`,G=`button[kind='segmented_control']:not(:disabled)`,K=`button[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible)`,q=`button[kind='segmented_control']:not(:disabled):not(:hover):not(:focus-visible)`,J=n(V,{target:`ewrlt5x12`})(({theme:e,containerWidth:t})=>({padding:`${e.spacing.twoXS} ${e.spacing.lg}`,borderRadius:`0`,flex:t?`1 1 fit-content`:``,maxWidth:`100%`,marginRight:`-${e.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:e.radii.button,borderBottomLeftRadius:e.radii.button},"&:last-child":{borderTopRightRadius:e.radii.button,borderBottomRightRadius:e.radii.button,marginRight:e.spacing.none},"&[kind='segmented_controlActive']:not(:disabled), &[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible)":{zIndex:e.zIndices.priority},[`&[kind='segmented_controlActive']:not(:disabled) + ${G}`]:{borderLeftColor:e.colors.transparent},[`&[kind='segmented_control']:not(:disabled):has(+ ${W})`]:{borderRightColor:e.colors.transparent},[`&[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible) + ${q}`]:{borderLeftColor:e.colors.transparent},[`&[kind='segmented_control']:not(:disabled):not(:hover):not(:focus-visible):has(+ ${K})`]:{borderRightColor:e.colors.transparent},"&:focus-visible":{zIndex:e.zIndices.priority}})),oe=n(J,{target:`ewrlt5x13`})(({theme:e})=>({backgroundColor:g(e.colors.primary,.9),borderColor:e.colors.primary,color:e.colors.primary,zIndex:e.zIndices.priority,"&:hover, &:focus-visible":{backgroundColor:g(e.colors.primary,.8)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.fadedText05,color:e.colors.fadedText40,cursor:`not-allowed`}})),Y=n(M,{target:`ewrlt5x14`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`none`,padding:`0 ${e.spacing.sm}`,fontSize:e.fontSizes.sm,marginLeft:e.spacing.threeXS,marginRight:e.spacing.threeXS,lineHeight:e.lineHeights.none,minWidth:e.sizes.headerItemHeight,minHeight:e.sizes.headerItemHeight,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRingMuted},"&:hover":{backgroundColor:e.colors.darkenedBgMix15},"&:active":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.gray30,borderColor:e.colors.transparent,color:e.colors.gray60}})),se=n(Y,{target:`ewrlt5x15`})(()=>({padding:0})),X=n(M,{target:`ewrlt5x16`})(({size:e,theme:t})=>{let n={xsmall:t.spacing.threeXS,small:t.spacing.twoXS,medium:t.spacing.md,large:t.
1spacing.lg};return{backgroundColor:t.colors.transparent,color:t.colors.fadedText60,padding:n[e],marginLeft:t.spacing.none,marginRight:t.spacing.none,flex:`0 0 fit-content`,border:`none`,display:`flex`,minHeight:`unset`,"&:focus":{boxShadow:`none`,outline:`none`},"&:hover":{color:t.colors.bodyText},"&:disabled, &:disabled:hover, &:disabled:active":{color:t.colors.fadedText10,cursor:`not-allowed`,img:{opacity:.4}}}}),ce=n(X,{target:`ewrlt5x17`})(({theme:e})=>({color:e.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:e.colors.fadedText40}})),le=n(`div`,{target:`ewrlt5x18`})(({theme:e})=>({display:`block`,[`@media (max-width: ${e.breakpoints.sm})`]:{display:`none`}})),ue=n(`div`,{target:`ewrlt5x19`})(({theme:e})=>({display:`none`,[`@media (max-width: ${e.breakpoints.sm})`]:{display:`block`}})),de=n(M,{target:`ewrlt5x20`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`none`,padding:e.spacing.twoXS,fontSize:e.fontSizes.twoSm,marginLeft:e.spacing.none,marginRight:e.spacing.none,display:`flex`,gap:e.spacing.xs,alignItems:`center`,minHeight:`unset`,lineHeight:e.iconSizes.md,width:`auto`,"&:focus":{outline:`none`,border:`none`,boxShadow:`none`},"&:focus-visible":{outline:`none`,border:`none`,boxShadow:`none`,backgroundColor:e.colors.darkenedBgMix25},"&:hover":{backgroundColor:e.colors.darkenedBgMix15},"&:active":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.gray30,borderColor:e.colors.transparent,color:e.colors.gray60}})),fe=n(`div`,{target:`ewrlt5x21`})(({containerWidth:e})=>({width:e?`100%`:`auto`})),pe=n(`div`,{target:`ewrlt5x22`})(()=>({display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`})),me=n(`span`,{target:`ewrlt5x23`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:e.spacing.sm,minWidth:0})),he=n(`kbd`,{target:`ewrlt5x24`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,whiteSpace:`nowrap`,fontSize:e.fontSizes.sm,opacity:e.opacities.secondary,fontFamily:`inherit`,lineHeight:e.lineHeights.tight,letterSpacing:`0.01em`})),Z=n(j,{target:`ewrlt5x25`})(({theme:e,$isPills:t,$containerWidth:n})=>{let r={display:`flex`,flexWrap:`wrap`,maxWidth:n?`100%`:`fit-content`,margin:0},i=n?`100%`:`auto`;return t?{...r,columnGap:e.spacing.twoXS,rowGap:e.spacing.twoXS,width:i}:{...r,columnGap:e.spacing.none,rowGap:e.spacing.twoXS,width:i}}),Q=n(ne,{target:`ewrlt5x26`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontWeight:e.fontWeights.normal,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,background:e.colors.bgColor,color:e.colors.bodyText,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,height:e.sizes.largeLogoHeight,minHeight:e.sizes.largeLogoHeight,maxWidth:e.sizes.contentMaxWidth,cursor:`pointer`,userSelect:`none`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"&:focus":{outline:`none`},"&[data-focus-visible]":{boxShadow:e.shadows.focusRing},"&:is([data-hovered],[data-focus-visible]):not([data-disabled])":{backgroundColor:e.colors.darkenedBgMix15},"&[data-disabled]":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`},"& div":{textOverflow:`ellipsis`,overflow:`hidden`},"& p":{textOverflow:`ellipsis`,overflow:`hidden`}})),ge=n(Q,{target:`ewrlt5x27`})(({theme:e,$containerWidth:t})=>({borderRadius:e.radii.full,padding:`${e.spacing.twoXS} ${e.spacing.md}`,flex:t?`1 1 fit-content`:void 0,"&[data-selected]:not([data-disabled])":{backgroundColor:g(e.colors.primary,.9),borderColor:e.colors.primary,color:e.colors.primary},"&[data-selected]:is([data-hovered],[data-focus-visible]):not([data-disabled])":{backgroundColor:g(e.colors.primary,.8),borderColor:e.colors.primary,color:e.colors.primary},"&[data-selected][data-disabled]":{borderColor:e.colors.borderColor,backgroundColor:e.colors.fadedText05,color:e.colors.fadedText40}})),$=`button[data-variant='segmented_control']`,_e=`${$}[data-selected]:not([data-disabled])`,ve=`${$}:not([data-disabled])`,ye=`${$}:not([data-disabled]):is([data-hovered],[data-focus-visible])`,be=`${$}:not([data-selected]):not([data-disabled]):not([data-hovered]):not([data-focus-visible])`,xe=`[data-selected]:not([data-disabled])`,Se=`:not([data-selected]):not([data-disabled])`,Ce=`:not([data-disabled]):is([data-hovered],[data-focus-visible])`,we=`:not([data-selected]):not([data-disabled]):not([data-hovered]):not([data-focus-visible])`,Te=n(Q,{target:`ewrlt5x28`})(({theme:e,$containerWidth:t})=>({padding:`${e.spacing.twoXS} ${e.spacing.lg}`,borderRadius:`0`,flex:t?`1 1 fit-content`:void 0,maxWidth:`100%`,marginRight:`-${e.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:e.radii.button,borderBottomLeftRadius:e.radii.button},"&:last-child":{borderTopRightRadius:e.radii.button,borderBottomRightRadius:e.radii.button,marginRight:e.spacing.none},"&[data-selected]:not([data-disabled]), &:not([data-disabled]):is([data-hovered],[data-focus-visible])":{zIndex:e.zIndices.priority},[`&${xe} + ${ve}`]:{borderLeftColor:e.colors.transparent},[`&${Se}:has(+ ${_e})`]:{borderRightColor:e.colors.transparent},[`&${Ce} + ${be}`]:{borderLeftColor:e.colors.transparent},[`&${we}:has(+ ${ye})`]:{borderRightColor:e.colors.transparent},"&[data-focus-visible]":{zIndex:e.zIndices.priority},"&[data-selected]:not([data-disabled])":{backgroundColor:g(e.colors.primary,.9),borderColor:e.colors.primary,color:e.colors.primary,zIndex:e.zIndices.priority},"&[data-selected]:is([data-hovered],[data-focus-visible]):not([data-disabled])":{backgroundColor:g(e.colors.primary,.8),borderColor:e.colors.primary,color:e.colors.primary},"&[data-selected][data-disabled]":{borderColor:e.colors.borderColor,backgroundColor:e.colors.fadedText05,color:e.colors.fadedText40}}));export{Te as C,ue as D,Z as E,le as O,oe as S,B as T,N as _,fe as a,z as b,he as c,Y as d,se as f,ge as g,U as h,ce as i,de as l,H as m,ie as n,pe as o,L as p,X as r,me as s,re as t,I as u,R as v,F as w,J as x,P as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.