1import{b as I}from"/public/_shared/chunk-Y6KL2P3H.js";import{c as m,e as d}from"/public/_shared/chunk-7EH5Q6MA.js";import{a as N}from"/public/_shared/chunk-22TO5NXH.js";import{e as A}from"/public/_shared/chunk-E5MY6QXT.js";var e=A(N());function y(s){let a=s+"CollectionProvider",[$,E]=I(a),[h,f]=$(a,{collectionRef:{current:null},itemMap:new Map}),p=r=>{let{scope:t,children:l}=r,o=e.default.useRef(null),c=e.default.useRef(new Map).current;return e.default.createElement(h,{scope:t,itemMap:c,collectionRef:o},l)},u=s+"CollectionSlot",C=e.default.forwardRef((r,t)=>{let{scope:l,children:o}=r,c=f(u,l),n=m(t,c.collectionRef);return e.default.createElement(d,{ref:n},o)}),R=s+"CollectionItemSlot",M="data-radix-collection-item",S=e.default.forwardRef((r,t)=>{let{scope:l,children:o,...c}=r,n=e.default.useRef(null),x=m(t,n),i=f(R,l);return e.default.useEffect(()=>(i.itemMap.set(n,{ref:n,...c}),()=>void i.itemMap.delete(n))),e.default.createElement(d,{[M]:"",ref:x},o)});function v(r){let t=f(s+"CollectionConsumer",r);return e.default.useCallback(()=>{let o=t.collectionRef.current;if(!o)return[];let c=Array.from(o.querySelectorAll(`[${M}]`));return Array.from(t.itemMap.values()).sort((i,O)=>c.indexOf(i.ref.current)-c.indexOf(O.ref.current))},[t.collectionRef,t.itemMap])}return[{Provider:p,Slot:C,ItemSlot:S},v,E]}export{y as a};
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.