1import{q as A,u as s,A as b,T as M,h as w,x as Q,g as R}from"./esnext-vendor.B9Da21W6.js";import{aG as K,a9 as U,aH as L,aI as X,aJ as Y,av as Z,u as $,aK as ee,aL as te,aM as T,aN as ne,aO as O,aP as ae,aQ as re,aR as oe,aS as h,aT as se,aU as ce,aV as ie,aW as le}from"./hydrate.DZ4YTm7p.js";import{b6 as ue,b7 as fe}from"./addresses-is-address-empty.Bn2lNY_L.js";import"./app.DbSrjjlA.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(Y(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 g=K(),{getInteraction:E}=Z(),_=b(t),I=b(t),l=b(null),{popover:{connector:W="arrow",cornerRadius:j}}=$(),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(g)return g.activatorRef.current??null;if(r){const o=E(r);if(te(o)&&o.invokerRef?.current)return o.invokerRef.current}return null},[E,r,g]),p=A(()=>{C?.()},[C]);return w(()=>{const o=e=>{const P=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)&&(P||!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 P=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(),P?.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.