inspector/clients/web/storybook-static/sb-addons/a11y-3/manager-bundle.js
cliffhall fcd0d156f4 * Added base project to clients/web
* Added storybook build plan
2026-03-16 22:47:03 -04:00

57 lines
65 KiB
JavaScript

try{
(()=>{var fa=Object.defineProperty;var ee=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Se=(e,t)=>()=>(e&&(t=e(e=0)),t);var ya=(e,t)=>{for(var a in t)fa(e,a,{get:t[a],enumerable:!0})};var v=Se(()=>{});var A=Se(()=>{});var x=Se(()=>{});var pt={};ya(pt,{A:()=>xa,AbstractToolbar:()=>$a,ActionBar:()=>_a,ActionList:()=>Ra,AddonPanel:()=>Ta,Badge:()=>z,Bar:()=>Ca,Blockquote:()=>Oa,Button:()=>L,Card:()=>ka,ClipboardCode:()=>wa,Code:()=>Na,Collapsible:()=>Pa,DL:()=>Da,Div:()=>La,DocumentWrapper:()=>Ma,EmptyTabContent:()=>Pe,ErrorFormatter:()=>Fa,FlexBar:()=>Ha,Form:()=>Ua,H1:()=>Ga,H2:()=>Ba,H3:()=>qa,H4:()=>Va,H5:()=>Ya,H6:()=>ja,HR:()=>Wa,IconButton:()=>za,Img:()=>Ka,LI:()=>Xa,Link:()=>de,ListItem:()=>Qa,Loader:()=>Za,Modal:()=>Ja,ModalDecorator:()=>er,OL:()=>tr,P:()=>ar,Placeholder:()=>rr,Popover:()=>nr,PopoverProvider:()=>or,Pre:()=>lr,ProgressSpinner:()=>ir,ResetWrapper:()=>sr,ScrollArea:()=>cr,Select:()=>De,Separator:()=>ur,Spaced:()=>mr,Span:()=>dr,StatelessTab:()=>pr,StatelessTabList:()=>fr,StatelessTabPanel:()=>yr,StatelessTabsView:()=>br,StorybookIcon:()=>hr,StorybookLogo:()=>Sr,SyntaxHighlighter:()=>Le,TT:()=>gr,TabBar:()=>Er,TabButton:()=>Ir,TabList:()=>vr,TabPanel:()=>Ar,TabWrapper:()=>xr,Table:()=>$r,Tabs:()=>_r,TabsState:()=>Rr,TabsView:()=>Me,ToggleButton:()=>Tr,Toolbar:()=>Cr,Tooltip:()=>Or,TooltipLinkList:()=>kr,TooltipMessage:()=>wr,TooltipNote:()=>Nr,TooltipProvider:()=>Pr,UL:()=>Dr,WithTooltip:()=>Lr,WithTooltipPure:()=>Mr,Zoom:()=>Fr,codeCommon:()=>Hr,components:()=>Ur,convertToReactAriaPlacement:()=>Gr,createCopyToClipboardFunction:()=>Br,default:()=>Aa,getStoryHref:()=>qr,interleaveSeparators:()=>Vr,nameSpaceClassNames:()=>Yr,resetComponents:()=>jr,useTabsState:()=>Wr,withReset:()=>zr});var Aa,xa,$a,_a,Ra,Ta,z,Ca,Oa,L,ka,wa,Na,Pa,Da,La,Ma,Pe,Fa,Ha,Ua,Ga,Ba,qa,Va,Ya,ja,Wa,za,Ka,Xa,de,Qa,Za,Ja,er,tr,ar,rr,nr,or,lr,ir,sr,cr,De,ur,mr,dr,pr,fr,yr,br,hr,Sr,Le,gr,Er,Ir,vr,Ar,xr,$r,_r,Rr,Me,Tr,Cr,Or,kr,wr,Nr,Pr,Dr,Lr,Mr,Fr,Hr,Ur,Gr,Br,qr,Vr,Yr,jr,Wr,zr,K=Se(()=>{v();A();x();Aa=__STORYBOOK_COMPONENTS__,{A:xa,AbstractToolbar:$a,ActionBar:_a,ActionList:Ra,AddonPanel:Ta,Badge:z,Bar:Ca,Blockquote:Oa,Button:L,Card:ka,ClipboardCode:wa,Code:Na,Collapsible:Pa,DL:Da,Div:La,DocumentWrapper:Ma,EmptyTabContent:Pe,ErrorFormatter:Fa,FlexBar:Ha,Form:Ua,H1:Ga,H2:Ba,H3:qa,H4:Va,H5:Ya,H6:ja,HR:Wa,IconButton:za,Img:Ka,LI:Xa,Link:de,ListItem:Qa,Loader:Za,Modal:Ja,ModalDecorator:er,OL:tr,P:ar,Placeholder:rr,Popover:nr,PopoverProvider:or,Pre:lr,ProgressSpinner:ir,ResetWrapper:sr,ScrollArea:cr,Select:De,Separator:ur,Spaced:mr,Span:dr,StatelessTab:pr,StatelessTabList:fr,StatelessTabPanel:yr,StatelessTabsView:br,StorybookIcon:hr,StorybookLogo:Sr,SyntaxHighlighter:Le,TT:gr,TabBar:Er,TabButton:Ir,TabList:vr,TabPanel:Ar,TabWrapper:xr,Table:$r,Tabs:_r,TabsState:Rr,TabsView:Me,ToggleButton:Tr,Toolbar:Cr,Tooltip:Or,TooltipLinkList:kr,TooltipMessage:wr,TooltipNote:Nr,TooltipProvider:Pr,UL:Dr,WithTooltip:Lr,WithTooltipPure:Mr,Zoom:Fr,codeCommon:Hr,components:Ur,convertToReactAriaPlacement:Gr,createCopyToClipboardFunction:Br,getStoryHref:qr,interleaveSeparators:Vr,nameSpaceClassNames:Yr,resetComponents:jr,useTabsState:Wr,withReset:zr}=__STORYBOOK_COMPONENTS__});v();A();x();v();A();x();v();A();x();var N="storybook/a11y",ge=`${N}/panel`,ot="a11y",me="vision",Io=`${N}/ui`,ba=`${N}/result`,ha=`${N}/request`,Sa=`${N}/running`,ga=`${N}/error`,Ea=`${N}/manual`,Ia=`${N}/select`,va="writing-tests/accessibility-testing",lt=`${va}#why-are-my-tests-failing-in-different-environments`,Z={RESULT:ba,REQUEST:ha,RUNNING:Sa,ERROR:ga,MANUAL:Ea,SELECT:Ia},we="storybook/component-test",it="storybook/a11y",Ne={blurred:{label:"Blurred vision",filter:"blur(2px)",percentage:22.9},deuteranomaly:{label:"Deuteranomaly",filter:'url("#storybook-a11y-vision-deuteranomaly")',percentage:2.7},deuteranopia:{label:"Deuteranopia",filter:'url("#storybook-a11y-vision-deuteranopia")',percentage:.56},protanomaly:{label:"Protanomaly",filter:'url("#storybook-a11y-vision-protanomaly")',percentage:.66},protanopia:{label:"Protanopia",filter:'url("#storybook-a11y-vision-protanopia")',percentage:.59},tritanomaly:{label:"Tritanomaly",filter:'url("#storybook-a11y-vision-tritanomaly")',percentage:.01},tritanopia:{label:"Tritanopia",filter:'url("#storybook-a11y-vision-tritanopia")',percentage:.016},achromatopsia:{label:"Achromatopsia",filter:'url("#storybook-a11y-vision-achromatopsia")',percentage:1e-4},grayscale:{label:"Grayscale",filter:"grayscale(100%)"}},st=`<svg id="storybook-a11y-vision-filters" style="display: none !important;">
<defs>
<filter id="storybook-a11y-vision-protanopia">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.567, 0.433, 0, 0, 0 0.558, 0.442, 0, 0, 0 0, 0.242, 0.758, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
<filter id="storybook-a11y-vision-protanomaly">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.817, 0.183, 0, 0, 0 0.333, 0.667, 0, 0, 0 0, 0.125, 0.875, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
<filter id="storybook-a11y-vision-deuteranopia">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.625, 0.375, 0, 0, 0 0.7, 0.3, 0, 0, 0 0, 0.3, 0.7, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
<filter id="storybook-a11y-vision-deuteranomaly">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.8, 0.2, 0, 0, 0 0.258, 0.742, 0, 0, 0 0, 0.142, 0.858, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
<filter id="storybook-a11y-vision-tritanopia">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.95, 0.05, 0, 0, 0 0, 0.433, 0.567, 0, 0 0, 0.475, 0.525, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
<filter id="storybook-a11y-vision-tritanomaly">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.967, 0.033, 0, 0, 0 0, 0.733, 0.267, 0, 0 0, 0.183, 0.817, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
<filter id="storybook-a11y-vision-achromatopsia">
<feColorMatrix
in="SourceGraphic"
type="matrix"
values="0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0, 0, 0, 1, 0"
/>
</filter>
</defs>
</svg>`;v();A();x();v();A();x();var n=__REACT__,{Children:F,Component:Oo,Fragment:oe,Profiler:ko,PureComponent:wo,StrictMode:No,Suspense:Po,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Do,act:Lo,cloneElement:J,createContext:te,createElement:y,createFactory:Mo,createRef:Fo,forwardRef:w,isValidElement:j,lazy:Ho,memo:Uo,startTransition:Go,unstable_act:Bo,useCallback:E,useContext:le,useDebugValue:qo,useDeferredValue:Vo,useEffect:k,useId:ct,useImperativeHandle:Yo,useInsertionEffect:jo,useLayoutEffect:ut,useMemo:D,useReducer:mt,useRef:q,useState:V,useSyncExternalStore:Wo,useTransition:zo,version:Ko}=__REACT__;K();v();A();x();var al=__STORYBOOK_API__,{ActiveTabs:rl,Consumer:nl,ManagerContext:ol,Provider:ll,RequestResponseError:il,Tag:sl,addons:Ee,combineParameters:cl,controlOrMetaKey:ul,controlOrMetaSymbol:ml,eventMatchesShortcut:dl,eventToShortcut:pl,experimental_MockUniversalStore:fl,experimental_UniversalStore:yl,experimental_getStatusStore:ft,experimental_getTestProviderStore:bl,experimental_requestResponse:hl,experimental_useStatusStore:yt,experimental_useTestProviderStore:Sl,experimental_useUniversalStore:gl,internal_checklistStore:El,internal_fullStatusStore:Il,internal_fullTestProviderStore:vl,internal_universalChecklistStore:Al,internal_universalStatusStore:xl,internal_universalTestProviderStore:$l,isMacLike:_l,isShortcutTaken:Rl,keyToSymbol:Tl,merge:Cl,mockChannel:Ol,optionOrAltSymbol:kl,shortcutMatchesShortcut:wl,shortcutToAriaKeyshortcuts:Nl,shortcutToHumanString:Pl,types:Fe,useAddonState:Ie,useArgTypes:Dl,useArgs:Ll,useChannel:bt,useGlobalTypes:Ml,useGlobals:ve,useParameter:ht,useSharedState:Fl,useStoryPrepared:Hl,useStorybookApi:ie,useStorybookState:St}=__STORYBOOK_API__;K();v();A();x();var Vl=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Yl,AccessibilityIcon:gt,AccessibilityIgnoredIcon:jl,AddIcon:Wl,AdminIcon:zl,AlertAltIcon:Kl,AlertIcon:Xl,AlignLeftIcon:Ql,AlignRightIcon:Zl,AppleIcon:Jl,ArrowBottomLeftIcon:ei,ArrowBottomRightIcon:ti,ArrowDownIcon:ai,ArrowLeftIcon:ri,ArrowRightIcon:ni,ArrowSolidDownIcon:oi,ArrowSolidLeftIcon:li,ArrowSolidRightIcon:ii,ArrowSolidUpIcon:si,ArrowTopLeftIcon:ci,ArrowTopRightIcon:ui,ArrowUpIcon:mi,AzureDevOpsIcon:di,BackIcon:pi,BasketIcon:fi,BatchAcceptIcon:yi,BatchDenyIcon:bi,BeakerIcon:hi,BellIcon:Si,BitbucketIcon:gi,BoldIcon:Ei,BookIcon:Ii,BookmarkHollowIcon:vi,BookmarkIcon:Ai,BottomBarIcon:xi,BottomBarToggleIcon:$i,BoxIcon:_i,BranchIcon:Ri,BrowserIcon:Ti,BugIcon:Ci,ButtonIcon:Oi,CPUIcon:ki,CalendarIcon:wi,CameraIcon:Ni,CameraStabilizeIcon:Pi,CategoryIcon:Di,CertificateIcon:Li,ChangedIcon:Mi,ChatIcon:Fi,CheckIcon:Et,ChevronDownIcon:Hi,ChevronLeftIcon:Ui,ChevronRightIcon:Gi,ChevronSmallDownIcon:It,ChevronSmallLeftIcon:Bi,ChevronSmallRightIcon:qi,ChevronSmallUpIcon:Vi,ChevronUpIcon:Yi,ChromaticIcon:ji,ChromeIcon:Wi,CircleHollowIcon:zi,CircleIcon:Ki,ClearIcon:Xi,CloseAltIcon:Qi,CloseIcon:Zi,CloudHollowIcon:Ji,CloudIcon:es,CogIcon:ts,CollapseIcon:vt,CommandIcon:as,CommentAddIcon:rs,CommentIcon:ns,CommentsIcon:os,CommitIcon:ls,CompassIcon:is,ComponentDrivenIcon:ss,ComponentIcon:cs,ContrastIcon:us,ContrastIgnoredIcon:ms,ControlsIcon:ds,CopyIcon:At,CreditIcon:ps,CrossIcon:fs,DashboardIcon:ys,DatabaseIcon:bs,DeleteIcon:hs,DiamondIcon:Ss,DirectionIcon:gs,DiscordIcon:Es,DocChartIcon:Is,DocListIcon:vs,DocumentIcon:As,DownloadIcon:xs,DragIcon:$s,EditIcon:_s,EditorIcon:Rs,EllipsisIcon:Ts,EmailIcon:Cs,ExpandAltIcon:xt,ExpandIcon:Os,EyeCloseIcon:$t,EyeIcon:_t,FaceHappyIcon:ks,FaceNeutralIcon:ws,FaceSadIcon:Ns,FacebookIcon:Ps,FailedIcon:Ds,FastForwardIcon:Ls,FigmaIcon:Ms,FilterIcon:Fs,FlagIcon:Hs,FolderIcon:Us,FormIcon:Gs,GDriveIcon:Bs,GiftIcon:qs,GithubIcon:Vs,GitlabIcon:Ys,GlobeIcon:js,GoogleIcon:Ws,GraphBarIcon:zs,GraphLineIcon:Ks,GraphqlIcon:Xs,GridAltIcon:Qs,GridIcon:Zs,GrowIcon:Js,HeartHollowIcon:ec,HeartIcon:tc,HomeIcon:ac,HourglassIcon:rc,InfoIcon:nc,ItalicIcon:oc,JumpToIcon:lc,KeyIcon:ic,LightningIcon:sc,LightningOffIcon:cc,LinkBrokenIcon:uc,LinkIcon:mc,LinkedinIcon:dc,LinuxIcon:pc,ListOrderedIcon:fc,ListUnorderedIcon:yc,LocationIcon:Rt,LockIcon:bc,MarkdownIcon:hc,MarkupIcon:Sc,MediumIcon:gc,MemoryIcon:Ec,MenuIcon:Ic,MergeIcon:vc,MirrorIcon:Ac,MobileIcon:xc,MoonIcon:$c,NutIcon:_c,OutboxIcon:Rc,OutlineIcon:Tc,PaintBrushAltIcon:Cc,PaintBrushIcon:Oc,PaperClipIcon:kc,ParagraphIcon:wc,PassedIcon:Nc,PhoneIcon:Pc,PhotoDragIcon:Dc,PhotoIcon:Lc,PhotoStabilizeIcon:Mc,PinAltIcon:Fc,PinIcon:Hc,PlayAllHollowIcon:Uc,PlayBackIcon:Gc,PlayHollowIcon:Bc,PlayIcon:qc,PlayNextIcon:Vc,PlusIcon:Yc,PointerDefaultIcon:jc,PointerHandIcon:Wc,PowerIcon:zc,PrintIcon:Kc,ProceedIcon:Xc,ProfileIcon:Qc,PullRequestIcon:Zc,QuestionIcon:Jc,RSSIcon:eu,RedirectIcon:tu,ReduxIcon:au,RefreshIcon:ru,ReplyIcon:nu,RepoIcon:ou,RequestChangeIcon:lu,RewindIcon:iu,RulerIcon:su,SaveIcon:cu,SearchIcon:uu,ShareAltIcon:mu,ShareIcon:du,ShieldIcon:pu,SideBySideIcon:fu,SidebarAltIcon:yu,SidebarAltToggleIcon:bu,SidebarIcon:hu,SidebarToggleIcon:Su,SortDownIcon:gu,SortUpIcon:Eu,SpeakerIcon:Iu,StackedIcon:vu,StarHollowIcon:Au,StarIcon:xu,StatusFailIcon:$u,StatusIcon:_u,StatusPassIcon:Ru,StatusWarnIcon:Tu,StickerIcon:Cu,StopAltHollowIcon:Ou,StopAltIcon:ku,StopIcon:wu,StorybookIcon:Nu,StructureIcon:Pu,SubtractIcon:Du,SunIcon:Lu,SupportIcon:Mu,SweepIcon:Fu,SwitchAltIcon:Hu,SyncIcon:Ae,TabletIcon:Uu,ThumbsUpIcon:Gu,TimeIcon:Bu,TimerIcon:qu,TransferIcon:Vu,TrashIcon:Yu,TwitterIcon:ju,TypeIcon:Wu,UbuntuIcon:zu,UndoIcon:Ku,UnfoldIcon:Xu,UnlockIcon:Qu,UnpinIcon:Zu,UploadIcon:Ju,UserAddIcon:em,UserAltIcon:tm,UserIcon:am,UsersIcon:rm,VSCodeIcon:nm,VerifiedIcon:om,VideoIcon:lm,WandIcon:im,WatchIcon:sm,WindowsIcon:cm,WrenchIcon:um,XIcon:mm,YoutubeIcon:dm,ZoomIcon:pm,ZoomOutIcon:fm,ZoomResetIcon:ym,iconList:bm}=__STORYBOOK_ICONS__;v();A();x();var Im=__STORYBOOK_THEMING__,{CacheProvider:vm,ClassNames:Am,Global:xm,ThemeProvider:$m,background:_m,color:Rm,convert:Tt,create:Tm,createCache:Cm,createGlobal:Om,createReset:km,css:wm,darken:Nm,ensure:Pm,getPreferredColorScheme:Dm,ignoreSsrWarning:Lm,isPropValid:Mm,jsx:Fm,keyframes:Hm,lighten:Um,styled:I,themes:Ct,tokens:Gm,typography:Bm,useTheme:Ot,withTheme:qm}=__STORYBOOK_THEMING__;v();A();x();var zm=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Km,ARGTYPES_INFO_RESPONSE:Xm,CHANNEL_CREATED:Qm,CHANNEL_WS_DISCONNECT:Zm,CONFIG_ERROR:Jm,CREATE_NEW_STORYFILE_REQUEST:ed,CREATE_NEW_STORYFILE_RESPONSE:td,CURRENT_STORY_WAS_SET:ad,DOCS_PREPARED:rd,DOCS_RENDERED:nd,FILE_COMPONENT_SEARCH_REQUEST:od,FILE_COMPONENT_SEARCH_RESPONSE:ld,FORCE_REMOUNT:id,FORCE_RE_RENDER:sd,GHOST_STORIES_REQUEST:cd,GHOST_STORIES_RESPONSE:ud,GLOBALS_UPDATED:md,MANAGER_INERT_ATTRIBUTE_CHANGED:dd,NAVIGATE_URL:pd,OPEN_IN_EDITOR_REQUEST:fd,OPEN_IN_EDITOR_RESPONSE:yd,PLAY_FUNCTION_THREW_EXCEPTION:bd,PRELOAD_ENTRIES:hd,PREVIEW_BUILDER_PROGRESS:Sd,PREVIEW_INITIALIZED:gd,PREVIEW_KEYDOWN:Ed,REGISTER_SUBSCRIPTION:Id,REQUEST_WHATS_NEW_DATA:vd,RESET_STORY_ARGS:Ad,RESULT_WHATS_NEW_DATA:xd,SAVE_STORY_REQUEST:$d,SAVE_STORY_RESPONSE:_d,SELECT_STORY:Rd,SET_CONFIG:Td,SET_CURRENT_STORY:Cd,SET_FILTER:Od,SET_GLOBALS:kd,SET_INDEX:wd,SET_STORIES:Nd,SET_WHATS_NEW_CACHE:Pd,SHARED_STATE_CHANGED:Dd,SHARED_STATE_SET:Ld,SHARE_ISOLATE_MODE:Md,SHARE_POPOVER_OPENED:Fd,SHARE_STORY_LINK:Hd,STORIES_COLLAPSE_ALL:Ud,STORIES_EXPAND_ALL:Gd,STORY_ARGS_UPDATED:Bd,STORY_CHANGED:kt,STORY_ERRORED:qd,STORY_FINISHED:wt,STORY_HOT_UPDATED:Nt,STORY_INDEX_INVALIDATED:Vd,STORY_MISSING:Yd,STORY_PREPARED:jd,STORY_RENDERED:Wd,STORY_RENDER_PHASE_CHANGED:Pt,STORY_SPECIFIED:zd,STORY_THREW_EXCEPTION:Kd,STORY_UNCHANGED:Xd,TELEMETRY_ERROR:Qd,TOGGLE_WHATS_NEW_NOTIFICATIONS:Zd,UNHANDLED_ERRORS_WHILE_PLAYING:Jd,UPDATE_GLOBALS:ep,UPDATE_QUERY_PARAMS:tp,UPDATE_STORY_ARGS:ap}=__STORYBOOK_CORE_EVENTS__;v();A();x();v();A();x();var xe="storybook/highlight",$e=`${xe}/add`,_e=`${xe}/remove`,Kr=`${xe}/reset`,He=`${xe}/scroll-into-view`;v();A();x();var mp=(e=>typeof ee<"u"?ee:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof ee<"u"?ee:t)[a]}):e)(function(e){if(typeof ee<"u")return ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});K();K();v();A();x();var Ap=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:xp,createPortal:$p,createRoot:_p,findDOMNode:Rp,flushSync:Dt,hydrate:Tp,hydrateRoot:Cp,render:Op,unmountComponentAtNode:kp,unstable_batchedUpdates:wp,unstable_renderSubtreeIntoContainer:Np,version:Pp}=__REACT_DOM__;K();K();K();var H={VIOLATION:"violations",PASS:"passes",INCOMPLETION:"incomplete"},Xr={"area-alt":{title:"<area> alt text",axeSummary:"Ensure <area> elements of image maps have alternative text",friendlySummary:"Add alt text to all <area> elements of image maps."},"aria-allowed-attr":{title:"Supported ARIA attributes",axeSummary:"Ensure an element's role supports its ARIA attributes",friendlySummary:"Only use ARIA attributes that are permitted for the element's role."},"aria-braille-equivalent":{title:"Braille equivalent",axeSummary:"Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent",friendlySummary:"If you use braille ARIA labels, also provide a matching non-braille label."},"aria-command-name":{title:"ARIA command name",axeSummary:"Ensure every ARIA button, link and menuitem has an accessible name",friendlySummary:"Every ARIA button, link, or menuitem needs a label or accessible name."},"aria-conditional-attr":{title:"ARIA attribute valid for role",axeSummary:"Ensure ARIA attributes are used as described in the specification of the element's role",friendlySummary:"Follow the element role's specification when using ARIA attributes."},"aria-deprecated-role":{title:"Deprecated ARIA role",axeSummary:"Ensure elements do not use deprecated roles",friendlySummary:"Don't use deprecated ARIA roles on elements."},"aria-hidden-body":{title:"Hidden body",axeSummary:'Ensure aria-hidden="true" is not present on the document <body>',friendlySummary:'Never set aria-hidden="true" on the <body> element.'},"aria-hidden-focus":{title:"Hidden element focus",axeSummary:"Ensure aria-hidden elements are not focusable nor contain focusable elements",friendlySummary:"Elements marked hidden (aria-hidden) should not be focusable or contain focusable items."},"aria-input-field-name":{title:"ARIA input field name",axeSummary:"Ensure every ARIA input field has an accessible name",friendlySummary:"Give each ARIA text input or field a label or accessible name."},"aria-meter-name":{title:"ARIA meter name",axeSummary:"Ensure every ARIA meter node has an accessible name",friendlySummary:'Give each element with role="meter" a label or accessible name.'},"aria-progressbar-name":{title:"ARIA progressbar name",axeSummary:"Ensure every ARIA progressbar node has an accessible name",friendlySummary:'Give each element with role="progressbar" a label or accessible name.'},"aria-prohibited-attr":{title:"ARIA prohibited attributes",axeSummary:"Ensure ARIA attributes are not prohibited for an element's role",friendlySummary:"Don't use ARIA attributes that are forbidden for that element's role."},"aria-required-attr":{title:"ARIA required attributes",axeSummary:"Ensure elements with ARIA roles have all required ARIA attributes",friendlySummary:"Include all required ARIA attributes for elements with that ARIA role."},"aria-required-children":{title:"ARIA required children",axeSummary:"Ensure elements with an ARIA role that require child roles contain them",friendlySummary:"If an ARIA role requires specific child roles, include those child elements."},"aria-required-parent":{title:"ARIA required parent",axeSummary:"Ensure elements with an ARIA role that require parent roles are contained by them",friendlySummary:"Place elements with certain ARIA roles inside the required parent role element."},"aria-roles":{title:"ARIA role value",axeSummary:"Ensure all elements with a role attribute use a valid value",friendlySummary:"Use only valid values in the role attribute (no typos or invalid roles)."},"aria-toggle-field-name":{title:"ARIA toggle field name",axeSummary:"Ensure every ARIA toggle field has an accessible name",friendlySummary:"Every ARIA toggle field (elements with the checkbox, radio, or switch roles) needs an accessible name."},"aria-tooltip-name":{title:"ARIA tooltip name",axeSummary:"Ensure every ARIA tooltip node has an accessible name",friendlySummary:'Give each element with role="tooltip" a descriptive accessible name.'},"aria-valid-attr-value":{title:"ARIA attribute values valid",axeSummary:"Ensure all ARIA attributes have valid values",friendlySummary:"Use only valid values for ARIA attributes (no typos or invalid values)."},"aria-valid-attr":{title:"ARIA attribute valid",axeSummary:"Ensure attributes that begin with aria- are valid ARIA attributes",friendlySummary:"Use only valid aria-* attributes (make sure the attribute name is correct)."},blink:{title:"<blink> element",axeSummary:"Ensure <blink> elements are not used",friendlySummary:"Don't use the deprecated <blink> element."},"button-name":{title:"Button name",axeSummary:"Ensure buttons have discernible text",friendlySummary:"Every <button> needs a visible label or accessible name."},bypass:{title:"Navigation bypass",axeSummary:"Ensure each page has at least one mechanism to bypass navigation and jump to content",friendlySummary:'Provide a way to skip repetitive navigation (e.g. a "Skip to content" link).'},"color-contrast":{title:"Color contrast",axeSummary:"Ensure the contrast between foreground and background text meets WCAG 2 AA minimum thresholds",friendlySummary:"The color contrast between text and its background meets WCAG AA contrast ratio."},"definition-list":{title:"Definition list structure",axeSummary:"Ensure <dl> elements are structured correctly",friendlySummary:"Definition lists (<dl>) should directly contain <dt> and <dd> elements in order."},dlitem:{title:"Definition list items",axeSummary:"Ensure <dt> and <dd> elements are contained by a <dl>",friendlySummary:"Ensure <dt> and <dd> elements are contained by a <dl>"},"document-title":{title:"Document title",axeSummary:"Ensure each HTML document contains a non-empty <title> element",friendlySummary:"Include a non-empty <title> element for every page."},"duplicate-id-aria":{title:"Unique id",axeSummary:"Ensure every id attribute value used in ARIA and in labels is unique",friendlySummary:"Every id used for ARIA or form labels should be unique on the page."},"form-field-multiple-labels":{title:"Multiple form field labels",axeSummary:"Ensure a form field does not have multiple <label> elements",friendlySummary:"Don't give a single form field more than one <label>."},"frame-focusable-content":{title:"Focusable frames",axeSummary:'Ensure <frame> and <iframe> with focusable content do not have tabindex="-1"',friendlySummary:`Don't set tabindex="-1" on a <frame> or <iframe> that contains focusable elements.`},"frame-title-unique":{title:"Unique frame title",axeSummary:"Ensure <iframe> and <frame> elements contain a unique title attribute",friendlySummary:"Use a unique title attribute for each <frame> or <iframe> on the page."},"frame-title":{title:"Frame title",axeSummary:"Ensure <iframe> and <frame> elements have an accessible name",friendlySummary:"Every <frame> and <iframe> needs a title or accessible name."},"html-has-lang":{title:"<html> has lang",axeSummary:"Ensure every HTML document has a lang attribute",friendlySummary:"Add a lang attribute to the <html> element."},"html-lang-valid":{title:"<html> lang valid",axeSummary:"Ensure the <html lang> attribute has a valid value",friendlySummary:"Use a valid language code in the <html lang> attribute."},"html-xml-lang-mismatch":{title:"HTML and XML lang mismatch",axeSummary:"Ensure that HTML elements with both lang and xml:lang agree on the page's language",friendlySummary:"If using both lang and xml:lang on <html>, make sure they are the same language."},"image-alt":{title:"Image alt text",axeSummary:"Ensure <img> elements have alternative text or a role of none/presentation",friendlySummary:'Give every image alt text or mark it as decorative with alt="".'},"input-button-name":{title:"Input button name",axeSummary:"Ensure input buttons have discernible text",friendlySummary:'Give each <input type="button"> or similar a clear label (text or aria-label).'},"input-image-alt":{title:"Input image alt",axeSummary:'Ensure <input type="image"> elements have alternative text',friendlySummary:'<input type="image"> must have alt text describing its image.'},label:{title:"Form label",axeSummary:"Ensure every form element has a label",friendlySummary:"Every form field needs an associated label."},"link-in-text-block":{title:"Identifiable links",axeSummary:"Ensure links are distinguishable from surrounding text without relying on color",friendlySummary:"Make sure links are obviously identifiable without relying only on color."},"link-name":{title:"Link name",axeSummary:"Ensure links have discernible text",friendlySummary:"Give each link meaningful text or an aria-label so its purpose is clear."},list:{title:"List structure",axeSummary:"Ensure that lists are structured correctly",friendlySummary:"Use proper list structure. Only use <li> inside <ul> or <ol>."},listitem:{title:"List item",axeSummary:"Ensure <li> elements are used semantically",friendlySummary:"Only use <li> tags inside <ul> or <ol> lists."},marquee:{title:"<marquee> element",axeSummary:"Ensure <marquee> elements are not used",friendlySummary:"Don't use the deprecated <marquee> element."},"meta-refresh":{title:"<meta> refresh",axeSummary:'Ensure <meta http-equiv="refresh"> is not used for delayed refresh',friendlySummary:'Avoid auto-refreshing or redirecting pages using <meta http-equiv="refresh">.'},"meta-viewport":{title:"<meta> viewport scaling",axeSummary:'Ensure <meta name="viewport"> does not disable text scaling and zooming',friendlySummary:`Don't disable user zooming in <meta name="viewport"> to allow scaling.`},"nested-interactive":{title:"Nested interactive controls",axeSummary:"Ensure interactive controls are not nested (nesting causes screen reader/focus issues)",friendlySummary:"Do not nest interactive elements; it can confuse screen readers and keyboard focus."},"no-autoplay-audio":{title:"Autoplaying video",axeSummary:"Ensure <video> or <audio> do not autoplay audio > 3 seconds without a control to stop/mute",friendlySummary:"Don't autoplay audio for more than 3 seconds without providing a way to stop or mute it."},"object-alt":{title:"<object> alt text",axeSummary:"Ensure <object> elements have alternative text",friendlySummary:"Provide alternative text or content for <object> elements."},"role-img-alt":{title:'role="img" alt text',axeSummary:'Ensure elements with role="img" have alternative text',friendlySummary:'Any element with role="img" needs alt text.'},"scrollable-region-focusable":{title:"Scrollable element focusable",axeSummary:"Ensure elements with scrollable content are keyboard-accessible",friendlySummary:"If an area can scroll, ensure it can be focused and scrolled via keyboard."},"select-name":{title:"<select> name",axeSummary:"Ensure <select> elements have an accessible name",friendlySummary:"Give each <select> field a label or other accessible name."},"server-side-image-map":{title:"Server-side image map",axeSummary:"Ensure that server-side image maps are not used",friendlySummary:"Don't use server-side image maps."},"svg-img-alt":{title:"SVG image alt text",axeSummary:"Ensure <svg> images/graphics have accessible text",friendlySummary:'SVG images with role="img" or similar need a text description.'},"td-headers-attr":{title:"Table headers attribute",axeSummary:"Ensure each cell in a table using headers only refers to <th> in that table",friendlySummary:"In tables using the headers attribute, only reference other cells in the same table."},"th-has-data-cells":{title:"<th> has data cell",axeSummary:"Ensure <th> (or header role) elements have data cells they describe",friendlySummary:"Every table header (<th> or header role) should correspond to at least one data cell."},"valid-lang":{title:"Valid lang",axeSummary:"Ensure lang attributes have valid values",friendlySummary:"Use valid language codes in all lang attributes."},"video-caption":{title:"<video> captions",axeSummary:"Ensure <video> elements have captions",friendlySummary:"Provide captions for all <video> content."}},Qr={"autocomplete-valid":{title:"autocomplete attribute valid",axeSummary:"Ensure the autocomplete attribute is correct and suitable for the form field",friendlySummary:"Use valid autocomplete values that match the form field's purpose."},"avoid-inline-spacing":{title:"Forced inline spacing",axeSummary:"Ensure that text spacing set via inline styles can be adjusted with custom CSS",friendlySummary:"Don't lock in text spacing with forced (!important) inline styles\u2014allow user CSS to adjust text spacing."}},Zr={"target-size":{title:"Touch target size",axeSummary:"Ensure touch targets have sufficient size and space",friendlySummary:"Make sure interactive elements are big enough and not too close together for touch."}},Jr={accesskeys:{title:"Unique accesskey",axeSummary:"Ensure every accesskey attribute value is unique",friendlySummary:"Use unique values for all accesskey attributes."},"aria-allowed-role":{title:"Appropriate role value",axeSummary:"Ensure the role attribute has an appropriate value for the element",friendlySummary:"ARIA roles should have a valid value for the element."},"aria-dialog-name":{title:"ARIA dialog name",axeSummary:"Ensure every ARIA dialog and alertdialog has an accessible name",friendlySummary:"Give each ARIA dialog or alertdialog a title or accessible name."},"aria-text":{title:'ARIA role="text"',axeSummary:'Ensure role="text" is used on elements with no focusable descendants',friendlySummary:`Only use role="text" on elements that don't contain focusable elements.`},"aria-treeitem-name":{title:"ARIA treeitem name",axeSummary:"Ensure every ARIA treeitem node has an accessible name",friendlySummary:"Give each ARIA treeitem a label or accessible name."},"empty-heading":{title:"Empty heading",axeSummary:"Ensure headings have discernible text",friendlySummary:"Don't leave heading elements empty or hide them."},"empty-table-header":{title:"Empty table header",axeSummary:"Ensure table headers have discernible text",friendlySummary:"Make sure table header cells have visible text."},"frame-tested":{title:"Test all frames",axeSummary:"Ensure <iframe> and <frame> elements contain the axe-core script",friendlySummary:"Make sure axe-core is injected into all frames or iframes so they are tested."},"heading-order":{title:"Heading order",axeSummary:"Ensure the order of headings is semantically correct (no skipping levels)",friendlySummary:"Use proper heading order (don't skip heading levels)."},"image-redundant-alt":{title:"Redundant image alt text",axeSummary:"Ensure image alternative text is not repeated as nearby text",friendlySummary:"Avoid repeating the same information in both an image's alt text and nearby text."},"label-title-only":{title:"Visible form element label",axeSummary:"Ensure each form element has a visible label (not only title/ARIA)",friendlySummary:"Every form input needs a visible label (not only a title attribute or hidden text)."},"landmark-banner-is-top-level":{title:"Top-level landmark banner",axeSummary:"Ensure the banner landmark is at top level (not nested)",friendlySummary:"Use the banner landmark (e.g. site header) only at the top level of the page, not inside another landmark."},"landmark-complementary-is-top-level":{title:"Top-level <aside>",axeSummary:"Ensure the complementary landmark (<aside>) is top level",friendlySummary:'The complementary landmark <aside> or role="complementary" should be a top-level region, not nested in another landmark.'},"landmark-contentinfo-is-top-level":{title:"Top-level contentinfo",axeSummary:"Ensure the contentinfo landmark (footer) is top level",friendlySummary:"Make sure the contentinfo landmark (footer) is at the top level of the page and not contained in another landmark."},"landmark-main-is-top-level":{title:"Top-level main",axeSummary:"Ensure the main landmark is at top level",friendlySummary:"The main landmark should be a top-level element and not nested inside another landmark."},"landmark-no-duplicate-banner":{title:"Duplicate banner landmark",axeSummary:"Ensure the document has at most one banner landmark",friendlySummary:'Have only one role="banner" or <header> on a page.'},"landmark-no-duplicate-contentinfo":{title:"Duplicate contentinfo",axeSummary:"Ensure the document has at most one contentinfo landmark",friendlySummary:'Have only one role="contentinfo" or <footer> on a page.'},"landmark-no-duplicate-main":{title:"Duplicate main",axeSummary:"Ensure the document has at most one main landmark",friendlySummary:'Have only one role="main" or <main> on a page.'},"landmark-one-main":{title:"main landmark",axeSummary:"Ensure the document has a main landmark",friendlySummary:'Include a main landmark on each page using a <main> region or role="main".'},"landmark-unique":{title:"Unique landmark",axeSummary:"Ensure landmarks have a unique role or role/label combination",friendlySummary:"If you use multiple landmarks of the same type, give them unique labels (names)."},"meta-viewport-large":{title:"Significant viewport scaling",axeSummary:'Ensure <meta name="viewport"> can scale a significant amount (e.g. 500%)',friendlySummary:'<meta name="viewport"> should allow users to significantly scale content.'},"page-has-heading-one":{title:"Has <h1>",axeSummary:"Ensure the page (or at least one frame) contains a level-one heading",friendlySummary:"Every page or frame should have at least one <h1> heading."},"presentation-role-conflict":{title:"Presentational content",axeSummary:'Ensure elements with role="presentation"/"none" have no ARIA or tabindex',friendlySummary:`Don't give elements with role="none"/"presentation" any ARIA attributes or a tabindex.`},region:{title:"Landmark regions",axeSummary:"Ensure all page content is contained by landmarks",friendlySummary:"Wrap all page content in appropriate landmark regions (<header>, <main>, <footer>, etc.)."},"scope-attr-valid":{title:"scope attribute",axeSummary:"Ensure the scope attribute is used correctly on tables",friendlySummary:"Use the scope attribute only on <th> elements, with proper values (col, row, etc.)."},"skip-link":{title:"Skip link",axeSummary:'Ensure all "skip" links have a focusable target',friendlySummary:'Make sure any "skip to content" link targets an existing, focusable element.'},tabindex:{title:"tabindex values",axeSummary:"Ensure tabindex attribute values are not greater than 0",friendlySummary:"Don't use tabindex values greater than 0."},"table-duplicate-name":{title:"Duplicate names for table",axeSummary:"Ensure the <caption> does not duplicate the summary attribute text",friendlySummary:"Don't use the same text in both a table's <caption> and its summary attribute."}},en={"color-contrast-enhanced":{title:"Enhanced color contrast",axeSummary:"Ensure contrast between text and background meets WCAG 2 AAA enhanced contrast thresholds",friendlySummary:"Use extra-high contrast for text and background to meet WCAG AAA level."},"identical-links-same-purpose":{title:"Same link name, same purpose",axeSummary:"Ensure links with the same accessible name serve a similar purpose",friendlySummary:"If two links have the same text, they should do the same thing (lead to the same content)."},"meta-refresh-no-exceptions":{title:'No <meta http-equiv="refresh">',axeSummary:'Ensure <meta http-equiv="refresh"> is not used for delayed refresh (no exceptions)',friendlySummary:`Don't auto-refresh or redirect pages using <meta http-equiv="refresh"> even with a delay.`}},tn={"css-orientation-lock":{title:"CSS orientation lock",axeSummary:"Ensure content is not locked to a specific display orientation (works in all orientations)",friendlySummary:"Don't lock content to one screen orientation; support both portrait and landscape modes."},"focus-order-semantics":{title:"Focus order semantic role",axeSummary:"Ensure elements in the tab order have a role appropriate for interactive content",friendlySummary:"Ensure elements in the tab order have a role appropriate for interactive content"},"hidden-content":{title:"Hidden content",axeSummary:"Informs users about hidden content",friendlySummary:"Display hidden content on the page for test analysis."},"label-content-name-mismatch":{title:"Content name mismatch",axeSummary:"Ensure elements labeled by their content include that text in their accessible name",friendlySummary:"If an element's visible text serves as its label, include that text in its accessible name."},"p-as-heading":{title:"No <p> headings",axeSummary:"Ensure <p> elements aren't styled to look like headings (use real headings)",friendlySummary:"Don't just style a <p> to look like a heading \u2013 use an actual heading tag for headings."},"table-fake-caption":{title:"Table caption",axeSummary:"Ensure that tables with a caption use the <caption> element",friendlySummary:"Use a <caption> element for table captions instead of just styled text."},"td-has-header":{title:"<td> has header",axeSummary:"Ensure each non-empty data cell in large tables (3\xD73+) has one or more headers",friendlySummary:"Every data cell in large tables should be associated with at least one header cell."}},an={"aria-roledescription":{title:"aria-roledescription",axeSummary:"Ensure aria-roledescription is only used on elements with an implicit or explicit role",friendlySummary:"Only use aria-roledescription on elements that already have a defined role."}},Bt={...Xr,...Qr,...Zr,...en,...Jr,...tn,...an},Ye=e=>Bt[e.id]?.title||e.id,je=e=>Bt[e.id]?.friendlySummary||e.description,rn=["html","body","main"],Ue=Tt(Ct.light),Ge={[H.VIOLATION]:Ue.color.negative,[H.PASS]:Ue.color.positive,[H.INCOMPLETION]:Ue.color.warning},qt=te({parameters:{},results:void 0,highlighted:!1,toggleHighlight:()=>{},tab:H.VIOLATION,handleCopyLink:()=>{},setTab:()=>{},setStatus:()=>{},status:"initial",error:void 0,handleManual:()=>{},discrepancy:null,selectedItems:new Map,allExpanded:!1,toggleOpen:()=>{},handleCollapseAll:()=>{},handleExpandAll:()=>{},handleJumpToElement:()=>{},handleSelectionChange:()=>{}}),nn=e=>{let t=ht("a11y",{}),[a]=ve()??[],r=ie(),l=E((m=!1)=>m?"manual":"initial",[]),i=D(()=>a?.a11y?.manual??!1,[a?.a11y?.manual]),o=D(()=>{let m=r.getQueryParam("a11ySelection");return m&&r.setQueryParams({a11ySelection:""}),m},[r]),[u,c]=Ie(N,{ui:{highlighted:!1,tab:H.VIOLATION},results:void 0,error:void 0,status:l(i)}),{ui:s,results:d,error:f,status:S}=u,{storyId:g}=St(),h=yt(m=>m[g]?.[it]?.value);k(()=>ft("storybook/component-test").onAllStatusChange((m,b)=>{let p=m[g]?.[we],R=b[g]?.[we];p?.value==="status-value:error"&&R?.value!=="status-value:error"&&c(O=>({...O,status:"component-test-error"}))}),[c,g]);let T=E(()=>{c(m=>({...m,ui:{...m.ui,highlighted:!m.ui.highlighted}}))},[c]),[$,_]=V(()=>{let m=new Map;if(o&&/^[a-z]+.[a-z-]+.[0-9]+$/.test(o)){let[b,p]=o.split(".");m.set(`${b}.${p}`,o)}return m}),M=D(()=>d?.[s.tab]?.every(m=>$.has(`${s.tab}.${m.id}`))??!1,[d,$,s.tab]),ce=E((m,b,p)=>{m.stopPropagation();let R=`${b}.${p.id}`;_(O=>new Map(O.delete(R)?O:O.set(R,`${R}.1`)))},[]),Q=E(()=>{_(new Map)},[]),Oe=E(()=>{_(m=>new Map(d?.[s.tab]?.map(b=>{let p=`${s.tab}.${b.id}`;return[p,m.get(p)??`${p}.1`]})??[]))},[d,s.tab]),pe=E(m=>{let[b,p]=m.split(".");_(R=>new Map(R.set(`${b}.${p}`,m)))},[]),C=E(m=>{c(b=>({...b,status:"error",error:m}))},[c]),ae=E((m,b)=>{g===b&&(c(p=>({...p,status:"ran",results:m})),setTimeout(()=>{c(p=>p.status==="ran"?{...p,status:"ready"}:p),_(p=>{if(p.size===1){let[R]=p.values();document.getElementById(R)?.scrollIntoView({behavior:"smooth",block:"center"})}return p})},900))},[g,c,_]),ue=E((m,b)=>{let[p,R]=m.split("."),{helpUrl:O,nodes:ye}=d?.[p]?.find(ne=>ne.id===R)||{},be=O&&window.open(O,"_blank","noopener,noreferrer");if(ye&&!be){let ne=ye.findIndex(he=>b.selectors.some(pa=>pa===String(he.target)))??-1;if(ne!==-1){let he=`${p}.${R}.${ne+1}`;_(new Map([[`${p}.${R}`,he]])),setTimeout(()=>{document.getElementById(he)?.scrollIntoView({behavior:"smooth",block:"center"})},100)}}},[d]),re=E(({reporters:m})=>{let b=m.find(p=>p.type==="a11y");b&&("error"in b.result?C(b.result.error):ae(b.result,g))},[C,ae,g]),fe=E(({newPhase:m})=>{m==="loading"?c(b=>({...b,results:void 0,status:i?"manual":"initial"})):m==="afterEach"&&!i&&c(b=>({...b,status:"running"}))},[i,c]),Y=bt({[Z.RESULT]:ae,[Z.ERROR]:C,[Z.SELECT]:ue,[kt]:()=>_(new Map),[Pt]:fe,[wt]:re,[Nt]:()=>{c(m=>({...m,status:"running"})),Y(Z.MANUAL,g,t)}},[fe,re,ue,C,ae,t,g]),ke=E(()=>{c(m=>({...m,status:"running"})),Y(Z.MANUAL,g,t)},[Y,t,c,g]),W=E(async m=>{let{createCopyToClipboardFunction:b}=await Promise.resolve().then(()=>(K(),pt));await b()(`${window.location.origin}${m}`)},[]),ma=E(m=>Y(He,m),[Y]);k(()=>{c(m=>({...m,status:l(i)}))},[l,i,c]);let nt=S==="initial";k(()=>{o&&c(m=>{let b={...m.ui,highlighted:!0},[p]=o.split(".")??[];return p&&Object.values(H).includes(p)&&(b.tab=p),{...m,ui:b}})},[o]),k(()=>{if(Y(_e,`${N}/selected`),Y(_e,`${N}/others`),!s.highlighted||nt)return;let m=Array.from($.values()).flatMap(p=>{let[R,O,ye]=p.split(".");if(R!==s.tab)return[];let be=d?.[R]?.find(ne=>ne.id===O)?.nodes[Number(ye)-1]?.target;return be?[String(be)]:[]});m.length&&Y($e,{id:`${N}/selected`,priority:1,selectors:m,styles:{outline:`1px solid color-mix(in srgb, ${Ge[s.tab]}, transparent 30%)`,backgroundColor:"transparent"},hoverStyles:{outlineWidth:"2px"},focusStyles:{backgroundColor:"transparent"},menu:d?.[s.tab].map(p=>{let R=p.nodes.flatMap(O=>O.target).map(String).filter(O=>m.includes(O));return[{id:`${s.tab}.${p.id}:info`,title:Ye(p),description:je(p),selectors:R},{id:`${s.tab}.${p.id}`,iconLeft:"info",iconRight:"shareAlt",title:"Learn how to resolve this violation",clickEvent:Z.SELECT,selectors:R}]})});let b=d?.[s.tab].flatMap(p=>p.nodes.flatMap(R=>R.target).map(String)).filter(p=>![...rn,...m].includes(p));b?.length&&Y($e,{id:`${N}/others`,selectors:b,styles:{outline:`1px solid color-mix(in srgb, ${Ge[s.tab]}, transparent 30%)`,backgroundColor:`color-mix(in srgb, ${Ge[s.tab]}, transparent 60%)`},hoverStyles:{outlineWidth:"2px"},focusStyles:{backgroundColor:"transparent"},menu:d?.[s.tab].map(p=>{let R=p.nodes.flatMap(O=>O.target).map(String).filter(O=>!m.includes(O));return[{id:`${s.tab}.${p.id}:info`,title:Ye(p),description:je(p),selectors:R},{id:`${s.tab}.${p.id}`,iconLeft:"info",iconRight:"shareAlt",title:"Learn how to resolve this violation",clickEvent:Z.SELECT,selectors:R}]})})},[nt,Y,s.highlighted,d,s.tab,$]);let da=D(()=>{if(!h)return null;if(h==="status-value:success"&&d?.violations.length)return"cliPassedBrowserFailed";if(h==="status-value:error"&&!d?.violations.length){if(S==="ready"||S==="ran")return"browserPassedCliFailed";if(S==="manual")return"cliFailedButModeManual"}return null},[d?.violations.length,S,h]);return n.createElement(qt.Provider,{value:{parameters:t,results:d,highlighted:s.highlighted,toggleHighlight:T,tab:s.tab,setTab:E(m=>c(b=>({...b,ui:{...b.ui,tab:m}})),[c]),handleCopyLink:W,status:S,setStatus:E(m=>c(b=>({...b,status:m})),[c]),error:f,handleManual:ke,discrepancy:da,selectedItems:$,toggleOpen:ce,allExpanded:M,handleCollapseAll:Q,handleExpandAll:Oe,handleJumpToElement:ma,handleSelectionChange:pe},...e})},Ze=()=>le(qt);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},P.apply(null,arguments)}function X(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}function Je(e,t=[]){let a=[];function r(i,o){let u=te(o),c=a.length;a=[...a,o];function s(f){let{scope:S,children:g,...h}=f,T=S?.[e][c]||u,$=D(()=>h,Object.values(h));return y(T.Provider,{value:$},g)}function d(f,S){let g=S?.[e][c]||u,h=le(g);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return s.displayName=i+"Provider",[s,d]}let l=()=>{let i=a.map(o=>te(o));return function(o){let u=o?.[e]||i;return D(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return l.scopeName=e,[r,on(l,...t)]}function on(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(l){let i=r.reduce((o,{useScope:u,scopeName:c})=>{let s=u(l)[`__scope${c}`];return{...o,...s}},{});return D(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return a.scopeName=t.scopeName,a}function ln(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function et(...e){return t=>e.forEach(a=>ln(a,t))}function Te(...e){return E(et(...e),e)}var We=w((e,t)=>{let{children:a,...r}=e,l=F.toArray(a),i=l.find(cn);if(i){let o=i.props.children,u=l.map(c=>c===i?F.count(o)>1?F.only(null):j(o)?o.props.children:null:c);return y(ze,P({},r,{ref:t}),j(o)?J(o,void 0,u):null)}return y(ze,P({},r,{ref:t}),a)});We.displayName="Slot";var ze=w((e,t)=>{let{children:a,...r}=e;return j(a)?J(a,{...un(r,a.props),ref:t?et(t,a.ref):a.ref}):F.count(a)>1?F.only(null):null});ze.displayName="SlotClone";var sn=({children:e})=>y(oe,null,e);function cn(e){return j(e)&&e.type===sn}function un(e,t){let a={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?a[r]=(...o)=>{i(...o),l(...o)}:l&&(a[r]=l):r==="style"?a[r]={...l,...i}:r==="className"&&(a[r]=[l,i].filter(Boolean).join(" "))}return{...e,...a}}function mn(e){let t=e+"CollectionProvider",[a,r]=Je(t),[l,i]=a(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{let{scope:h,children:T}=g,$=n.useRef(null),_=n.useRef(new Map).current;return n.createElement(l,{scope:h,itemMap:_,collectionRef:$},T)};Object.assign(o,{displayName:t});let u=e+"CollectionSlot",c=n.forwardRef((g,h)=>{let{scope:T,children:$}=g,_=i(u,T),M=Te(h,_.collectionRef);return n.createElement(We,{ref:M},$)});Object.assign(c,{displayName:u});let s=e+"CollectionItemSlot",d="data-radix-collection-item",f=n.forwardRef((g,h)=>{let{scope:T,children:$,..._}=g,M=n.useRef(null),ce=Te(h,M),Q=i(s,T);return n.useEffect(()=>(Q.itemMap.set(M,{ref:M,..._}),()=>{Q.itemMap.delete(M)})),n.createElement(We,{[d]:"",ref:ce},$)});Object.assign(f,{displayName:s});function S(g){let h=i(e+"CollectionConsumer",g);return n.useCallback(()=>{let T=h.collectionRef.current;if(!T)return[];let $=Array.from(T.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((_,M)=>$.indexOf(_.ref.current)-$.indexOf(M.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},S,r]}var Ke=globalThis?.document?ut:()=>{},dn=ct||(()=>{}),pn=0;function Vt(e){let[t,a]=V(dn());return Ke(()=>{e||a(r=>r??String(pn++))},[e]),e||(t?`radix-${t}`:"")}var Yt=w((e,t)=>{let{children:a,...r}=e,l=F.toArray(a),i=l.find(yn);if(i){let o=i.props.children,u=l.map(c=>c===i?F.count(o)>1?F.only(null):j(o)?o.props.children:null:c);return y(Xe,P({},r,{ref:t}),j(o)?J(o,void 0,u):null)}return y(Xe,P({},r,{ref:t}),a)});Yt.displayName="Slot";var Xe=w((e,t)=>{let{children:a,...r}=e;return j(a)?J(a,{...bn(r,a.props),ref:t?et(t,a.ref):a.ref}):F.count(a)>1?F.only(null):null});Xe.displayName="SlotClone";var fn=({children:e})=>y(oe,null,e);function yn(e){return j(e)&&e.type===fn}function bn(e,t){let a={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?a[r]=(...o)=>{i(...o),l(...o)}:l&&(a[r]=l):r==="style"?a[r]={...l,...i}:r==="className"&&(a[r]=[l,i].filter(Boolean).join(" "))}return{...e,...a}}var hn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],se=hn.reduce((e,t)=>{let a=w((r,l)=>{let{asChild:i,...o}=r,u=i?Yt:t;return k(()=>{window[Symbol.for("radix-ui")]=!0},[]),y(u,P({},o,{ref:l}))});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function tt(e){let t=q(e);return k(()=>{t.current=e}),D(()=>(...a)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...a)},[])}function jt({prop:e,defaultProp:t,onChange:a=()=>{}}){let[r,l]=Sn({defaultProp:t,onChange:a}),i=e!==void 0,o=i?e:r,u=tt(a),c=E(s=>{if(i){let d=typeof s=="function"?s(e):s;d!==e&&u(d)}else l(s)},[i,e,l,u]);return[o,c]}function Sn({defaultProp:e,onChange:t}){let a=V(e),[r]=a,l=q(r),i=tt(t);return k(()=>{l.current!==r&&(i(r),l.current=r)},[r,l,i]),a}var gn=te(void 0);function Wt(e){let t=le(gn);return e||t||"ltr"}var Be="rovingFocusGroup.onEntryFocus",En={bubbles:!1,cancelable:!0},Ce="RovingFocusGroup",[Qe,zt,In]=mn(Ce),[vn,Kt]=Je(Ce,[In]),[An,xn]=vn(Ce),Xt=w((e,t)=>y(Qe.Provider,{scope:e.__scopeRovingFocusGroup},y(Qe.Slot,{scope:e.__scopeRovingFocusGroup},y($n,P({},e,{ref:t})))));Object.assign(Xt,{displayName:Ce});var $n=w((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:r,loop:l=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:s,...d}=e,f=q(null),S=Te(t,f),g=Wt(i),[h=null,T]=jt({prop:o,defaultProp:u,onChange:c}),[$,_]=V(!1),M=tt(s),ce=zt(a),Q=q(!1),[Oe,pe]=V(0);return k(()=>{let C=f.current;if(C)return C.addEventListener(Be,M),()=>C.removeEventListener(Be,M)},[M]),y(An,{scope:a,orientation:r,dir:g,loop:l,currentTabStopId:h,onItemFocus:E(C=>T(C),[T]),onItemShiftTab:E(()=>_(!0),[]),onFocusableItemAdd:E(()=>pe(C=>C+1),[]),onFocusableItemRemove:E(()=>pe(C=>C-1),[])},y(se.div,P({tabIndex:$||Oe===0?-1:0,"data-orientation":r},d,{ref:S,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{Q.current=!0}),onFocus:X(e.onFocus,C=>{let ae=!Q.current;if(C.target===C.currentTarget&&ae&&!$){let ue=new CustomEvent(Be,En);if(C.currentTarget.dispatchEvent(ue),!ue.defaultPrevented){let re=ce().filter(W=>W.focusable),fe=re.find(W=>W.active),Y=re.find(W=>W.id===h),ke=[fe,Y,...re].filter(Boolean).map(W=>W.ref.current);Jt(ke)}}Q.current=!1}),onBlur:X(e.onBlur,()=>_(!1))})))}),Qt="RovingFocusGroupItem",Zt=w((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:r=!0,active:l=!1,tabStopId:i,...o}=e,u=Vt(),c=i||u,s=xn(Qt,a),d=s.currentTabStopId===c,f=zt(a),{onFocusableItemAdd:S,onFocusableItemRemove:g}=s;return k(()=>{if(r)return S(),()=>g()},[r,S,g]),y(Qe.ItemSlot,{scope:a,id:c,focusable:r,active:l},y(se.span,P({tabIndex:d?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:X(e.onMouseDown,h=>{r?s.onItemFocus(c):h.preventDefault()}),onFocus:X(e.onFocus,()=>s.onItemFocus(c)),onKeyDown:X(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){s.onItemShiftTab();return}if(h.target!==h.currentTarget)return;let T=Tn(h,s.orientation,s.dir);if(T!==void 0){h.preventDefault();let $=f().filter(_=>_.focusable).map(_=>_.ref.current);if(T==="last")$.reverse();else if(T==="prev"||T==="next"){T==="prev"&&$.reverse();let _=$.indexOf(h.currentTarget);$=s.loop?Cn($,_+1):$.slice(_+1)}setTimeout(()=>Jt($))}})})))});Object.assign(Zt,{displayName:Qt});var _n={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rn(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tn(e,t,a){let r=Rn(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _n[r]}function Jt(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function Cn(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var On=Xt,kn=Zt;function wn(e,t){return mt((a,r)=>t[a][r]??a,e)}var ea=e=>{let{present:t,children:a}=e,r=Nn(t),l=typeof a=="function"?a({present:r.isPresent}):F.only(a),i=Te(r.ref,l.ref);return typeof a=="function"||r.isPresent?J(l,{ref:i}):null};ea.displayName="Presence";function Nn(e){let[t,a]=V(),r=q({}),l=q(e),i=q("none"),o=e?"mounted":"unmounted",[u,c]=wn(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k(()=>{let s=Re(r.current);i.current=u==="mounted"?s:"none"},[u]),Ke(()=>{let s=r.current,d=l.current;if(d!==e){let f=i.current,S=Re(s);e?c("MOUNT"):S==="none"||s?.display==="none"?c("UNMOUNT"):c(d&&f!==S?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,c]),Ke(()=>{if(t){let s=f=>{let S=Re(r.current).includes(f.animationName);f.target===t&&S&&Dt(()=>c("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Re(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E(s=>{s&&(r.current=getComputedStyle(s)),a(s)},[])}}function Re(e){return e?.animationName||"none"}var at="Tabs",[Pn,xf]=Je(at,[Kt]),ta=Kt(),[Dn,rt]=Pn(at),aa=w((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:l,defaultValue:i,orientation:o="horizontal",dir:u,activationMode:c="automatic",...s}=e,d=Wt(u),[f,S]=jt({prop:r,onChange:l,defaultProp:i});return y(Dn,{scope:a,baseId:Vt(),value:f,onValueChange:S,orientation:o,dir:d,activationMode:c},y(se.div,P({dir:d,"data-orientation":o},s,{ref:t})))});Object.assign(aa,{displayName:at});var ra="TabsList",na=w((e,t)=>{let{__scopeTabs:a,loop:r=!0,...l}=e,i=rt(ra,a),o=ta(a);return y(On,P({asChild:!0},o,{orientation:i.orientation,dir:i.dir,loop:r}),y(se.div,P({role:"tablist","aria-orientation":i.orientation},l,{ref:t})))});Object.assign(na,{displayName:ra});var oa="TabsTrigger",la=w((e,t)=>{let{__scopeTabs:a,value:r,disabled:l=!1,...i}=e,o=rt(oa,a),u=ta(a),c=ca(o.baseId,r),s=ua(o.baseId,r),d=r===o.value;return y(kn,P({asChild:!0},u,{focusable:!l,active:d}),y(se.button,P({type:"button",role:"tab","aria-selected":d,"aria-controls":s,"data-state":d?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:c},i,{ref:t,onMouseDown:X(e.onMouseDown,f=>{!l&&f.button===0&&f.ctrlKey===!1?o.onValueChange(r):f.preventDefault()}),onKeyDown:X(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(r)}),onFocus:X(e.onFocus,()=>{let f=o.activationMode!=="manual";!d&&!l&&f&&o.onValueChange(r)})})))});Object.assign(la,{displayName:oa});var ia="TabsContent",sa=w((e,t)=>{let{__scopeTabs:a,value:r,forceMount:l,children:i,...o}=e,u=rt(ia,a),c=ca(u.baseId,r),s=ua(u.baseId,r),d=r===u.value,f=q(d);return k(()=>{let S=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(S)},[]),y(ea,{present:l||d},({present:S})=>y(se.div,P({"data-state":d?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!S,id:s,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),S&&i))});Object.assign(sa,{displayName:ia});function ca(e,t){return`${e}-trigger-${t}`}function ua(e,t){return`${e}-content-${t}`}var Ln=aa,Mn=na,Fn=la,Lt=sa,Mt=I(Le)(({theme:e})=>({fontSize:e.typography.size.s1}),({language:e})=>e==="css"&&{".selector ~ span:nth-last-of-type(-n+3)":{display:"none"}}),Hn=I.div({display:"flex",flexDirection:"column"}),Un=I.div(({theme:e})=>({display:"block",color:e.textMutedColor,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,marginTop:-8,marginBottom:12,"@container (min-width: 800px)":{display:"none"}})),Gn=I.p({margin:0}),Bn=I.div({display:"flex",flexDirection:"column",padding:"0 15px 20px 15px",gap:20}),qn=I.div({gap:15,"@container (min-width: 800px)":{display:"grid",gridTemplateColumns:"50% 50%"}}),Ft=I.div(({theme:e,side:t})=>({display:t==="left"?"flex":"none",flexDirection:"column",gap:15,margin:t==="left"?"15px 0":0,padding:t==="left"?"0 15px":0,borderLeft:t==="left"?`1px solid ${e.color.border}`:"none","&:focus-visible":{outline:"none",borderRadius:4,boxShadow:`0 0 0 1px inset ${e.color.secondary}`},"@container (min-width: 800px)":{display:t==="left"?"none":"flex"}})),Vn=I(L)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontWeight:e.typography.weight.regular,color:e.textMutedColor,height:40,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block",width:"100%",textAlign:"left",padding:"0 12px",'&[data-state="active"]':{color:e.color.secondary,backgroundColor:e.background.hoverable}})),Yn=I.div({display:"flex",flexDirection:"column",gap:10}),jn=I.div({display:"flex",gap:10}),Wn=({onClick:e})=>{let[t,a]=V(!1),r=E(()=>{e(),a(!0);let l=setTimeout(()=>a(!1),2e3);return()=>clearTimeout(l)},[e]);return n.createElement(L,{ariaLabel:!1,onClick:r},t?n.createElement(Et,null):n.createElement(At,null)," ",t?"Copied":"Copy link")},zn=({id:e,item:t,type:a,selection:r,handleSelectionChange:l})=>n.createElement(Bn,{id:e},n.createElement(Hn,null,n.createElement(Un,null,t.id),n.createElement(Gn,null,je(t)," ",n.createElement(de,{href:t.helpUrl,target:"_blank",rel:"noopener noreferrer",withArrow:!0},"Learn how to resolve this violation"))),n.createElement(Ln,{defaultValue:r,orientation:"vertical",value:r,onValueChange:l,asChild:!0},n.createElement(qn,null,n.createElement(Mn,{"aria-label":a},t.nodes.map((i,o)=>{let u=`${a}.${t.id}.${o+1}`;return n.createElement(oe,{key:u},n.createElement(Fn,{value:u,asChild:!0},n.createElement(Vn,{ariaLabel:!1,variant:"ghost",size:"medium",id:u},o+1,". ",i.html)),n.createElement(Lt,{value:u,asChild:!0},n.createElement(Ft,{side:"left"},Ht(i))))})),t.nodes.map((i,o)=>{let u=`${a}.${t.id}.${o+1}`;return n.createElement(Lt,{key:u,value:u,asChild:!0},n.createElement(Ft,{side:"right"},Ht(i)))}))));function Ht(e){let{handleCopyLink:t,handleJumpToElement:a}=Ze(),{any:r,all:l,none:i,html:o,target:u}=e,c=[...r,...l,...i];return n.createElement(n.Fragment,null,n.createElement(Yn,null,c.map(s=>n.createElement("div",{key:s.id},`${s.message}${/(\.|: [^.]+\.*)$/.test(s.message)?"":"."}`))),n.createElement(jn,null,n.createElement(L,{ariaLabel:!1,onClick:()=>a(e.target.toString())},n.createElement(Rt,null)," Jump to element"),n.createElement(Wn,{onClick:()=>t(e.linkPath)})),n.createElement(Mt,{language:"jsx",wrapLongLines:!0},`/* element */
${o}`),n.createElement(Mt,{language:"css",wrapLongLines:!0},`/* selector */
${u} {}`))}var Kn={minor:"neutral",moderate:"warning",serious:"negative",critical:"critical"},Xn={minor:"Minor",moderate:"Moderate",serious:"Serious",critical:"Critical"},Qn=I.div(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",borderBottom:`1px solid ${e.appBorderColor}`,containerType:"inline-size",fontSize:e.typography.size.s2})),Zn=I(It)({transition:"transform 0.1s ease-in-out"}),Jn=I.div(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"6px 10px 6px 15px",minHeight:40,background:"none",color:"inherit",textAlign:"left",cursor:"pointer",width:"100%","&:hover":{color:e.color.secondary}})),eo=I.div(({theme:e})=>({display:"flex",alignItems:"baseline",flexGrow:1,fontSize:e.typography.size.s2,gap:8})),to=I.div(({theme:e})=>({display:"none",color:e.textMutedColor,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,"@container (min-width: 800px)":{display:"block"}})),ao=I.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.textMutedColor,width:28,height:28})),qe=({items:e,empty:t,type:a,handleSelectionChange:r,selectedItems:l,toggleOpen:i})=>n.createElement(n.Fragment,null,e&&e.length?e.map(o=>{let u=`${a}.${o.id}`,c=`details:${u}`,s=l.get(u),d=Ye(o);return n.createElement(Qn,{key:u},n.createElement(Jn,{onClick:f=>i(f,a,o),"data-active":!!s},n.createElement(eo,null,n.createElement("strong",null,d),n.createElement(to,null,o.id)),o.impact&&n.createElement(z,{status:a===H.PASS?"neutral":Kn[o.impact]},Xn[o.impact]),n.createElement(ao,null,o.nodes.length),n.createElement(L,{onClick:f=>i(f,a,o),ariaLabel:`${s?"Collapse":"Expand"} details for: ${d}`,"aria-expanded":!!s,"aria-controls":c,variant:"ghost",padding:"small"},n.createElement(Zn,{style:{transform:`rotate(${s?-180:0}deg)`}}))),s?n.createElement(zn,{id:c,item:o,type:a,selection:s,handleSelectionChange:r}):n.createElement("div",{id:c}))}):n.createElement(Pe,{title:t})),ro=I.div({width:"100%",position:"relative",height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"}),no=I.div({display:"flex",justifyContent:"flex-end",gap:6}),oo=({tabs:e})=>{let{tab:t,setTab:a,toggleHighlight:r,highlighted:l,handleManual:i,allExpanded:o,handleCollapseAll:u,handleExpandAll:c}=Ze(),s=Ot();return y(ro,null,y(Me,{backgroundColor:s.background.app,panelProps:{hasScrollbar:!0},tabs:e.map(d=>({id:d.type,title:d.label,children:d.panel})),selected:t,onSelectionChange:d=>a(d),tools:y(no,null,y(L,{variant:"ghost",padding:"small",onClick:r,ariaLabel:l?"Hide accessibility test result highlights":"Highlight elements with accessibility test results"},l?y($t,null):y(_t,null)),y(L,{variant:"ghost",padding:"small",onClick:o?u:c,ariaLabel:o?"Collapse all results":"Expand all results","aria-expanded":o},o?y(vt,null):y(xt,null)),y(L,{variant:"ghost",padding:"small",onClick:i,ariaLabel:"Rerun accessibility scan"},y(Ae,null)))}))},lo=I.div(({theme:{color:e,typography:t,background:a}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:a.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative",code:{fontSize:`${t.size.s1-1}px`,color:"inherit",margin:"0 0.2em",padding:"0 0.2em",background:"rgba(255, 255, 255, 0.8)",borderRadius:"2px",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.1)"}})),io=({discrepancy:e})=>{let t=ie().getDocsUrl({subpath:lt,versioned:!0,renderer:!0}),a=D(()=>{switch(e){case"browserPassedCliFailed":return"Accessibility checks passed in this browser but failed in the CLI.";case"cliPassedBrowserFailed":return"Accessibility checks passed in the CLI but failed in this browser.";case"cliFailedButModeManual":return"Accessibility checks failed in the CLI. Run the tests manually to see the results.";default:return null}},[e]);return a?n.createElement(lo,null,a," ",n.createElement(de,{href:t,target:"_blank",withArrow:!0},"Learn what could cause this")):null},Ut=I(Ae)(({theme:e})=>({animation:`${e.animation.rotate360} 1s linear infinite;`,margin:4})),Ve=I.div({display:"flex",alignItems:"center",gap:6}),Gt=I.span(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",fontSize:e.typography.size.s2,height:"100%",gap:24,div:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},p:{margin:0,color:e.textMutedColor},code:{display:"inline-block",fontSize:e.typography.size.s2-1,backgroundColor:e.background.app,border:`1px solid ${e.color.border}`,borderRadius:4,padding:"2px 3px"}})),so=()=>{let{parameters:e,tab:t,results:a,status:r,handleManual:l,error:i,discrepancy:o,handleSelectionChange:u,selectedItems:c,toggleOpen:s}=Ze(),d=D(()=>{let{passes:f,incomplete:S,violations:g}=a??{passes:[],incomplete:[],violations:[]};return[{label:n.createElement(Ve,null,"Violations",n.createElement(z,{compact:!0,status:t==="violations"?"active":"neutral"},g.length)),panel:n.createElement(qe,{items:g,type:H.VIOLATION,empty:"No accessibility violations found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:g,type:H.VIOLATION},{label:n.createElement(Ve,null,"Passes",n.createElement(z,{compact:!0,status:t==="passes"?"active":"neutral"},f.length)),panel:n.createElement(qe,{items:f,type:H.PASS,empty:"No passing accessibility checks found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:f,type:H.PASS},{label:n.createElement(Ve,null,"Inconclusive",n.createElement(z,{compact:!0,status:t==="incomplete"?"active":"neutral"},S.length)),panel:n.createElement(qe,{items:S,type:H.INCOMPLETION,empty:"No inconclusive accessibility checks found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:S,type:H.INCOMPLETION}]},[t,a,u,c,s]);return e.disable||e.test==="off"?n.createElement(Gt,null,n.createElement("div",null,n.createElement("strong",null,"Accessibility tests are disabled for this story"),n.createElement("p",null,"Update"," ",n.createElement("code",null,e.disable?"parameters.a11y.disable":"parameters.a11y.test")," ","to enable accessibility tests."))):n.createElement(n.Fragment,null,o&&n.createElement(io,{discrepancy:o}),r==="ready"||r==="ran"?n.createElement(oo,{key:"tabs",tabs:d}):n.createElement(Gt,{style:{marginTop:o?"1em":0}},r==="initial"&&n.createElement("div",null,n.createElement(Ut,{size:12}),n.createElement("strong",null,"Preparing accessibility scan"),n.createElement("p",null,"Please wait while the addon is initializing...")),r==="manual"&&n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("strong",null,"Accessibility tests run manually for this story"),n.createElement("p",null,"Results will not show when using the testing module. You can still run accessibility tests manually.")),n.createElement(L,{ariaLabel:!1,size:"medium",onClick:l},"Run accessibility scan"),n.createElement("p",null,"Update ",n.createElement("code",null,"globals.a11y.manual")," to disable manual mode.")),r==="running"&&n.createElement("div",null,n.createElement(Ut,{size:12}),n.createElement("strong",null,"Accessibility scan in progress"),n.createElement("p",null,"Please wait while the accessibility scan is running...")),r==="error"&&n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("strong",null,"The accessibility scan encountered an error"),n.createElement("p",null,typeof i=="string"?i:i instanceof Error?i.toString():JSON.stringify(i,null,2))),n.createElement(L,{ariaLabel:!1,size:"medium",onClick:l},"Rerun accessibility scan")),r==="component-test-error"&&n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("strong",null,"This story's component tests failed"),n.createElement("p",null,"Automated accessibility tests will not run until this is resolved. You can still test manually.")),n.createElement(L,{ariaLabel:!1,size:"medium",onClick:l},"Run accessibility scan"))))},co=I.div({"&, & svg":{position:"absolute",width:0,height:0}}),uo=I.span({background:"linear-gradient(to right, #F44336, #FF9800, #FFEB3B, #8BC34A, #2196F3, #9C27B0)",borderRadius:14,display:"block",flexShrink:0,height:14,width:14},({$filter:e})=>({filter:Ne[e].filter||"none"}),({theme:e})=>({boxShadow:`${e.appBorderColor} 0 0 0 1px inset`})),mo=()=>{let[e,t,a]=ve(),r=e[me],l=a[me]!==void 0,i=Object.entries(Ne).map(([o,{label:u,percentage:c}])=>({title:u,description:c?`${c}% of users`:void 0,icon:n.createElement(uo,{$filter:o}),value:o}));return n.createElement(n.Fragment,null,n.createElement(De,{resetLabel:"Reset color filter",onReset:()=>t({[me]:void 0}),icon:n.createElement(gt,null),disabled:l,ariaLabel:l?"Vision filter set by story globals":"Vision filter",ariaDescription:"Select a vision filter among predefined options, or reset to remove the filter.",tooltip:l?"Vision filter set by story globals":"Change vision filter",defaultOptions:r,options:i,onSelect:o=>t({[me]:o})}),n.createElement(co,{dangerouslySetInnerHTML:{__html:st}}))},po=()=>{let e=ie().getSelectedPanel(),[{results:t}]=Ie(N,{ui:{highlighted:!1,tab:H.VIOLATION},results:void 0,error:void 0,status:"initial"}),a=t?.violations?.length??0,r=t?.incomplete?.length??0,l=a+r,i=l===0?null:n.createElement(z,{compact:!0,status:e===ge?"active":"neutral"},l);return n.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},n.createElement("span",null,"Accessibility"),i)};Ee.register(N,e=>{Ee.add(ge,{title:"",type:Fe.TOOL,match:({viewMode:t,tabId:a})=>t==="story"&&!a,render:()=>n.createElement(mo,null)}),Ee.add(ge,{title:po,type:Fe.PANEL,render:({active:t=!0})=>n.createElement(nn,null,t?n.createElement(so,null):null),paramKey:ot})});})();
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }