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]=`acad1a3d-bd0f-443e-a9bc-5bd87d695785`,e._sentryDebugIdIdentifier=`sentry-dbid-acad1a3d-bd0f-443e-a9bc-5bd87d695785`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Qh as n,Zm as r,_d as i,ai as a,gd as o,hd as s,jg as c,jm as l,ld as u,ng as d,pi as f,xd as p,xi as m}from"./entry.client-mpghtlrl.js";var h=t(),g=e(f(),1),_=d(),v=e=>{let t=(0,h.c)(13),{count:n,className:r,itemClassName:i}=e,o;t[0]===r?o=t[1]:(o=(0,g.default)(`flex flex-col`,`density-low:[--channel-focus-spacing-vertical:calc(var(--V21R)+var(--V253)+var(--V1)+16px)]`,`density-high:[--channel-focus-spacing-vertical:calc(var(--V21R)+var(--V253)+var(--V1)+4px)]`,`mb-[var(--channel-focus-spacing-vertical)]`,r),t[0]=r,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,_.jsx)(`div`,{className:`pb-layout-vertical-title-and-row-regular`,children:(0,_.jsx)(m,{className:`w-1/3 rounded-regular h-text-line-section-3`})}),t[2]=s):s=t[2];let c;t[3]===n?c=t[4]:(c=Array(n).keys(),t[3]=n,t[4]=c);let l;t[5]===c?l=t[6]:(l=[...c],t[5]=c,t[6]=l);let u;t[7]!==i||t[8]!==l?(u=(0,_.jsx)(`div`,{className:`flex flex-row overflow-hidden flex-col-gap`,children:l.map((e,t)=>(0,_.jsx)(m,{className:i},t))}),t[7]=i,t[8]=l,t[9]=u):u=t[9];let d;return t[10]!==o||t[11]!==u?(d=(0,_.jsx)(a,{children:(0,_.jsxs)(`div`,{className:o,children:[s,u]})}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},y=e(c(),1),b=[];function x(e,t,n=b,i=!0){let{performanceMetrics:a}=r(),{pathname:o}=l(),s=(0,y.useRef)({attributes:t,startTime:performance.now(),currentPath:o,deps:n,end:()=>{}});s.current.startTime=performance.now(),s.current.attributes=t,s.current.currentPath=o,s.current.end=(0,y.useCallback)((e,t,n)=>{let r=s.current.span;r&&r.end(e,t,n)},[]);let c=s.current.deps;(n!==c&&n.length!==c.length||n.some((e,t)=>!Object.is(e,c[t])))&&(s.current.deps=n);let u=s.current.deps,d=(0,y.useCallback)(()=>a.startSpan(e,s.current.currentPath,u.length>0?{dependencyCount:u.length,...s.current.attributes}:s.current.attributes,void 0,s.current.startTime),[a,e,u]);return(0,y.useEffect)(()=>{let e=s.current;return!e.span&&i&&(e.span=d()),()=>{let t=performance.now();e.span?.end(`cancelled`,void 0,t),e.span=void 0}},[i,d]),s.current}var S={attributes:void 0,deps:[],enabled:!0};function C(e,t,n=S){let{attributes:r,deps:i,enabled:a}=n,o=x(e,void 0,i,a),s=(0,y.useRef)(r);s.current=t.error?{...r,error:t.error.message}:r;let c=t.isPending?void 0:t.isError?`error`:`ok`;(0,y.useEffect)(()=>{c&&o.end(c,s.current)},[c,o])}var w=()=>{let e=(0,h.c)(4),{contentAccess:t,configuration:a}=r(),c;e[0]===a.queries.configuration?c=e[1]:(c=a.queries.configuration.getOptions(`enableXGPPUI`),e[0]=a.queries.configuration,e[1]=c);let{data:l}=n(c),d=a.castAsConfiguration(l,`enableXGPPUI`)??!1,f;e[2]===t.queries.passAccess?f=e[3]:(f=t.queries.passAccess.getOptions(),e[2]=t.queries.passAccess,e[3]=f);let{data:m}=n(f);if(!d||!m)return!1;let g=m.get(o)?.passStatus===u.Active;if(!g)return!1;let _=m.get(s),v=m.get(i),y=m.get(p),b=_?.passStatus===u.Active,x=v?.passStatus===u.Active,S=y?.passStatus===u.Active;return!b&&!x&&!S&&g};export{C as n,v as r,w as t};