try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`8458ee63-6e12-422f-80f5-f75819e1bafa`,e._sentryDebugIdIdentifier=`sentry-dbid-8458ee63-6e12-422f-80f5-f75819e1bafa`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{ht as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Bo as r,Fg as i,Ig as a,Kn as o,Lo as s,ft as c,ln as l,or as u,ur as d}from"./entry.client-dr7r6s9a.js";import{a as f}from"./gamepad-nav-virtual-cvbizm2x.js";var p=e(a(),1),m=i(),h=e(u(),1),g,_=e=>{e!=null&&(g=e)},v=(e,t)=>t?e==null?g??e:(_(e),e):e,y=n(),b=(0,p.forwardRef)((e,n)=>{let r=(0,m.c)(43),i,a,s,u,g,_,b,x;if(r[0]!==e){let{innerDivProps:t,children:n,as:o,id:c,className:l,disableScroll:d,disableFocusRect:f,pinToViewport:p,...m}=e;s=t,x=n,i=o,g=c,_=l,b=f,a=p,u=m,r[0]=e,r[1]=i,r[2]=a,r[3]=s,r[4]=u,r[5]=g,r[6]=_,r[7]=b,r[8]=x}else i=r[1],a=r[2],s=r[3],u=r[4],g=r[5],_=r[6],b=r[7],x=r[8];let S=i===void 0?`div`:i,C=a===void 0?!0:a,w;r[9]===s?w=r[10]:(w=s??{},r[9]=s,r[10]=w);let T,E,D;r[11]===w?(T=r[12],E=r[13],D=r[14]):({className:T,divRef:E,...D}=w,r[11]=w,r[12]=T,r[13]=E,r[14]=D);let O=(0,p.useRef)(null),k=l(O),A=u[`data-container`]===`content`,j;r[15]!==k||r[16]!==A?(j=v(k,A),r[15]=k,r[16]=A,r[17]=j):j=r[17];let M=j;t(g);let N;r[18]===M?N=r[19]:(N={breakpoint:M},r[18]=M,r[19]=N);let P=o(n,O),F=C&&`sticky top-0`,I;r[20]!==F||r[21]!==_?(I=(0,h.default)(`h-screen overflow-visible @container`,F,_),r[20]=F,r[21]=_,r[22]=I):I=r[22];let L;r[23]===T?L=r[24]:(L=(0,h.default)(`min-h-full w-full overflow-visible col-container`,T),r[23]=T,r[24]=L);let R;r[25]!==b||r[26]!==x?(R=(0,y.jsx)(c,{disableFocusRect:b,children:x}),r[25]=b,r[26]=x,r[27]=R):R=r[27];let z;r[28]!==g||r[29]!==E||r[30]!==L||r[31]!==D||r[32]!==R?(z=(0,y.jsx)(f,{snapToStartThreshold:300,children:(0,y.jsx)(`div`,{id:g,ref:E,"data-col-container":!0,className:L,...D,children:R})}),r[28]=g,r[29]=E,r[30]=L,r[31]=D,r[32]=R,r[33]=z):z=r[33];let B;r[34]!==S||r[35]!==P||r[36]!==I||r[37]!==u||r[38]!==z?(B=(0,y.jsx)(S,{ref:P,className:I,...u,children:z}),r[34]=S,r[35]=P,r[36]=I,r[37]=u,r[38]=z,r[39]=B):B=r[39];let V;return r[40]!==N||r[41]!==B?(V=(0,y.jsx)(d.Provider,{value:N,children:B}),r[40]=N,r[41]=B,r[42]=V):V=r[42],V}),x=e=>{let t=parseInt(e.replace(/[^\d.-]/g,``),10);return isNaN(t)?16:t},S=()=>s(`--fp-padding`,16,x),C=()=>{let e=(0,p.useContext)(d);if(e===void 0)throw Error(`useRecalculateContainerHeight must be used within a <ResizableContainer>`);return e.recalculateHeight},w=typeof window>`u`?p.useEffect:p.useLayoutEffect,T=`--content-height`,E=(0,p.forwardRef)((e,t)=>{let n=(0,m.c)(25),i,a,s,c;n[0]===e?(i=n[1],a=n[2],s=n[3],c=n[4]):({children:c,className:a,observeResize:i,...s}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=s,n[4]=c);let u=i===void 0?!0:i,f=(0,p.useRef)(null),g=l(f),_=(0,p.useRef)(0),v=(0,p.useRef)(null),b=o(t,f),[x,S]=(0,p.useState)(!1),C=(0,p.useRef)(!1),E;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>{v.current=null;let e=f.current;if(!e)return;e.style.setProperty(`container-type`,`normal`,`important`),e.style.setProperty(`block-size`,`auto`,`important`);let t=Math.ceil(Math.max(e.scrollHeight,e.getBoundingClientRect().height));e.style.removeProperty(`container-type`),e.style.removeProperty(`block-size`),t!==0&&(t!==_.current&&(_.current=t,e.style.setProperty(T,`${t}px`)),C.current||(C.current=!0,S(!0)))},n[5]=E):E=n[5];let D=E,O;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>{v.current===null&&(v.current=r(D,`read`))},n[6]=O):O=n[6];let k=O,A,j;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>{D()},j=[D],n[7]=A,n[8]=j):(A=n[7],j=n[8]),w(A,j);let M,N;n[9]===u?(M=n[10],N=n[11]):(M=()=>{if(!u)return;let e=f.current;if(!e)return;let t=new MutationObserver(()=>k());t.observe(e,{childList:!0,subtree:!0});let n=()=>k();window.addEventListener(`resize`,n,{passive:!0});let r=document.fonts,i=()=>k();return r?.addEventListener(`loadingdone`,i),()=>{t.disconnect(),window.removeEventListener(`resize`,n),r?.removeEventListener(`loadingdone`,i),v.current!==null&&(v.current(),v.current=null)}},N=[u,k],n[9]=u,n[10]=M,n[11]=N),w(M,N);let P;n[12]===g?P=n[13]:(P={breakpoint:g,recalculateHeight:k},n[12]=g,n[13]=P);let F=x?`h-[var(--content-height)] @container`:``,I;n[14]!==F||n[15]!==a?(I=(0,h.default)(F,a),n[14]=F,n[15]=a,n[16]=I):I=n[16];let L;n[17]!==b||n[18]!==I||n[19]!==s||n[20]!==c?(L=(0,y.jsx)(`div`,{ref:b,className:I,...s,children:c}),n[17]=b,n[18]=I,n[19]=s,n[20]=c,n[21]=L):L=n[21];let R;return n[22]!==P||n[23]!==L?(R=(0,y.jsx)(d.Provider,{value:P,children:L}),n[22]=P,n[23]=L,n[24]=R):R=n[24],R});export{b as i,C as n,S as r,E as t};