1import{o as e}from"./rolldown-runtime-CoV_I8sK.js";import{t}from"./react-CpBNgyEA.js";import{t as n}from"./jsx-runtime-CFmj9-ij.js";import{t as r}from"./toInteger-E0mpc4Ru.js";import{k as i,x as a}from"./hasIn-CVdFK-MK.js";import{t as o}from"./_baseFindIndex-Bd6_1O0y.js";import{t as s}from"./_baseIteratee-H5pzsCh3.js";import{p as c}from"./utils-BQE1H7ZV.js";import{t as l}from"./isTruthy-BLUJH3lx.js";import{t as u}from"./classnames-_T60xWH9.js";import{n as d,t as f}from"./useMagicalSlotDivs-C0Duw7Rw.js";function p(e){return function(t,n,r){var o=Object(t);if(!i(t)){var c=s(n,3);t=a(t),n=function(e){return c(o[e],e,o)}}var l=e(t,n,r);return l>-1?o[c?t[l]:l]:void 0}}var m=Math.max;function h(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:r(n);return a<0&&(a=m(i+a,0)),o(e,s(t,3),a)}var g=p(h),_=e(t()),v=e(u()),y={bottomCenter:`_bottomCenter_6pmo1_1`,inner:`_inner_6pmo1_14`},b=n(),x=[`webgl-alert`,`search-this-area`],S=({className:e})=>{let{leftElement:t,slotNodes:n,enabledSlots:r}=(0,_.useContext)(C),i=(0,_.useRef)(null),[a,o]=(0,_.useState)(0),s=(0,_.useMemo)(()=>({paddingLeft:a}),[a]);return(0,_.useEffect)(()=>{let e=i.current;if(!t)o(0);else if(t&&e){let n=()=>{e.offsetTop<t.offsetTop+t.offsetHeight?o(t.offsetWidth+t.offsetLeft):o(0)},r=new ResizeObserver(n);return r.observe(e),r.observe(t),e.offsetParent&&r.observe(e.offsetParent),requestAnimationFrame(n),c(e.offsetParent!==t.offsetParent,`<BottomCenter /> requires shared offset parent`),()=>{r.disconnect()}}},[t]),g(r,l)?(0,b.jsx)(`div`,{className:(0,v.default)(y.bottomCenter,e),ref:i,style:s,children:(0,b.jsx)(`div`,{className:y.inner,children:n})}):null},C=(0,_.createContext)(null),w=({children:e})=>{let[t,n]=(0,_.useState)(null),r=f(x),i=(0,_.useMemo)(()=>({leftElement:t,setLeftElement:n,...r}),[t,r]);return(0,b.jsx)(C.Provider,{value:i,children:e})},T=({slot:e,children:t})=>d(e,(0,_.useContext)(C))(t),E=e=>{let{setLeftElement:t}=(0,_.useContext)(C);(0,_.useEffect)(()=>(t(e),()=>t(null)),[e,t])};export{g as a,E as i,w as n,h as o,T as r,S as t};
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.