1import{q as A,u as s,A as b,T as M,h as w,x as Q,i as R}from"./2c1ab0fe.BqEHHmaW.js";import{aG as K,aH as U,aI as L,aJ as X,aK as $,ax as Y,$ as Z,aL as ee,aM as te,aN as T,aO as ne,aP as O,aQ as ae,aR as re,aS as oe,aT as h,aU as se,aV as ce,aW as ie,aX as le}from"./164ad2e3.BA-GikTU.js";import{b4 as ue,b5 as fe}from"./4c290a1e.FJVsH4yi.js";import"./app.D2gvVyTR.js";var x={Content:"xhuvqpk xhuvqpj _1fragem108 _1fragem10n _1fragemzt _1fragem112 _1fragemup _1fragemv4 _1fragemws _1fragem131 _1fragem133",Popover:"xhuvqp1 xhuvqp0 _1fragemws _1fragemy5 _1fragem133",popoverConnectorVariant:{arrow:"xhuvqp5",none:"xhuvqp6"},popoverPlacementVariant:{blockStart:"xhuvqp7",blockStartSpanInlineEnd:"xhuvqp8",blockStartSpanInlineStart:"xhuvqp9",blockEnd:"xhuvqpa",blockEndSpanInlineEnd:"xhuvqpb",blockEndSpanInlineStart:"xhuvqpc",inlineStart:"xhuvqpd",inlineStartSpanBlockEnd:"xhuvqpe",inlineStartSpanBlockStart:"xhuvqpf",inlineEnd:"xhuvqpg",inlineEndSpanBlockEnd:"xhuvqph",inlineEndSpanBlockStart:"xhuvqpi"}};function xe(c){const a=K(),{active:u,setActive:i}=a||{},{onHide:f}=c,r=A(()=>{i?.(!1),typeof f=="function"&&f()},[i,f]);if(a){a.setActivatorAttributes({"aria-expanded":a.active,"aria-controls":c.id}),a.attach("onClick",()=>{u&&r(),i?.(!u)});const{children:v}=c;return s(F,{...c,onHide:r,open:u,children:U(v)&&s(L,{children:v})})}return s(F,{...c})}const F=X($(function({blockSize:a="auto",children:u,connector:i,offset:f,id:r,inlineSize:v="auto",keepMounted:d=!1,maxBlockSize:y="none",maxInlineSize:V="none",minBlockSize:B="0",minInlineSize:D="0",onHide:C,onShow:S,padding:H="base",positionArea:q="block-start",open:t=!1}){const P=K(),{getInteraction:E}=Y(),_=b(t),I=b(t),l=b(null),{popover:{connector:W="arrow",cornerRadius:j}}=Z(),N=i??W,{className:z,style:G}=ee({blockSize:a,inlineSize:v,padding:H,maxBlockSize:y,maxInlineSize:V,minBlockSize:B,minInlineSize:D}),n=M(()=>{if(P)return P.activatorRef.current??null;if(r){const o=E(r);if(te(o)&&o.invokerRef?.current)return o.invokerRef.current}return null},[E,r,P]),p=A(()=>{C?.()},[C]);return w(()=>{const o=e=>{const g=T(l.current),m=ne(e),k=O(n);e.target instanceof Node&&document.contains(e.target)&&!l.current?.contains(e.target)&&!n?.contains(e.target)&&(g||!m)&&(k||!O(e.target))&&t&&p()};return document.addEventListener("click",o),()=>{document.removeEventListener("click",o)}},[n,p,t]),w(()=>{const o=e=>{if(!t)return;const g=n&&ae(n),m=l.current&&re(l.current),k=l.current&&oe(l.current),J=T(l.current);switch(e.key){case"Escape":case"Esc":J&&(p(),n?.focus());break;case"Tab":{h(n)&&e.shiftKey?p():h(n)?(e.preventDefault(),m?.focus()):h(m)&&e.shiftKey?(e.preventDefault(),n?.focus(),p()):h(k)&&!e.shiftKey&&(e.preventDefault(),g?.focus(),p());break}}};return t&&document.addEventListener("keydown",o,!1),!_.current&&t&&S?.(),_.current=t,t&&(I.current=!0),()=>{document.removeEventListener("keydown",o,!1)}},[n,p,S,t]),!t&&!(d&&I.current)?null:s(se,{activator:n,offset:f??N==="arrow"?15:5,positionArea:q,preventOverflow:!0,id:r,hidden:!t,children:s(pe,{positionArea:q,connector:N,cornerRadius:j,popoverRef:l,responsiveClassNames:z,responsiveStyle:G,children:u})})},{overlayType:"popover"}),{focusActivatorWhenClosing:!0});function pe({children:c,positionArea:a,connector:u,cornerRadius:i,popoverRef:f,responsiveClassNames:r,responsiveStyle:v}){const d=Q(ce),y=d?ie(d.position,d.alignment):ue(a);return s(L,{children:s("div",{className:R(x.Popover,x.popoverPlacementVariant[y],x.popoverConnectorVariant[u]),ref:f,style:{...i!=null&&{borderRadius:fe(i)}},children:s("div",{className:R(x.Content,r),style:v,children:s(le,{children:c})})})})}export{xe as P};
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.